/* =====================================================================
   Only One — Birreria & Beer Shop · Termoli
   Design: taproom inciso, ambra-su-scuro. Display = akaArcade (font del logo),
   testo = Fraunces. Animazioni GSAP sempre attive.
   ===================================================================== */

@font-face {
    font-family: 'akaArcade';
    src: url('./vendor/fonts/akaArcade.woff2') format('woff2'),
         url('./vendor/fonts/akaArcade.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

:root {
    /* superfici calde, near-black da botte */
    --ink:        #120D07;
    --bg:         #181109;
    --bg-2:       #1F1710;
    --surface:    #251B11;
    --surface-2:  #2E2215;

    /* ambra/oro dal logo + profondità dal "serio di prima" */
    --gold:       #F2B705;   /* oro birra (pop) */
    --amber:      #E9A53D;   /* ambra media */
    --amber-deep: #C8801A;   /* ambra profonda / hover */
    --espresso:   #5A3D2B;   /* tazza caffè */

    /* testo crema caldo */
    --cream:      #F3E7CC;
    --cream-dim:  #C9B894;
    --cream-faint: rgba(243, 231, 204, 0.60);

    /* linee / cornici */
    --line:        rgba(243, 231, 204, 0.12);
    --line-amber:  rgba(233, 165, 61, 0.40);

    --ff-display: 'akaArcade', 'Fraunces', Georgia, serif;
    --ff-serif:   'Fraunces', Georgia, 'Times New Roman', serif;

    --nav-h: 78px;
    --maxw: 1180px;
    --pad: clamp(18px, 5vw, 64px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --radius: 14px;
    --shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.85);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
    font-family: var(--ff-serif);
    font-optical-sizing: auto;
    font-size: 17px;
    line-height: 1.72;
    color: var(--cream);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--amber); color: var(--ink); }

/* scrollbar discreta e coerente col tema (niente barra grigia di Windows) */
* { scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--espresso); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--gold); color: var(--ink); padding: 12px 18px;
    border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--ff-serif); font-weight: 600; line-height: 1.12; color: var(--cream); }

.section-title {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.02;
    color: var(--cream);
}
.section-title .gold { color: var(--gold); }

.kicker {
    display: inline-block;
    font-family: var(--ff-serif);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 16px;
}
.kicker::before { content: "❧ "; color: var(--amber-deep); letter-spacing: 0; }

.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.7; color: rgba(243, 231, 204, 0.86); }

/* eyebrow ornament: filetto inciso centrato */
.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--line-amber); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: min(120px, 22vw); background: linear-gradient(90deg, transparent, var(--amber-deep)); }
.ornament::after { background: linear-gradient(90deg, var(--amber-deep), transparent); }
.ornament svg { width: 26px; height: 26px; color: var(--amber); }

/* ---------- bottoni ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--ff-serif); font-weight: 600;
    font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
    padding: 15px 28px; border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer; white-space: nowrap;
    transition: transform .25s var(--ease), background-color .25s var(--ease),
                color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }

.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); box-shadow: 0 10px 26px -12px rgba(242, 183, 5, 0.6); }
.btn--gold:hover { background: var(--amber); border-color: var(--amber); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line-amber); }
.btn--ghost:hover { border-color: var(--amber); color: var(--gold); transform: translateY(-2px); }

.btn--solid-dark { background: var(--surface-2); color: var(--cream); border-color: var(--line-amber); }
.btn--solid-dark:hover { background: var(--espresso); border-color: var(--amber); transform: translateY(-2px); }

/* link inciso con freccia */
.tlink {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em;
    color: var(--gold); border-bottom: 1px solid var(--line-amber); padding-bottom: 2px;
    transition: gap .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.tlink:hover { gap: 14px; color: var(--amber); border-color: var(--amber); }

/* ---------- NAV ---------- */
.main-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
    display: flex; align-items: center;
    transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.main-nav.scrolled {
    background: rgba(20, 14, 8, 0.86);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
.nav-inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad);
    display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-emblem { height: 48px; width: auto; }
.nav-word { height: 27px; width: auto; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-link {
    font-family: var(--ff-serif); font-weight: 600; font-size: 0.82rem;
    letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243, 231, 204, 0.78);
    position: relative; padding: 6px 0; transition: color .25s var(--ease);
}
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
    background: var(--gold); transition: width .3s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--cream); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { margin-left: 8px; padding: 11px 22px; }

