/* ==========================================================================
   Cantine Storiche — stile
   Palette presa dalla carta originale: ardesia scura + oro paglierino
   ========================================================================== */
:root {
  --bg: #202b2d;
  --bg-deep: #1a2426;
  --bg-raise: #263235;
  --line: rgba(214, 196, 150, .28);
  --line-soft: rgba(214, 196, 150, .14);
  --gold: #d6c496;
  --gold-2: #b9a674;
  --cream: #f1ece0;
  --text: #e6e0d1;
  --muted: #a49e8c;
  --nat: #9bc15a;
  --rosso: #6e1f2a;
  --bianco: #d9cf8f;
  --rose: #d99a9a;
  --bolle: #e6d49a;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  --wrap: 1120px;
  --tabbar: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; scroll-padding-bottom: var(--tabbar); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: 13px;
  color: var(--gold);
  margin: 0 0 14px;
}
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  color: var(--cream);
  margin: 0 0 20px;
  letter-spacing: -.01em;
}
.h2 em { color: var(--gold); font-weight: 400; }
.lead { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 0;
  font-family: var(--serif); font-size: 15px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid var(--gold);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: var(--bg); font-weight: 600; }
.btn-gold:hover { background: var(--cream); border-color: var(--cream); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: rgba(214, 196, 150, .1); }
.btn-sm { padding: 10px 16px; font-size: 13px; letter-spacing: .12em; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(14px + env(safe-area-inset-top)) 28px 14px;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(26, 36, 38, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line-soft); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold); opacity: 0; transition: opacity .4s; }
.nav.scrolled .nav-brand { opacity: 1; }
.nav-brand span { font-family: var(--serif); letter-spacing: .28em; text-transform: uppercase; font-size: 14px; }
.nav-logo { width: 22px; height: 30px; color: var(--gold); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--serif); font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--text); position: relative; padding: 4px 0;
}
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .35s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--gold); }
.nav .install-btn { padding: 9px 16px; font-size: 12px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  overflow: hidden; isolation: isolate; padding: 110px 24px 220px;
}
.frame { position: absolute; inset: 28px; border: 1px solid var(--line); pointer-events: none; z-index: 1; }
.vine { position: absolute; z-index: 2; pointer-events: none; height: auto; }
.vine-tl { top: 0; left: 0; width: clamp(150px, 22vw, 300px); transform-origin: top left; animation: sway 9s ease-in-out infinite; }
.vine-r { top: 14%; right: 0; width: clamp(130px, 19vw, 260px); transform-origin: top right; animation: sway 11s ease-in-out infinite reverse; }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(1.4deg); } }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: min(42vh, 46vw); min-height: 180px; object-fit: cover; object-position: center top; z-index: 0; opacity: .85; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgba(32, 43, 45, .55)); z-index: 0; }
.hero-inner { position: relative; z-index: 3; text-align: center; max-width: 760px; }
.hero-inner::before { content: ""; position: absolute; inset: -12% -18%; z-index: -1; background: radial-gradient(closest-side, rgba(32, 43, 45, .92), rgba(32, 43, 45, .6) 60%, transparent); pointer-events: none; }
.hero-logo { width: 92px; height: 125px; color: var(--gold); margin: 0 auto 26px; display: block; }
.hero-logo path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-title {
  font-family: var(--serif); font-weight: 400; color: var(--cream);
  font-size: clamp(46px, 10vw, 120px); line-height: .95; margin: 0 0 22px; letter-spacing: .02em;
}
.hero-claim {
  font-family: var(--serif); font-style: italic; color: var(--gold);
  font-size: clamp(19px, 2.6vw, 26px); letter-spacing: .14em; margin: 0 0 38px; line-height: 1.5;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- SECTIONS ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 140px) 0; }
.section-head { margin-bottom: 44px; }

