/* =========================================================
   BIRRA FENICE — Design system v1.1
   Palette ufficiale: bordeaux #58060D · oro #AF8545
   Tipografia: Fraunces (titoli, anche corsivo) + Inter (testo)
   Approccio mobile-first: gli stili base sono per smartphone,
   le media query (min-width) aggiungono tablet e desktop.
   Motivo grafico ricorrente: la doppia filettatura delle
   etichette (bordo + filetto interno), usata con parsimonia.
   I font sono ospitati nel sito (assets/fonts, licenza OFL):
   nessuna richiesta a Google, caricamento più rapido.
   ========================================================= */

@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Bordeaux — dal più scuro al più chiaro */
  --wine-950: #22030a;
  --wine-900: #330409;
  --wine-800: #44050d;
  --wine-700: #58060d; /* brand */
  --wine-600: #6d1019;
  --wine-500: #862430;
  --wine-300: #c48c90;
  --wine-100: #f2e0de;
  --wine-50: #faf2ef;

  /* Oro — dal più scuro al più chiaro */
  --gold-800: #5f441d;
  --gold-700: #85612f;
  --gold-600: #9a7339;
  --gold-500: #af8545; /* brand */
  --gold-400: #c4a066;
  --gold-300: #d9bf92;
  --gold-200: #e9d8b6;
  --gold-100: #f4eadb;

  /* Carta e inchiostro */
  --paper: #f8f3ea;
  --paper-2: #f2eadc;
  --paper-3: #e8dcc6;
  --white: #fffdf9;
  --ink: #23170f;
  --ink-2: #4b3d30;
  --ink-3: #7a6956;
  --on-wine: #f8eedf;
  --on-wine-2: rgba(248, 238, 223, 0.74);
  --on-wine-3: rgba(248, 238, 223, 0.5);

  --line: rgba(88, 6, 13, 0.12);
  --line-strong: rgba(88, 6, 13, 0.22);
  --line-gold: rgba(175, 133, 69, 0.5);
  --line-on-wine: rgba(217, 191, 146, 0.28);

  --ok: #2f6e48;
  --ok-soft: #e4f0e7;
  --err: #a3332b;
  --err-soft: #f9e6e2;

  --shadow-1: 0 1px 2px rgba(51, 4, 9, 0.06), 0 2px 8px rgba(51, 4, 9, 0.04);
  --shadow-2: 0 10px 30px -12px rgba(51, 4, 9, 0.28), 0 4px 10px -6px rgba(51, 4, 9, 0.12);
  --shadow-3: 0 30px 70px -20px rgba(34, 3, 10, 0.45);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --gutter: 20px;
  --maxw: 1200px;
  --header-h: 64px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; color: var(--ink-2); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.45em;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.35rem + 4vw, 4.25rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.85rem); line-height: 1.1; }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem); line-height: 1.25; }
em, .it { font-style: italic; font-weight: 500; }
h1 em, h2 em { color: var(--gold-600); }
::selection { background: var(--gold-200); color: var(--wine-800); }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
.section--wine :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-300); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--wine-700); color: var(--on-wine);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 760px; }
.section { padding-block: clamp(56px, 8vw, 112px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--paper2 { background: var(--paper-2); }
.section--wine {
  background: radial-gradient(120% 90% at 85% 0%, var(--wine-600) 0%, var(--wine-700) 38%, var(--wine-900) 100%);
  color: var(--on-wine);
  isolation: isolate;
}
.section--wine h1, .section--wine h2, .section--wine h3 { color: var(--on-wine); }
.section--wine p { color: var(--on-wine-2); }
.section--wine h1 em, .section--wine h2 em { color: var(--gold-300); }
.grain, .section--wine { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: 0.07; mix-blend-mode: overlay;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-700); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section--wine .eyebrow { color: var(--gold-300); }
.lede { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; }

/* Ornamento: filetto — fenice — filetto */
.ornament { display: flex; align-items: center; gap: 14px; color: var(--gold-500); margin: 0 auto 18px; max-width: 220px; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { background: linear-gradient(270deg, transparent, currentColor); }
.ornament img { width: 26px; height: auto; }

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: var(--wine-700); --btn-fg: var(--on-wine); --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.005em; line-height: 1; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s, transform .15s var(--ease), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary:hover { --btn-bg: var(--wine-600); }
.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--wine-900); }
.btn--gold:hover { --btn-bg: var(--gold-400); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--wine-700); --btn-bd: var(--line-strong); }
.btn--outline:hover { --btn-bd: var(--wine-700); box-shadow: none; background: var(--wine-50); }
.btn--light { --btn-bg: transparent; --btn-fg: var(--on-wine); --btn-bd: var(--line-on-wine); }
.btn--light:hover { --btn-bd: var(--gold-300); background: rgba(248,238,223,.06); box-shadow: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); padding-inline: 14px; }
.btn--ghost:hover { --btn-fg: var(--wine-700); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--on-wine); border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn--gold.is-loading::after, .btn--outline.is-loading::after { border-color: var(--wine-700); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--wine-700); border-bottom: 1px solid var(--line-gold); padding-bottom: 2px; transition: gap .2s var(--ease), border-color .2s; }
.link-arrow:hover { gap: 12px; border-color: var(--wine-700); }
.section--wine .link-arrow { color: var(--gold-300); }

/* ---------- Barra età ---------- */
.age-bar {
  background: var(--wine-950); color: var(--on-wine-2);
  font-size: 0.72rem; line-height: 1.35; text-align: center; padding: 7px var(--gutter); letter-spacing: 0.01em;
}
.age-bar b { color: var(--gold-300); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 70; height: var(--header-h);
  background: rgba(248, 243, 234, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(51,4,9,.5); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 44px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--wine-700); letter-spacing: 0.01em; white-space: nowrap; }
.brand-sub { display: none; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; white-space: nowrap; }
.main-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; min-width: 44px; padding: 0 12px; justify-content: center;
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--wine-700);
  border-radius: var(--r-pill); font-weight: 600; font-size: 0.9rem; transition: background .2s, border-color .2s;
}
.cart-btn:hover { border-color: var(--wine-700); background: var(--wine-50); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* nascosto alla vista ma letto dai lettori di schermo */
.cart-badge {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--wine-700); color: var(--on-wine);
  font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--paper); transition: transform .3s var(--ease);
}
.cart-badge[data-count="0"] { display: none; }
.cart-badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.nav-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center; color: var(--wine-700);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (min-width: 560px) {
  .cart-btn { padding: 0 16px 0 14px; }
  .cart-btn-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .cart-badge { position: static; border: 0; }
}
@media (min-width: 1080px) {
  .main-nav { display: flex; align-items: center; gap: 2px; }
  .main-nav a {
    position: relative; padding: 10px 12px; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); border-radius: var(--r-pill);
    transition: color .2s;
  }
  .main-nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1px; background: var(--gold-500);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .main-nav a:hover { color: var(--wine-700); }
  .main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav a[aria-current="page"] { color: var(--wine-700); font-weight: 600; }
  .nav-toggle { display: none; }
  .brand-mark { width: 52px; }
}
@media (min-width: 1240px) {
  .brand-sub { display: block; }
  .main-nav a { padding-inline: 14px; }
}

