.hamb-menu {
    position: fixed;
    inset: 0;
    background: url("/brands/shared/img/images/sfondo-hamb.jpg") center top / cover no-repeat;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transform: translateX(100%);
    will-change: transform, opacity;
}

.hamb-menu.is-open {
    pointer-events: auto;
    animation: hm-in 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hamb-menu.is-closing {
    pointer-events: none;
    animation: hm-out 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes hm-in {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes hm-out {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.hamb-menu__panel {
    height: 100%;
    display: flex;
    align-items: center;
}

.menu-hamburger-container,
.menu-chi-siamo-hamb-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hamb-menu__list,
#menu-hamburger {
    position: absolute;
    bottom: 60px;
    left: 60px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition:
        transform 0.6s ease,
        opacity 0.2s ease 0.4s;
}

.hamb-menu__list li {
    margin: 0 0 clamp(10px, 2.8vw, 28px);
}

.hamb-menu__list a,
.hamb-chi-siamo__list a {
    position: relative;
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 6vw, 45px) !important;
    line-height: 1.1;
    color: #000;
    text-decoration: none;
    transition: 0.25s ease;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.hamb-menu__list a:hover,
.hamb-chi-siamo__list a:hover {
    color: blue;
}

.hamb-menu__list a::after,
.hamb-chi-siamo__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: clamp(2px, 0.6vw, 6px);
    background: currentColor;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hamb-menu__list a::before,
.hamb-chi-siamo__list a::before {
    content: "";
    position: absolute;
    bottom: -6px;
    width: 100%;
    height: clamp(2px, 0.6vw, 6px);
    background: currentColor;
    transform: translateX(-100%);
    opacity: 0;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
}

.hamb-menu__list a:hover::before,
.hamb-chi-siamo__list a:hover::before {
    transform: translateX(0);
    opacity: 1;
}

.hamb-menu__list .current-menu-item > a,
.hamb-menu__list .current_page_item > a,
.hamb-menu__list .current-menu-ancestor > a,
.hamb-menu__list a[aria-current="page"],
.hamb-chi-siamo__list .current-menu-item > a,
.hamb-chi-siamo__list .current_page_item > a,
.hamb-chi-siamo__list .current-menu-ancestor > a,
.hamb-chi-siamo__list a[aria-current="page"] {
    color: blue;
}

.hamb-menu__list .current-menu-item > a::after,
.hamb-menu__list .current_page_item > a::after,
.hamb-menu__list .current-menu-ancestor > a::after,
.hamb-menu__list a[aria-current="page"]::after,
.hamb-chi-siamo__list .current-menu-item > a::after,
.hamb-chi-siamo__list .current_page_item > a::after,
.hamb-chi-siamo__list .current-menu-ancestor > a::after,
.hamb-chi-siamo__list a[aria-current="page"]::after {
    opacity: 1;
}

.hamb-menu__list .current-menu-item > a::before,
.hamb-menu__list .current_page_item > a::before,
.hamb-menu__list .current-menu-ancestor > a::before,
.hamb-chi-siamo__list .current-menu-item > a::before,
.hamb-chi-siamo__list .current_page_item > a::before,
.hamb-chi-siamo__list .current-menu-ancestor > a::before {
    transform: translateX(0);
    opacity: 1;
}

.hamb-menu__list a:focus-visible,
.hamb-chi-siamo__list a:focus-visible {
    outline: none;
    color: blue;
}

.hamb-icon-close {
    cursor: pointer;
    position: absolute;
    top: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    z-index: 2;
}

.hamb-icon-close::before,
.hamb-icon-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 3px;
    background: #111;
    border-radius: 2px;
}

.hamb-icon-close::before {
    transform: translateY(-50%) rotate(45deg);
}

.hamb-icon-close::after {
    transform: translateY(-50%) rotate(-45deg);
}

@keyframes menuStaggerIn {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

.hamb-menu.is-open .hamb-menu__list li {
    opacity: 0;
    animation: menuStaggerIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hamb-menu.is-open .hamb-menu__list li:nth-child(1) { animation-delay: 0.4s; }
.hamb-menu.is-open .hamb-menu__list li:nth-child(2) { animation-delay: 0.5s; }
.hamb-menu.is-open .hamb-menu__list li:nth-child(3) { animation-delay: 0.6s; }
.hamb-menu.is-open .hamb-menu__list li:nth-child(4) { animation-delay: 0.7s; }
.hamb-menu.is-open .hamb-menu__list li:nth-child(5) { animation-delay: 0.8s; }
.hamb-menu.is-open .hamb-menu__list li:nth-child(6) { animation-delay: 0.9s; }

.hamb-chi-siamo-dropdown {
    position: absolute;
    bottom: 60px;
    left: 60px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-60px);
    transition:
        transform 0.6s ease,
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.hamb-chi-siamo__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hamb-chi-siamo__list li {
    margin: 0 0 clamp(10px, 2.8vw, 28px);
}

.hamb-chi-siamo__list a {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 6vw, 45px);
    line-height: 1.1 !important;
    color: #000;
    text-decoration: none;
}

.hamb-menu.is-chi-siamo .hamb-menu__list {
    transform: translateX(-400px);
    opacity: 0;
    pointer-events: none;
}

.hamb-menu.is-chi-siamo .hamb-chi-siamo-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    transition-delay: 0.6s;
}

.hamb-menu:not(.is-chi-siamo) .hamb-chi-siamo-dropdown {
    transition-delay: 0s;
}

.hamb-back-link {
    position: relative;
    display: inline-block;
}

.hamb-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.28em;
    padding-left: 0;
}

.hamb-back-link__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    width: auto;
    height: 0.51em;
    line-height: 0;
    color: #000;
    pointer-events: none;
    transition: color 0.25s ease;
}

.hamb-back-link__icon svg {
    display: block;
    width: auto;
    height: 100%;
}

.hamb-back-link__icon .st0 {
    fill: currentColor;
}

.hamb-back-link:hover .hamb-back-link__icon,
.hamb-back-link a:hover .hamb-back-link__icon {
    color: blue;
}

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

@media (max-width: 575px) {
    .hamb-menu__list,
    #menu-hamburger {
        bottom: 24px;
        left: 32px;
        padding-inline-start: 0;
    }

    .hamb-chi-siamo-dropdown {
        bottom: 24px;
        left: 32px;
    }

    .hamb-menu__list a {
        font-size: clamp(24px, 9vw, 40px);
    }
}
