/* ============================================
   STICKY HEADER
   ============================================ */
#sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
		padding: 5px 0;
}

.site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.header-container {
    margin-bottom: 0 !important;
}




/* ============================================
   CSS CONTACT FORM 7 - TECHNOSOURCE
   Versione Definitiva - Testata e Funzionante
   ============================================ */

/* Container principale */
.wpcf7 {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
}

/* Titoli sezioni */
.wpcf7 h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    margin-top: 35px;
}

.wpcf7 h3:first-child {
    margin-top: 0;
}

/* Paragrafi */
.wpcf7 p {
    margin-bottom: 25px;
}

/* Label */
.wpcf7 label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* Wrapper campi form - FIX per z-index */
.wpcf7 .wpcf7-form-control-wrap {
    position: relative;
    display: block;
}

/* Input e textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Focus */
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    z-index: 2;
}

/* Placeholder */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #999;
}

/* Select */
.wpcf7 select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

/* Textarea */
.wpcf7 textarea {
    resize: vertical;
    min-height: 140px;
}

/* Upload file */
.wpcf7 input[type="file"] {
    width: 100%;
    padding: 30px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.wpcf7 input[type="file"]:hover {
    background: #f5f5f5;
    border-color: #2563eb;
}

/* Layout 2 colonne */
.wpcf7 .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.wpcf7 .form-row p {
    margin-bottom: 0;
}

/* ============================================
   TITOLI SEZIONI CONTACT FORM 7 - MODERNIZZATI
   ============================================ */
.wpcf7 h3 {
    font-size: 22px;                 /* leggermente più grande */
    font-weight: 700;                /* grassetto pieno */
    color: #007BFF;                  /* blu primario per branding */
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 3px solid #cce4ff; /* bordo azzurro chiaro delicato */
    margin-top: 40px;
    text-transform: uppercase;       /* titolo più evidente */
    letter-spacing: 0.5px;           /* spaziatura lettere più elegante */
}

/* Primo titolo senza margine top e border iniziale */
.wpcf7 h3:first-child {
    margin-top: 0;
    border-top: none;
}

/* Responsive: titoli più piccoli su dispositivi mobili */
@media (max-width: 768px) {
    .wpcf7 h3 {
        font-size: 20px;
        margin-top: 30px;
    }
}

/* ============================================
   BOX DICHIARAZIONE PRIVACY - FLEX FIX
   ============================================ */
.wpcf7 .privacy-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #f0f4f8;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 25px 0;
    font-size: 14px;
    color: #333;
}

/* Checkbox */
.wpcf7 .privacy-box input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

/* Testo label */
.wpcf7 .privacy-box label {
    cursor: pointer;
    line-height: 1.5;
    flex: 1;
}

/* Link privacy */
.wpcf7 .privacy-box a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.wpcf7 .privacy-box a:hover {
    text-decoration: underline;
}

/* ============================================
   PULSANTE SUBMIT
   ============================================ */
.wpcf7 .wpcf7-submit-wrap {
    display: block;
    width: 100%;
}

.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit,
.wpcf7 button[type="submit"] {
    width: 100% !important;
    padding: 18px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-height: 54px !important;
    display: block !important;
    text-align: center !important;
    line-height: normal !important;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover,
.wpcf7 button[type="submit"]:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

/* Form non valido */
.wpcf7 form.invalid .wpcf7-submit,
.wpcf7 form.unaccepted .wpcf7-submit {
    background: #93a5d4 !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
}

/* Durante invio */
.wpcf7 form.submitting .wpcf7-submit {
    background: #1d4ed8 !important;
    opacity: 0.7 !important;
    cursor: wait !important;
    pointer-events: none !important;
}

/* Focus pulsante */
.wpcf7 input[type="submit"]:focus,
.wpcf7 .wpcf7-submit:focus {
    outline: 2px solid #2563eb !important;
    outline-offset: 2px !important;
}

/* ============================================
   MESSAGGI E VALIDAZIONE
   ============================================ */
.wpcf7 .wpcf7-spinner {
    display: none !important;
}

.wpcf7-response-output {
    border: none !important;
    padding: 18px 20px !important;
    border-radius: 8px !important;
    margin: 20px 0 0 0 !important;
}

.wpcf7-mail-sent-ok {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.wpcf7-validation-errors {
    background: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeaa7 !important;
}

.wpcf7-mail-sent-ng {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .wpcf7 {
        padding: 30px 20px;
    }
    
    .wpcf7 .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .wpcf7 .form-row p {
        margin-bottom: 25px;
    }
    
    .wpcf7 h3 {
        font-size: 18px;
    }
}

/* Nasconde reCAPTCHA */
.grecaptcha-badge {
    visibility: hidden;
}

/* ============================================
   FIX OVERLAY E Z-INDEX GLOBALI
   ============================================ */
.wpcf7 form * {
    pointer-events: auto;
}

.wpcf7 form *:before,
.wpcf7 form *:after {
    pointer-events: none;
}
/* Navbar voci generali */
.main-navigation ul li a {
    font-size: 15px;
    padding: 10px 15px;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    transition: color 0.3s, background 0.3s;
}

/* Hover generale */
.main-navigation ul li a:hover {
    color: #0d47a1;
}


/* Trasforma il link "Contattaci" in un pulsante visibile */
.main-navigation ul li a[href*="#contatto"] {
    display: inline-block;               /* crea un box intorno al link */
    background-color: #e6f0fa;           /* colore chiaro richiamo Technosource */
    color: #0d47a1 !important;           /* testo blu scuro */
    padding: 6px 20px;                   /* spazio interno */
    border: 2px solid #0d47a1;           /* bordo sottile */
    border-radius: 8px;                   /* angoli arrotondati */
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12); /* leggera ombra */
    transition: all 0.3s ease;
    margin-left: 10px;                    /* separazione dalle altre voci */
}

/* Hover */
.main-navigation ul li a[href*="#contatto"]:hover {
    background-color: #0d47a1;           /* blu scuro */
    color: #ffffff !important;           /* testo bianco */
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.2);
}



