/* Luca Hamburger Menu */
.lhm-wrap {
    --lhm-accent: #111;
    --lhm-bg: #fff;
    --lhm-text: #111;
    --lhm-muted: #707070;
    --lhm-border: rgba(0,0,0,.10);
    --lhm-shadow: 0 18px 60px rgba(0,0,0,.20);
    --lhm-radius: 14px;
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 99990;
    font: inherit;
}

.lhm-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 8px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    line-height: 1;
    border-radius: 10px;
    transition: background .2s ease, transform .2s ease;
}

.lhm-toggle:hover {
    background: rgba(0,0,0,.055);
}

.lhm-toggle:focus-visible,
.lhm-close:focus-visible,
.lhm-menu a:focus-visible,
.lhm-submenu-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.lhm-icon {
    width: var(--lhm-icon-size);
    height: calc(var(--lhm-icon-size) * .72);
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.lhm-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transform-origin: center;
    transition: transform .25s ease, opacity .18s ease;
}

.lhm-wrap.is-open .lhm-icon span:nth-child(1) {
    transform: translateY(calc((var(--lhm-icon-size) * .72 - 2px) / 2)) rotate(45deg);
}
.lhm-wrap.is-open .lhm-icon span:nth-child(2) {
    opacity: 0;
}
.lhm-wrap.is-open .lhm-icon span:nth-child(3) {
    transform: translateY(calc((var(--lhm-icon-size) * -.72 + 2px) / 2)) rotate(-45deg);
}

.lhm-label {
    font-size: .95em;
    font-weight: 600;
}

.lhm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99991;
    background: rgba(0,0,0,.38);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .25s ease;
}

.lhm-wrap.is-open .lhm-backdrop {
    opacity: 1;
}

.lhm-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(var(--lhm-panel-width), calc(100vw - 28px));
    background: var(--lhm-bg);
    color: var(--lhm-text);
    z-index: 99992;
    box-shadow: var(--lhm-shadow);
    overflow: auto;
    visibility: hidden;
    transition: transform .3s cubic-bezier(.22,.61,.36,1), visibility .3s;
    overscroll-behavior: contain;
}

.lhm-side-right .lhm-panel {
    right: 0;
    transform: translateX(102%);
    border-radius: var(--lhm-radius) 0 0 var(--lhm-radius);
}

.lhm-side-left .lhm-panel {
    left: 0;
    transform: translateX(-102%);
    border-radius: 0 var(--lhm-radius) var(--lhm-radius) 0;
}

.lhm-wrap.is-open .lhm-panel {
    transform: translateX(0);
    visibility: visible;
}

.lhm-panel-head {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--lhm-border);
    backdrop-filter: blur(12px);
}

.lhm-panel-title {
    font-size: 13px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-weight: 700;
    color: var(--lhm-muted);
}

.lhm-close {
    appearance: none;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.055);
    color: inherit;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lhm-panel-body {
    padding: 18px 22px 30px;
}

.lhm-menu,
.lhm-menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lhm-menu > li {
    margin: 0;
    border-bottom: 1px solid var(--lhm-border);
    position: relative;
}

.lhm-menu li::marker {
    content: "";
}

.lhm-menu a {
    color: var(--lhm-text);
    text-decoration: none !important;
    display: block;
    padding: 16px 38px 16px 2px;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.25;
    font-weight: 650;
    transition: opacity .18s ease, transform .18s ease;
}

.lhm-menu a:hover {
    opacity: .62;
    transform: translateX(3px);
}

.lhm-menu .current-menu-item > a,
.lhm-menu .current-menu-ancestor > a {
    color: var(--lhm-accent);
}

.lhm-menu .sub-menu {
    display: none;
    padding: 0 0 10px 14px !important;
}

.lhm-menu .sub-menu.is-open {
    display: block;
}

.lhm-menu .sub-menu a {
    padding: 9px 34px 9px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--lhm-muted);
}

.lhm-submenu-toggle {
    position: absolute;
    top: 9px;
    right: 0;
    appearance: none;
    border: 0;
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: inherit;
    font-size: 19px;
    line-height: 1;
    transition: background .18s ease, transform .2s ease;
}

.lhm-submenu-toggle:hover {
    background: rgba(0,0,0,.055);
}

.lhm-submenu-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

html.lhm-lock,
body.lhm-lock {
    overflow: hidden !important;
}

.lhm-notice {
    padding: 10px 12px;
    border: 1px solid #e4b9b9;
    background: #fff5f5;
    font-size: 13px;
}

@media (max-width: 480px) {
    .lhm-panel {
        width: min(var(--lhm-panel-width), calc(100vw - 14px));
    }

    .lhm-panel-head,
    .lhm-panel-body {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lhm-panel,
    .lhm-backdrop,
    .lhm-icon span,
    .lhm-menu a,
    .lhm-submenu-toggle {
        transition: none !important;
    }
}