/* ---------- Menu mobile ---------- */
.mnav {
  position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column;
  background: radial-gradient(130% 80% at 100% 0%, var(--wine-600), var(--wine-800) 50%, var(--wine-950));
  color: var(--on-wine); padding: 0 var(--gutter) 28px; isolation: isolate;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  overflow-y: auto; overscroll-behavior: contain;
}
.mnav::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; pointer-events: none; }
.mnav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease); }
.mnav-head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.mnav-head .brand-name { color: var(--on-wine); }
.mnav-close { width: 44px; height: 44px; border: 1px solid var(--line-on-wine); border-radius: 50%; background: transparent; color: var(--on-wine); display: inline-flex; align-items: center; justify-content: center; }
.mnav-close svg { width: 20px; height: 20px; }
.mnav-links { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: mnav; }
.mnav-links li { border-bottom: 1px solid var(--line-on-wine); }
.mnav-links a {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 2px;
  font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); font-weight: 500; color: var(--on-wine);
  transition: color .2s, padding-left .25s var(--ease);
}
.mnav-links a::before { counter-increment: mnav; content: "0" counter(mnav); font-family: var(--font-body); font-size: 0.72rem; letter-spacing: .14em; color: var(--gold-400); font-weight: 600; }
.mnav-links a[aria-current="page"] { color: var(--gold-300); font-style: italic; }
.mnav-links a:active { padding-left: 8px; }
.mnav-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 14px; }
.mnav-foot p { margin: 0; font-size: 0.85rem; color: var(--on-wine-3); }
.mnav-foot a { color: var(--on-wine-2); }
.mnav.is-open .mnav-links li { animation: rise .5s var(--ease) both; }
.mnav.is-open .mnav-links li:nth-child(2) { animation-delay: .04s; }
.mnav.is-open .mnav-links li:nth-child(3) { animation-delay: .08s; }
.mnav.is-open .mnav-links li:nth-child(4) { animation-delay: .12s; }
.mnav.is-open .mnav-links li:nth-child(5) { animation-delay: .16s; }
.mnav.is-open .mnav-links li:nth-child(6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; isolation: isolate; color: var(--on-wine-2);
  background: linear-gradient(180deg, var(--wine-900), var(--wine-950));
  padding: clamp(56px, 7vw, 88px) 0 28px;
}
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .06; mix-blend-mode: overlay; }
.footer-top { display: grid; gap: 40px; }
.footer-brand img { width: 84px; margin-bottom: 18px; }
.footer-brand .brand-name { color: var(--on-wine); font-size: 1.5rem; display: block; margin-bottom: 10px; }
.footer-brand p { color: var(--on-wine-3); font-size: 0.92rem; max-width: 38ch; margin: 0; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
.footer-col:last-child { grid-column: 1 / -1; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding: 6px 0; font-size: 0.92rem; color: var(--on-wine-2); transition: color .2s; word-break: break-word; }
.footer-col a:hover { color: var(--gold-300); }
.footer-news {
  margin-top: 44px; padding: 22px; border: 1px solid var(--line-on-wine); border-radius: 14px;
  background: rgba(255,255,255,.03); display: grid; gap: 16px;
}
.footer-news h4 { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); margin: 0 0 8px; font-weight: 600; }
.footer-news p { margin: 0; color: var(--on-wine-3); font-size: 0.9rem; }
.footer-news-campi { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.footer-news-campi input[type=email] {
  min-height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-on-wine);
  background: rgba(0,0,0,.18); color: var(--on-wine); font: inherit; font-size: 1rem; min-width: 0;
}
.footer-news-campi input[type=email]::placeholder { color: var(--on-wine-3); }
.footer-news-campi input[type=email]:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; }
.footer-news-campi .btn { min-height: 46px; }
.footer-news-ok { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--on-wine-2); cursor: pointer; line-height: 1.45; }
.footer-news-ok input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--gold-500); }
.footer-news-ok a { color: var(--gold-300); text-decoration: underline; }
.footer-news-stato { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; min-height: 1.2em; }
.footer-news-stato[data-tipo="ok"] { color: var(--gold-200); }
.footer-news-stato[data-tipo="err"] { color: #ffb4a8; }
@media (min-width: 900px) {
  .footer-news { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 32px; padding: 26px 30px; }
}
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-on-wine);
  display: flex; flex-direction: column; gap: 8px; font-size: 0.78rem; color: var(--on-wine-3);
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.1fr 1.6fr; gap: 64px; }
  .footer-cols { grid-template-columns: auto auto minmax(max-content, 1.3fr); }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- Drawer carrello ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 110; background: rgba(34, 3, 10, 0.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
/* Contenitore che ritaglia il drawer chiuso: evita che il pannello
   fuori schermo allarghi la pagina su mobile (scroll orizzontale). */
.drawer-clip { position: fixed; inset: 0; z-index: 111; overflow: hidden; pointer-events: none; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; pointer-events: auto; width: 100%; max-width: 440px;
  background: var(--paper); display: flex; flex-direction: column; box-shadow: var(--shadow-3);
  transform: translateX(100%); visibility: hidden;
  transition: transform .4s var(--ease), visibility 0s .4s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); min-height: var(--header-h); }
.drawer-head h2 { font-size: 1.35rem; margin: 0; }
.drawer-head h2 span { font-family: var(--font-body); font-size: 0.8rem; color: var(--ink-3); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--wine-700); color: var(--wine-700); }
.icon-btn svg { width: 18px; height: 18px; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--gutter); }
.drawer-foot { padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); display: grid; gap: 12px; }
.ship-meter { font-size: 0.8rem; color: var(--ink-2); }
.ship-meter-bar { height: 4px; border-radius: 4px; background: var(--paper-3); margin-top: 7px; overflow: hidden; }
.ship-meter-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--wine-600)); border-radius: inherit; transition: width .5s var(--ease); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; }
.drawer-total span:first-child { font-size: 0.85rem; color: var(--ink-3); }
.drawer-total strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.drawer-note { font-size: 0.75rem; color: var(--ink-3); margin: -4px 0 0; }

.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-thumb { width: 64px; height: 84px; border-radius: var(--r-sm); background: radial-gradient(80% 70% at 50% 60%, color-mix(in srgb, var(--acc, var(--gold-300)) 45%, var(--paper)), var(--paper-2)); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.cart-thumb img { height: 92%; width: auto; filter: drop-shadow(0 4px 4px rgba(34,3,10,.25)); }
.cart-line-name { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.cart-line-meta { font-size: 0.78rem; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.cart-line-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.cart-line-price { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.link-remove { border: 0; background: none; padding: 6px 0; font-size: 0.78rem; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.link-remove:hover { color: var(--err); }
.cart-empty { text-align: center; padding: 64px 12px; }
.cart-empty img { width: 56px; margin: 0 auto 16px; opacity: .55; }
.cart-empty p { color: var(--ink-3); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--white); }
.stepper button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.1rem; color: var(--wine-700); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.stepper button:hover { background: var(--wine-50); }
.stepper output, .stepper input { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; border: 0; background: none; padding: 0; width: 36px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--lg button { width: 44px; height: 44px; }

/* ---------- Toast ---------- */
.toast-region { position: fixed; z-index: 130; left: var(--gutter); right: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; justify-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: 460px; width: 100%;
  background: var(--wine-900); color: var(--on-wine); border: 1px solid var(--line-on-wine);
  padding: 12px 12px 12px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-3);
  transform: translateY(20px); opacity: 0; transition: transform .35s var(--ease), opacity .3s;
}
.toast.is-in { transform: none; opacity: 1; }
.toast-msg { flex: 1; font-size: 0.88rem; line-height: 1.4; }
.toast-msg b { color: var(--gold-300); font-weight: 600; }
.toast .btn { min-height: 38px; padding: 0 14px; font-size: 0.82rem; }
@media (min-width: 768px) { .toast-region { left: auto; right: 24px; bottom: 24px; justify-items: end; } }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 104px); overflow: hidden; }
.hero-inner { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-watermark { position: absolute; z-index: -1; right: -18%; top: 4%; width: min(78vw, 640px); height: auto; opacity: .06; pointer-events: none; }
.hero-title { margin-bottom: 20px; }
.hero-lede { color: var(--on-wine-2); font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.2rem); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 0.8rem; color: var(--on-wine-3); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold-400); }

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-watermark { right: -6%; top: -4%; }
}

/* ---------- Pilastri editoriali ---------- */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: pillar; }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pillar-num { grid-row: span 2; font-family: var(--font-display); font-style: italic; font-size: 2rem; line-height: 1; color: var(--gold-600); min-width: 44px; }
.pillar h3 { margin: 0; }
.pillar p { margin: 0; font-size: 0.95rem; }
@media (min-width: 900px) {
  .pillar { gap: 6px 28px; padding: 28px 0; }
  .pillar-num { font-size: 2.6rem; min-width: 64px; }
}
.split { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }

/* ---------- Confezioni (home) ---------- */
.packs { display: grid; gap: 16px; }
.pack {
  position: relative; padding: 28px 24px 24px; border-radius: var(--r-md);
  border: 1px solid var(--line-on-wine); outline: 1px solid var(--line-on-wine); outline-offset: -8px;
  background: linear-gradient(160deg, rgba(248,238,223,.06), rgba(248,238,223,0));
  display: grid; gap: 10px; transition: border-color .3s, transform .35s var(--ease);
}
.pack:hover { border-color: var(--gold-400); transform: translateY(-3px); }
.pack-kicker { font-size: 0.7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300); font-weight: 600; }
.pack h3 { margin: 0; font-size: 1.6rem; }
.pack p { margin: 0; font-size: 0.95rem; }
.pack-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.pack-price strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--on-wine); line-height: 1; }
.pack-price s { color: var(--on-wine-3); font-size: 0.95rem; }
.pack-save { font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; color: var(--wine-900); background: var(--gold-400); padding: 4px 9px; border-radius: var(--r-pill); }
.pack-bottles { position: absolute; right: 18px; top: 18px; display: flex; }
.pack-bottles img { height: 74px; width: auto; margin-left: -12px; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
@media (min-width: 768px) { .packs { grid-template-columns: 1fr 1fr; gap: 20px; } .pack { padding: 36px 32px 30px; } .pack-bottles img { height: 96px; } }

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg);
  padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 64px);
  background: radial-gradient(100% 120% at 0% 100%, var(--wine-600), var(--wine-800) 55%, var(--wine-950));
  color: var(--on-wine); display: grid; gap: 22px; align-items: center;
  border: 1px solid var(--wine-800); outline: 1px solid var(--line-on-wine); outline-offset: -10px;
}
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; }
.cta-band img.cta-mark { position: absolute; z-index: -1; right: -40px; bottom: -50px; width: 260px; height: auto; opacity: .08; }
.cta-band h2 { color: var(--on-wine); margin-bottom: 8px; }
.cta-band p { color: var(--on-wine-2); margin: 0; max-width: 52ch; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Intestazione pagina ---------- */
.page-head { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px); overflow: hidden; }
.page-head h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); }
.page-head .lede { margin-bottom: 0; }
/* Logo ufficiale nelle intestazioni: intero e visibile, mai tagliato dai bordi */
.page-head { position: relative; isolation: isolate; }
.page-head .hero-watermark {
  width: min(30vw, 150px); right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  top: 50%; translate: 0 -50%; opacity: .22;
}
@media (max-width: 759.98px) { .page-head .hero-watermark { top: 22px; translate: none; width: 92px; opacity: .16; } }
@media (min-width: 960px) { .page-head .hero-watermark { width: min(26vw, 300px); opacity: .2; } }
.chips { display: flex; gap: 8px; margin-top: 24px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--white); font-size: 0.85rem; font-weight: 500; color: var(--ink-2); transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--wine-700); color: var(--wine-700); }
.section--wine .chip { background: transparent; border-color: var(--line-on-wine); color: var(--on-wine-2); }
.section--wine .chip:hover { border-color: var(--gold-300); color: var(--on-wine); }

