/* ===================================
   ACCESSIBILITY - Contrast Fixes
   WCAG 2.1 AA Compliance
   =================================== */

/* Cookie Consent Button - Increase contrast (was #1bd on white text) */
.cc-btn.cc-allow {
    background-color: #005f6e !important;
    color: #ffffff !important;
}

.cc-btn.cc-allow:hover,
.cc-btn.cc-allow:focus {
    background-color: #004a56 !important;
}

/* Header links (phone, email) - Improve visibility */
.header-body a[href^="tel:"],
.header-body a[href^="mailto:"] {
    color: #1a1a1a !important;
}

.header-body a[href^="tel:"]:hover,
.header-body a[href^="tel:"]:focus,
.header-body a[href^="mailto:"]:hover,
.header-body a[href^="mailto:"]:focus {
    color: #005c8a !important;
}

/* Language dropdown in header - Improve visibility */
.header-body .nav-link#dropdownLanguage,
.header-body .nav-link[role="button"] {
    color: #1a1a1a !important;
}

/* Text paragraphs with font-weight-medium - Improve contrast */
.header-body .text-4.font-weight-medium,
.body .text-4.font-weight-medium,
p.text-4.font-weight-medium {
    color: #444444 !important;
}

/* Primary colored headings on light/default backgrounds - Darker blue for better contrast */
.section.bg-default h4.text-primary,
.section.bg-default .text-primary,
section.bg-default h4.text-primary,
section.bg-default .text-primary {
    color: #005c8a !important;
}

/* Paragraphs in default sections */
.section.bg-default p.mb-4,
section.bg-default p.mb-4 {
    color: #333333 !important;
}

/* Light buttons "LEGGI TUTTO" - Improve text contrast */
.btn.btn-xs.btn-light,
a.btn.btn-xs.btn-light {
    background-color: #d4d4d4 !important;
    color: #1a1a1a !important;
    border-color: #bfbfbf !important;
}

.btn.btn-xs.btn-light:hover,
.btn.btn-xs.btn-light:focus,
a.btn.btn-xs.btn-light:hover,
a.btn.btn-xs.btn-light:focus {
    background-color: #c0c0c0 !important;
    color: #000000 !important;
}

/* ===================================
   FOOTER - Override opacity-5 for accessibility
   Background: #102069 (dark blue)
   =================================== */

/* Remove opacity reduction that causes contrast issues */
footer#footer .opacity-5,
footer#footer .text-light.opacity-5,
footer#footer .text-color-light.opacity-5,
footer#footer p.opacity-5,
footer#footer a.opacity-5 {
    opacity: 1 !important;
    color: #c5c5c5 !important;
}

footer#footer p.text-color-light.opacity-5,
footer#footer p.pe-1.text-color-light.opacity-5 {
    opacity: 1 !important;
    color: #c5c5c5 !important;
}

footer#footer a.text-light.opacity-5,
footer#footer a.text-light.opacity-5.text-hover-primary {
    opacity: 1 !important;
    color: #c5c5c5 !important;
}

footer#footer a.text-light.opacity-5:hover,
footer#footer a.text-light.opacity-5:focus {
    color: #6db3f2 !important;
}

/* Footer headings */
footer#footer .text-primary,
footer#footer .text-color-primary,
footer#footer h5.text-primary,
footer#footer h5.text-color-primary,
footer#footer h5.text-5.text-color-primary {
    color: #6db3f2 !important;
}

footer#footer h5.text-3.text-primary,
footer#footer .text-3.text-primary {
    color: #6db3f2 !important;
}

/* ===================================
   FOOTER COPYRIGHT - Background: #0e1b58
   =================================== */

.footer-copyright .opacity-5,
.footer-copyright .text-light.opacity-5,
.footer-copyright p.text-light.opacity-5 {
    opacity: 1 !important;
    color: #b8b8b8 !important;
}

.footer-copyright a.opacity-5,
.footer-copyright a.text-light.opacity-5,
.footer-copyright a.text-decoration-none.text-light.opacity-5 {
    opacity: 1 !important;
    color: #b8b8b8 !important;
}

.footer-copyright a.opacity-5:hover,
.footer-copyright a.opacity-5:focus,
.footer-copyright a.text-light.opacity-5:hover,
.footer-copyright a.text-light.opacity-5:focus {
    color: #ffffff !important;
}