.storia { background: var(--bg); }
.storia-text p { font-size: 21px; line-height: 1.7; color: var(--text); margin: 0 0 1.1em; }
.storia-text strong { color: var(--cream); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 64px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.stats > div { background: var(--bg); padding: 30px 20px; text-align: center; }
.stat-n { display: block; font-family: var(--serif); font-size: clamp(44px, 7vw, 72px); color: var(--gold); line-height: 1; }
.stat-l { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.proverb { background: var(--bg-deep); text-align: center; padding: 110px 24px; border-block: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.proverb-logo { position: absolute; width: 380px; height: 520px; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--gold); opacity: .06; }
.proverb blockquote { margin: 0; position: relative; }
.proverb p { font-family: var(--serif); font-size: clamp(34px, 6vw, 58px); color: var(--cream); line-height: 1.2; margin: 0 0 22px; }
.proverb footer { font-style: italic; color: var(--gold); font-size: 20px; letter-spacing: .04em; }

/* ---------- CUCINA: carta da leggere in verticale ---------- */
.wine-types {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
  margin: 0 -24px 34px; padding-inline: 24px; scroll-snap-type: x proximity;
}
.wine-types::-webkit-scrollbar { display: none; }

.food-layout { position: relative; }
.food-card { max-width: 680px; margin: 0 auto; }

/* indice laterale (desktop) */
.food-index { display: none; }
.food-index-title { font-family: var(--serif); text-transform: uppercase; letter-spacing: .32em; font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.food-index ol, .food-toc-panel ol { list-style: none; margin: 0; padding: 0; }
.food-index a {
  display: block; padding: 8px 0 8px 16px; border-left: 1px solid var(--line-soft);
  font-family: var(--serif); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35;
  color: var(--muted); text-decoration: none; transition: color .25s var(--ease), border-color .25s var(--ease);
}
.food-index a:hover { color: var(--cream); }
.food-index a[aria-current] { color: var(--gold); border-left-color: var(--gold); }

/* indice a tendina (mobile) */
.food-toc { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 20; margin: 0 0 48px; }
.food-toc-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  background: rgba(32, 43, 45, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); padding: 12px 16px;
  font-family: var(--serif); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.food-toc-caret { transition: transform .25s var(--ease); }
.food-toc.open .food-toc-caret { transform: rotate(180deg); }
.food-toc-panel {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-raise); border: 1px solid var(--line); border-top: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45); max-height: calc(100svh - 160px - var(--tabbar)); overflow-y: auto;
  animation: up .25s var(--ease);
}
.food-toc-panel[hidden] { display: none; }
.food-toc-panel a {
  display: block; padding: 13px 20px; border-bottom: 1px solid var(--line-soft); text-decoration: none;
  font-family: var(--serif); font-size: 19px; color: var(--cream);
}
.food-toc-panel li:last-child a { border-bottom: 0; }
.food-toc-panel a[aria-current] { color: var(--gold); font-style: italic; }

/* blocchi categoria */
.food-block { scroll-margin-top: 70px; }
.fb-head { text-align: center; margin-bottom: 44px; }
.fb-orn { display: block; width: 18px; height: 24px; margin: 0 auto 14px; color: var(--gold); opacity: .85; }
.fb-head h3 { font-family: var(--serif); font-weight: 500; font-variant: small-caps; text-transform: lowercase; letter-spacing: .26em; color: var(--gold); font-size: 26px; line-height: 1.2; margin: 0; }
.fb-line { width: 72px; height: 1px; background: var(--gold); margin: 16px auto 0; opacity: .8; }

.fb-list { display: grid; gap: 34px; }
.fb-list.compact { gap: 14px; }
.fb-sep { display: flex; align-items: center; justify-content: center; gap: 18px; max-width: 420px; margin: clamp(80px, 11vw, 120px) auto; }
.fb-sep span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.fb-sep span:last-child { background: linear-gradient(90deg, var(--line), transparent); }
.fb-sep i { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); opacity: .8; }

.mi { position: relative; }
.mi.firma { border: 1px solid var(--line); padding: 26px 24px 22px; margin-top: 6px; background: rgba(214, 196, 150, .03); }
.mi-head { display: flex; align-items: baseline; gap: 12px; }
.mi-name { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--cream); }
.mi-dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-5px); min-width: 20px; }
.mi-price { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); white-space: nowrap; }
.mi-desc { margin: 6px 0 0; font-style: italic; color: var(--muted); font-size: 17px; line-height: 1.55; }
.mi-note { display: inline-block; margin-top: 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.badge {
  position: absolute; top: 0; left: 24px; transform: translateY(-50%);
  font-family: var(--serif); font-style: normal; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  background: var(--bg); border: 1px solid var(--gold); color: var(--gold); padding: 2px 10px; white-space: nowrap;
}
.fb-list.compact .mi-name { font-size: 21px; font-weight: 500; }
.fb-list.compact .mi-price { font-size: 20px; }

@media (min-width: 640px) {
  .fb-list.compact { grid-template-columns: 1fr 1fr; gap: 14px 48px; }
}
@media (min-width: 901px) {
  .food-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; }
  .food-index { display: block; position: sticky; top: 110px; align-self: start; }
  .food-toc { display: none; }
  .food-block { scroll-margin-top: 30px; }
}