/*
================
1. Stili per il Contenitore Generale e la Leggibilità
==============
*/

.policy-content-wrapper {
    max-width: 800px; /* Limita la larghezza per una lettura ottimale (max 80 caratteri per riga) */
    margin: 0 auto; /* Centra il contenuto della policy */
    padding: 30px 20px;
    font-family: 'Inter', 'Open Sans', Arial, sans-serif; /* Font moderno */
    line-height: 1.7; /* Interlinea più ampia per una lettura rilassata */
    color: #333; /* Colore del testo scuro ma non nero assoluto */
}

/* Spaziature migliorate per il contenuto generato da Complianz */
.policy-content-wrapper h2, 
.policy-content-wrapper h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #E0E0E0; /* Separatore sottile e discreto */
    color: #007BFF; /* Colore primario per i titoli (per branding) */
}

.policy-content-wrapper p {
    margin-bottom: 15px;
}

/* =======================================================
   2. Stile per l'Header Iniziale
   ======================================================= */
.policy-header {
    background-color: #F8F9FA; /* Sfondo chiaro per il top della pagina */
    padding: 60px 20px;
    text-align: center;
    border-bottom: 5px solid #007BFF; /* Linea di colore primario */
}

.policy-header h1 {
    font-size: 2.5rem;
    color: #343A40;
    margin-bottom: 10px;
}

.policy-intro {
    font-size: 1.1rem;
    color: #6C757D;
    max-width: 700px;
    margin: 0 auto;
}


/* =======================================================
   3. Stile per il Blocco CTA di Gestione Consenso
   ======================================================= */
.consent-management-cta {
    background-color: #E6F3FF; /* Sfondo azzurro chiaro/neutro per risalto */
    border-left: 5px solid #007BFF; /* Linea di colore primario forte */
    padding: 25px;
    margin-top: 50px;
    border-radius: 8px;
    text-align: center;
}

.consent-management-cta h3 {
    color: #007BFF;
    border-bottom: none; /* Rimuove la linea separatrice qui */
}

.cta-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.btn-primary-consent {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-primary-consent:hover {
    background-color: #0056b3;
}


/* =======================================================
   1. Layout a Griglia
   ======================================================= */
.solutions-grid-section {
    display: grid;
    /* Crea una griglia a 4 colonne su schermi larghi */
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; /* Spazio tra le card */
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Stile per dispositivi mobili: 2 colonne, poi 1 colonna */
@media (max-width: 992px) {
    .solutions-grid-section {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .solutions-grid-section {
        grid-template-columns: 1fr;
    }
}

/* =======================================================
   2. Stile della Card
   ======================================================= */
.service-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    
    /* Ombra discreta iniziale */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); 
    
    /* Transizione fluida per hover */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

/* Effetto al passaggio del mouse: sollevamento e ombra più marcata */
.service-card:hover {
    transform: translateY(-8px); /* La card si "solleva" leggermente */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* Ombra più intensa */
    border-color: #007BFF; /* Opzionale: bordo colorato all'hover */
}



/* Correzione per l'offset dell'ancora (anchor offset) causato dall'header fisso */
/* Correzione per l'offset dell'ancora (Anchor Link) */

#contatto {
    /* Diminuito a 90px. Questo è il valore più probabile per un header moderno. */
    scroll-margin-top: 80px !important; 
}

/* Applica la stessa correzione a tutte le altre ancore di navigazione */
#soluzioni, 
#lavoriamo, 
#settori {
    scroll-margin-top: 80px !important;
}