/* ---------- Dialog scheda birra ---------- */
.bdialog {
  --acc: var(--gold-400); --acc-dark: var(--wine-700);
  padding: 0; border: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  background: transparent; color: var(--ink); overflow: visible;
}
.bdialog::backdrop { background: rgba(34, 3, 10, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bdialog[open] { display: flex; align-items: flex-end; justify-content: center; }
.bdialog-shell {
  position: relative; width: 100%; height: 100%; background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
}
.bdialog-stage {
  position: relative; flex: none; height: min(46vh, 380px); display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 62%, color-mix(in srgb, var(--acc) 70%, transparent), transparent 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--acc-dark) 92%, black), var(--acc-dark));
  isolation: isolate;
}
.bdialog-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .08; mix-blend-mode: overlay; }
.bdialog-stage::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 3%; height: 6%; background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent); }
/* Bottiglia posizionata in assoluto: la sua altezza intrinseca non deve
   mai influenzare l'altezza della scheda (prima su desktop la "allungava"). */
.bdialog-bottle { position: absolute; z-index: 1; left: 0; right: 0; bottom: 4%; margin-inline: auto; height: 90%; width: auto; filter: drop-shadow(0 16px 18px rgba(0,0,0,.4)); will-change: transform; }
.bdialog-mark { position: absolute; z-index: -1; width: 70%; max-width: 340px; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: .07; }
.bdialog-close, .bdialog-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(248,238,223,.35); background: rgba(34,3,10,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--on-wine); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s;
}
.bdialog-close:hover, .bdialog-nav button:hover { background: rgba(34,3,10,.6); border-color: var(--gold-300); }
.bdialog-close svg, .bdialog-nav svg { width: 18px; height: 18px; }
.bdialog-close { position: absolute; z-index: 5; top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.bdialog-nav { position: absolute; z-index: 4; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; }
.bdialog-nav button { pointer-events: auto; }
.bdialog-count { position: absolute; z-index: 4; left: 16px; top: calc(20px + env(safe-area-inset-top)); font-size: 0.72rem; letter-spacing: .18em; color: rgba(248,238,223,.7); font-weight: 600; }

.bdialog-panel { padding: 26px var(--gutter) 0; flex: 1; display: flex; flex-direction: column; }
.bdialog-panel > * { animation: panel-in .55s var(--ease) both; }
.bdialog-panel > *:nth-child(2) { animation-delay: .05s; }
.bdialog-panel > *:nth-child(3) { animation-delay: .1s; }
.bdialog-panel > *:nth-child(4) { animation-delay: .15s; }
.bdialog-panel > *:nth-child(5) { animation-delay: .2s; }
.bdialog-panel > *:nth-child(n+6) { animation-delay: .24s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bdialog-kicker { font-size: 0.7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-700); font-weight: 600; margin-bottom: 8px; }
.bdialog-title { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); margin: 0; line-height: 1; }
.bdialog-tagline { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--gold-700); margin: 8px 0 18px; }
.bdialog-desc { font-size: 1rem; color: var(--ink-2); margin-bottom: 22px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 22px; border-block: 1px solid var(--line); }
.fact { padding: 14px 4px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt { font-size: 0.68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.fact dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
/* Note di profumo e sapore: riga intera sotto le tre colonne */
.fact--note { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.fact + .fact.fact--note { border-left: 0; }
.fact--note dd { font-style: italic; }

.detail { border-bottom: 1px solid var(--line); }
.detail summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; font-weight: 600; font-size: 0.95rem; min-height: 52px;
}
.detail summary::-webkit-details-marker { display: none; }
.detail summary::after {
  content: ""; width: 10px; height: 10px; border-right: 1.5px solid var(--wine-700); border-bottom: 1.5px solid var(--wine-700);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease); flex: none;
}
.detail[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.detail-body { padding-bottom: 18px; color: var(--ink-2); font-size: 0.95rem; }
.detail-body p { margin: 0; }
.nutri { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.nutri caption { text-align: left; font-size: 0.75rem; color: var(--ink-3); padding-bottom: 6px; }
.nutri th, .nutri td { padding: 8px 0; border-bottom: 1px dotted var(--line-strong); text-align: left; font-weight: 400; }
.nutri td { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.nutri tr.sub th { padding-left: 14px; color: var(--ink-3); }
.nutri tr:last-child th, .nutri tr:last-child td { border-bottom: 0; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); font-size: 0.88rem; line-height: 1.5; margin: 18px 0 0; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice strong { display: block; color: inherit; margin-bottom: 2px; }
.notice--wine { background: var(--wine-50); color: var(--wine-700); border: 1px solid var(--wine-100); }
.notice--gold { background: var(--gold-100); color: var(--gold-800); border: 1px solid var(--gold-200); }
.notice--err { background: var(--err-soft); color: var(--err); }
/* Disponibilità nella scheda birra */
.notice--out { background: #f3eee6; color: var(--ink-2); border: 1px solid var(--line); }
.notice--last { background: var(--gold-100); color: var(--gold-800); border: 1px solid var(--gold-200); }

.buybar {
  position: sticky; bottom: 0; z-index: 3; margin: 24px calc(var(--gutter) * -1) 0; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.buybar-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1; margin-right: auto; }
.buybar-price small { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 400; color: var(--ink-3); margin-top: 4px; }
.buybar .btn { flex: 1 1 160px; }

@media (min-width: 900px) {
  .bdialog[open] { align-items: center; padding: 32px; }
  .bdialog-shell {
    max-width: 1040px; height: min(88vh, 760px); border-radius: var(--r-lg);
    display: grid; grid-template-columns: 0.95fr 1.05fr; grid-template-rows: minmax(0, 1fr); overflow: hidden; box-shadow: var(--shadow-3);
  }
  .bdialog-stage { height: auto; }
  .bdialog-bottle { height: 84%; bottom: 6%; }
  .bdialog-panel { padding: 44px 44px 0; overflow-y: auto; overscroll-behavior: contain; }
  .buybar { margin-inline: -44px; padding-inline: 44px; }
  .bdialog-nav { left: 16px; right: 16px; }
}
@media (max-width: 899px) {
  .bdialog[open] .bdialog-shell { animation: sheet-up .45s var(--ease) both; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Configuratore tripack ---------- */
.builder { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow-1); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-md); border: 1.5px dashed var(--line-strong);
  background: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden;
  color: var(--ink-3); font-size: 0.75rem; transition: border-color .25s, background .25s; padding: 0;
}
.slot-num { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--gold-400); }
.slot.is-filled {
  border-style: solid; border-color: var(--line-gold);
  background: radial-gradient(70% 60% at 50% 65%, color-mix(in srgb, var(--acc, var(--gold-300)) 55%, transparent), transparent 72%), var(--paper);
  cursor: pointer; align-items: flex-end;
}
.slot.is-filled img { height: 88%; width: auto; filter: drop-shadow(0 6px 6px rgba(34,3,10,.25)); animation: drop-in .45s var(--ease); }
@keyframes drop-in { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
.slot-remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.slot-remove svg { width: 12px; height: 12px; }
.slot-label { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 0.7rem; font-weight: 600; color: var(--ink-2); z-index: 1; text-shadow: 0 1px 0 var(--paper); }
.builder-hint { font-size: 0.82rem; color: var(--ink-3); margin: 14px 0 10px; }
.picker { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(clamp(18px, 3vw, 32px) * -1); padding: 4px clamp(18px, 3vw, 32px) 8px; scroll-snap-type: x proximity; }
.picker::-webkit-scrollbar { display: none; }
.pick {
  position: relative; scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white);
  padding: 8px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  transition: border-color .2s, transform .2s var(--ease);
}
.pick:hover:not([disabled]) { border-color: var(--wine-700); }
.pick:active:not([disabled]) { transform: scale(.97); }
.pick img { height: 96px; width: auto; }
.pick b { font-size: 0.8rem; font-weight: 600; }
.pick-add { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--wine-700); color: var(--on-wine); display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; line-height: 1; }
.pick-count { position: absolute; top: 6px; left: 6px; min-width: 22px; height: 22px; border-radius: var(--r-pill); background: var(--gold-400); color: var(--wine-900); font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.pick[disabled] { opacity: .4; cursor: not-allowed; }
.builder-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.builder-summary { flex: 1 1 220px; font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; }
.builder-summary strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); font-weight: 600; }
.builder-summary s { color: var(--ink-3); font-size: 0.85rem; margin-left: 6px; }
.builder-actions { display: flex; gap: 8px; flex: 1 1 260px; justify-content: flex-end; }
.builder-actions .btn--primary { flex: 1; }
@media (min-width: 768px) {
  .slots { gap: 16px; max-width: 520px; }
  .picker { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; }
  .pick img { height: 120px; }
}
@media (min-width: 1000px) {
  .builder-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
  .builder-layout .slots { max-width: none; }
}

/* ---------- Cassa da 6 ---------- */
.case-options { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(clamp(18px, 3vw, 32px) * -1); padding: 4px clamp(18px, 3vw, 32px) 8px; border: 0; }
.case-options::-webkit-scrollbar { display: none; }
.case-opt { position: relative; }
.case-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.case-opt label {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--white); cursor: pointer; text-align: center; transition: border-color .2s, background .2s;
}
.case-opt img { height: 96px; width: auto; }
.case-opt span { font-size: 0.8rem; font-weight: 600; }
.case-opt input:checked + label { border-color: var(--wine-700); background: var(--wine-50); box-shadow: inset 0 0 0 1px var(--wine-700); }
.case-opt input:focus-visible + label { outline: 2px solid var(--gold-500); outline-offset: 2px; }
@media (min-width: 768px) {
  .case-options { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; }
  .case-opt img { height: 120px; }
}
.case-preview { display: flex; align-items: flex-end; gap: 0; height: 90px; margin-right: 6px; }
.case-preview img { height: 100%; width: auto; margin-left: -18px; filter: drop-shadow(0 4px 4px rgba(34,3,10,.2)); }
.case-preview img:first-child { margin-left: 0; }

/* ---------- Form ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow-1); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; gap: 18px 20px; } .field.full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--paper); font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--wine-700) 50%), linear-gradient(135deg, var(--wine-700) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:not([type="checkbox"]):hover, .field select:hover, .field textarea:hover { border-color: var(--wine-300); }
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine-600); background: var(--white); box-shadow: 0 0 0 4px rgba(88, 6, 13, 0.1); }
.field.error input, .field.error select, .field.error textarea { border-color: var(--err); background: #fffaf9; }
.field-error { font-size: 0.78rem; color: var(--err); font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
.field .check { font-weight: 400; font-size: 0.86rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--wine-700); }
.check a { color: var(--wine-700); text-decoration: underline; text-underline-offset: 3px; }
.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); font-size: 0.9rem; font-weight: 500; line-height: 1.45; }
.form-status.show { display: block; animation: rise .35s var(--ease); }
.form-status.ok { background: var(--ok-soft); color: var(--ok); }
.form-status.err { background: var(--err-soft); color: var(--err); }
.form-note { font-size: 0.78rem; color: var(--ink-3); margin: 14px 0 0; }

/* ---------- Contatti ---------- */
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line);
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.contact-card:hover { border-color: var(--line-gold); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.contact-ico { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--wine-700); color: var(--gold-300); display: inline-flex; align-items: center; justify-content: center; }
.contact-ico svg { width: 22px; height: 22px; }
.contact-card small { display: block; font-size: 0.68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.contact-card strong { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); word-break: break-all; margin-top: 2px; }
@media (min-width: 960px) { .contact-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; } }
.contact-layout > * + * { margin-top: 28px; }
@media (min-width: 960px) { .contact-layout > * + * { margin-top: 0; } }