.menu-btn { display: none; background: none; border: 0; color: var(--cream); padding: 8px; cursor: pointer; }
.menu-btn .icon { width: 26px; height: 26px; }

/* ---------- MOBILE MENU ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 150; overflow: hidden; pointer-events: none; }
.mm-scrim { position: absolute; inset: 0; background: rgba(8, 5, 2, 0.62); opacity: 0;
    transition: opacity .35s var(--ease); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.mm-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
    background: var(--ink); border-left: 1px solid var(--line-amber);
    box-shadow: -24px 0 60px -24px rgba(0, 0, 0, 0.85);
    display: flex; flex-direction: column; justify-content: center; gap: 2px;
    padding: 60px 24px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto;
    transform: translate3d(100%, 0, 0); will-change: transform;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    transition: transform .42s var(--ease); }
.mobile-menu.open { pointer-events: auto; }
.mobile-menu.open .mm-scrim { opacity: 1; }
.mobile-menu.open .mm-panel { transform: translate3d(0, 0, 0); }
.mobile-menu-close { position: absolute; top: 14px; right: 16px; z-index: 2; background: none; border: 0;
    color: var(--cream); font-size: 34px; line-height: 1; padding: 6px; cursor: pointer; }
.m-logo { height: 50px; width: auto; align-self: center; margin-bottom: 24px; }
.mm-links { display: flex; flex-direction: column; }
.m-link { font-family: var(--ff-display); font-size: clamp(1.35rem, 6vw, 1.8rem); color: var(--cream);
    padding: 11px 2px; border-bottom: 1px solid var(--line); transition: color .2s var(--ease); }
.m-link:active, .m-link:hover { color: var(--gold); }
.mm-call { margin-top: 24px; }

/* ---------- SEZIONI ---------- */
.sec { position: relative; padding: clamp(72px, 11vw, 130px) 0; }
.sec--alt { background: var(--bg-2); }
.sec-head { text-align: center; max-width: 64ch; margin-inline: auto; }
.sec-head .lead { margin-top: 14px; }

/* ---------- HERO ---------- */
.hero {
    position: relative; min-height: 100svh; display: flex; align-items: center;
    padding-top: calc(var(--nav-h) + 18px); padding-bottom: 40px; overflow: hidden;
    background: radial-gradient(120% 90% at 50% 0%, #20180e 0%, var(--bg) 55%, var(--ink) 100%);
}
.hero::before { /* texture incisa discreta, niente glow */
    content: ""; position: absolute; inset: 0; opacity: 0.10;
    background-image: url('./assets/atmosfera-seamless.webp'); background-size: 1040px;
    -webkit-mask-image: radial-gradient(120% 80% at 50% 30%, #000 35%, transparent 80%);
            mask-image: radial-gradient(120% 80% at 50% 30%, #000 35%, transparent 80%);
}
.hero::after { /* vignettatura ai bordi (scurisce, non illumina) */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    box-shadow: inset 0 -120px 120px -60px var(--ink), inset 0 80px 90px -60px rgba(8,6,3,0.7);
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column;
    align-items: center; text-align: center; max-width: 840px; margin-inline: auto; width: 100%; }
.hero-brand { width: min(330px, 82%); margin: 0 auto 6px; }
.hero-emblem { display: block; width: min(230px, 56vw); height: auto; margin: 0 auto -26px; }
.hero-onlyone { display: block; width: 100%; height: auto; }
.hero-sub { position: relative; height: 1.55em; margin-top: 3px; font-size: clamp(1.18rem, 2.8vw, 1.68rem); }
.hero-sub span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap;
    font-family: var(--ff-display); color: var(--cream); line-height: 1.1; }
.hero-sub span:first-child { left: 19%; }   /* sotto "Only" */
.hero-sub span:last-child { left: 71%; }    /* sotto "One" */
.hero-rule { display: flex; align-items: center; justify-content: center; gap: 16px;
    width: min(320px, 62%); margin: 14px 0 20px; color: var(--amber); }
.hero-rule .ln { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--amber-deep)); }
.hero-rule .ln:last-child { background: linear-gradient(90deg, var(--amber-deep), transparent); }
.hero-rule svg { width: 30px; height: 30px; flex-shrink: 0; }
.hero h1 { font-family: var(--ff-serif); font-weight: 600; font-size: clamp(1.65rem, 3.4vw, 2.6rem);
    line-height: 1.22; letter-spacing: -0.01em; max-width: 22ch; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--cream-faint);
    font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; }
