.sedaweb-hm-instance{
    display:inline-flex;
    align-items:center;
    --sedaweb-hm-icon:#001638;
}

.sedaweb-hm-trigger{
    appearance:none;
    border:0;
    background:transparent;
    padding:8px 6px;
    margin:0;
    display:inline-flex;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
    line-height:1;
    position:relative;
    z-index:10;
}

.sedaweb-hm-bar{
    display:block;
    width:27px;
    height:2px;
    background:var(--sedaweb-hm-icon);
    border-radius:10px;
    transition:transform .2s ease,opacity .2s ease;
}

/* =========================================================
   PORTAL FUORI DA AVADA
   Il menu viene montato direttamente sotto BODY.
   ========================================================= */
.sedaweb-hm-portal{
    position:relative;
    z-index:2147483647!important;
}

/* Overlay mantenuto per compatibilita', ma il pannello copre tutto */
.sedaweb-hm-overlay{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100dvh!important;
    background:rgba(0,0,0,.25)!important;
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease,visibility .25s ease;
    z-index:2147483646!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
}

/* =========================================================
   PANNELLO FULLSCREEN
   ========================================================= */
.sedaweb-hm-panel{
    position:fixed!important;
    inset:0!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:0!important;

    width:100vw!important;
    max-width:100vw!important;
    min-width:100vw!important;

    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;

    background:#ffffff!important;
    color:#000000!important;

    z-index:2147483647!important;
    box-shadow:none!important;

    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;

    margin:0!important;
    padding:0!important;

    transition:transform .32s cubic-bezier(.22,.61,.36,1), visibility .32s ease;
    visibility:hidden;
}

.sedaweb-hm-side-left .sedaweb-hm-panel{
    transform:translate3d(-100%,0,0);
}

.sedaweb-hm-side-right .sedaweb-hm-panel{
    transform:translate3d(100%,0,0);
}

.sedaweb-hm-portal.is-open .sedaweb-hm-overlay{
    opacity:1;
    visibility:visible;
}

.sedaweb-hm-portal.is-open .sedaweb-hm-panel{
    transform:translate3d(0,0,0)!important;
    visibility:visible;
}

/* =========================================================
   CONTENUTO
   ========================================================= */
.sedaweb-hm-panel-inner{
    position:relative;
    width:100%;
    min-height:100dvh;
    box-sizing:border-box;
    padding:82px 28px 36px;
    background:#fff!important;
}

/* X NERA */
.sedaweb-hm-close{
    position:absolute;
    top:18px;
    right:20px;
    width:46px;
    height:46px;
    padding:0;
    margin:0;
    border:0!important;
    background:transparent!important;
    color:#000!important;
    font-size:44px;
    line-height:1;
    font-weight:300;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:transform .2s ease,opacity .2s ease;
    z-index:3;
}

.sedaweb-hm-close span{
    color:#000!important;
}

.sedaweb-hm-close:hover,
.sedaweb-hm-close:focus{
    color:#000!important;
    opacity:.65;
    transform:rotate(90deg);
    outline:none;
}

/* =========================================================
   MENU
   ========================================================= */
.sedaweb-hm-menu,
.sedaweb-hm-menu ul{
    list-style:none!important;
    margin:0!important;
    padding:0!important;
}

.sedaweb-hm-menu li{
    position:relative;
    margin:0!important;
}

/* RIGHE DIVISORIE #f5f5f5 */
.sedaweb-hm-menu > li{
    border-bottom:1px solid #f5f5f5!important;
}

.sedaweb-hm-menu a{
    display:block;
    color:#000!important;
    text-decoration:none!important;
    padding:18px 50px 18px 0;
    font-size:16px;
    line-height:1.35;
    font-weight:600;
    letter-spacing:.01em;
    background:transparent!important;
    transition:opacity .2s ease,padding-left .2s ease;
}

.sedaweb-hm-menu a:hover,
.sedaweb-hm-menu a:focus{
    color:#000!important;
    opacity:.6;
    padding-left:4px;
}

/* SOTTOMENU */
.sedaweb-hm-menu .sub-menu{
    display:none;
    padding:0 0 8px 18px!important;
    margin:0!important;
}

.sedaweb-hm-menu .sub-menu li{
    border-top:1px solid #f5f5f5!important;
}

.sedaweb-hm-menu .sub-menu a{
    color:#000!important;
    font-size:14px;
    font-weight:500;
    padding-top:13px;
    padding-bottom:13px;
}

.sedaweb-hm-subtoggle{
    position:absolute;
    right:0;
    top:8px;
    width:42px;
    height:42px;
    padding:0;
    margin:0;
    border:0!important;
    background:transparent!important;
    color:#000!important;
    font-size:24px;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:transform .2s ease,opacity .2s ease;
    z-index:2;
}

.sedaweb-hm-subtoggle span{
    color:#000!important;
}

.sedaweb-hm-subtoggle:hover,
.sedaweb-hm-subtoggle:focus{
    color:#000!important;
    opacity:.55;
    outline:none;
}

.sedaweb-hm-subtoggle[aria-expanded="true"]{
    transform:rotate(45deg);
}

body.sedaweb-hm-lock{
    overflow:hidden!important;
    touch-action:none;
}

@media(max-width:767px){
    .sedaweb-hm-panel-inner{
        padding:72px 22px 28px;
    }

    .sedaweb-hm-close{
        top:12px;
        right:12px;
    }

    .sedaweb-hm-menu a{
        font-size:15px;
        padding-top:16px;
        padding-bottom:16px;
    }
}

@media(prefers-reduced-motion:reduce){
    .sedaweb-hm-panel,
    .sedaweb-hm-overlay,
    .sedaweb-hm-close,
    .sedaweb-hm-menu a{
        transition:none!important;
    }
}