/* ---------- VINI ---------- */
.vini { background: var(--bg-deep); border-top: 1px solid var(--line-soft); }
.wine-types { margin-bottom: 22px; }
.wtype {
  flex: 1 0 auto; min-width: 140px; display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--line-soft); padding: 14px 18px; cursor: pointer; text-align: left;
  transition: border-color .25s, background .25s;
}
.wtype svg { width: 16px; height: 46px; flex: none; }
.wtype strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--cream); line-height: 1.1; }
.wtype small { color: var(--muted); font-size: 14px; }
.wtype[aria-selected="true"] { border-color: var(--gold); background: var(--bg-raise); }
.wtype[aria-selected="true"] strong { color: var(--gold); }

.wine-tools { display: flex; gap: 10px; margin-bottom: 16px; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 0 14px; background: var(--bg); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.6; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 17px; padding: 12px 0; }
.search input::placeholder { color: var(--muted); font-style: italic; }
.search:focus-within { border-color: var(--gold); }
#wineSort { background: var(--bg); color: var(--text); border: 1px solid var(--line); padding: 0 14px; font: inherit; font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  border: 1px solid var(--line); background: none; cursor: pointer; padding: 6px 14px; border-radius: 99px;
  font-style: italic; font-size: 16px; color: var(--text); transition: all .2s;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--bg); border-color: var(--gold); font-style: normal; }
.chip.nat { color: var(--nat); border-color: rgba(155, 193, 90, .4); font-style: normal; }
.chip.nat[aria-pressed="true"] { background: var(--nat); color: var(--bg); }
.chip-hint { min-height: 1.6em; margin: 0 0 26px; color: var(--gold); font-style: italic; font-size: 17px; }

.wine-group { margin-bottom: 40px; }
.wg-title {
  display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-weight: 500;
  font-size: 30px; color: var(--cream); margin: 0 0 6px;
}
.wg-title::before, .wg-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wg-count { text-align: center; color: var(--muted); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 16px; }
.wine-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.wine {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 16px; align-items: center; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--line-soft); padding: 16px 4px; text-align: left; cursor: pointer;
  transition: background .2s;
}
.wine:hover { background: rgba(214, 196, 150, .05); }
.wine svg { width: 18px; height: 54px; }
.w-name { font-family: var(--serif); font-size: 21px; line-height: 1.2; color: var(--cream); display: block; }
.w-name b { font-weight: 600; }
.w-meta { display: block; color: var(--muted); font-size: 15px; font-style: italic; margin-top: 3px; }
.w-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.w-tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); padding: 1px 8px; }
.w-tag.nat { color: var(--nat); border-color: rgba(155, 193, 90, .4); }
.w-price { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 22px; white-space: nowrap; }
.w-price.ask { font-size: 14px; letter-spacing: .1em; }
.empty { text-align: center; color: var(--muted); font-style: italic; padding: 40px 0; }
.legend { color: var(--muted); font-size: 15px; text-align: center; margin-top: 20px; }
.nat-dot { color: var(--nat); }