.scroll-cue svg { width: 18px; height: 18px; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- STORIA ---------- */
.storia-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 72px); align-items: center; }
.storia-emblem { position: relative; aspect-ratio: 1; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--line-amber);
    display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow); max-width: 420px; }
.storia-emblem::before { content: ""; position: absolute; inset: 0; opacity: 0.5;
    background-image: url('./assets/atmosfera-seamless.webp'); background-size: 600px; }
.storia-emblem::after { content: ""; position: absolute; inset: 16px; border-radius: 50%; border: 1px dashed var(--line-amber); }
.storia-emblem .crest { position: relative; z-index: 2; width: 56%; color: var(--gold);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.6)); }
.storia-copy h2 { margin: 4px 0 6px; }
.owner-portrait { position: relative; aspect-ratio: 1; max-width: 360px; margin-inline: auto; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--line-amber); box-shadow: var(--shadow);
    display: grid; place-items: center; overflow: hidden; }
.owner-portrait img { width: 62%; height: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5)); }
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); margin-top: 30px; }
.stat { position: relative; }
.stat + .stat { padding-left: clamp(20px, 4vw, 44px); border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--ff-display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.4rem);
    color: var(--gold); line-height: 1; }
.stat span { font-size: 0.86rem; letter-spacing: 0.04em; color: var(--cream-faint); }

/* ---------- BIRRE ---------- */
.beer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 60px); }
.beer-card { position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 38px 28px 30px; text-align: center; overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.beer-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-amber);
    border-radius: 9px; pointer-events: none; opacity: 0.6; }
.beer-card:hover { transform: translateY(-6px); border-color: var(--line-amber); box-shadow: var(--shadow); }
.beer-ico { width: 112px; height: 112px; margin: 14px auto 30px; color: var(--gold); }
.beer-ico svg { width: 100%; height: 100%; }
.beer-ill { display: block; width: min(232px, 82%); height: auto; margin: -8px auto 4px; }
.beer-ill--svg { width: min(196px, 74%); aspect-ratio: 1; display: grid; place-items: center; color: var(--gold); margin: -8px auto 4px; }
.beer-ill--svg svg { width: 56%; height: 56%; }
.beer-card h3 { font-family: var(--ff-display); font-weight: 400; font-size: 1.9rem; color: var(--cream); margin-bottom: 10px; }
.beer-card p { font-size: 0.98rem; color: rgba(243,231,204,0.78); margin-bottom: 20px; }
.beer-cta { text-align: center; margin-top: clamp(40px, 6vw, 56px); }

/* ---------- ATMOSFERA ---------- */
.atm-feature { position: relative; margin-top: clamp(40px, 6vw, 60px); border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--line-amber); box-shadow: var(--shadow);
    background: var(--ink); }
.atm-feature img { width: 100%; display: block; }
.atm-feature.engraved-band { background-image: url('./assets/atmosfera-seamless.webp');
    background-size: 680px; background-repeat: repeat; min-height: clamp(360px, 50vw, 500px); }
.atm-feature .atm-overlay { position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(18,13,7,0.15) 0%, rgba(18,13,7,0.55) 70%, rgba(18,13,7,0.92) 100%);
    display: flex; align-items: flex-end; }
.atm-quote { padding: clamp(24px, 5vw, 48px); max-width: 640px; }
.atm-quote p { font-family: var(--ff-serif); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.7rem);
    line-height: 1.4; color: var(--cream); }
