/**
 * Accessibility CSS - Correzioni contrasto colori
 * WCAG 2.1 AA richiede rapporto minimo 4.5:1 per testo normale
 */

/* ==========================================================================
   Cookie Consent Banner - Miglioramento contrasto pulsanti
   ========================================================================== */
.cc-btn.cc-allow {
    background-color: #095F6C !important;
    border-color: #095F6C !important;
    color: #ffffff !important;
}

.cc-btn.cc-allow:hover,
.cc-btn.cc-allow:focus {
    background-color: #095F6C !important;
    border-color: #095F6C !important;
}

.cc-btn.cc-deny {
    background-color: #555555 !important;
    border-color: #555555 !important;
    color: #ffffff !important;
}

.cc-btn.cc-deny:hover,
.cc-btn.cc-deny:focus {
    background-color: #444444 !important;
    border-color: #444444 !important;
}

/* ==========================================================================
   Header - Link telefono e lingua con contrasto migliorato
   ========================================================================== */
.header-body .custom-text-color-grey-1,
.header-body .custom-text-color-grey-1:hover,
.header-body .custom-text-color-grey-1:focus {
    color: #4a4a4a !important;
}

/* Header fisso - assicura contrasto adeguato */
.header-body[style*="fixed"] .custom-text-color-grey-1,
.header-body.header-body-fixed .custom-text-color-grey-1 {
    color: #333333 !important;
}

/* Dropdown lingua */
#dropdownLanguage,
.nav-link[id="dropdownLanguage"] {
    color: #333333 !important;
}

#dropdownLanguage:hover,
#dropdownLanguage:focus {
    color: #000000 !important;
}

/* ==========================================================================
   Sezioni con sfondo chiaro - Miglioramento contrasto testo
   ========================================================================== */
.custom-bg-color-light-1,
.custom-bg-color-light-1 p,
.custom-bg-color-light-1 span,
.custom-bg-color-light-1 .text-secondary {
    color: #4a4a4a !important;
}

.custom-bg-color-light-1 h1,
.custom-bg-color-light-1 h2,
.custom-bg-color-light-1 h3,
.custom-bg-color-light-1 h4,
.custom-bg-color-light-1 h5,
.custom-bg-color-light-1 h6 {
    color: #2a2a2a !important;
}

/* Text secondary con contrasto migliorato */
.text-secondary {
    color: #5a5a5a !important;
}

/* ==========================================================================
   Link generici - Assicura contrasto adeguato
   ========================================================================== */
a.custom-text-color-grey-1 {
    color: #4a4a4a !important;
}

a.custom-text-color-grey-1:hover,
a.custom-text-color-grey-1:focus {
    color: #1a1a1a !important;
    text-decoration: underline;
}

/* ==========================================================================
   Slider - Pulsanti con contrasto migliorato
   ========================================================================== */
.tp-caption.btn-light.btn-slider-action,
.slider-container .btn.btn-light.btn-slider-action,
.rev_slider .btn-light {
    background-color: #ffffff !important;
    color: #333333 !important;
    border-color: #333333 !important;
}

.tp-caption.btn-light.btn-slider-action:hover,
.tp-caption.btn-light.btn-slider-action:focus,
.slider-container .btn.btn-light.btn-slider-action:hover,
.slider-container .btn.btn-light.btn-slider-action:focus,
.rev_slider .btn-light:hover,
.rev_slider .btn-light:focus {
    background-color: #333333 !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

/* ==========================================================================
   Focus visibility - Migliora accessibilità tastiera
   ========================================================================== */
a:focus-visible,
button:focus-visible,
.cc-btn:focus-visible {
    outline: 2px solid #0a8a9e !important;
    outline-offset: 2px;
}
