.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 110px;
    color: #000;
    background: rgba(41, 47, 37, 0);
    transition: height 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.brandbar {
    height: 110px;
    transition: height 0.3s;
}

.brandbar-riga {
    position: relative;
    height: 100%;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    width: 315px;
    height: 110px;
    align-items: center;
    transition: height 0.3s;
}

.logo img {
    display: block;
    width: 300px;
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
}

.header-recapiti {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    color: #fff;
    font-size: 16px;
    text-align: right;
    transition: top 0.3s, font-size 0.3s;
}

.header-recapiti a {
    color: #fff;
    text-decoration: none;
}

.header-recapiti a + a::before {
    content: " - Tel. ";
}

.menu-toggle,
.menu-mobile-testata {
    display: none;
}

.menu-principale {
    position: absolute;
    top: 53px;
    left: 0;
    width: 100%;
    height: 57px;
    font-family: "Roboto", sans-serif;
    transition: top 0.3s, height 0.3s;
}

.menu-livelli {
    height: 100%;
}

.livello {
    padding: 0;
    margin: 0;
    list-style: none;
}

.livello-1 {
    display: flex;
    width: max-content;
    height: 57px;
    margin-left: auto;
    align-items: stretch;
    background: #fff;
    transition: height 0.3s, background-color 0.3s;
}

.livello-1 > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.voce-menu {
    display: flex;
    align-items: stretch;
}

.livello-1 > li > a,
.livello-1 > li > .voce-menu > a,
.livello-1 > li > .voce-menu > .submenu-label-button {
    display: flex;
    min-height: 57px;
    padding: 0 10px;
    border: 0;
    align-items: center;
    color: #000;
    background: transparent;
    font-size: 20px;
    font-weight: 300;
    text-decoration: none;
    cursor: pointer;
    transition: min-height 0.3s, color 0.3s, font-size 0.3s;
}

.livello-1 > li:first-child > a {
    padding-left: 20px;
}

.livello-1 > li:last-child > a {
    padding-right: 20px;
}

.livello-1 a:hover,
.livello-1 button:hover,
.livello-1 a[aria-current="page"],
.livello-1 .attivo-parent > .voce-menu > button {
    color: #296c08;
}

.submenu-toggle {
    padding: 0 8px;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.submenu-icona {
    display: none;
}

.livello-2 {
    position: absolute;
    top: 57px;
    left: 0;
    z-index: 20;
    display: none;
    min-width: 100%;
    width: max-content;
    background: #e2e2e2;
}

.livello-1 > li.open > .livello-2,
html:not(.js) .livello-1 > li:hover > .livello-2,
html:not(.js) .livello-1 > li:focus-within > .livello-2 {
    display: block;
}

.livello-2 > li {
    border-bottom: 1px solid #fff;
}

.livello-2 > li:last-child {
    border-bottom: 0;
}

.livello-2 a,
.livello-2 button {
    display: block;
    width: 100%;
    padding: 10px;
    border: 0;
    color: #000;
    background: transparent;
    font-size: 18px;
    font-weight: 300;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.livello-2 a:hover,
.livello-2 button:hover,
.livello-2 a[aria-current="page"] {
    color: #296c08;
    background: #fff;
}

.livello-3 {
    display: none;
}

.site-header.smaller {
    height: 80px;
    background: rgba(41, 47, 37, 1);
    box-shadow: 0 0 20px #737373;
}

.site-header.smaller .brandbar,
.site-header.smaller .logo {
    height: 80px;
}

.site-header.smaller .header-recapiti {
    top: 8px;
    font-size: 14px;
}

.site-header.smaller .menu-principale {
    top: 40px;
    height: 40px;
}

.site-header.smaller .livello-1 {
    height: 40px;
    background: transparent;
}

.site-header.smaller .livello-1 > li > a,
.site-header.smaller .livello-1 > li > .voce-menu > a,
.site-header.smaller .livello-1 > li > .voce-menu > .submenu-label-button {
    min-height: 40px;
    color: #fff;
    font-size: 16px;
}

.site-header.smaller .livello-1 > li > a:hover,
.site-header.smaller .livello-1 > li > .voce-menu > button:hover,
.site-header.smaller .livello-1 a[aria-current="page"] {
    color: #55e311;
}

.site-header.smaller .livello-2 {
    top: 40px;
}

@media (max-width: 940px) {
    .site-header,
    .site-header.smaller,
    .brandbar,
    .site-header.smaller .brandbar {
        height: 50px;
    }

    .site-header.smaller {
        background: rgba(41, 47, 37, 1);
    }

    .logo,
    .site-header.smaller .logo {
        width: 150px;
        height: 50px;
    }

    .logo img {
        width: 150px;
    }

    .header-recapiti {
        display: none;
    }

    .menu-toggle {
        position: absolute;
        top: 1px;
        right: 0;
        z-index: 3;
        display: flex;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 0;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: transparent;
        cursor: pointer;
    }

    .hamburger {
        display: block;
        width: 27px;
    }

    .hamburger span {
        display: block;
        height: 3px;
        margin: 5px 0;
        background: currentColor;
    }

    .menu-principale,
    .site-header.smaller .menu-principale {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1100;
        display: none;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        color: #fff;
        background: #292f25;
    }

    .js .menu-principale.open {
        display: block;
    }

    .js .menu-mobile-testata {
        position: sticky;
        top: 0;
        z-index: 5;
        display: flex;
        min-height: 58px;
        padding: 0 max(4%, 20px);
        align-items: center;
        justify-content: space-between;
        color: #fff;
        background: #292f25;
        font-size: 20px;
    }

    .menu-close {
        width: 48px;
        height: 48px;
        padding: 0;
        border: 0;
        color: #fff;
        background: transparent;
        font-size: 38px;
        cursor: pointer;
    }

    .menu-livelli {
        width: 100%;
        height: auto;
        padding: 0 10px 30px;
    }

    .livello-1 {
        display: block;
        width: 100%;
        height: auto;
        background: transparent;
    }

    .livello-1 > li,
    .voce-menu {
        display: block;
        width: 100%;
    }

    .livello-1 > li > a,
    .livello-1 > li > .voce-menu > a,
    .livello-1 > li > .voce-menu > .submenu-label-button,
    .site-header.smaller .livello-1 > li > a,
    .site-header.smaller .livello-1 > li > .voce-menu > a,
    .site-header.smaller .livello-1 > li > .voce-menu > .submenu-label-button {
        display: flex;
        width: 100%;
        min-height: 66px;
        padding: 18px 20px;
        border-bottom: 1px solid #fff;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 24px;
        font-weight: 400;
        text-align: center;
    }

    .livello-1 > li:first-child > a,
    .livello-1 > li:last-child > a {
        padding: 18px 20px;
    }

    .livello-1 > li > .voce-menu {
        position: relative;
    }

    .livello-2 {
        position: static;
        display: none;
        width: 100%;
        background: #292f25;
    }

    .livello-1 > li.open > .livello-2 {
        display: block;
    }

    .livello-2 > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

    .livello-2 a,
    .livello-2 button {
        padding: 15px 20px;
        color: #fff;
        background: #343b30;
        font-size: 19px;
        text-align: center;
        white-space: normal;
    }

    .livello-2 a:hover,
    .livello-2 button:hover,
    .livello-2 a[aria-current="page"] {
        color: #55e311;
        background: #292f25;
    }

    body.menu-open {
        overflow: hidden;
    }
}