.atm-quote .who { display: block; margin-top: 12px; font-style: normal; font-size: 0.82rem;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }

/* ---------- LOCALE ---------- */
.locale-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 56px); align-items: stretch; }
.locale-map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px;
    border: 1px solid var(--line-amber); background: var(--surface); box-shadow: var(--shadow); }
.locale-map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0;
    filter: saturate(0.92) contrast(1.04) brightness(0.9); }
/* facade: la mappa si carica solo al click (privacy: niente Google al load) */
.map-facade { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 24px;
    display: grid; place-content: center; justify-items: center; gap: 11px; text-align: center; color: var(--cream);
    background:
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(233, 165, 61, 0.045) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(233, 165, 61, 0.045) 39px 40px),
        radial-gradient(130% 100% at 50% 35%, rgba(45, 33, 20, 0.55), var(--ink));
    transition: background-color .25s var(--ease); }
.map-facade-pin { width: 46px; height: 46px; color: var(--gold); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.map-facade-txt { font-family: var(--ff-serif); font-weight: 600; font-size: 1.02rem; color: var(--cream); }
.map-facade-cta { font-family: var(--ff-serif); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em;
    color: var(--ink); background: var(--gold); padding: 9px 20px; border-radius: 999px;
    transition: transform .18s var(--ease); }
.map-facade:hover .map-facade-cta { transform: translateY(-2px); }
.map-facade:active .map-facade-cta { transform: scale(0.97); }
.map-facade-note { font-size: 0.7rem; color: var(--cream-faint); margin-top: 2px; max-width: 240px; }

.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow); }
.contact-card h2 { font-family: var(--ff-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 6px 0 22px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .pin { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(233,165,61,0.10); border: 1px solid var(--line-amber); color: var(--gold); }
.contact-item .pin .icon { width: 20px; height: 20px; }
.contact-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 3px; }
.contact-val { color: var(--cream); line-height: 1.5; }
.contact-val a:hover { color: var(--gold); }
.hours-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 0.95rem; color: rgba(243,231,204,0.84); }
.hours-grid .d { color: var(--amber); font-weight: 600; }

/* ---------- RECENSIONI ---------- */
.rev-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
    background: rgba(233,165,61,0.10); border: 1px solid var(--line-amber); color: var(--cream);
    padding: 9px 18px; border-radius: 999px; font-size: 0.9rem; }
.rev-badge .stars { color: var(--gold); letter-spacing: 2px; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px;
    margin: clamp(36px, 5vw, 50px) auto 0; }
.rev-card { position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px 22px; box-shadow: var(--shadow); }
.rev-card .quote { font-family: var(--ff-display); font-size: 2.3rem; line-height: 0.6; color: var(--amber-deep);
    opacity: 0.7; height: 18px; }
.rev-card p { font-size: 0.9rem; line-height: 1.58; color: rgba(243,231,204,0.86); margin: 6px 0 16px; }
.rev-user { display: flex; align-items: center; gap: 11px; border-top: 1px solid var(--line); padding-top: 14px; }
.rev-ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 0.9rem;
    background: var(--gold); color: var(--ink); font-weight: 700; font-family: var(--ff-serif); }
.rev-name { font-weight: 600; font-size: 0.95rem; color: var(--cream); }
.rev-src { font-size: 0.74rem; color: var(--cream-faint); }

/* ---------- FOOTER ---------- */
.site-footer { position: relative; padding: clamp(56px, 8vw, 84px) 0 30px; text-align: center;
    border-top: 1px solid var(--line-amber); overflow: hidden;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--ink) 100%); }
.footer-inner { position: relative; z-index: 2; }
.footer-emblem { display: block; width: 104px; height: auto; margin: 0 auto 14px; }
.footer-logo img { width: min(260px, 70%); margin: 0 auto 16px; }
.footer-tag { font-family: var(--ff-display); font-size: 1.4rem; color: var(--amber); margin-bottom: 24px; }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 28px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--line-amber); color: var(--cream); transition: all .25s var(--ease); }
.footer-social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; fill: currentColor; }
.footer-mail { display: inline-block; color: var(--amber); font-size: 0.94rem; margin-bottom: 16px;
    border-bottom: 1px solid var(--line-amber); padding-bottom: 2px; transition: color .2s var(--ease); }
