/* Terra delle Streghe - Novita: piccola etichetta, bordo sottile, allineata al menu.
   v2 - desktop + menu Esplora mobile. Nessuna modifica al markup o alle funzionalita. */

/* Tutte le voci del menu principale condividono lo stesso centro verticale. */
.category-nav {
    align-items: center;
}

.category-nav > a.nav-new243[href$="novita.asp"] {
    display: block;
    box-sizing: border-box;
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
    padding: 2px 8px !important;
    min-height: 0;
    border: 1px solid #39754c;
    border-radius: 5px;
    background: #edf6ec;
    color: #194c30 !important;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

/* Menu Esplora / smartphone: etichetta compatta, allineata a sinistra. */
#menu-dialog .premium-tree > a.nav-new243[href$="novita.asp"],
#menu-dialog .premium-tree > a.all-categories.nav-new243[href$="novita.asp"] {
    display: flex;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 8px 0 12px;
    padding: 7px 13px !important;
    border: 1px solid #39754c;
    border-radius: 5px;
    background: #edf6ec;
    color: #194c30 !important;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    line-height: normal;
    text-decoration: none !important;
    box-shadow: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.category-nav > a.nav-new243[href$="novita.asp"]:hover,
#menu-dialog .premium-tree > a.nav-new243[href$="novita.asp"]:hover {
    background: #e2f0e1;
    border-color: #285f3d;
    color: #123b26 !important;
}

.category-nav > a.nav-new243[href$="novita.asp"]:focus-visible,
#menu-dialog .premium-tree > a.nav-new243[href$="novita.asp"]:focus-visible {
    outline: 2px solid #b78c40;
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    #menu-dialog .premium-tree > a.nav-new243[href$="novita.asp"] {
        min-height: 40px;
        padding: 8px 14px !important;
        font-size: inherit;
        letter-spacing: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-nav > a.nav-new243[href$="novita.asp"],
    #menu-dialog .premium-tree > a.nav-new243[href$="novita.asp"] {
        transition: none;
    }
}