/* ---------- Storia ---------- */
.chapters { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.chapter { position: relative; padding: 0 0 48px 0; }
.chapter-num { display: block; font-family: var(--font-display); font-style: italic; color: var(--gold-500); font-size: 1.8rem; line-height: 1; margin-bottom: 10px; }
.chapter h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); }
.chapter p { font-size: 1.04rem; }
@media (min-width: 900px) {
  .chapter { display: grid; grid-template-columns: 180px 1fr; gap: 40px; padding-bottom: 64px; }
  .chapter-num { font-size: 3rem; line-height: 1; border-top: 1px solid var(--line-gold); padding-top: 16px; }
  .chapter-body { border-top: 1px solid var(--line); padding-top: 20px; }
}
.pullquote {
  margin: 8px 0 56px; padding: 28px 0; border-block: 1px solid var(--line-gold);
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.3; color: var(--wine-700); text-align: center; text-wrap: balance;
}
.bottle-strip { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 18px); margin: 26px 0 8px; padding-bottom: 16px; position: relative; }
.bottle-strip::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 8px; height: 10px; background: radial-gradient(closest-side, rgba(34,3,10,.22), transparent); }
.bottle-strip img { height: clamp(120px, 26vw, 220px); width: auto; position: relative; z-index: 1; }

/* ---------- Associazione ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; border-top: 1px solid var(--line-on-wine); }
.stat { padding: 18px 8px 0 0; }
.stat + .stat { padding-left: 14px; border-left: 1px solid var(--line-on-wine); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 600; color: var(--on-wine); line-height: 1.1; }
.stat span { display: block; margin-top: 4px; font-size: 0.72rem; line-height: 1.4; color: var(--on-wine-3); letter-spacing: .04em; }

/* ---------- Checkout ---------- */
.checkout { display: grid; gap: 24px; }
.co-summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }
.co-summary h2 { font-size: 1.3rem; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.summary-line span:first-child { color: var(--ink-2); }
.summary-line span:last-child { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.summary-total span:first-child { font-weight: 600; }
.summary-total span:last-child { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.member-box { border: 1px solid var(--gold-300); background: var(--gold-100); border-radius: var(--r-md); padding: clamp(18px, 3vw, 24px); margin-bottom: 20px; }
.member-box h2 { font-size: 1.15rem; margin-bottom: 4px; }
.member-box p { font-size: 0.88rem; color: var(--gold-800); }
.member-box p a { text-decoration: underline; text-underline-offset: 3px; }
.member-box .field input { background: var(--white); }
.member-status { font-size: 0.85rem; font-weight: 600; margin-top: 10px; }
.member-status:empty { display: none; }
.member-status.ok { color: var(--ok); }
.member-status.err { color: var(--err); }
.trust { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.78rem; color: var(--ink-3); margin: 14px 0 0; text-align: center; }
.trust svg { width: 14px; height: 14px; flex: none; }
@media (min-width: 960px) {
  .checkout { grid-template-columns: 1.35fr 0.85fr; gap: 40px; align-items: start; }
  .checkout-main { grid-column: 1; grid-row: 1; }
  .co-summary { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- Testi legali ---------- */
.prose h2 { font-size: 1.35rem; margin-top: 36px; }
.prose ul { padding-left: 20px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose .todo { display: inline; background: var(--gold-100); color: var(--gold-800); padding: 1px 6px; border-radius: 4px; font-size: 0.85em; }

/* ---------- Successo ---------- */
.success { text-align: center; max-width: 560px; margin-inline: auto; }
.success img { width: 64px; margin: 0 auto 20px; }

/* ---------- Rivelazione allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Correzioni puntuali ---------- */
.mnav[hidden] { display: none; }
/* Fallback per browser senza color-mix(): sfondo pieno invece del gradiente tinto */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .slot.is-filled .slot-remove { background: var(--white); }
  .bdialog-stage { background: var(--wine-800); }
}
.builder-layout > * + * { margin-top: 18px; }
@media (min-width: 1000px) { .builder-layout > * + * { margin-top: 0; } }
@media (min-width: 900px) {
  .bdialog-close { top: 16px; right: 16px; background: var(--white); color: var(--ink); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bdialog-close:hover { background: var(--white); border-color: var(--wine-700); color: var(--wine-700); }
}

/* =========================================================
   v1.2 — LINE-UP DELLE BIRRE (ripresa dalla v2, nello stile v1.1)
   Ogni birra ha un pannello pieno nel colore della sua etichetta.
   Desktop: fila che si allarga sotto il mouse. Tablet e mobile:
   carosello a scorrimento con l'indice dei nomi.
   ========================================================= */
.lineup-tabs { display: flex; overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter); border-bottom: 1px solid var(--line); background: var(--paper); }
.lineup-tabs::-webkit-scrollbar { display: none; }
.lineup-tab { flex: none; height: 52px; padding: 0 12px; border: 0; background: none; font-family: var(--font-display); font-size: 1.08rem; font-weight: 500; color: var(--ink-3); position: relative; }
.lineup-tab:first-child { padding-left: 0; }
.lineup-tab[aria-current="true"] { color: var(--wine-700); font-weight: 600; }
.lineup-tab[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--wine-700); border-radius: 2px; }
.lineup-tab:first-child[aria-current="true"]::after { left: 0; }

.beerline {
  list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 420px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.beerline::-webkit-scrollbar { display: none; }
.beerline > li { scroll-snap-align: start; display: flex; }
.panel {
  --c: var(--paper-2); --i: var(--ink);
  position: relative; flex: 1; display: flex; flex-direction: column; text-align: left; border: 0;
  background: var(--c); color: var(--i); min-height: min(76svh, 620px); padding: 20px 22px 24px; overflow: hidden;
  font: inherit; -webkit-tap-highlight-color: transparent;
}
.panel-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 12px; }
.panel-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; }
.panel-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.panel-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid currentColor; border-radius: var(--r-pill); padding: 5px 10px; line-height: 1; white-space: nowrap; }
/* Disponibilità: pieno = terminata, con pallino = ultimi pezzi */
.panel-tag--out { background: var(--i); color: var(--c); border-color: var(--i); }
.panel-tag--last::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 7px; vertical-align: 1px; }
.panel.is-esaurita .panel-bottle img { filter: drop-shadow(0 14px 16px rgba(0,0,0,.28)) grayscale(.22); opacity: .82; }
.panel-bottle { flex: 1; position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 240px; margin: 10px 0 20px; }
.panel-bottle img { position: relative; z-index: 1; height: 100%; max-height: 430px; width: auto; transform-origin: bottom center; filter: drop-shadow(0 14px 16px rgba(0,0,0,.28)); transition: transform .7s var(--ease); }
.panel-bottle::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 48%; height: 16px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,0,0,.28), transparent); }
.panel-name { font-family: var(--font-display); font-size: clamp(2.3rem, 1.8rem + 1.6vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -0.015em; }
.panel-meta { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.panel-more { margin-top: 16px; padding-top: 14px; border-top: 1px solid currentColor; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 0.92rem; font-weight: 600; }
.panel-more em { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.05rem; }
.panel-more svg { width: 18px; height: 18px; flex: none; margin-top: 3px; transition: transform .35s var(--ease); }
.panel:hover .panel-more svg, .panel:focus-visible .panel-more svg { transform: translateX(4px); }
.panel:hover .panel-bottle img, .panel:focus-visible .panel-bottle img { transform: translateY(-8px) rotate(-1.5deg); }
.panel:focus-visible { outline: 2px solid currentColor; outline-offset: -8px; border-radius: 0; }

@media (min-width: 1100px) {
  .lineup-tabs { display: none; }
  .beerline { display: flex; overflow: visible; height: clamp(620px, 80vh, 780px); }
  .beerline > li { flex: 1 1 0; min-width: 0; transition: flex-grow .7s var(--ease); }
  .beerline > li:hover, .beerline > li:focus-within { flex-grow: 1.5; }
  .panel { min-height: 0; padding: 26px 28px 30px; }
  .panel-bottle img { max-height: none; height: 96%; }
  .panel-more { min-height: 5.4em; }
}

/* Versione "contenuta" per la home: stessi pannelli, dentro la griglia, angoli morbidi */
.lineup-frame { position: relative; }
@media (min-width: 1100px) {
  .beerline--contained { height: clamp(540px, 70vh, 660px); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-3); }
  .beerline--contained .panel-bottle img { height: 94%; }
}
@media (max-width: 1099px) {
  .lineup-frame { margin-inline: calc(var(--gutter) * -1); }
  .lineup-frame .lineup-tabs { background: transparent; }
}

/* ---------- Scheda: fondo pieno nel colore dell'etichetta ---------- */
.bdialog { --c: var(--wine-700); --i: var(--on-wine); }
.bdialog-stage { background: var(--c); color: var(--i); transition: background-color .5s var(--ease); }
.bdialog-stage::before { display: none; }
.bdialog-stage::after { left: 34%; right: 34%; bottom: 3%; height: 5%; background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); }
.bdialog-count { color: var(--i); opacity: 1; }
.bdialog-nav button, .bdialog-close { color: var(--i); border-color: color-mix(in srgb, var(--i) 45%, transparent); background: color-mix(in srgb, var(--c) 70%, transparent); }
.bdialog-nav button:hover, .bdialog-close:hover { border-color: var(--i); background: color-mix(in srgb, var(--c) 85%, black); }
.bdialog-close:focus-visible, .bdialog-nav button:focus-visible { outline-color: currentColor; }
@media (min-width: 900px) {
  .bdialog-close { color: var(--ink); border-color: var(--line); background: var(--white); }
  .bdialog-close:hover { color: var(--wine-700); border-color: var(--wine-700); background: var(--white); }
}