.footer-mail:hover { color: var(--gold); }
.footer-copy { font-size: 0.86rem; color: var(--cream-faint); }
.footer-legal { display: flex; justify-content: center; gap: 22px; margin-top: 12px; }
.footer-legal a { font-size: 0.82rem; color: var(--cream-faint); border-bottom: 1px solid transparent; }
.footer-legal a:hover { color: var(--amber); border-color: var(--line-amber); }

/* ---------- STICKY CTA MOBILE ---------- */
.mcta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    display: none; gap: 10px;
    opacity: 0; transform: translateY(120%); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.mcta.show { opacity: 1; transform: none; }
.mcta.show.at-footer { opacity: 0; transform: translateY(140%); pointer-events: none; }
.mcta .btn { flex: 1; padding: 14px 16px; font-size: 0.78rem; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.7); }

/* ---------- ANIMAZIONI (gated dietro html.js) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal-pop { opacity: 0; transform: translateY(20px) scale(0.96); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
    .storia-grid { grid-template-columns: 1fr; }
    .storia-emblem { max-width: 300px; margin-inline: auto; order: -1; }
    .storia-copy { text-align: center; }
    .stat-row { justify-content: center; }
    .locale-grid { grid-template-columns: 1fr; }
    .locale-map { min-height: 300px; order: -1; }
}

@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .menu-btn { display: block; }
    .beer-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
    .rev-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
    .mcta { display: flex; }
    .hero { padding-bottom: 86px; }
    body { font-size: 16px; }
}

@media (min-width: 761px) and (max-width: 1080px) {
    .beer-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-inline: auto; }
}
@media (min-width: 761px) and (max-width: 980px) {
    .rev-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- GALAXY FOLD / schermi strettissimi (cover piegato ~280–360px) ---------- */
@media (max-width: 400px) {
    :root { --pad: 16px; }
    .btn { white-space: normal; }                 /* niente label troncate sul Fold */
    .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 300px; margin-inline: auto; }
    .hero-cta .btn { width: 100%; }
    .beer-cta .btn { width: 100%; max-width: 300px; }
    .stat-row { gap: 18px; }
    .stat + .stat { padding-left: 18px; }
    .mcta { left: 8px; right: 8px; bottom: 8px; }
    .mcta .btn { padding: 13px 8px; font-size: 0.7rem; letter-spacing: 0.06em; }
    .nav-emblem { height: 38px; }
    .nav-word { height: 23px; }
}

/* ===================================================================
   PAGINA MENU (menu.html)
   =================================================================== */
.menu-body { background: var(--bg); overflow: hidden; }
.menu-body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
    background-image: url('./assets/atmosfera-seamless.webp'); background-size: 700px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%); }

/* menu ad altezza schermo: header e categorie FISSI, scorre solo l'elenco nel suo pannello */
.menu-page { position: relative; height: 100svh; padding-top: var(--nav-h);
    display: flex; flex-direction: column; overflow: hidden; }

.menu-head { flex: 0 0 auto; width: 100%; max-width: 1400px; margin: 0 auto; padding: 16px var(--pad) 12px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.menu-head-l { display: flex; flex-direction: column; }
.menu-head .kicker { margin-bottom: 3px; }
.menu-title { font-family: var(--ff-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--cream); line-height: 1; }
.menu-live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--cream-faint); margin-top: 6px; }
.menu-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: livePulse 2.2s var(--ease) infinite; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 183, 5, 0.45); } 60% { box-shadow: 0 0 0 6px rgba(242, 183, 5, 0); } }
.menu-back { padding: 10px 18px; font-size: 0.74rem; }
.menu-body .nav-emblem { height: 50px; }

.menu-search-wrap { position: relative; flex: 1 1 260px; max-width: 360px; }
.menu-search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--amber); pointer-events: none; }
#menu-search { width: 100%; padding: 12px 16px 12px 44px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line-amber); color: var(--cream);
    font-family: var(--ff-serif); font-size: 0.95rem; outline: none; transition: border-color .2s var(--ease); }
