﻿/* ------------------------------
   SUBNAV (mobile + desktop)
------------------------------ */

.subnav {
    /* position: sticky;  RIMOSSO */
    /* top: 56px;         RIMOSSO */
    z-index: 998;
   
    border-bottom: 1px solid #d6e4f2;
    transition: box-shadow .2s ease;
}




/* Scroll orizzontale */
.subnav-scroll {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    text-align: center;
}

    .subnav-scroll::-webkit-scrollbar {
        display: none;
    }

/* Contenitore */
.subnav-inner {
    display: inline-flex;
    gap: 2rem;
    padding: 8px 16px;
}

/* Link */
.subnav-link {
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
    padding: 6px 0;
}

    .subnav-link:hover {
        color: #0A58CA;
        transform: translateY(-1px);
    }

    .subnav-link.active {
        color: #0D6EFD;
        border-bottom-color: #0D6EFD;
    }

/* Mobile: icona sopra + testo sotto */
.subnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.icon-mobile {
    font-size: 1.4rem;
    margin-bottom: 3px;
}

.text-mobile {
    font-size: 0.75rem;
    display: inline;
}

.text-desktop {
    display: none;
}

/* Desktop */
@media (min-width: 768px) {

    .subnav-inner {
        gap: 2.5rem;
    }

    .subnav-link {
        padding: 10px 0;
    }

    .subnav-item {
        flex-direction: row;
        gap: 8px;
    }

    .icon-mobile,
    .text-mobile {
        display: none;
    }

    .text-desktop {
        display: inline;
        font-size: 1.05rem;
        font-weight: 500;
    }
}