/* bottle colours */
.b-bollicine { --b-fill: var(--bolle); --b-line: #8a7a4a; --b-label: #f6efd8; --b-cap: #c9a54a; }
.b-rossi { --b-fill: var(--rosso); --b-line: #a24a55; --b-label: #e9e1cc; --b-cap: #3d0f16; }
.b-bianchi { --b-fill: var(--bianco); --b-line: #8f8650; --b-label: #f6efd8; --b-cap: #6d6a3a; }
.b-rose { --b-fill: var(--rose); --b-line: #a4646a; --b-label: #f6efd8; --b-cap: #9c4b55; }

/* ---------- SHEET ---------- */
.sheet { border: 0; padding: 0; background: transparent; max-width: 620px; width: 100%; margin: auto; color: var(--text); }
.sheet::backdrop { background: rgba(10, 14, 15, .7); backdrop-filter: blur(4px); }
.sheet[open] .sheet-inner { animation: up .35s var(--ease); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-inner { position: relative; background: var(--bg); border: 1px solid var(--line); padding: 40px 34px 34px; outline: 1px solid var(--line-soft); outline-offset: -10px; }
.sheet-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 32px; line-height: 1; color: var(--gold); cursor: pointer; padding: 6px 10px; }
.sh-top { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; }
.sh-top svg { width: 34px; height: 100px; flex: none; }
.sh-photo { width: 80px; height: 180px; object-fit: contain; flex: none; }
.sh-kicker { color: var(--gold); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 6px; }
.sh-title { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; color: var(--cream); margin: 0; }
.sh-price { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 28px; margin-top: 6px; }
.sh-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0 0 22px; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.sh-dl dt { color: var(--gold-2); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; padding-top: 3px; }
.sh-dl dd { margin: 0; font-style: italic; color: var(--cream); }
.sh-key { text-align: center; padding: 18px; border: 1px solid var(--line-soft); margin-bottom: 18px; }
.sh-key span { display: block; color: var(--muted); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.sh-key strong { display: block; font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--gold); font-style: italic; }
.sh-key em { display: block; color: var(--muted); font-size: 16px; }
.sh-story { font-style: italic; color: var(--text); font-size: 18px; margin: 0; }
.sh-story.ask { color: var(--muted); }

/* ---------- BAR ---------- */
.bar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bar-card { border: 1px solid var(--line-soft); padding: 32px 28px; background: var(--bg); position: relative; }
.bar-card h3 { font-family: var(--serif); font-weight: 500; color: var(--gold); font-size: 26px; margin: 0 0 18px; }
.bar-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; }
.bar-row span:first-child { font-size: 17px; color: var(--cream); }
.bar-row .mi-dots { transform: translateY(-4px); }
.bar-row .mi-price { font-size: 19px; }

/* ---------- VISITA ---------- */
.visita { background: var(--bg-deep); border-top: 1px solid var(--line-soft); overflow: hidden; }
.visita .frame { inset: 20px; }
.visita-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.visita-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.orari { border: 1px solid var(--line); padding: 34px; background: var(--bg); }
.orari h3 { font-family: var(--serif); font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-size: 16px; margin: 0 0 20px; text-align: center; }
.orari dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; }
.orari dt { color: var(--cream); }
.orari dd { margin: 0; color: var(--muted); font-style: italic; text-align: right; }

/* ---------- FOOTER ---------- */
.footer { text-align: center; padding: 70px 24px 60px; border-top: 1px solid var(--line-soft); }
.footer-logo { width: 46px; height: 62px; color: var(--gold); margin: 0 auto 18px; display: block; }
.footer-name { font-family: var(--serif); color: var(--gold); font-size: 14px; margin: 0 0 8px; }
.footer-small { font-size: 15px; margin: 4px 0; font-style: italic; }

/* ---------- TABBAR (mobile) ---------- */
.tabbar { display: none; }

/* ---------- INSTALL BANNER ---------- */
.install-banner {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom));
  max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 14px;
  background: var(--bg-raise); border: 1px solid var(--line); padding: 14px 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  animation: up .5s var(--ease);
}
/* L'attributo hidden vince sempre (es. .btn ha display: inline-flex che altrimenti lo annulla) */
[hidden] { display: none !important; }
.ib-share { width: 17px; height: 17px; vertical-align: -3px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ib-logo { width: 26px; height: 36px; color: var(--gold); flex: none; }
.ib-text { flex: 1; font-size: 15px; line-height: 1.35; }
.ib-text strong { display: block; color: var(--cream); font-family: var(--serif); font-size: 18px; font-weight: 600; }
.ib-text span { color: var(--muted); }
.ib-close { background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; padding: 0 4px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: calc(var(--i, 0) * 120ms + 300ms); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .wine-rows { grid-template-columns: 1fr; }
  .bar-grid { grid-template-columns: 1fr; }
  .visita-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  :root { --tabbar: 64px; }
  body { font-size: 17px; }
  .nav { padding-inline: 16px; }
  .nav .install-btn { display: none; }
  .wrap { padding: 0 16px; }
  .wine-types { margin-inline: -16px; padding-inline: 16px; }
  .frame { inset: 14px; }
  .hero { padding-bottom: 170px; }
  .vine-tl { width: 118px; }
  .vine-r { width: 96px; top: auto; bottom: 150px; }
  .hills { height: 200px; }
  .hero-logo { width: 70px; height: 95px; }
  .hero-cta .btn { width: 100%; }
  .storia-text p { font-size: 19px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { padding: 22px; display: flex; align-items: baseline; gap: 14px; justify-content: center; }
  .stat-l { margin: 0; }
  .wtype { min-width: 130px; padding: 12px 14px; }
  .wtype strong { font-size: 20px; }
  .wine-tools { flex-direction: column; }
  #wineSort { padding: 12px 14px; }
  .wg-title { font-size: 26px; }
  .w-name { font-size: 19px; }
  .sheet { margin: auto 0 0; max-width: none; }
  .sheet-inner { padding: 34px 22px calc(26px + env(safe-area-inset-bottom)); max-height: 88svh; overflow: auto; }
  .sh-title { font-size: 27px; }
  .orari { padding: 26px 20px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(26, 36, 38, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-soft);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.active { color: var(--gold); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-logo path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
@media (display-mode: standalone) { .install-btn, .install-banner { display: none !important; } }