#menu-search::placeholder { color: var(--cream-faint); }
#menu-search:focus { border-color: var(--gold); }

.menu-layout { flex: 1 1 auto; min-height: 0; width: 100%; max-width: 1400px; margin: 0 auto;
    padding: 4px var(--pad) 0; display: grid; grid-template-columns: 270px 1fr; gap: clamp(26px, 3vw, 48px); }

.menu-side { min-height: 0; height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
    padding: 8px 8px 24px 0; scrollbar-width: none; -ms-overflow-style: none; }
.menu-side::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* livello 1: reparti */
.menu-groups { display: flex; flex-direction: column; gap: 5px; }
.menu-group { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
    text-align: left; cursor: pointer; background: transparent; border: 1px solid var(--line); border-radius: 11px;
    padding: 11px 14px; color: var(--cream); font-family: var(--ff-serif); font-weight: 600; font-size: 0.95rem; line-height: 1.2;
    transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease); }
.menu-group:hover { border-color: var(--line-amber); background: rgba(233, 165, 61, 0.06); }
.menu-group.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.menu-group-n { flex: 0 0 auto; font-size: 0.72rem; font-weight: 700; opacity: 0.55; font-variant-numeric: tabular-nums; }
.menu-group.active .menu-group-n { opacity: 0.7; }

/* livello 2: sotto-categorie del reparto attivo */
.menu-subnav { display: flex; flex-direction: column; gap: 1px; padding-top: 12px; border-top: 1px solid var(--line); }
.menu-nav-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
    text-align: left; cursor: pointer; background: transparent; border: 0; border-radius: 9px; padding: 8px 12px;
    color: rgba(243, 231, 204, 0.74); font-family: var(--ff-serif); font-size: 0.9rem; line-height: 1.25;
    transition: background .18s var(--ease), color .18s var(--ease); }
.menu-nav-item:hover { background: rgba(233, 165, 61, 0.08); color: var(--cream); }
.menu-nav-item.active { background: rgba(242, 183, 5, 0.16); color: var(--gold); font-weight: 600; }
.menu-nav-n { flex: 0 0 auto; font-size: 0.72rem; opacity: 0.55; font-variant-numeric: tabular-nums; }
.menu-nav-item.active .menu-nav-n { opacity: 0.75; }

.menu-main { min-width: 0; min-height: 0; height: 100%; overflow-y: auto; padding: 6px 6px 28px; }
.menu-loading { text-align: center; color: var(--cream-faint); padding: 50px 0; }
.menu-empty { text-align: center; color: var(--cream-faint); padding: 40px var(--pad); }
.menu-empty a { color: var(--gold); border-bottom: 1px solid var(--line-amber); }

.menu-cat { margin-bottom: clamp(30px, 4vw, 44px); animation: menuFade .35s var(--ease); }
@keyframes menuFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* banner immagine della categoria */
.menu-banner { position: relative; height: clamp(160px, 22vw, 220px); border-radius: 18px; overflow: hidden;
    margin-bottom: 20px; background: var(--surface); box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(242, 183, 5, 0.18); }
.menu-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--amber) 40%, transparent 90%); }
.menu-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-banner-grad { position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(18, 13, 7, 0.94) 0%, rgba(18, 13, 7, 0.62) 46%, rgba(18, 13, 7, 0.12) 100%),
                linear-gradient(0deg, rgba(18, 13, 7, 0.8) 0%, transparent 58%); }
.menu-banner--plain { border: 1px solid var(--line-amber); }
.menu-banner--plain .menu-banner-grad { background: none; }
.menu-banner-cap { position: absolute; left: clamp(20px, 3.4vw, 34px); right: 18px; bottom: 18px; }
.menu-banner-title { font-family: var(--ff-display); font-weight: 400; color: var(--cream); line-height: 0.98;
    font-size: clamp(2.2rem, 5vw, 3.4rem); text-shadow: 0 3px 24px rgba(0, 0, 0, 0.6); }
