/* Nav rapida sotto-categorie — mobile: 2 righe, scroll orizzontale, etichette leggibili */
@media (max-width: 768px) {
    nav[id^="nav-rapida-"] {
        grid-template-columns: unset;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        padding-bottom: 6px;
        width: 100%;
        max-width: 100%;
    }
    nav[id^="nav-rapida-"] > button,
    #nav-rapida-categorie .nav-rapida-btn {
        scroll-snap-align: start;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        line-height: 1.18;
        text-align: center;
        hyphens: auto;
        word-break: break-word;
        min-width: 4.85rem;
        max-width: 10.5rem;
        min-height: 2.85rem;
        height: auto;
        padding: 0.42rem 0.58rem;
        font-size: 0.72rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    body.pagina-distinta-base nav[id^="nav-rapida-"] > button {
        min-height: 2.85rem;
        font-size: 0.72rem;
        border-radius: 999px;
    }
}
