
/* ========================================
   ACCESSIBLE TABS - CSS
   ======================================== */

/* Container principale */


.accessible-tab-v01 .tab-items-header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.accessible-tab-v01 .tab-items-header li {
    margin: 0;
    padding: 0;
}

/* Stili dei bottoni tab */
.accessible-tab-v01 .tab-items-header button {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;

    /* Focus visibile per accessibilità */
    outline: none;
}

/* Hover state */
.accessible-tab-v01 .tab-items-header button:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.04);
}

/* Focus state (per navigazione da tastiera) */
.accessible-tab-v01 .tab-items-header button:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: -2px;
    border-radius: 2px;
}

/* Tab attiva */
.accessible-tab-v01 .tab-items-header button.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
    font-weight: 600;
}

/* Responsive: da tablet in giù, le tab diventano più piccole */
@media (max-width: 768px) {
    .accessible-tab-v01 .tab-items-header button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .accessible-tab-v01 .tab-items-header ul {
        gap: 0;
    }
}

/* Responsive: su mobile, i tab si adattano meglio */
@media (max-width: 480px) {
    .accessible-tab-v01 .tab-items-header button {
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
    }

    .accessible-tab-v01 .tab-items-header ul {
        /*
        overflow-x: auto;

         */
        -webkit-overflow-scrolling: touch;
    }
}

.accessible-tab-v01 .tab-item.hidden {
    display: none!important;
    opacity: 0;
}

/* Animazione fade-in */
@keyframes accessibleTabFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .accessible-tab-v01 .tab-items-content > div {
        /* Rimuove animazioni complesse per il movimento ridotto */
        animation: none;
    }

    .accessible-tab-v01 .tab-items-header button {
        /* Rimuove transizioni fluide, tornando a cambiamenti istantanei */
        transition: none;
    }
}
