/* === Vertical Overlay Nav (basics) === */
.vo-nav {
    position: relative;
    max-width: 360px;
}

.vo-container {
    position: relative;
    overflow: hidden;
}

.vo-root,
.vo-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    width: fit-content;

}

.vo-link {
    display: block;
    padding: .75rem 1rem;
    color: #fff!important;
    cursor: pointer;
    font-family: "DM Sans", Sans-serif;
    font-size: 22px;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    line-height: 1.2em;
    letter-spacing: -0.8px;
    position: relative;
}
.vo-root .vo-item > .vo-link{
    text-transform: uppercase;
}
.vo-link::after{
    content: '';
    height: 1px;
    width: 0%;
    background: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all .2s ease-in-out;
}
.vo-link:hover::after{
    width: 100%;
    transition: all .2s ease-in-out;
}
.vo-link:hover::after{
    opacity: 1
}

li .vo-toggle {
    border: 0!important;
    background: transparent!important;
    padding: 5px!important;
    cursor: pointer!important;
    line-height: 1!important;
    border-radius: 0!important;
}

.vo-toggle-ico {
    display: inline-block;
    transform: translateY(1px);
    color: #fff!important;
    line-height: 1;
}

/* Pannelli: il livello 0 è statico; i sottomenu coprono il precedente e slittano in avanti */
.vo-root {
    position: relative;
}

.vo-submenu {
    position: absolute;
    inset: 0;
    background: var(--vo-bg, #7D062A);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 2;
    padding-top: .25rem;
    /*box-shadow: 0 0 0 1px rgba(0,0,0,.05  );*/
}

.vo-submenu.is-open {
    transform: translateX(0);
}

.vo-submenu[aria-hidden="true"] {
    visibility: hidden;
}

/* Barra top del submenu (back) */
.vo-submenu .vo-back {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem .75rem 0;
    font-weight: 600;
    border-bottom: 1px solid #fff;
    margin-bottom: 15px;
}

.vo-back button {
    border: 0!important;
    background: transparent!important;
    cursor: pointer!important;
    padding: .25rem .5rem!important;
    line-height: 1!important;
    border-radius: 0!important;
    color: #fff!important;
}

.vo-back .vo-parent-label {
    padding: 5px;
    color: #fff!important;
    cursor: pointer;
    font-family: "DM Sans", Sans-serif;
    font-size: 19px;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    line-height: 1.2em;
    letter-spacing: -0.8px;
    position: relative;
    text-transform: uppercase;
}

/* Stati focus accessibili */
.vo-link:focus,
.vo-toggle:focus,
.vo-back button:focus {
    outline: 2px solid!important;
    outline-offset: -2px!important;
}

/* Opzionale: separatori */
/*.vo-item + .vo-item .vo-link { border-top: 1px solid rgba(0,0,0,.06); }*/