/* ==============================================
   WCAG 2.1 AA COMPLIANCE - COMPLETE FIXES
   ============================================== */

/* SKIP LINK */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000000;
    color: #ffffff;
    padding: 10px 15px;
    text-decoration: none;
    z-index: 9999;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

/* CONTRAST FIXES */
.tc-yellow-green {
    color: #2d7a00 !important;
}

.tc-cadmium-green {
    color: #006b3f !important;
}

.bgc-yellow-green {
    background-color: #85c226 !important;
}

.bgc-yellow-green .tc-black,
.bgc-yellow-green p,
.bgc-yellow-green h2,
.bgc-yellow-green h3 {
    color: #000000 !important;
}

.bgc-yellow-green-2 {
    background-color: #9dd138 !important;
}

.bgc-yellow-green-2 .tc-black,
.bgc-yellow-green-2 .txtblack,
.bgc-yellow-green-2 p,
.bgc-yellow-green-2 h2,
.bgc-yellow-green-2 h3 {
    color: #000000 !important;
}

/*
.bgc-non-photo-blue {
    background-color: #0051a5 !important;
}
*/

.bgc-non-photo-blue .txtwhite,
.bgc-non-photo-blue p,
.bgc-non-photo-blue h2 {
    color: #ffffff !important;
}

.bgc-cadmium-green {
    background-color: #006b3f !important;
}

a.hi-link {
    color: #005a9c;
    text-decoration: underline;
}

a.hi-link:hover,
a.hi-link:focus {
    color: #003d6b;
    text-decoration: underline;
}

.btn-yellow-green {
    background-color: #2d7a00 !important;
    color: #ffffff !important;
    /*border: 2px solid #2d7a00 !important;*/
}

.btn-yellow-green:hover,
.btn-yellow-green:focus {
    background-color: #1f5500 !important;
    color: #ffffff !important;
}

.btn-yellow-green-2 {
    background-color: #006b3f !important;
    color: #ffffff !important;
    border: 2px solid #006b3f !important;
}

/*
.btn-wire {
    background-color: transparent !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
    font-weight: bold;
}

.btn-wire:hover,
.btn-wire:focus {
    background-color: #000000 !important;
    color: #ffffff !important;
}
*/

.btn-zillion-green {
    background-color: #006b3f !important;
    color: #ffffff !important;
    border: 2px solid #006b3f !important;
}

.btn-zillion-green:hover,
.btn-zillion-green:focus {
    background-color: #004d2d !important;
    color: #ffffff !important;
}

/* FOCUS VISIBLE */
*:focus {
    outline: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus,
.btn:focus {
    outline: 3px solid #005a9c !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.2) !important;
}

a:focus {
    background-color: #ffffcc;
    outline-offset: 2px;
}

.btn:focus,
button:focus {
    outline: 3px solid #ffffff !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px #005a9c !important;
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: 3px solid #ffffff !important;
    outline-offset: -3px !important;
    background-color: rgba(0, 90, 156, 0.5) !important;
}

.carousel-indicators li:focus {
    outline: 3px solid #ffffff !important;
    outline-offset: 2px;
    transform: scale(1.2);
}

[onclick]:focus,
[role="button"]:focus {
    outline: 3px solid #005a9c !important;
    outline-offset: 2px !important;
}

:focus-visible {
    outline: 3px solid #005a9c !important;
    outline-offset: 3px !important;
}

/* Assicura che gli SVG nei link non interferiscano con il focus */
a svg,
button svg {
    pointer-events: none;
}

/* SCREEN READER ONLY CLASS */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}