@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/caveat-500-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/caveat-500-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/caveat-500-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/caveat-500-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/fraunces-500-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/fraunces-500-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/fraunces-500-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/fraunces-500-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("/fonts/fraunces-500-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("/fonts/fraunces-500-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Karla";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/karla-400-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Karla";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/karla-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Karla";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/karla-400-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Karla";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/karla-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Karla";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/karla-400-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Karla";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/karla-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --lavagna: #1f2620;
    --lavagna-2: #29332a;
    --lavagna-3: #313d31;
    --gesso: #f1ebdd;
    --gesso-dim: #b8b3a4;
    --pomodoro: #e4573d;
    --pomodoro-scuro: #c8432b;
    --basilico: #8fbf74;
    --grana: #e5b85c;
    --linea: rgba(241, 235, 221, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(ellipse 120% 80% at 50% -10%, var(--lavagna-2), var(--lavagna) 60%);
    color: var(--gesso);
    font-family: "Karla", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.tricolore {
    height: 6px;
    background: linear-gradient(90deg, var(--basilico) 0 33.3%, var(--gesso) 33.3% 66.6%, var(--pomodoro) 66.6% 100%);
    transform-origin: left;
    animation: stripe-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero {
    position: relative;
    text-align: center;
    padding: 56px 24px 24px;
}

.lang-switch {
    display: flex;
    gap: 6px;
    font-family: "Karla", sans-serif;
    font-size: 0.78rem;
}

.hero .lang-switch {
    position: absolute;
    top: 18px;
    right: 20px;
}

.lang-switch button,
.lang-switch a {
    background: none;
    border: none;
    color: var(--gesso-dim);
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.lang-switch button:hover,
.lang-switch button:focus-visible,
.lang-switch a:hover,
.lang-switch a:focus-visible {
    color: var(--gesso);
    outline: none;
}

.lang-switch button.active,
.lang-switch a.active {
    background: var(--pomodoro);
    color: var(--gesso);
}

@media (max-width: 480px) {
    .hero .lang-switch {
        position: static;
        justify-content: center;
        margin-bottom: 10px;
    }
}

.eyebrow {
    font-family: "Caveat", cursive;
    font-size: 1.5rem;
    color: var(--grana);
    animation: rise-in 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.title {
    font-family: "Fraunces", serif;
    font-weight: 900;
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-top: 6px;
    animation: rise-in 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.title::after {
    content: "";
    display: block;
    width: 130px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 4px;
    background: var(--pomodoro);
    transform-origin: center;
    animation: draw-line 0.6s 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tagline {
    margin-top: 16px;
    color: var(--gesso-dim);
    font-size: 1.05rem;
    animation: rise-in 0.7s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 40px;
    max-width: 1180px;
    margin: 24px auto 0;
    padding: 24px;
    align-items: start;
}

.map-side {
    animation: rise-in 0.8s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.map-frame {
    position: relative;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--linea);
    border-radius: 18px;
    padding: 22px;
}

#italyMap {
    width: 100%;
    height: auto;
    display: block;
}

.region {
    fill: var(--lavagna-3);
    stroke: var(--gesso);
    stroke-width: 1;
    stroke-opacity: 0.35;
    vector-effect: non-scaling-stroke;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    cursor: pointer;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    transition: fill 0.25s ease, transform 0.25s ease, filter 0.25s ease;
    animation: region-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.region:focus {
    outline: none;
}

.region:hover,
.region:focus-visible {
    fill: var(--basilico);
    transform: scale(1.03);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
    outline: none;
}

.region.active {
    fill: var(--pomodoro);
    stroke-opacity: 0.6;
    transform: scale(1.03);
    filter: drop-shadow(0 8px 18px rgba(228, 87, 61, 0.35));
}

.region.derby-a,
.region.derby-b {
    stroke-opacity: 0.6;
    transform: scale(1.03);
}

.region.derby-a {
    fill: var(--pomodoro);
    filter: drop-shadow(0 8px 18px rgba(228, 87, 61, 0.35));
}

.region.derby-b {
    fill: var(--grana);
    filter: drop-shadow(0 8px 18px rgba(229, 184, 92, 0.35));
}

.tooltip {
    position: absolute;
    pointer-events: none;
    background: var(--gesso);
    color: var(--lavagna);
    font-family: "Caveat", cursive;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -130%) scale(0.9);
    transition: opacity 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
    z-index: 5;
}

.tooltip.visible {
    opacity: 1;
    transform: translate(-50%, -130%) scale(1);
}

.map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gesso-dim);
    font-family: "Caveat", cursive;
    font-size: 1.3rem;
    pointer-events: none;
}

.map-loading[hidden] {
    display: none;
}

.map-hint {
    text-align: center;
    color: var(--gesso-dim);
    font-size: 0.9rem;
    margin-top: 14px;
}

.menu-side {
    position: sticky;
    top: 24px;
    animation: rise-in 0.8s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-card {
    background: var(--lavagna-2);
    border: 1px solid var(--linea);
    border-radius: 18px;
    padding: 34px 34px 40px;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(241, 235, 221, 0.18);
    border-radius: 12px;
    pointer-events: none;
}

.menu-empty {
    text-align: center;
    padding-top: 70px;
}

.empty-script {
    font-family: "Caveat", cursive;
    font-size: 2.2rem;
    color: var(--grana);
}

.empty-text {
    margin: 18px auto 0;
    max-width: 340px;
    color: var(--gesso-dim);
    line-height: 1.6;
}

.fork-line {
    width: 60px;
    height: 3px;
    border-radius: 3px;
    margin: 30px auto 0;
    background: var(--basilico);
}

.daily-dish {
    margin-top: 30px;
    text-align: center;
}

.daily-dish-item {
    text-align: left;
    max-width: 320px;
    margin: 14px auto 0;
    padding: 0;
    border-bottom: none;
}

.daily-dish-region {
    margin-top: 10px;
    color: var(--gesso-dim);
    font-size: 0.85rem;
}

.daily-dish .pill-btn {
    margin-top: 16px;
}

.menu-content.swap {
    animation: card-swap 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-kicker {
    font-family: "Caveat", cursive;
    font-size: 1.4rem;
    color: var(--grana);
}

.menu-region {
    font-family: "Fraunces", serif;
    font-weight: 900;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    letter-spacing: -0.01em;
    margin-top: 2px;
}

.menu-note {
    margin-top: 10px;
    color: var(--gesso-dim);
    line-height: 1.55;
    font-size: 0.98rem;
}

.menu-divider {
    height: 4px;
    margin: 22px 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--basilico) 0 33.3%, var(--gesso) 33.3% 66.6%, var(--pomodoro) 66.6% 100%);
}

.derby-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
}

.derby-region-name {
    font-family: "Fraunces", serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.derby-note {
    margin-top: 8px;
    color: var(--gesso-dim);
    line-height: 1.5;
    font-size: 0.92rem;
}

.derby-column .dish-list,
.derby-column .wine-list {
    margin-top: 14px;
}

.dish-list {
    list-style: none;
}

.dish {
    padding: 13px 0;
    border-bottom: 1px solid var(--linea);
    opacity: 0;
    animation: dish-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dish:last-child {
    border-bottom: none;
}

.dish-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dish-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gesso-dim);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dish-name {
    font-family: "Caveat", cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gesso);
    display: inline-block;
    position: relative;
}

.dish-name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--pomodoro);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.dish:hover .dish-name::after {
    transform: scaleX(1);
}

.dish-desc {
    margin-top: 3px;
    color: var(--gesso-dim);
    font-size: 0.94rem;
    line-height: 1.5;
}

.badge {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    background: var(--pomodoro);
    color: var(--gesso);
    font-family: "Karla", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    animation: badge-pop 0.5s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.footer {
    text-align: center;
    padding: 50px 20px 40px;
    color: var(--gesso-dim);
    font-family: "Caveat", cursive;
    font-size: 1.3rem;
}

@keyframes stripe-in {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes draw-line {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes region-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes card-swap {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dish-in {
    from {
        opacity: 0;
        transform: translateX(-14px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes badge-pop {
    from {
        opacity: 0;
        transform: scale(0.4);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 860px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .menu-side {
        position: static;
    }

    .hero {
        padding-top: 40px;
    }

    .derby-columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    :root {
        --lavagna: #ffffff;
        --lavagna-2: #ffffff;
        --lavagna-3: #ffffff;
        --gesso: #1a1a1a;
        --gesso-dim: #444444;
        --pomodoro: #c8432b;
        --grana: #8a6a1f;
        --linea: rgba(0, 0, 0, 0.15);
    }

    @page {
        margin: 1.5cm;
    }

    body {
        background: none;
    }

    .tricolore,
    .back-link,
    .no-print,
    .lang-switch,
    .region-nav,
    .footer {
        display: none !important;
    }

    .page-wrap {
        max-width: none;
        padding: 0;
    }

    .dish,
    .wine,
    .resto {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }

    .resto-name[href]::after {
        content: none !important;
    }

    .page-title {
        font-size: 22pt;
    }

    .dish-name,
    .wine-name {
        font-size: 13pt;
    }

    .dish-desc,
    .wine-desc,
    .page-note,
    .resto-city,
    .resto-note {
        font-size: 10pt;
    }
}

.resto-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.resto-kicker {
    font-family: "Caveat", cursive;
    font-size: 1.5rem;
    color: var(--grana);
    white-space: nowrap;
}

.resto-line {
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: var(--linea);
}

.resto-list {
    list-style: none;
    margin-top: 6px;
}

.resto {
    padding: 10px 0;
    border-bottom: 1px solid var(--linea);
    opacity: 0;
    animation: dish-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.resto:last-child {
    border-bottom: none;
}

.resto-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.resto-name {
    font-weight: 700;
    color: var(--gesso);
    font-size: 0.98rem;
}

.resto-rating {
    font-weight: 700;
    color: var(--grana);
    font-size: 0.9rem;
    white-space: nowrap;
}

.resto-city {
    margin-top: 2px;
    color: var(--gesso-dim);
    font-size: 0.85rem;
}

.resto-note {
    margin-top: 14px;
    color: var(--gesso-dim);
    font-size: 0.72rem;
    opacity: 0.7;
    text-align: right;
}

.resto-name {
    text-decoration: none;
    position: relative;
}

.resto-name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--pomodoro);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.resto-name:hover::after,
.resto-name:focus-visible::after {
    transform: scaleX(1);
}

.resto-name:focus-visible {
    outline: none;
    color: var(--pomodoro);
}

.map-reset {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 6;
    background: var(--gesso);
    color: var(--lavagna);
    border: none;
    font-family: "Caveat", cursive;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.map-reset:hover,
.map-reset:focus-visible {
    background: var(--grana);
    transform: translateY(-1px);
    outline: none;
}

.city-markers {
    pointer-events: none;
}

.city-marker {
    opacity: 0;
    animation: marker-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.city-halo {
    fill: rgba(228, 87, 61, 0.25);
}

.city-dot {
    fill: var(--pomodoro);
    stroke: var(--gesso);
    stroke-width: 0.6;
}

.city-label {
    fill: var(--gesso);
    font-family: "Caveat", cursive;
    font-weight: 700;
    paint-order: stroke;
    stroke: rgba(31, 38, 32, 0.85);
    stroke-width: 2.5px;
    stroke-linejoin: round;
}

@keyframes marker-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-wrap {
    position: relative;
    max-width: 320px;
    margin: 16px auto 0;
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.18);
    color: var(--gesso);
    border: 1px solid var(--linea);
    font-family: "Karla", sans-serif;
    font-size: 0.9rem;
    padding: 9px 16px;
    border-radius: 999px;
    transition: border-color 0.2s ease;
}

.search-input::placeholder {
    color: var(--gesso-dim);
}

.search-input:focus-visible,
.search-input:focus {
    outline: none;
    border-color: var(--grana);
}

.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 7;
    list-style: none;
    background: var(--lavagna-2);
    border: 1px solid var(--linea);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    max-height: 260px;
    overflow-y: auto;
}

.search-results[hidden] {
    display: none;
}

.search-result {
    padding: 8px 12px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gesso);
}

.search-result.active {
    background: var(--lavagna-3);
    color: var(--grana);
}

.map-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pill-btn {
    background: transparent;
    color: var(--gesso);
    border: 1px solid var(--linea);
    font-family: "Karla", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pill-btn:hover,
.pill-btn:focus-visible {
    background: var(--lavagna-3);
    border-color: var(--gesso-dim);
    transform: translateY(-1px);
    outline: none;
}

.pill-btn-alt {
    border-color: rgba(229, 184, 92, 0.5);
    color: var(--grana);
}

.pill-btn-alt:hover,
.pill-btn-alt:focus-visible {
    background: rgba(229, 184, 92, 0.12);
    border-color: var(--grana);
}

.menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.share-btn {
    background: transparent;
    color: var(--gesso-dim);
    border: 1px solid var(--linea);
    font-family: "Karla", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.share-btn:hover,
.share-btn:focus-visible {
    color: var(--gesso);
    border-color: var(--gesso-dim);
    outline: none;
}

.share-btn.copied {
    color: var(--basilico);
    border-color: var(--basilico);
    background: rgba(143, 191, 116, 0.1);
}

.wine-list {
    list-style: none;
    margin-top: 4px;
}

.wine {
    padding: 9px 0;
    border-bottom: 1px solid var(--linea);
    opacity: 0;
    animation: dish-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wine:last-child {
    border-bottom: none;
}

.wine-name {
    font-family: "Caveat", cursive;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gesso);
}

.wine-desc {
    margin-top: 1px;
    color: var(--gesso-dim);
    font-size: 0.88rem;
    line-height: 1.45;
}

.footer-credit {
    margin-top: 6px;
    font-size: 1.05rem;
    opacity: 0.7;
}

.page-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 60px;
}

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.page-toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-link {
    display: inline-block;
    color: var(--gesso-dim);
    text-decoration: none;
    font-family: "Karla", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 26px;
    transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--pomodoro);
    outline: none;
}

.page-title {
    font-family: "Fraunces", serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    letter-spacing: -0.02em;
}

.page-note {
    margin-top: 14px;
    color: var(--gesso-dim);
    line-height: 1.6;
    font-size: 1.02rem;
}

.region-nav {
    margin-top: 50px;
    padding-top: 28px;
    border-top: 1px solid var(--linea);
}

.region-nav-wide {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.region-nav-title {
    font-family: "Caveat", cursive;
    font-size: 1.3rem;
    color: var(--grana);
    margin-bottom: 12px;
}

.region-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
}

.region-nav-list a {
    color: var(--gesso-dim);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.region-nav-list a:hover,
.region-nav-list a:focus-visible {
    color: var(--gesso);
    outline: none;
}