/* ---------- Tripack e carrello: colori delle etichette ---------- */
.slot.is-filled { background: var(--acc, var(--paper-2)); border-color: transparent; }
.slot.is-filled .slot-label { color: var(--i, var(--ink)); text-shadow: none; }
.slot.is-filled .slot-remove { background: color-mix(in srgb, var(--acc) 70%, white); border-color: transparent; color: var(--i, var(--ink)); }
.cart-thumb { background: var(--acc, var(--paper-2)); }

/* =========================================================
   v1.2 — HOME DINAMICA
   ========================================================= */

/* ---------- Ingresso dell'hero ---------- */
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Palco delle birre ---------- */
.stage { --c: var(--gold-400); --i: var(--wine-900); position: relative; width: 100%; max-width: 520px; margin-inline: auto; animation: rise 1s var(--ease) .2s both; }
.stage-visual { position: relative; aspect-ratio: 1 / 1.02; width: min(100%, 440px); margin-inline: auto; touch-action: pan-y; }
.stage-glow {
  position: absolute; inset: -12%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--c), transparent 70%); opacity: .38; filter: blur(30px);
  transition: background .9s var(--ease);
}
.stage-disc {
  position: absolute; left: 12%; right: 12%; top: 16%; aspect-ratio: 1; border-radius: 50%;
  background-color: var(--c);
  background-image: radial-gradient(circle at 32% 28%, rgba(255,255,255,.28), transparent 46%), radial-gradient(circle at 70% 85%, rgba(0,0,0,.22), transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 30px 60px -20px rgba(0,0,0,.55);
  transition: background-color .9s var(--ease);
}
.stage-ring {
  position: absolute; left: 4%; right: 4%; top: 8%; width: 92%; height: auto; aspect-ratio: 1; overflow: visible; pointer-events: none;
  animation: ring-spin 60s linear infinite; transform-origin: 50% 50%;
}
.stage-ring text { font-family: var(--font-body); font-size: 7.6px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; fill: var(--gold-300); opacity: .7; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.stage-floor { position: absolute; left: 30%; right: 30%; bottom: 2%; height: 6%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); filter: blur(4px); pointer-events: none; }
.stage-bottles { position: absolute; inset: 0 0 4% 0; display: block; z-index: 2; border-radius: 50%; }
.stage-bottles:focus-visible { outline-offset: -10%; }
.stage-bottles img {
  position: absolute; left: 50%; bottom: 0; height: 96%; width: auto; transform-origin: 50% 100%;
  opacity: 0; transform: translate(-50%, 34px) rotate(-4deg);
  filter: drop-shadow(0 22px 22px rgba(0,0,0,.4));
  transition: opacity .55s var(--ease), transform .9s var(--ease);
}
.stage-bottles img.is-active { opacity: 1; transform: translate(-50%, 0) rotate(0); transition-delay: .12s; }
.stage-bottles img.is-leaving { opacity: 0; transform: translate(-50%, -18px) rotate(5deg) scale(.96); transition-duration: .45s, .6s; transition-delay: 0s; }
.stage-bottles:hover img.is-active { transform: translate(-50%, -8px) rotate(-1.5deg); }

.stage-caption { display: grid; justify-items: center; text-align: center; gap: 2px; margin-top: 14px; min-height: 120px; }
.stage-caption.is-in > * { animation: rise .6s var(--ease) both; }
.stage-caption.is-in > :nth-child(2) { animation-delay: .06s; }
.stage-caption.is-in > :nth-child(3) { animation-delay: .12s; }
.stage-caption.is-in > :nth-child(4) { animation-delay: .18s; }
.stage-count { font-size: 0.72rem; font-weight: 700; letter-spacing: .2em; color: var(--gold-300); font-variant-numeric: tabular-nums; }
.stage-count span { color: var(--on-wine-3); }
.stage-name { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(2.2rem, 1.7rem + 2vw, 3.1rem); line-height: 1.05; color: var(--on-wine); }
.stage-style { font-size: 0.8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-wine-2); font-weight: 600; }
.stage-link { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--gold-300); border-bottom: 1px solid var(--line-on-wine); padding-bottom: 2px; transition: gap .2s var(--ease), border-color .2s; }
.stage-link svg { width: 16px; height: 16px; }
.stage-link:hover { gap: 12px; border-color: var(--gold-300); }

.stage-controls { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.stage-picker { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.stage-pick {
  position: relative; border: 0; background: none; padding: 10px 2px 12px; min-height: 44px; color: var(--on-wine-3);
  font-size: 0.76rem; font-weight: 600; letter-spacing: .02em; text-align: left; transition: color .3s;
}
.stage-pick:hover, .stage-pick[aria-current] { color: var(--on-wine); }
.stage-pick-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-pick-bar { position: absolute; left: 2px; right: 2px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--line-on-wine); overflow: hidden; }
.stage-pick-bar span { position: absolute; inset: 0; background: var(--c); transform-origin: left; transform: scaleX(0); }
.stage-pick[aria-current] .stage-pick-bar span { transform: scaleX(var(--from, 0)); }
.stage-pick.is-running .stage-pick-bar span { animation: stage-bar var(--dur, 5s) linear forwards; }
.is-static .stage-pick[aria-current] .stage-pick-bar span { transform: scaleX(1); }
@keyframes stage-bar { from { transform: scaleX(var(--from, 0)); } to { transform: scaleX(1); } }
.stage-toggle { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-on-wine); background: transparent; color: var(--on-wine); display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s; }
.stage-toggle:hover { border-color: var(--gold-300); }
.stage-toggle svg { width: 16px; height: 16px; }
.stage-toggle .i-play, .stage-toggle[aria-pressed="true"] .i-pause { display: none; }
.stage-toggle[aria-pressed="true"] .i-play { display: block; }
@media (min-width: 560px) { .stage-pick { font-size: 0.85rem; padding-inline: 4px; } }
@media (min-width: 960px) {
  .hero { padding-block: clamp(48px, 6vw, 80px) clamp(56px, 6vw, 88px); }
  .stage { max-width: 540px; }
  .stage-visual { width: min(100%, 470px); }
}

