/* ==========================================================================   ZB Nautica - Foglio di Stile Ottimizzato e Validato   ========================================================================== */@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');/* --- 1. VARIABILI GLOBALI (Tema Scuro / Blu Nautico di Default) --- */:root, [data-theme="dark"] {    --bg-deep: #060b13;    --bg-card: #0f172a;    --accent: #0ea5e9; /* Azzurro Nautico */    --accent-glow: rgba(14, 165, 233, 0.3);    --text-primary: #f8fafc;    --text-dim: #94a3b8;    --border: rgba(255, 255, 255, 0.1);    --header-bg: rgba(6, 11, 19, 0.95);}[data-theme="light"] {    --bg-deep: #f1f5f9;    --bg-card: #ffffff;    --text-primary: #0f172a;    --text-dim: #475569;    --border: rgba(0, 0, 0, 0.1);    --header-bg: rgba(255, 255, 255, 0.95);    --accent: #0284c7; }/* --- 2. RESET E TYPOGRAPHY --- */* { margin: 0; padding: 0; box-sizing: border-box; } /* Corretto il padding: 10 invalido */body {     font-family: 'Plus Jakarta Sans', sans-serif;     background-color: var(--bg-deep);     color: var(--text-primary);     line-height: 1.6;     transition: background 0.3s ease, color 0.3s ease; }h1, h2, h3, h4, p, li { color: var(--text-primary); }img.img-responsive { max-width: 100%; height: auto; display: block; }/* --- 3. HEADER E NAVIGAZIONE --- */header {     background: var(--header-bg);     backdrop-filter: blur(12px);     padding: 5px 8%;     display: flex;     justify-content: space-between;     align-items: center;     position: sticky;     top: 0;     z-index: 1000;     border-bottom: 1px solid var(--border); }.logo {     font-size: 24px;     font-weight: 800;     background: linear-gradient(90deg, var(--text-primary), var(--accent));     -webkit-background-clip: text;     -webkit-text-fill-color: transparent;     text-decoration: none; }/* Corretta sintassi per l'immagine nel logo */.logo img { width: 100px; height: auto; } nav ul { display: flex; gap: 25px; list-style: none; align-items: center; }nav a { color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: 14px; transition: color 0.3s; }nav a:hover, nav a.active { color: var(--accent); }/* --- 4. DROPDOWN CONTATTI / MENU A TENDINA --- */.dropdown { position: relative; }.dropdown-menu {    display: none !important;    position: absolute;    top: 100%;    left: 0;    background: var(--bg-card);    padding: 8px 0;    list-style: none;    border: 1px solid var(--border);    border-radius: 8px;    min-width: 220px;    z-index: 9999;    box-shadow: 0 10px 25px rgba(0,0,0,0.5);}.dropdown-menu li a { display: block; padding: 10px 16px; white-space: nowrap; color: var(--text-primary) !important; transition: 0.2s; }.dropdown-menu li a:hover, .dropdown-menu li a:focus { background-color: var(--accent); color: #fff !important; border-radius: 8px; outline: none; }@media (min-width: 769px) {    .dropdown:hover .dropdown-menu { display: block !important; }}/* --- 5. COMPONENTI BASE --- */.hero {     padding: 100px 8% 80px;     text-align: left;     background: radial-gradient(circle at top right, #1e293b, var(--bg-deep)); }.hero h1 { font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.1; margin-bottom: 25px; font-weight: 800; }.hero h1 span { color: var(--accent); }.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 60px 8%; max-width: 1400px; margin: auto; }.card {     background: var(--bg-card);     padding: 30px;     border-radius: 20px;     border: 1px solid var(--border);     transition: transform 0.4s, box-shadow 0.4s;     position: relative;     overflow: hidden; }.card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }.card h3 { margin-bottom: 15px; }/* Bottoni */.btn-primary {     background: var(--accent);     color: #fff !important;     padding: 15px 30px;     border-radius: 12px;     font-weight: bold;     text-decoration: none;     display: inline-block;     box-shadow: 0 4px 15px var(--accent-glow);     transition: 0.3s;     border: none;    cursor: pointer;    text-align: center;}.btn-primary:hover { transform: scale(1.05); box-shadow: 0 8px 25px var(--accent-glow); }/* --- 6. MODULI CONTATTO --- */.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }input[type="text"], input[type="email"], select, textarea, input[type="file"] {    width: 100%;    padding: 15px;    background: var(--bg-deep);    border: 1px solid var(--border);    color: var(--text-primary);    border-radius: 10px;    font-family: inherit;    font-size: 15px;    transition: border-color 0.3s, background 0.3s;}input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; background: rgba(255,255,255,0.02); }input:invalid { border-color: #ef4444; }.privacy-box { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-dim); margin: 20px 0; }.privacy-box input { width: auto; margin-top: 4px; }.form-loader { display: none; padding: 15px; border-radius: 8px; margin-top: 20px; text-align: center; font-weight: bold; }.success { background: rgba(34, 197, 94, 0.2); color: #22c55e; border: 1px solid #22c55e; }/* --- 7. FOOTER ISTITUZIONALE --- */footer {     background: rgba(15, 23, 42, 0.98);     padding: 60px 8% 20px;     border-top: 1px solid var(--border); }.footer-container, .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; max-width: 1200px; margin: 0 auto 50px; }.footer-h4 { color: var(--accent); margin-bottom: 25px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; border-left: 3px solid var(--accent); padding-left: 10px; }footer p, footer a, .footer-section p { font-size: 13px; color: var(--text-dim); line-height: 1.7; text-decoration: none; }footer a:hover, .footer-section a:hover { color: var(--accent); }.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }[data-theme="light"] footer { background: #e2e8f0; color: #0f172a; }/* --- 8. WIDGET E ACCESSIBILITÀ --- *//* Posizionamento Float (Allineati in basso a destra) */.acc-toggle {    position: fixed !important; right: 20px !important; bottom: 20px !important;    width: 60px !important; height: 60px !important; border-radius: 50% !important;    background: var(--accent); color: white; border: none; cursor: pointer; font-size: 24px;    z-index: 3000 !important; box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important; transition: transform 0.3s ease !important;}.acc-toggle:hover { transform: scale(1.1); }#back-to-top {    position: fixed !important; right: 95px !important; bottom: 25px !important;    width: 50px !important; height: 50px !important; border-radius: 12px !important;    background: var(--bg-card) !important; color: var(--accent) !important; border: 2px solid var(--accent) !important;    cursor: pointer; display: none; z-index: 2500 !important; align-items: center; justify-content: center;    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important; transition: transform 0.3s;}#back-to-top:hover { background: var(--accent) !important; color: white !important; transform: translateY(-5px); }/* Pannello Menu Accessibilità */.acc-panel {    display: none; flex-direction: column; gap: 8px;    background: var(--bg-card); border: 1px solid var(--accent);    padding: 20px; border-radius: 15px; width: 250px;    position: fixed !important; bottom: 90px !important; right: 20px !important;    z-index: 5000 !important; box-shadow: 0 10px 30px rgba(0,0,0,0.5);}.acc-header { font-weight: 800; color: var(--accent); margin-bottom: 10px; font-size: 14px; text-transform: uppercase; border-bottom: 1px solid var(--border); padding-bottom: 5px;}.acc-btn {     background: var(--bg-deep); color: var(--text-primary); border: 1px solid var(--border);    padding: 12px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 13px; font-weight: 600; transition: 0.2s;}.acc-btn i { margin-right: 10px; color: var(--accent); width: 20px; }.acc-btn:hover { background: var(--border); border-color: var(--accent); }.acc-btn.reset { margin-top: 5px; background: transparent; border-color: #ef4444; color: #ef4444; }/* Guide e Progress */#scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 4px; background: var(--accent); z-index: 2000; transition: width 0.1s; }#reading-guide { position: fixed; top: 50%; left: 0; width: 100%; height: 4px; background: var(--accent); z-index: 9999; pointer-events: none; display: none; box-shadow: 0 0 15px var(--accent); }/* --- 9. CLASSI DI STATO (Generate dal JS Accessibilità) --- *//* Filtri Generali */.extra-spacing { letter-spacing: 2px !important; word-spacing: 4px !important; line-height: 2.2 !important; }.readable-font { font-family: 'Open Sans', Arial, sans-serif !important; }/* Fix Modalità Grigia - Colpisce solo il contenuto, non la UI */.grayscale header, .grayscale section, .grayscale footer, .grayscale main, .grayscale .content-grid, .grayscale .hero { filter: grayscale(100%) !important; }body.grayscale { filter: none !important; }.acc-wrapper, .acc-panel, .acc-toggle { filter: none !important; backdrop-filter: none !important; }/* High Contrast & Fix Link */.high-contrast { background-color: #000 !important; color: #fff !important; }.high-contrast * { border-color: #fff !important; }.high-contrast .card, .high-contrast header { background: #000; border: 2px solid #fff; }/* Link Evidenziati */.underline-links a:not(.btn-primary):not(.acc-btn) {     text-decoration: underline !important; text-decoration-thickness: 2px !important; font-weight: 800 !important;     color: var(--accent) !important; -webkit-text-fill-color: var(--accent) !important; opacity: 1 !important; visibility: visible !important;}.high-contrast.underline-links a:not(.btn-primary):not(.acc-btn) {     color: #ffff00 !important; -webkit-text-fill-color: #ffff00 !important; text-decoration-color: #ffff00 !important;}/* Salva lo stile dei bottoni per non farli sparire */.underline-links .btn-primary, .underline-links .acc-btn {    color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; text-decoration: none !important; border-color: #ffffff !important;}/* --- 10. DASHBOARD STATISTICHE --- */.dash-statistiche {    position: fixed; bottom: 25px; right: 25px; z-index: 999999;    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);    color: #e2e8f0; padding: 20px; border-radius: 14px;     font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid var(--border); width: 280px;}.dash-header { display: flex; justify-content: space-between; align-items: center; font-size: 15px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 15px; }.dash-close { font-size: 22px; color: #a0aec0; cursor: pointer; line-height: 1; transition: 0.2s; }.dash-close:hover { color: #f56565; }.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 15px; text-align: center; }.dash-box { background: rgba(0,0,0,0.3); padding: 10px 5px; border-radius: 8px; font-size: 11px; color: #a0aec0; }.dash-box strong { display: block; font-size: 16px; color: var(--accent); margin-top: 3px; }.dash-section { background: rgba(0,0,0,0.2); padding: 10px 12px; border-radius: 8px; margin-bottom: 15px; }.dash-section strong { color: var(--accent); }.dash-section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 8px; }.dash-list { margin: 0 0 15px 0; padding: 0; list-style: none; }.dash-list li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--border); }.dash-list li:last-child { border-bottom: none; }.dash-list li span { font-weight: bold; color: var(--accent); }/* --- 11. RESPONSIVE MOBILE FIX --- */@media (max-width: 768px) {    .hero { padding: 60px 5%; text-align: center; }    .hero h1 { font-size: 2.5rem; }    .cta-group { display: flex; flex-direction: column; gap: 15px; align-items: center; }    .btn-primary { width: 100%; text-align: center; }    .form-grid { grid-template-columns: 1fr; }        /* Menu a tendina Mobile */    nav ul {        display: none !important; flex-direction: column !important;        position: absolute; top: 70px; left: 0; width: 100%;        background: var(--bg-deep); padding: 20px; border-bottom: 2px solid var(--accent);    }    nav ul.active { display: flex !important; }        .dropdown-menu {        position: static !important; border: none !important;        min-width: auto; padding-left: 16px; box-shadow: none; background: transparent;    }    .dropdown.open .dropdown-menu { display: block !important; }        /* Pulsanti Float su Mobile */    #back-to-top { right: 90px !important; }}/* ==========================================================================   FIX CONTRASTO E VISIBILITÀ BOTTONI IN MODALITÀ CHIARA (TEMA BIANCO)   ========================================================================== */[data-theme="light"] .acc-panel {    background: #ffffff !important;    border-color: var(--accent) !important;    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;}[data-theme="light"] .acc-header {    color: #0f172a !important;    border-bottom-color: #e2e8f0 !important;}/* Forza i bottoni dell'accessibilità ad avere testo scuro su fondo grigio chiaro */[data-theme="light"] .acc-btn {    background: #f1f5f9 !important;    color: #0f172a !important;    border: 1px solid #cbd5e1 !important;}/* Mantiene le icone colorate all'interno dei bottoni */[data-theme="light"] .acc-btn i {    color: var(--accent) !important;}/* Effetto Hover nei bottoni con il tema chiaro: testo bianco su fondo azzurro */[data-theme="light"] .acc-btn:hover {    background: var(--accent) !important;    color: #ffffff !important;    border-color: var(--accent) !important;}[data-theme="light"] .acc-btn:hover i {    color: #ffffff !important;}/* Forza il bottone di reset a rimanere rosso e leggibile */[data-theme="light"] .acc-btn.reset {    background: rgba(239, 68, 68, 0.1) !important;    color: #ef4444 !important;    border-color: #ef4444 !important;}[data-theme="light"] .acc-btn.reset:hover {    background: #ef4444 !important;    color: #ffffff !important;}/* Fix per i pulsanti principali del sito (es. "Calcola Preventivo") */[data-theme="light"] .btn-primary {    background: var(--accent) !important;    color: #ffffff !important; /* Testo bianco ben visibile sul pulsante azzurro */}/* Fix per la finestra popup di WhatsApp */[data-theme="light"] .chat-popup {    background: #ffffff !important;    border-color: var(--accent) !important;    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;}[data-theme="light"] .chat-popup p {    color: #475569 !important;}[data-theme="light"] .chat-popup-header {    color: #0f172a !important;}[data-theme="light"] .close-chat {    color: #94a3b8 !important;}/* ==========================================================================   FIX COMPRENSIVO ALTO CONTRASTO (HIGH CONTRAST WCAG 2.1)   ========================================================================== */body.high-contrast {    background-color: #000000 !important;    color: #ffffff !important;}/* 1. HEADER, NAVIGAZIONE E MENU A TENDINA */body.high-contrast header,body.high-contrast nav,body.high-contrast .dropdown-menu,body.high-contrast nav ul.menu {    background-color: #000000 !important;    background: #000000 !important;    border: 2px solid #ffffff !important;    backdrop-filter: none !important;    -webkit-backdrop-filter: none !important;}/* Forza tutti i link del menu a diventare Giallo Accessibile */body.high-contrast a,body.high-contrast nav a,body.high-contrast .dropdown-menu li a,body.high-contrast nav ul li a {    color: #ffff00 !important; /* Giallo puro ad alto contrasto */    text-decoration: underline !important; /* Sottolineatura obbligatoria */    -webkit-text-fill-color: #ffff00 !important;    background: transparent !important;}/* Stato Hover dei link nel menu in alto contrasto */body.high-contrast nav a:hover, body.high-contrast .dropdown-menu li a:hover {    background-color: #ffff00 !important;    color: #000000 !important;    -webkit-text-fill-color: #000000 !important;    text-decoration: none !important;}/* 2. PANNELLO SIDEBAR ACCESSIBILITÀ (.acc-panel) */body.high-contrast .acc-panel {    background-color: #000000 !important;    background: #000000 !important;    border: 3px solid #ffffff !important;    box-shadow: none !important;}body.high-contrast .acc-header {    color: #ffffff !important;    border-bottom: 2px solid #ffffff !important;}body.high-contrast .acc-btn {    background-color: #000000 !important;    color: #ffffff !important;    border: 2px solid #ffffff !important;    -webkit-text-fill-color: #ffffff !important;}body.high-contrast .acc-btn i {    color: #ffff00 !important; /* Icone dei pulsanti in giallo */}/* Hover dei bottoni dentro il pannello */body.high-contrast .acc-btn:hover {    background-color: #ffff00 !important;    color: #000000 !important;    -webkit-text-fill-color: #000000 !important;}body.high-contrast .acc-btn:hover i {    color: #000000 !important;}/* 3. PULSANTI FLOTTANTI (Lancio Accessibilità e Back-to-top) */body.high-contrast .acc-toggle {    background-color: #000000 !important;    color: #ffff00 !important;    border: 2px solid #ffff00 !important;}body.high-contrast #back-to-top {    background-color: #000000 !important;    color: #ffffff !important;    border: 2px solid #ffffff !important;}/* 4. POPUP CHAT DI WHATSAPP */body.high-contrast .chat-popup {    background-color: #000000 !important;    border: 3px solid #ffffff !important;}body.high-contrast .chat-popup p {    color: #ffffff !important;}body.high-contrast .chat-popup-header {    color: #ffff00 !important;    border-bottom: 1px solid #ffffff;    padding-bottom: 5px;}body.high-contrast .btn-whatsapp-chat {    background-color: #ffff00 !important;    color: #000000 !important;    -webkit-text-fill-color: #000000 !important;    border: 2px solid #ffffff !important;}