.elementor-48 .elementor-element.elementor-element-6cf4330{--display:flex;--justify-content:center;--align-items:flex-start;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--padding-top:10rem;--padding-bottom:10rem;--padding-left:2rem;--padding-right:2rem;}.elementor-48 .elementor-element.elementor-element-6cf4330:not(.elementor-motion-effects-element-type-background), .elementor-48 .elementor-element.elementor-element-6cf4330 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-image:url("https://sostegninrete.it/wp-content/uploads/2025/07/Header-scaled.jpg");background-position:top center;background-repeat:no-repeat;background-size:cover;}:root{--page-title-display:none;}@media(max-width:767px){.elementor-48 .elementor-element.elementor-element-6cf4330:not(.elementor-motion-effects-element-type-background), .elementor-48 .elementor-element.elementor-element-6cf4330 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-size:contain;}.elementor-48 .elementor-element.elementor-element-6cf4330{--padding-top:13rem;--padding-bottom:2rem;--padding-left:1rem;--padding-right:1rem;}}@media(min-width:1367px){.elementor-48 .elementor-element.elementor-element-6cf4330:not(.elementor-motion-effects-element-type-background), .elementor-48 .elementor-element.elementor-element-6cf4330 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-attachment:scroll;}}@media(min-width:1900px){.elementor-48 .elementor-element.elementor-element-6cf4330{--content-width:1600px;--padding-top:10rem;--padding-bottom:10rem;--padding-left:5rem;--padding-right:5rem;}}/* Start custom CSS for shortcode, class: .elementor-element-20e7509 */.wpcf7-response-output {
    background: #fff;
}

/* === RESET E BASE === */
.cf7-form-container * {
    box-sizing: border-box;
}

/* === CONTAINER PRINCIPALE === */
.cf7-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.field-group br {
    display: none;
}

/* === HEADER FORM === */
.form-header {
    background: #fafbfc;
    color: #2c3e50;
    padding: 32px 28px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}

.form-header h2 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a202c;
}

.form-header p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #4a5568;
}

/* === FIELDS CONTAINER === */
.form-fields {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* === FLEXBOX LAYOUTS === */
.name-fields {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.name-fields .field-group {
    flex: 1;
    min-width: 220px;
}

.email-field,
.privacy-field,
.submit-field {
    width: 100%;
}

/* === FIELD GROUPS === */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

/* === LABELS === */
.field-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin: 0 0 4px 0;
    display: block;
}

/* === FIELD HINTS === */
.field-hint {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
    line-height: 1.4;
}

/* === INPUT STYLING === */
.form-input {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    color: #2d3748 !important;
    line-height: 1.5 !important;
}

.form-input:focus {
    outline: none !important;
    border-color: #4299e1 !important;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1) !important;
    background: #ffffff !important;
}

.form-input:hover:not(:focus) {
    border-color: #cbd5e0 !important;
}

/* === PRIVACY SECTION === */
.privacy-fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.privacy-group {
    display: block;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.privacy-checkbox {
    margin: 2px 0 0 0 !important;
    width: 18px !important;
    height: 18px !important;
    accent-color: #4299e1;
    flex-shrink: 0;
}

.privacy-label {
    font-size: 14px !important;
    margin: -10px 0 0 10px;
    line-height: 1.5 !important;
    color: #4a5568 !important;
    font-weight: 400 !important;
}

.privacy-acceptance br {
    display: none;
}

.privacy-label a {
    color: #4299e1;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.privacy-label a:hover,
.privacy-label a:focus {
    color: #3182ce;
    outline: 2px solid #4299e1;
    outline-offset: 2px;
    border-radius: 2px;
}

/* === SUBMIT BUTTON === */
.submit-btn {
    width: 100% !important;
    background: #4299e1 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
    letter-spacing: 0.025em;
    min-height: 48px !important;
}

.submit-btn:hover {
    background: #3182ce !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.submit-btn:focus {
    outline: 3px solid #63b3ed !important;
    outline-offset: 2px !important;
}

.submit-btn:active {
    transform: translateY(0) !important;
    background: #2c5aa0 !important;
}

/* === SCREEN READER ONLY === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .cf7-form-container {
        margin: 0 16px;
        border-radius: 6px;
    }
    
    .form-header {
        padding: 28px 24px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .form-fields {
        padding: 28px 24px;
        gap: 24px;
    }
    
    .name-fields {
        flex-direction: column;
        gap: 24px;
    }
    
    .name-fields .field-group {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .cf7-form-container {
        margin: 0 12px;
    }
    
    .form-header {
        padding: 24px 20px;
    }
    
    .form-header h2 {
        font-size: 20px;
    }
    
    .form-header p {
        font-size: 15px;
    }
    
    .form-fields {
        padding: 24px 20px;
    }
    
    .form-input {
        padding: 16px 14px !important;
        font-size: 16px !important; /* Previene zoom iOS */
    }
    
    .submit-btn {
        padding: 18px 20px !important;
        font-size: 16px !important;
    }
    
    .privacy-group {
        padding: 14px;
    }
}

/* === STATI DI ERRORE CF7 === */
.wpcf7-not-valid {
    border-color: #e53e3e !important;
    background: #fed7d7 !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

.wpcf7-not-valid-tip {
    color: #e53e3e !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-top: 6px !important;
    display: block !important;
    background: #fed7d7;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #e53e3e;
}

/* === MESSAGGI CF7 === */
.wpcf7-response-output {
    margin: 24px 0 0 0 !important;
    padding: 16px 20px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.wpcf7-mail-sent-ok {
    background: #c6f6d5 !important;
    color: #1a202c !important;
    border: 1px solid #9ae6b4 !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #fed7d7 !important;
    color: #1a202c !important;
    border: 1px solid #feb2b2 !important;
}

/* === LOADING STATE === */
.wpcf7-form.submitting .submit-btn {
    background: #a0aec0 !important;
    cursor: not-allowed !important;
    transform: none !important;
    position: relative;
}

.wpcf7-form.submitting .submit-btn:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.wpcf7-form.submitting .submit-btn span {
    opacity: 0;
}

/* === ACCESSIBILITÀ FOCUS === */
.form-input:focus,
.privacy-checkbox:focus,
.submit-btn:focus {
    outline: 3px solid #63b3ed;
    outline-offset: 2px;
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 3px !important;
    }
    
    .form-input:focus {
        border-color: #000000 !important;
        box-shadow: 0 0 0 3px #ffff00 !important;
    }
    
    .submit-btn {
        border: 2px solid #000000 !important;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .form-input,
    .submit-btn,
    .privacy-label a {
        transition: none !important;
    }
    
    .submit-btn:hover {
        transform: none !important;
    }
    
    @keyframes spin {
        0% { transform: translate(-50%, -50%) rotate(0deg); }
        100% { transform: translate(-50%, -50%) rotate(0deg); }
    }
}

/* === PRINT STYLES === */
@media print {
    .cf7-form-container {
        box-shadow: none;
        border: 1px solid #000000;
    }
    
    .submit-btn {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
    }
}

/* === ELEMENTOR COMPATIBILITY === */
.elementor-widget-container .cf7-form-container {
    margin: 0;
}

.elementor-widget-container .cf7-form-container .form-fields {
    margin: 0;
}/* End custom CSS */