/* ---------- Nastro con i nomi ---------- */
.ribbon { background: var(--gold-300); color: var(--wine-800); overflow: hidden; border-block: 1px solid var(--gold-400); }
.ribbon-track { display: flex; width: max-content; animation: ribbon 38s linear infinite; }
.ribbon-set { display: flex; align-items: center; flex: none; }
.ribbon span { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem); padding: 14px 22px; white-space: nowrap; }
.ribbon i { font-style: normal; font-size: 0.9rem; color: var(--gold-700); }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- Line-up in home ---------- */
.section-head--split { max-width: none; display: grid; gap: 12px 48px; align-items: end; }
.section-head--split h2 { margin-bottom: 0; }
.section-head--split .lede { margin: 0; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr 1fr; } }
.home-lineup-foot { margin: 28px 0 0; }
@media (max-width: 1099px) {
  .beerline--contained { grid-auto-columns: min(78vw, 360px); gap: 10px; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 6px; }
  .beerline--contained > li { scroll-snap-align: start; }
  .beerline--contained .panel { min-height: min(64svh, 520px); border-radius: var(--r-md); }
  .beerline--contained .panel-bottle { min-height: 200px; }
  .beerline--contained .panel-bottle img { max-height: 320px; }
  .lineup-frame .lineup-tabs { border-bottom: 0; margin-bottom: 6px; }
}

/* ---------- Confezioni: bottiglie che si aprono a ventaglio ---------- */
.pack-bottles img { transition: transform .5s var(--ease); transform-origin: 50% 100%; }
.pack:hover .pack-bottles img:nth-child(1), .pack:focus-visible .pack-bottles img:nth-child(1) { transform: rotate(-10deg) translateX(-6px); }
.pack:hover .pack-bottles img:nth-child(2), .pack:focus-visible .pack-bottles img:nth-child(2) { transform: translateY(-6px); }
.pack:hover .pack-bottles img:nth-child(3), .pack:focus-visible .pack-bottles img:nth-child(3) { transform: rotate(10deg) translateX(6px); }

@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; }
  .stage-ring { animation: none; }
}

/* Nomi e prezzi leggibili anche quando la fila è stretta (1100–1440 px e home) */
.panel-meta { flex-wrap: wrap; row-gap: 4px; }
.panel-meta .panel-kicker { white-space: nowrap; }
@media (min-width: 1100px) {
  .panel-name { font-size: clamp(2.1rem, 2.9vw, 3rem); }
  .beerline--contained .panel { padding: 22px 22px 26px; }
  .beerline--contained .panel-name { font-size: clamp(1.9rem, 2.3vw, 2.5rem); }
  .beerline--contained .panel-kicker { letter-spacing: .12em; }
  .beerline--contained .panel-more { min-height: 6.2em; }
}

/* Hero su smartphone e tablet: il palco sale subito dopo il titolo,
   così la prima schermata mostra già una birra */
@media (max-width: 959px) {
  .hero-copy { display: contents; }
  .hero-inner { gap: 0; }
  .hero-copy > .eyebrow { order: 1; }
  .hero-title { order: 2; margin-bottom: 8px; }
  .stage { order: 3; margin-bottom: 28px; }
  .hero-lede { order: 4; }
  .hero-actions { order: 5; }
  .hero-meta { order: 6; }
  .stage-visual { width: min(100%, 340px); }
  .stage-caption { min-height: 0; margin-top: 8px; }
}
/* Schermi stretti: nell'indice restano le barre (il nome è già nella didascalia) */
@media (max-width: 479px) {
  .stage-pick { padding: 0; }
  .stage-pick-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stage-pick-bar { top: 50%; bottom: auto; height: 3px; margin-top: -1.5px; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .stage-picker { gap: 4px; }
  .stage-pick { font-size: 0.74rem; padding-inline: 1px; letter-spacing: 0; }
}

/* =========================================================
   v1.4 — selettore del tema, vetrina con richiesta d'ordine,
   modulo soci, statuto, collaborazioni
   ========================================================= */

/* ---------- Selettore del tema stagionale (icona del tema in temi/<id>/img/selettore-*.webp) ----------
   Su smartphone e tablet sta a sinistra del logo; su desktop (menu
   visibile) va a destra del Carrello. Al passaggio del mouse la
   bottiglia oscilla e la zucca si "accende"; acceso il tema, resta
   illuminata. Con "riduci movimento" niente oscillazione. */
.tema-switch {
  flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 6px; border: 0; background: none; cursor: pointer; border-radius: var(--r-pill);
}
.tema-switch-icon { position: relative; display: inline-block; line-height: 0; }
.tema-switch-icon::before { /* bagliore della candela dietro la bottiglia */
  content: ""; position: absolute; left: 50%; top: 58%; width: 34px; height: 34px; border-radius: 50%; transform: translate(-50%, -50%) scale(.6);
  background: radial-gradient(closest-side, rgba(255, 150, 40, .75), rgba(228, 106, 43, .25) 60%, transparent);
  opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none;
}
.tema-switch img {
  position: relative; display: block; width: 13px; height: 48px; transform-origin: 50% 92%;
  filter: saturate(.75) brightness(.92) drop-shadow(0 2px 2px rgba(0,0,0,.25));
  transition: filter .35s var(--ease), transform .35s var(--ease);
}
.tema-switch:hover img, .tema-switch:focus-visible img {
  filter: saturate(1.15) brightness(1.12) drop-shadow(0 0 6px rgba(255, 140, 30, .85));
  animation: zucca-dondola 1.1s ease-in-out infinite;
}
.tema-switch:hover .tema-switch-icon::before, .tema-switch:focus-visible .tema-switch-icon::before { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: zucca-candela 1.6s ease-in-out infinite; }
.tema-switch[aria-checked="true"] img { filter: saturate(1.15) brightness(1.1) drop-shadow(0 0 5px rgba(255, 140, 30, .8)); }
.tema-switch[aria-checked="true"] .tema-switch-icon::before { opacity: .85; transform: translate(-50%, -50%) scale(.9); }
@keyframes zucca-dondola {
  0%, 100% { transform: rotate(0) translateY(0); }
  20% { transform: rotate(-12deg) translateY(-2px); }
  45% { transform: rotate(10deg) translateY(-3px); }
  70% { transform: rotate(-6deg) translateY(-1px); }
}
@keyframes zucca-candela {
  0%, 100% { opacity: .9; } 30% { opacity: .55; } 55% { opacity: 1; } 75% { opacity: .7; }
}
.tema-switch-track { position: relative; width: 26px; height: 14px; border-radius: 999px; background: var(--paper-3); border: 1px solid var(--line-strong); transition: background .3s var(--ease); }
.tema-switch-track span { position: absolute; top: 1px; left: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .3s var(--ease); }
.tema-switch[aria-checked="true"] .tema-switch-track { background: #e46a2b; border-color: #b9501b; }
.tema-switch[aria-checked="true"] .tema-switch-track span { transform: translateX(12px); }
.main-nav a { white-space: nowrap; }
.header-inner:has(.tema-switch) .brand-sub { display: none; } /* libera spazio per il menu */
/* Smartphone e tablet: bottiglia a sinistra, logo accanto, azioni a destra */
.header-inner:has(.tema-switch) { justify-content: flex-start; }
.header-inner:has(.tema-switch) .header-actions { margin-left: auto; }
/* Desktop: bottiglia (con interruttore) subito a destra del Carrello */
@media (min-width: 1080px) {
  .header-inner:has(.tema-switch) .main-nav { margin-left: auto; }
  .header-inner:has(.tema-switch) .header-actions { margin-left: 0; }
  .tema-switch { order: 10; margin-left: -4px; }
}
@media (max-width: 1079px) {
  /* Su smartphone e tablet l'interruttore non serve: la zucca accesa indica il tema attivo */
  .tema-switch-track { display: none; }
  .tema-switch { margin-left: -6px; }
}
@media (max-width: 559px) { .header-inner { gap: 6px; } }
@media (prefers-reduced-motion: reduce) {
  .tema-switch img, .tema-switch-icon::before, .tema-switch-track, .tema-switch-track span { transition: none; }
  .tema-switch:hover img, .tema-switch:focus-visible img, .tema-switch:hover .tema-switch-icon::before, .tema-switch:focus-visible .tema-switch-icon::before { animation: none; }
}

/* ---------- Vetrina: niente prezzi ---------- */
.buybar-price--note { font-size: 1.15rem; }

/* ---------- Richiesta d'ordine ---------- */
.how-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.how-steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.how-steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--wine-700); color: var(--on-wine); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1rem; }
.how-steps span { font-size: 0.9rem; color: var(--ink-2); }
.how-steps strong { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 2px; }
@media (min-width: 768px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }
.form-intro { font-size: 0.9rem; color: var(--ink-3); margin: 4px 0 0; }
.member-box .field { margin: 0; }

