/* =============================================================
   ACCESSIBILITY OVERRIDES
   Fixes per contrasto cromatico WCAG 2.1 AA (4.5:1 testo normale)
   ============================================================= */

/* Fix 1: colore testo body
   Originale: #bcbcbc (contrasto 1.8:1 su bianco) → troppo chiaro
   Nuovo: #555555 (contrasto 6.4:1 su bianco) ✓ */
body {
  color: #555555 !important;
}

/* Fix 2: link "VEDI MAPPA" — testo senza sottolineatura non distinguibile
   Ripristino underline e colore con contrasto sufficiente su sfondo bianco */
a.text-decoration-none {
  text-decoration: underline !important;
  color: #0055a4 !important; /* contrasto 7.1:1 su bianco ✓ */
}

/* Fix 3: cookie consent button "ACCETTA"
   Originale: bg #11bbdd / testo #fff (contrasto 2.2:1) → insufficiente
   Nuovo: bg #006080 / testo #fff (contrasto 7.0:1) ✓ */
.cc-btn.cc-allow {
  background-color: #006080 !important;
  border-color: #006080 !important;
  color: #ffffff !important;
}

/* Fix 4: testo p e strong nella sezione #contatti (sfondo bianco)
   Il colore body #bcbcbc non è sufficiente — regola più specifica per garantire contrasto */
#contatti p,
#contatti strong {
  color: #444444 !important; /* contrasto 9.7:1 su bianco ✓ */
}

/* Fix 5: link generici su sfondo bianco
   Il tema imposta a { color: #888888 } (contrasto 3.26:1 su bianco) → insufficiente
   Nuovo: #0055a4 (contrasto 7.1:1 su bianco) ✓
   I link con .c-theme-font mantengono il rosso #d42e15 (5.0:1 ✓) grazie al loro !important */
.c-bg-white a {
  color: #0055a4 !important;
}

/* Fix 5: link PRIVACY e COOKIE nel postfooter
   Sfondo: #2f353b — i link ereditano un colore a basso contrasto
   Nuovo: #d0d5da con sottolineatura (contrasto 5.3:1 su #2f353b) ✓ */
.c-layout-footer.c-layout-footer-1 .c-postfooter .c-copyright a {
  color: #d0d5da !important;
  text-decoration: underline;
}
