/* =============================================================================
   ACCESSIBILITY OVERRIDES — martignoni.it
   WCAG 2.1 AA — Contrasto minimo 4.5:1 per testo normale (3:1 per testo grande)
   ============================================================================= */


/* --- Cookie Consent: pulsante ACCETTA ---
   Background del pulsante: #11bbdd (#1bd)
   Testo precedente: #fff → contrasto ~2.3:1 (FAIL)
   Fix: testo scuro #1a1a1a su #11bbdd = ~8.8:1 ✓              */
.cc-btn.cc-allow {
    color: #1a1a1a !important;
}


/* --- Topbar colored dark ---
   "topbar-colored" usa il colore brand #0088cc come sfondo.
   Bianco su #0088cc = ~3.7:1 (FAIL).
   Fix: sfondo più scuro #005580, bianco in primo piano = ~8.2:1 ✓ */
#topbar.topbar-colored.dark {
    background-color: #005580 !important;
}
#topbar.topbar-colored.dark,
#topbar.topbar-colored.dark a,
#topbar.topbar-colored.dark a:visited {
    color: #ffffff !important;
}
#topbar.topbar-colored.dark a:hover,
#topbar.topbar-colored.dark a:focus {
    color: #cceeff !important;
}


/* --- Navigazione principale ---
   Link nav (incluso .active) usano #0088cc su sfondo bianco = ~3.7:1 (FAIL)
   Fix: #333333 per link normali = ~12:1 ✓
        #004d78 per link .active (blu scuro) = ~8.5:1 ✓          */
#header-wrap #mainMenu a,
#header-wrap #mainMenu a:visited {
    color: #333333 !important;
}
#header-wrap #mainMenu a.active,
#header-wrap #mainMenu li.active > a,
#header-wrap #mainMenu a:hover,
#header-wrap #mainMenu a:focus {
    color: #004d78 !important;
}


/* --- Sezioni background-grey e background-light ---
   Sfondo chiaro (~#f7f7f7 / #f2f2f2). Testo deve essere almeno #595959.
   Fix: #333333 su sfondo chiaro = ~12:1 ✓                       */
.background-grey,
section.background-grey,
.background-grey .lead,
section.background-grey .lead,
.background-grey p,
section.background-grey p,
.background-grey strong,
section.background-grey strong {
    color: #333333;
}

.background-light,
section.background-light,
.background-light .lead,
section.background-light .lead,
.background-light p,
section.background-light p,
.background-light strong,
section.background-light strong {
    color: #333333;
}


/* --- Post item: testo paragrafo ---
   Colore originale: ~#777 su sfondo bianco → ~4.4:1 (FAIL)
   Fix: #444444 su bianco = ~9.7:1 ✓                             */
.post-item-wrap p {
    color: #444444 !important;
}


/* --- Link "LEGGI TUTTO" / "Read more" ---
   Colore brand #0088cc su sfondo bianco → ~3.7:1 (FAIL)
   Fix: #0066a0 su bianco = ~5.7:1 ✓                             */
a.item-link,
.post-item-wrap a.item-link {
    color: #0066a0 !important;
}
a.item-link:hover,
a.item-link:focus,
.post-item-wrap a.item-link:hover,
.post-item-wrap a.item-link:focus {
    color: #004d78 !important;
}


/* --- Data negli articoli (news / case history) ---
   Colore originale: ~#aaa su sfondo bianco → ~2.3:1 (FAIL)
   Fix: #595959 su bianco = ~7:1 ✓                               */
.post-meta-date {
    color: #595959 !important;
}


/* --- Copyright (footer scuro) ---
   Forzo sfondo esplicito scuro + testo bianco per garantire il contrasto
   indipendentemente da quanto sia scuro l'sfondo ereditato dal footer.
   Fix: #ffffff su #1a1a1a = ~16:1 ✓                             */
.copyright-content {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}
.copyright-text {
    color: #ffffff !important;
}
.copyright-text a,
.copyright-text a:visited,
.copyright-content a,
.copyright-content a:visited {
    color: #ffffff !important;
    text-decoration: underline;
}
.copyright-text a:hover,
.copyright-text a:focus,
.copyright-content a:hover,
.copyright-content a:focus {
    color: #cceeff !important;
    text-decoration: underline;
}