/* Campo trappola per lo spam (Netlify): invisibile alle persone */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Scelte (radio) nei moduli ---------- */
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.choice-group legend { width: 100%; padding: 0; margin-bottom: 8px; font-size: 0.85rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); font-size: 0.92rem; cursor: pointer; transition: border-color .2s, background .2s; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--wine-700); }
.choice:has(input:checked) { border-color: var(--wine-700); background: var(--wine-50); }
.choice:has(input:focus-visible) { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.field.error .choice { border-color: var(--err); }
.form-sep { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-sep h3 { font-size: 1.1rem; margin: 0; }

/* ---------- Iscrizione soci ---------- */
.join { display: grid; gap: 28px; }
.join-intro .lede { margin-bottom: 18px; }
.join-points { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.join-points li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 0.95rem; }
.join-points li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-500); }
.join-points a, .join-note a { color: var(--wine-700); text-decoration: underline; text-underline-offset: 3px; }
.join-note { font-size: 0.88rem; color: var(--ink-3); background: var(--paper-2); border-radius: var(--r-sm); padding: 12px 14px; margin: 0; }
@media (min-width: 960px) {
  .join { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
  .join-intro { position: sticky; top: calc(var(--header-h) + 24px); }
}
.page-head .hero-actions { margin-top: 22px; }

/* ---------- Statuto ---------- */
.statuto { display: grid; gap: 32px; }
.statuto-index ol { margin: 0; padding-left: 1.4em; columns: 2 150px; column-gap: 24px; font-size: 0.88rem; }
.statuto-index li { margin-bottom: 6px; break-inside: avoid; }
.statuto-index a { color: var(--ink-2); }
.statuto-index a:hover { color: var(--wine-700); text-decoration: underline; }
.statuto-text { max-width: 72ch; }
.statuto-text h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-gold); }
.statuto-text h2:first-child { margin-top: 0; }
.statuto-text h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 24px 0 6px; scroll-margin-top: calc(var(--header-h) + 16px); }
.statuto-text p, .statuto-text li { color: var(--ink-2); font-size: 0.98rem; }
.statuto-text ul { padding-left: 1.2em; }
.statuto-text li { margin-bottom: 6px; }
@media (min-width: 960px) {
  .statuto { grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
  .statuto-index { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
  .statuto-index ol { columns: 1; }
}

/* ---------- Collaborazioni: caso Fratres ---------- */
.collab-case-grid { display: grid; gap: 28px; align-items: center; }
.collab-case-img { margin: 0; }
.collab-case-img img { display: block; width: 100%; height: auto; max-width: 540px; margin-inline: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.45)); }
.collab-case-img figcaption { text-align: center; font-size: 0.8rem; color: var(--on-wine-3); margin-top: 8px; }
.collab-custom { margin-top: 24px; padding: 20px; border: 1px solid var(--line-on-wine); border-radius: var(--r-md); background: rgba(0,0,0,.15); }
.collab-custom h3 { font-size: 1.2rem; margin-bottom: 8px; }
.collab-custom p { font-size: 0.95rem; }
.collab-custom a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
@media (min-width: 960px) { .collab-case-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.field .choice input[type="radio"] { appearance: auto; -webkit-appearance: radio; flex: none; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; }
.field input::placeholder { text-transform: none; }

/* ---------- Canale WhatsApp (pallino con il logo) ---------- */
.wa-chip { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 16px 6px 6px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.wa-chip:hover { border-color: #25a35a; transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(37, 163, 90, .8); }
.wa-chip-logo { position: relative; flex: none; display: inline-block; line-height: 0; }
.wa-chip-logo img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold-400); }
.wa-chip-badge { position: absolute; right: -4px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; background: #25a35a; color: #25a35a; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--white); }
.wa-chip-badge svg { width: 13px; height: 13px; color: #fff; }
.wa-chip-badge svg path { fill: #fff; }
.wa-chip-badge svg circle { fill: #25a35a; }
.wa-chip-text { display: grid; line-height: 1.2; text-align: left; }
.wa-chip-text small { font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.wa-chip-text strong { font-size: 0.95rem; font-weight: 600; }
.wa-chip--dark { background: rgba(255,255,255,.04); border-color: var(--line-on-wine); color: var(--on-wine); }
.wa-chip--dark .wa-chip-text small { color: var(--gold-300); }
.wa-chip--dark .wa-chip-badge { box-shadow: 0 0 0 2px var(--wine-900); }
.footer-brand .wa-chip { margin-top: 14px; }
.mnav-foot .wa-chip { margin-bottom: 14px; }
.contact-card--wa .contact-ico { background: none; position: relative; }
.contact-card--wa .contact-ico img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold-400); }
.contact-card--wa .wa-chip-badge { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .wa-chip { transition: none; } .wa-chip:hover { transform: none; } }

/* =========================================================
   v1.7 — profili social (Instagram, TikTok), piccole correzioni
   ========================================================= */
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-on-wine); color: var(--on-wine-2); background: rgba(255, 255, 255, .03);
  transition: color .2s, border-color .2s, transform .25s var(--ease);
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { color: var(--gold-300); border-color: var(--gold-300); transform: translateY(-2px); }
.mnav-social { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.mnav-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.mnav-social svg { width: 20px; height: 20px; flex: none; }
.is-upper { text-transform: uppercase; }
.btn.is-loading[disabled] { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .social-link { transition: none; } .social-link:hover { transform: none; } }
/* Spazio riservato a barra 18+ e header prima che partials.js li inserisca:
   evita lo "scatto" della pagina al caricamento (CLS) */
div#site-header { display: block; min-height: calc(45px + var(--header-h)); }
@media (min-width: 560px) { div#site-header { min-height: calc(30px + var(--header-h)); } }
/* Con la striscia "in arrivo" (temi/<id>/in-arrivo.js) l'header è più alto: spazio riservato anche per lei */
html[data-in-arrivo] body:not([data-page="checkout"]):not([data-page="success"]) div#site-header { min-height: calc(45px + 44px + var(--header-h)); }
@media (min-width: 560px) { html[data-in-arrivo] body:not([data-page="checkout"]):not([data-page="success"]) div#site-header { min-height: calc(30px + 44px + var(--header-h)); } }
/* Catalogo e line-up li genera lineup.js: spazio riservato anche qui */
.beerline:empty { min-height: min(82svh, 670px); }
@media (max-width: 1099px) { .lineup-tabs:empty { min-height: 53px; } }

/* =======================================================
   v1.8 — disponibilità, modulo "Avvisami", verifica età
   ======================================================= */

/* Finestra piccola riusabile (modulo "Avvisami quando torna") */
.minidialog { border: none; padding: 0; background: transparent; max-width: min(460px, calc(100vw - 32px)); width: 100%; color: var(--ink); }
.minidialog::backdrop { background: rgba(32, 8, 10, .62); backdrop-filter: blur(3px); }
.minidialog-shell { position: relative; background: var(--paper); border-radius: var(--r-md); padding: 28px 24px 24px; box-shadow: 0 30px 70px rgba(32, 8, 10, .3); }
.minidialog-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink-2); cursor: pointer; }
.minidialog-close svg { width: 18px; height: 18px; }
.minidialog-close:hover { background: var(--wine-50); color: var(--wine-700); }
.minidialog h2 { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; margin: 2px 0 10px; }
.minidialog-lede { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; margin-bottom: 18px; }
.minidialog .form-grid { gap: 14px; }
.buybar--out .buybar-price { opacity: .72; }

/* Disponibilità nel palco della home */
.stage-stock { display: inline-block; margin-top: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-radius: var(--r-pill); padding: 5px 11px; line-height: 1; }
.stage-stock--esaurita { background: rgba(255,255,255,.14); color: var(--on-wine-2); border: 1px solid rgba(255,255,255,.3); }
.stage-stock--ultimi { background: var(--gold-500); color: #2b1d07; }

/* ---------- Verifica della maggiore età (js/eta.js) ---------- */
/* Finché la verifica non è fatta la pagina resta nascosta: niente
   lampo di contenuto prima della schermata. Senza JavaScript
   l'attributo non viene mai messo e il sito si vede normalmente. */
html[data-eta] body > *:not(#eta-gate):not(#fenice-intro) { visibility: hidden; }
html[data-eta] body { overflow: hidden; }

#eta-gate {
  position: fixed; inset: 0; z-index: 9000; visibility: visible;
  display: grid; place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  background: #140406; color: var(--on-wine);
  font-family: var(--font-body);
}
.eta-sfondo {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 70% at 50% 108%, rgba(175, 32, 42, .5), transparent 70%),
    radial-gradient(70% 55% at 50% -10%, rgba(88, 6, 13, .75), transparent 72%),
    linear-gradient(180deg, #170406, #0d0203 60%, #1b0507);
}
.eta-card {
  position: relative; width: 100%; max-width: 432px; text-align: center;
  animation: eta-su .55s cubic-bezier(.2,.8,.2,1) both;
}
/* Solo movimento, nessuna partenza da opacity:0: un testo trasparente al primo
   disegno impedisce a Chrome di registrare il First Contentful Paint, e la
   pagina risulta "senza contenuto" agli strumenti di misura (Lighthouse). */
@keyframes eta-su { from { transform: translateY(16px); } to { transform: none; } }
.eta-sfondo { animation: eta-velo .5s ease both; }
@keyframes eta-velo { from { opacity: .4; } to { opacity: 1; } }
.eta-logo { width: 160px; height: auto; margin: 0 auto 18px; display: block; filter: drop-shadow(0 10px 30px rgba(175, 32, 42, .45)); }
.eta-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 10px; }
#eta-gate h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.4rem + 1.7vw, 2.25rem); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 12px; color: var(--on-wine); }
#eta-gate h1 em { font-style: italic; color: var(--gold-400, #c9a05f); }
.eta-lede { color: var(--on-wine-2); font-size: 0.95rem; line-height: 1.55; margin-bottom: 22px; }

/* Età: una bottiglia da riempire (si trascina la birra, niente tastiera) */
.eta-anni { text-align: center; margin: 0 0 6px; }
.eta-anni-et { font-size: 0.66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-wine-2); margin: 0 0 10px; }
.eta-anni-riga { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.eta-anni-riga > .eta-passo { justify-self: end; }
.eta-anni-lato { justify-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.eta-anni-valore { display: flex; align-items: baseline; gap: 6px; margin: 0; line-height: 1; }
#eta-anni-num {
  min-width: 2ch; text-align: right; font-family: var(--font-display); font-size: 2.9rem; font-weight: 600; color: var(--on-wine);
  font-variant-numeric: tabular-nums; transition: color .25s;
}
.is-maggiorenne #eta-anni-num { color: var(--gold-300); }
.eta-anni-unita { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--on-wine-2); }

.eta-bottiglia {
  position: relative; width: 88px; height: 250px; cursor: ns-resize; touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; border-radius: 14px;
}
.eta-bottiglia:focus { outline: none; }
.eta-bottiglia:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 6px; }
/* bagliore caldo dietro la bottiglia: cresce con la birra (--carica 0→1, da js/eta.js) */
.eta-bottiglia::before {
  content: ""; position: absolute; inset: 10% -46% -4%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(243, 165, 30, .34), transparent);
  opacity: calc(.25 + var(--carica, 0) * .85); transform: scale(calc(.85 + var(--carica, 0) * .3));
}
#eta-gate.is-centanni .eta-bottiglia::before { background: radial-gradient(closest-side, rgba(255, 214, 102, .55), transparent); }
.eta-bottiglia-svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.eta-vetro { fill: rgba(248, 238, 223, .06); }
.eta-vetro-bordo { fill: none; stroke: rgba(248, 238, 223, .55); stroke-width: 1.4; }
.eta-pelo { fill: none; stroke: #fff4c9; stroke-opacity: .55; stroke-width: .9; }
.eta-schiuma { fill: url(#eta-spuma); }
.eta-bolla { fill: rgba(255, 250, 232, .7); stroke: rgba(255, 255, 255, .5); stroke-width: .25; }
.eta-bottiglia-logo { opacity: .95; }
.eta-bottiglia-scritta { fill: #fbf2e1; font-family: var(--font-display); font-size: 7px; font-weight: 600; letter-spacing: .14em; }
.eta-bottiglia-scritta--piccola { font-family: var(--font-body); font-size: 4.6px; font-weight: 700; letter-spacing: .3em; opacity: .85; }

/* Trabocco (da 90 anni): corona di schiuma sulla bocca e colate lungo il vetro */
.eta-corona-bolla { fill: #fffaf0; stroke: #ecd29a; stroke-width: .5; }
.eta-collare { fill: #fffaf0; stroke: #ecd29a; stroke-width: .5; }
.eta-colata { fill: none; stroke: #fff6e2; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 .6px .4px rgba(120, 70, 10, .35)); }
.eta-goccia { fill: #fff6e2; stroke: #ecd29a; stroke-width: .4; }

/* Il tappo a corona: salta a 90 anni, torna giù se si scende */
.eta-tappo { transform-box: fill-box; transform-origin: 50% 50%; }
.eta-bottiglia.is-stappata .eta-tappo { animation: eta-stappo .75s cubic-bezier(.2, .7, .35, 1) forwards; }
@keyframes eta-stappo {
  0% { transform: none; opacity: 1; }
  12% { transform: translate(0, -3px) rotate(-6deg); }
  100% { transform: translate(34px, -96px) rotate(560deg) scale(.8); opacity: 0; }
}
.eta-bottiglia.is-ritappata .eta-tappo { animation: eta-ritappo .32s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes eta-ritappo { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.eta-pop { fill: none; stroke: #fff6e2; stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.eta-bottiglia.is-stappata .eta-pop { animation: eta-pop .55s ease-out; }
@keyframes eta-pop { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(2.6); } }

/* A 100 anni: il brindisi, spruzzi di schiuma tutto intorno */
.eta-spruzzo { fill: #fffaf0; opacity: 0; }
.eta-bottiglia.is-brindisi .eta-spruzzo { animation: eta-spruzzo .9s cubic-bezier(.15, .7, .3, 1) both; }
@keyframes eta-spruzzo {
  0% { opacity: 0; transform: none; }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 22px)) scale(.4); }
}
#eta-gate.is-centanni #eta-anni-num { color: #ffd166; text-shadow: 0 0 18px rgba(255, 209, 102, .55); }
#eta-gate.is-centanni .eta-anni-stato { color: #ffd166; }
.eta-bottiglia.is-brindisi .eta-bottiglia-svg { animation: eta-brindisi .6s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes eta-brindisi { 0% { transform: none; } 30% { transform: rotate(-5deg) translateY(-3px); } 65% { transform: rotate(3deg); } 100% { transform: none; } }

.eta-anni-stato { margin: 12px 0 0; min-height: 1.4em; font-size: 0.86rem; font-weight: 600; color: var(--gold-300); }
.eta-anni-stato.is-no { color: #ffb4a8; }
.eta-passo {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(248, 238, 223, .3);
  background: rgba(248, 238, 223, .06); color: var(--on-wine); font: inherit; font-size: 1.35rem; line-height: 1; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background .2s, border-color .2s;
}
.eta-passo:hover { background: rgba(248, 238, 223, .12); border-color: var(--gold-500); }
.eta-passo:active { transform: scale(.95); }
.eta-passo:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.eta-btn:disabled { opacity: .4; cursor: not-allowed; }
.eta-btn:disabled:hover { background: var(--gold-500); }
@media (prefers-reduced-motion: reduce) {
  .eta-bottiglia.is-stappata .eta-tappo { animation: none; opacity: 0; }
  .eta-bottiglia.is-ritappata .eta-tappo, .eta-bottiglia.is-stappata .eta-pop,
  .eta-bottiglia.is-brindisi .eta-spruzzo, .eta-bottiglia.is-brindisi .eta-bottiglia-svg { animation: none; }
}

.eta-errore { display: none; font-size: 0.86rem; line-height: 1.45; text-align: center; color: #ffb4a8; margin-top: 10px; }
.eta-errore.is-on { display: block; }

.eta-news { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(248, 238, 223, .16); text-align: left; }
.eta-news-titolo { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; margin-bottom: 12px; color: var(--on-wine); }
.eta-campo { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-wine-2); margin-bottom: 6px; }
.eta-campo span { font-weight: 500; letter-spacing: .06em; text-transform: none; opacity: .75; }
#eta-email {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid rgba(248, 238, 223, .26); background: rgba(248, 238, 223, .07);
  color: var(--on-wine); font: inherit; font-size: 1rem;
}
#eta-email::placeholder { color: rgba(248, 238, 223, .42); }
#eta-email:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.eta-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 0.86rem; line-height: 1.5; color: var(--on-wine-2); cursor: pointer; }
.eta-check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--gold-500); }
.eta-mini { font-size: 0.78rem; line-height: 1.5; color: rgba(248, 238, 223, .62); margin-top: 12px; }
.eta-mini a, .eta-nota a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.eta-btn {
  width: 100%; min-height: 54px; margin-top: 22px; border: 0; border-radius: var(--r-pill);
  background: var(--gold-500); color: #2b1d07; font: inherit; font-size: 1.02rem; font-weight: 700;
  letter-spacing: .02em; cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease);
}
.eta-btn:hover { background: var(--gold-400, #c9a05f); }
.eta-btn:active { transform: scale(.985); }
.eta-btn:focus-visible { outline: 2px solid var(--on-wine); outline-offset: 3px; }
.eta-btn.is-loading { opacity: .75; cursor: progress; }
.eta-nota { font-size: 0.74rem; line-height: 1.55; color: rgba(248, 238, 223, .5); margin-top: 18px; }

#eta-gate.is-uscita { animation: eta-via .42s cubic-bezier(.4,0,.2,1) both; pointer-events: none; }
@keyframes eta-via { to { opacity: 0; transform: scale(1.03); } }

/* Animazione d'ingresso (js/intro.js) */
#fenice-intro { position: fixed; inset: 0; z-index: 9500; visibility: visible; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .eta-card, .eta-sfondo { animation: none; }
  #eta-gate.is-uscita { animation-duration: .2s; }
  .eta-btn { transition: none; }
}
.eta-card:focus { outline: none; }
/* Schermi bassi: tutto un po' più compatto, così "Entra" resta a portata */
@media (max-height: 880px) {
  .eta-logo { width: 128px; margin-bottom: 12px; }
  #eta-gate h1 { font-size: clamp(1.55rem, 1.3rem + 1.2vw, 1.95rem); }
  .eta-lede { margin-bottom: 16px; font-size: 0.9rem; }
  .eta-news { margin-top: 16px; padding-top: 15px; }
  .eta-btn { margin-top: 16px; }
  .eta-nota { margin-top: 12px; }
}
@media (max-width: 380px) {
  .eta-logo { width: 116px; margin-bottom: 10px; }
  #eta-email, .eta-btn { min-height: 48px; }
  .eta-bottiglia { width: 74px; height: 210px; }
  #eta-anni-num { font-size: 2.5rem; }
}

/* ---------- Transizioni tra le pagine (v1.12) ----------
   Passando da una pagina all'altra del sito, il contenuto sfuma e
   sale appena, mentre intestazione e striscia restano ferme.
   Browser recenti (View Transitions tra documenti); gli altri le
   ignorano. Spente con "riduci movimento". */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: intestazione; }
  ::view-transition-old(root) { animation: vt-esce .28s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-entra .55s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes vt-esce { to { opacity: 0; transform: translateY(-10px); } }
  @keyframes vt-entra { from { opacity: 0; transform: translateY(16px); } }
}

/* Collaborazioni (v1.13): il caso Fratres viene subito dopo l'intestazione,
   staccato da un filetto oro e da un fondo appena più profondo */
.collab-case--primo { background-color: var(--wine-900, #3a0409); border-top: 1px solid var(--line-on-wine); }
