.amo-root {
    --amo-blue: #4fa3d1;
    --amo-yellow: #fffe5b;
    --amo-ink: #ffffff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.amo-root * {
    box-sizing: border-box;
}

.amo-open {
    align-items: center;
    background: #111;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    height: 58px;
    justify-content: center;
    padding: 0;
    transition: transform 180ms ease, background-color 180ms ease;
    width: 58px;
}

.amo-open:hover,
.amo-open:focus-visible {
    background: #050505;
    transform: scale(1.04);
}

.amo-open span {
    background: #fff;
    border-radius: 999px;
    display: block;
    height: 4px;
    width: 30px;
}

.amo-overlay {
    background: rgba(0, 0, 0, 0.22);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 220ms ease;
    z-index: 99998;
}

.amo-panel {
    background: var(--amo-blue);
    color: var(--amo-ink);
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100vw;
    overflow-y: auto;
    padding: clamp(22px, 2.6vw, 38px);
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 260ms cubic-bezier(.22, .8, .2, 1);
    width: min(470px, 92vw);
    z-index: 99999;
}

.amo-root.is-open .amo-overlay {
    opacity: 1;
    pointer-events: auto;
}

.amo-root.is-open .amo-panel {
    transform: translateX(0);
}

.amo-panel-top {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    min-height: 52px;
}

.amo-close {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    height: 52px;
    justify-content: center;
    padding: 0;
    position: relative;
    transition: transform 180ms ease;
    width: 52px;
}

.amo-close:hover,
.amo-close:focus-visible {
    transform: rotate(6deg) scale(1.04);
}

.amo-close span {
    background: #fff;
    border-radius: 999px;
    display: block;
    height: 4px;
    position: absolute;
    width: 36px;
}

.amo-close span:first-child {
    transform: rotate(45deg);
}

.amo-close span:last-child {
    transform: rotate(-45deg);
}

.amo-nav {
    margin: clamp(34px, 6vh, 74px) 0 auto;
}

.amo-menu-list {
    display: grid;
    gap: clamp(12px, 1.6vw, 18px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.amo-menu-list a {
    color: #fff;
    display: inline-block;
    font-size: clamp(34px, 4.3vw, 64px);
    font-weight: 850;
    letter-spacing: 0;
    line-height: .98;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.amo-menu-list a:hover,
.amo-menu-list a:focus-visible,
.amo-menu-list .current-menu-item > a {
    color: var(--amo-yellow);
    transform: translateX(6px);
}

.amo-contact {
    display: grid;
    gap: 16px;
    margin-top: clamp(34px, 6vh, 72px);
}

.amo-contact-link,
.amo-social a {
    align-items: center;
    color: #fff;
    display: inline-flex;
    gap: 12px;
    justify-self: start;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.amo-contact-link {
    font-size: clamp(17px, 1.4vw, 20px);
    font-weight: 750;
}

.amo-contact-link:hover,
.amo-contact-link:focus-visible,
.amo-social a:hover,
.amo-social a:focus-visible {
    color: var(--amo-yellow);
}

.amo-contact-link:hover svg,
.amo-contact-link:focus-visible svg,
.amo-social a:hover svg,
.amo-social a:focus-visible svg,
.amo-territoriale:hover img,
.amo-territoriale:focus-visible img {
    transform: translateY(-3px) scale(1.06);
}

.amo-contact svg,
.amo-social svg {
    fill: currentColor;
    flex: 0 0 auto;
    height: 27px;
    transition: transform 160ms ease;
    width: 27px;
}

.amo-territoriale {
    display: inline-flex;
    justify-self: start;
    margin-top: 6px;
}

.amo-territoriale img {
    background: #fff;
    border-radius: 6px;
    display: block;
    height: auto;
    max-height: 38px;
    max-width: 180px;
    object-fit: contain;
    padding: 5px 7px;
    transition: transform 160ms ease;
}

.amo-social {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.amo-social a {
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.amo-social a:hover,
.amo-social a:focus-visible {
    border-color: var(--amo-yellow);
}

body.amo-menu-lock {
    overflow: hidden;
}

@media (max-width: 767px) {
    .amo-panel {
        height: 100dvh;
        padding: 22px;
        width: 100vw;
    }

    .amo-overlay {
        display: none;
    }

    .amo-nav {
        margin-top: 38px;
    }

    .amo-menu-list a {
        font-size: clamp(42px, 13vw, 68px);
    }

    .amo-contact {
        margin-top: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .amo-open,
    .amo-overlay,
    .amo-panel,
    .amo-close,
    .amo-menu-list a,
    .amo-contact-link,
    .amo-social a,
    .amo-contact svg,
    .amo-social svg,
    .amo-territoriale img {
        transition: none;
    }
}