.menu-banner-count { display: inline-block; margin-top: 7px; font-family: var(--ff-serif); font-weight: 700;
    font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* griglia card prodotto */
.menu-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(316px, 1fr)); gap: 14px; align-items: start; }
.menu-card { display: grid; grid-template-columns: 72px 1fr auto; grid-template-areas: "thumb body price" "thumb note note";
    gap: 7px 15px; align-items: start; padding: 14px 17px;
    border-radius: 15px; border: 1px solid var(--line); background: linear-gradient(168deg, rgba(45, 33, 20, 0.55), rgba(28, 19, 11, 0.5));
    transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.mc-thumb { grid-area: thumb; }
.mc-body { grid-area: body; }
.mc-price { grid-area: price; }
.mc-note { grid-area: note; }
.menu-card:hover { border-color: var(--line-amber); background: linear-gradient(168deg, rgba(48, 35, 21, 0.95), rgba(30, 21, 12, 0.9));
    transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.9); }
.menu-card.has-note { cursor: pointer; }

.mc-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--cream);
    display: grid; place-items: center; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.7); }
.mc-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.mc-thumb--glyph { background: linear-gradient(158deg, #2f2315, #1a1108); border: 1px solid var(--line-amber); color: var(--amber); box-shadow: none; }
.mc-thumb--glyph svg { width: 32px; height: 32px; }

.mc-body { min-width: 0; }
.mc-name { font-family: var(--ff-serif); font-weight: 600; font-size: 0.96rem; line-height: 1.28; color: var(--cream); }
.has-note .mc-name::after { content: "›"; margin-left: 6px; color: var(--amber); font-weight: 700;
    display: inline-block; transition: transform .2s var(--ease); }
.menu-card.open .mc-name::after { transform: rotate(90deg); }
.mc-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.mc-badge { font-family: var(--ff-serif); font-size: 0.67rem; font-weight: 600; padding: 2px 7px; border-radius: 999px;
    border: 1px solid var(--line-amber); color: var(--cream-faint); white-space: nowrap; }
.mc-badge--style { color: var(--gold); border-color: rgba(242, 183, 5, 0.4); }
.mc-badge--abv { color: var(--amber); }
.mc-note { grid-area: note; margin-top: 1px; font-family: var(--ff-serif); font-size: 0.83rem; line-height: 1.5; color: rgba(243, 231, 204, 0.6);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-card.open .mc-note { -webkit-line-clamp: unset; }
.mc-price { font-family: var(--ff-serif); font-weight: 700; font-size: 0.98rem; color: var(--gold);
    font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 1px; }

.menu-search-cat { font-family: var(--ff-display); font-weight: 400; color: var(--gold);
    font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 12px; }
.menu-cat--search { margin-bottom: 26px; }

@media (max-width: 860px) {
    .menu-head { align-items: stretch; padding-bottom: 10px; }
    .menu-search-wrap { max-width: none; flex: 1 1 100%; }
    .menu-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 0; padding: 0 var(--pad); }
    .menu-side { height: auto; overflow: visible; flex-direction: column; gap: 8px; padding: 9px 0 10px; margin: 2px 0 0;
        border-bottom: 1px solid var(--line); }
    .menu-groups, .menu-subnav { flex-direction: row; gap: 8px; padding: 0; border: 0;
        overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
    .menu-groups::-webkit-scrollbar, .menu-subnav::-webkit-scrollbar { display: none; }
    .menu-group { width: auto; flex: 0 0 auto; white-space: nowrap; padding: 8px 15px; border-radius: 999px; font-size: 0.85rem; }
    .menu-group-n { display: none; }
    .menu-nav-item { width: auto; flex: 0 0 auto; white-space: nowrap; border: 1px solid var(--line-amber);
        border-radius: 999px; padding: 6px 13px; font-size: 0.8rem; }
    .menu-nav-item:hover { background: transparent; color: rgba(243, 231, 204, 0.74); }
    .menu-nav-item.active { background: var(--gold); color: var(--ink); }
    .menu-nav-n { display: none; }
    .menu-main { padding: 14px 2px 18px; }
    .menu-cards { grid-template-columns: 1fr; }
    .menu-banner { height: clamp(132px, 38vw, 180px); border-radius: 15px; }
}
