/* =========================================================
   Otto Ettari · Montecucco Sangiovese DOCG
   ========================================================= */

:root {
  --ink: #0d0908;
  --ink-2: #160f0e;
  --ink-3: #231816;
  --wine: #4a0f1b;
  --ruby: #8a1d31;
  --ruby-2: #b13a4f;
  --gold: #c9a66b;
  --gold-2: #e6cc9b;
  --cream: #f4ede2;
  --paper: #efe6d8;
  --paper-2: #e5d8c4;
  --text-dark: #1e1613;
  --muted-dark: #6e5f56;
  --line-dark: rgba(30, 22, 19, .14);
  --text-light: #f4ede2;
  --muted-light: rgba(244, 237, 226, .64);
  --line-light: rgba(244, 237, 226, .16);

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

body {
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
address { font-style: normal; }

::selection { background: var(--ruby); color: var(--cream); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.section--paper .eyebrow { color: var(--ruby); }

.display, .mega, .h1, .h2, .statement, .quote {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -.01em;
}
.display {
  font-size: clamp(68px, 12.5vw, 210px);
  line-height: .86;
}
.display .line, .mega .line { display: block; }
.display em, .mega em { color: var(--gold-2); font-weight: 300; }
.display em { font-size: .62em; margin-top: .12em; letter-spacing: 0; }

.mega {
  font-size: clamp(54px, 9.2vw, 156px);
  line-height: .9;
}
.mega em { font-size: .7em; margin-top: .06em; }

.h1 {
  font-size: clamp(56px, 9vw, 148px);
  line-height: .92;
}
.h2 {
  font-size: clamp(42px, 5.6vw, 88px);
  line-height: .98;
  margin-bottom: 34px;
}
.h1 em, .h2 em { color: var(--ruby); font-weight: 300; }
.section--ink .h1 em, .section--ink .h2 em, .vini .h1 em, .olio .h1 em { color: var(--gold-2); }

.lead {
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.35;
  color: var(--cream);
  margin-top: 30px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(13, 9, 8, .6), 0 2px 24px rgba(13, 9, 8, .7);
}
.lead-dark {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.3;
  color: var(--text-dark);
  max-width: 820px;
  margin: 34px auto 0;
}
.lead-dark em { color: var(--ruby); }

.body {
  font-size: clamp(15.5px, 1.1vw, 17.5px);
  line-height: 1.75;
  color: var(--muted-light);
  max-width: 560px;
}
.body + .body { margin-top: 18px; }
.section--paper .body { color: var(--muted-dark); }
.body em { color: var(--text-dark); font-family: var(--serif); font-size: 1.2em; }

.statement {
  font-size: clamp(30px, 4.4vw, 70px);
  line-height: 1.1;
  color: var(--text-dark);
  max-width: 1180px;
}
.statement em { color: var(--ruby); }
.statement--light { color: var(--text-light); }
.statement--light em { color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--cream); }
.btn--line { border: 1px solid currentColor; }
.btn--line:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.section--paper .btn--line:hover { background: var(--text-dark); color: var(--cream); border-color: var(--text-dark); }
.section--paper .btn--solid { background: var(--ruby); color: var(--cream); }
.section--paper .btn--solid:hover { background: var(--text-dark); }

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 95;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: opacity 1s var(--ease), visibility 1s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__eight { width: 96px; height: 128px; overflow: visible; }
.loader__eight text {
  font-family: var(--serif);
  font-size: 160px;
  font-weight: 300;
  fill: transparent;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw 2.4s var(--ease-in-out) forwards, fillIn 1s 1.8s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: var(--gold-2); stroke-opacity: 0; } }
.loader__meta {
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.loader__count b { font-weight: 500; color: var(--cream); font-variant-numeric: tabular-nums; }
.loader__bar { width: min(220px, 60vw); height: 1px; background: var(--line-light); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform .4s var(--ease); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 100;
  height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .6s var(--ease), border-color .6s var(--ease), backdrop-filter .6s var(--ease), transform .7s var(--ease), opacity .7s var(--ease);
}
.nav.is-scrolled {
  background: rgba(16, 11, 10, .55);
  border-color: rgba(244, 237, 226, .1);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}
.nav.is-hidden { transform: translateY(-120%); opacity: 0; }
body.is-loading .nav { opacity: 0; transform: translateY(-20px); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); }
.brand__eight {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  font-weight: 400;
  color: var(--gold-2);
  margin-top: -6px;
}
.brand__name {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.nav__links { display: flex; justify-content: center; gap: clamp(18px, 2.2vw, 36px); }
.nav__links a {
  position: relative;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(244, 237, 226, .78);
  padding: 8px 0;
  transition: color .4s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__shop { color: var(--cream); min-height: 42px; }

.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; }
.nav__burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--cream);
  transition: transform .6s var(--ease), top .6s var(--ease);
}
.nav__burger span:nth-child(1) { top: 19px; }
.nav__burger span:nth-child(2) { top: 26px; }
body.menu-open .nav__burger span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  padding: calc(var(--nav-h) + 60px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-in-out);
  visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  font-family: var(--serif);
  font-size: clamp(44px, 11vw, 80px);
  line-height: 1.08;
  font-weight: 300;
  display: flex;
  align-items: baseline;
  gap: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), color .4s;
}
.menu__links a small { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.menu__links a:hover { color: var(--gold-2); }
body.menu-open .menu__links a { opacity: 1; transform: none; }
body.menu-open .menu__links a:nth-child(1) { transition-delay: .25s; }
body.menu-open .menu__links a:nth-child(2) { transition-delay: .3s; }
body.menu-open .menu__links a:nth-child(3) { transition-delay: .35s; }
body.menu-open .menu__links a:nth-child(4) { transition-delay: .4s; }
body.menu-open .menu__links a:nth-child(5) { transition-delay: .45s; }
body.menu-open .menu__links a:nth-child(6) { transition-delay: .5s; }
.menu__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted-light); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Scroll journeys (canvas frame scrub) ---------- */
.journey { position: relative; height: var(--len, 700vh); background: var(--ink); }
.journey--hero { --len: 820vh; }
.journey--cantina { --len: 420vh; }

.journey__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.journey__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.journey__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 50%, rgba(13, 9, 8, 0) 40%, rgba(13, 9, 8, .55) 100%),
    linear-gradient(180deg, rgba(13, 9, 8, .38) 0%, rgba(13, 9, 8, 0) 22%, rgba(13, 9, 8, 0) 70%, rgba(13, 9, 8, .5) 100%);
}

.beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--gutter) 110px;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform, filter;
  text-shadow: 0 2px 30px rgba(13, 9, 8, .45), 0 0 80px rgba(13, 9, 8, .25);
}
.beat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(56% 44% at 50% 50%, rgba(13, 9, 8, .42), rgba(13, 9, 8, 0) 72%);
}
.beat--title::before { background: radial-gradient(62% 46% at 50% 36%, rgba(13, 9, 8, .5), rgba(13, 9, 8, 0) 74%); }
.beat--card::before { display: none; }
.beat .eyebrow { color: var(--gold-2); text-shadow: 0 1px 3px rgba(13, 9, 8, .55), 0 0 22px rgba(13, 9, 8, .6); }
.beat.is-live .btn { pointer-events: auto; }
.beat .btn { margin-top: 44px; text-shadow: none; }
.beat--title .display { margin-top: 4px; }
.beat--title { justify-content: flex-start; padding-top: clamp(120px, 17vh, 190px); }
.beat--card { padding-inline: var(--gutter); }

.glass-card {
  width: min(760px, 100%);
  padding: clamp(32px, 4.4vw, 56px) clamp(26px, 4.6vw, 64px);
  border-radius: 26px;
  background: rgba(20, 13, 11, .34);
  border: 1px solid rgba(244, 237, 226, .16);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  text-shadow: none;
}
.glass-card .eyebrow { margin-bottom: 18px; }
.glass-card__text {
  font-family: var(--serif);
  font-size: clamp(25px, 3.1vw, 42px);
  line-height: 1.2;
  font-weight: 400;
  color: var(--cream);
}
.glass-card__text em { color: var(--gold-2); }

.chapters {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  display: flex;
  gap: 18px;
  align-items: stretch;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cream);
}
.chapters ol { list-style: none; display: flex; flex-direction: column; gap: 10px; order: 2; }
.chapters li { opacity: .38; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.chapters li b { font-weight: 500; color: var(--gold); margin-right: 8px; }
.chapters li.is-active { opacity: 1; transform: translateX(4px); }
.chapters__bar { width: 1px; background: rgba(244, 237, 226, .2); position: relative; order: 1; }
.chapters__bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(244, 237, 226, .8);
  transition: opacity .6s var(--ease);
}
.scroll-hint i { width: 1px; height: 54px; background: rgba(244, 237, 226, .22); position: relative; overflow: hidden; }
.scroll-hint i::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 40%;
  background: var(--gold-2);
  animation: hint 2.2s var(--ease-in-out) infinite;
}
@keyframes hint { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
.scroll-hint.is-gone { opacity: 0; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(110px, 15vw, 220px) 0; }
.section--paper { background: var(--paper); color: var(--text-dark); }
.section--ink { background: var(--ink); color: var(--text-light); }
.wrap { width: min(1320px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* split words (scroll-scrubbed highlight) */
.split-words .w { display: inline-block; opacity: .14; transition: opacity .5s var(--ease); }
.split-words .w.on { opacity: 1; }

/* split lines (mask reveal) */
.split-lines .ln { display: block; overflow: hidden; padding: 0 .06em .24em; margin: 0 -.06em -.24em; } /* room for italic descenders (g, q) */
.split-lines .ln > span { display: block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.split-lines.in .ln > span { transform: none; }
.split-lines.in .ln:nth-child(2) > span { transition-delay: .12s; }
.split-lines.in .ln:nth-child(3) > span { transition-delay: .24s; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.reveal-mask { overflow: hidden; clip-path: inset(14% 8% 14% 8% round 6px); transition: clip-path 1.6s var(--ease); }
.reveal-mask img { transform: scale(1.18); transition: transform 2s var(--ease); }
.reveal-mask.in { clip-path: inset(0 0 0 0 round 6px); }
.reveal-mask.in img { transform: scale(1.04); }

[data-parallax] { will-change: transform; }

/* bottle-silhouette reveal (clip-path driven by scroll in main.js) */
.bottle-reveal { overflow: hidden; }
.bottle-reveal.is-done { clip-path: inset(0 round 6px) !important; }
.bottle-reveal img { will-change: transform, filter; }
.bottle-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
  color: var(--gold-2);
}
.section--paper .bottle-line { color: var(--ruby); }
.bottle-line path { fill: none; stroke: currentColor; stroke-width: 2.6; vector-effect: non-scaling-stroke; } /* half of it sits inside the clip */
.bottle-wrap { position: relative; }

/* ---------- Intro / stats ---------- */
.intro .statement { margin-top: 6px; }
.stats {
  margin-top: clamp(80px, 10vw, 150px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 34px 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--line-dark); }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(64px, 7.6vw, 124px);
  line-height: .9;
  font-weight: 300;
  color: var(--ruby);
  font-variant-numeric: lining-nums;
}
.stat__label { font-size: 14px; line-height: 1.5; color: var(--muted-dark); max-width: 230px; }

/* ---------- Terroir ---------- */
.terroir__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.terroir__media { height: min(78vh, 760px); position: relative; }
.terroir__media img, .uve__media img, .famiglia__wide img, .olio__media img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
}
.timeline {
  margin-top: clamp(90px, 11vw, 160px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
  padding-top: 40px;
}
.timeline__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-light); }
.timeline__line i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease); }
.timeline.in .timeline__line i { transform: scaleX(1); }
.timeline__item { display: flex; flex-direction: column; gap: 10px; position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  top: -45px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--gold);
}
.timeline__item b { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; color: var(--gold-2); }
.timeline__item span { font-size: 14px; color: var(--muted-light); max-width: 240px; }

/* ---------- Uve ---------- */
.uve { padding-bottom: 0; overflow: hidden; }
.uve__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.uve__media { position: relative; aspect-ratio: 4 / 5; }
.aromi { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--line-dark); }
.aromi h3 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 30px; color: var(--ruby); margin-bottom: 8px; }
.aromi p { font-size: 15px; color: var(--muted-dark); }

.marquee {
  margin-top: clamp(90px, 10vw, 150px);
  padding: 34px 0 40px;
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee__track span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 1.1;
  color: var(--text-dark);
  padding: 0 .55em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 1.1em;
}
.marquee__track span::after { content: "✦"; font-style: normal; font-size: .28em; color: var(--ruby); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cantina journey ---------- */
.journey--cantina .beat--headline { justify-content: flex-end; padding-bottom: clamp(90px, 14vh, 160px); }
.journey--cantina .beat--final { justify-content: flex-start; padding-top: clamp(130px, 18vh, 200px); }
.beat--side { align-items: flex-start; }
.beat--side .glass-card { width: min(560px, 100%); text-align: left; }
@media (max-width: 760px) {
  .beat--side { align-items: center; justify-content: flex-end; padding-bottom: 70px; }
  .beat--side .glass-card { text-align: center; }
}

/* ---------- Famiglia ---------- */
.famiglia__head { text-align: center; }
.famiglia__head .h1 { margin-top: 4px; }
.famiglia__wide {
  position: relative;
  height: min(88vh, 900px);
  margin: clamp(70px, 9vw, 130px) var(--gutter) 0;
}
.famiglia__wide figcaption {
  position: absolute;
  left: 28px; bottom: 24px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
}
.famiglia__story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 100px);
  margin-top: clamp(70px, 8vw, 120px);
}
.famiglia__story .body { max-width: none; font-size: clamp(16px, 1.25vw, 19px); }

.people {
  margin-top: clamp(80px, 9vw, 140px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.person {
  padding: 40px 34px 46px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: background-color .6s var(--ease);
}
.person:not(:nth-child(3n + 1)) { padding-left: 34px; border-left: 1px solid var(--line-dark); }
.person__mono {
  display: inline-grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid var(--ruby);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ruby);
  margin-bottom: 26px;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.person:hover .person__mono { background: var(--ruby); color: var(--cream); }
.person h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--text-dark); }
.person__role { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ruby); margin: 10px 0 16px; }
.person p:last-child { font-size: 15px; color: var(--muted-dark); line-height: 1.7; }

.quote-block { margin-top: clamp(110px, 13vw, 200px); text-align: center; }
.quote {
  font-size: clamp(40px, 6vw, 100px);
  line-height: 1.04;
  font-style: italic;
  color: var(--text-dark);
  max-width: 1100px;
  margin: 0 auto;
}
.quote em { color: var(--ruby); }
.award {
  margin: clamp(60px, 7vw, 100px) auto 0;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 26px;
  text-align: left;
  padding: 26px 30px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}
.award__seal {
  flex: none;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ruby);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 28px;
}
.award p { font-size: 15px; color: var(--muted-dark); }
.award b { color: var(--text-dark); font-weight: 600; }

/* ---------- Vini (horizontal scroll) ---------- */
.vini {
  position: relative;
  background:
    radial-gradient(90% 70% at 70% 40%, rgba(110, 22, 40, .55), rgba(13, 9, 8, 0) 70%),
    linear-gradient(180deg, #1a1110 0%, #241414 55%, #140d0c 100%);
  color: var(--text-light);
}
.vini__sticky { position: relative; padding: clamp(110px, 13vw, 180px) 0 80px; }
.vini__head { padding: 0 var(--gutter); display: flex; align-items: flex-end; gap: 30px 60px; flex-wrap: wrap; justify-content: space-between; }
.vini__head .eyebrow { width: 100%; margin-bottom: 0; }
.vini__head .h1 { flex: 1 1 auto; }
.vini__hint { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-light); padding-bottom: 14px; }
.vini__track {
  display: flex;
  gap: clamp(18px, 2vw, 30px);
  padding: clamp(50px, 6vw, 80px) var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.vini__track::-webkit-scrollbar { display: none; }
.vini__intro {
  display: none;
  flex: 0 0 min(560px, 40vw);
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(30px, 4vw, 70px);
}
.vini__intro .h1 { margin-bottom: 28px; }
.vini__lead { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.35; color: rgba(244, 237, 226, .8); max-width: 420px; }
.vini__scroll { margin-top: 34px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.vini__scroll span { display: inline-block; margin-left: 8px; animation: nudge 1.8s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.vini__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.vini__track.is-dragging * { pointer-events: none; }

.wine {
  flex: 0 0 clamp(286px, 25vw, 380px);
  scroll-snap-align: start;
  border-radius: 22px;
  background: rgba(244, 237, 226, .035);
  border: 1px solid rgba(244, 237, 226, .1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .8s var(--ease), border-color .6s var(--ease), background-color .6s var(--ease);
}
.wine.is-tilting { transition: transform .15s linear, border-color .6s var(--ease), background-color .6s var(--ease); }
.wine:hover { border-color: rgba(230, 204, 155, .4); background: rgba(244, 237, 226, .06); }
/* media box has the exact 3:4 ratio of the packshots: the bottle is never cropped */
.wine__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #1b1312; }
.wine__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 50% 88%; transition: transform 1.4s var(--ease); }
.wine:hover .wine__media img { transform: scale(1.035); }
.wine__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(42% 32% at var(--mx, 50%) var(--my, 30%), rgba(255, 236, 200, .16), rgba(255, 236, 200, 0) 70%);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.wine:hover .wine__media::after { opacity: 1; }
.wine__index { position: absolute; top: 18px; left: 20px; z-index: 2; font-family: var(--serif); font-style: italic; font-size: 18px; color: rgba(244, 237, 226, .55); }
.wine__body { padding: 26px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.wine__type { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.wine h3 { font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1.05; margin: 8px 0 12px; }
.wine__notes { font-size: 14.5px; line-height: 1.65; color: var(--muted-light); }
.wine__meta { list-style: none; margin: 16px 0 22px; font-size: 12.5px; color: rgba(244, 237, 226, .52); display: grid; gap: 4px; }
.wine__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(244, 237, 226, .1); }
.wine__price { font-family: var(--serif); font-size: 34px; color: var(--gold-2); line-height: 1; }
.wine__foot .btn { min-height: 40px; padding: 0 18px; }

.wine--info { padding: 36px 32px; justify-content: center; gap: 18px; background: transparent; border-style: dashed; }
.wine--info:hover { transform: none; }
.wine--info .wine--info__big { font-family: var(--serif); font-size: clamp(36px, 3vw, 46px); line-height: 1.08; color: var(--cream); }
.wine--info__big em { color: var(--gold-2); }
.wine--info p { font-size: 14.5px; color: var(--muted-light); }
.wine--info a { color: var(--gold-2); border-bottom: 1px solid currentColor; }
.wine--info .small { font-size: 12px; color: rgba(244, 237, 226, .45); }

.vini__progress { margin: 36px var(--gutter) 0; height: 1px; background: var(--line-light); position: relative; overflow: hidden; }
.vini__progress i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* Desktop: pinned horizontal scroll driven by vertical scroll */
@media (min-width: 1000px) and (min-height: 700px) and (hover: hover) {
  .vini.is-pinned .vini__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 86px 0 30px; overflow: hidden; }
  .vini.is-pinned .vini__head { display: none; }
  .vini.is-pinned .vini__track { overflow: visible; scroll-snap-type: none; cursor: default; will-change: transform; padding-top: 0; padding-bottom: 0; }
  .vini.is-pinned .vini__intro { display: flex; }
  .vini.is-pinned .wine { flex-basis: clamp(240px, calc((100vh - 440px) * .75), 380px); }
  .vini.is-pinned .wine__body { padding: 20px 22px; }
  .vini.is-pinned .wine__notes { font-size: 14px; line-height: 1.55; }
  .vini.is-pinned .wine h3 { font-size: 36px; margin: 6px 0 8px; }
  .vini.is-pinned .wine__meta { margin: 12px 0 16px; }
  .vini.is-pinned .vini__progress { margin-top: 28px; }
}

/* ---------- Olio ---------- */
.olio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--ink-2);
  color: var(--text-light);
}
.olio__media { position: relative; overflow: hidden; min-height: 70vh; }
.olio__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(80px, 9vw, 140px) clamp(30px, 7vw, 120px); }
.olio__text .h1 { margin-bottom: 36px; }
.olio__text .body { color: var(--muted-light); }

/* ---------- Tasting ---------- */
.tasting { text-align: left; }
.tasting .statement { max-width: 1240px; }

/* ---------- Contatti ---------- */
.contatti .h1 { margin-bottom: clamp(60px, 7vw, 100px); }
.contatti__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 34px); }
.contact-card {
  background: var(--cream);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: clamp(30px, 3.6vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.contact-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3vw, 44px); line-height: 1; }
.contact-card address { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--text-dark); }
.contact-list { list-style: none; width: 100%; border-top: 1px solid var(--line-dark); }
.contact-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.contact-list span { width: 92px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-dark); }
.contact-list a { color: var(--text-dark); border-bottom: 1px solid transparent; transition: border-color .4s; overflow-wrap: anywhere; }
.contact-list a:hover { border-color: var(--ruby); color: var(--ruby); }
.contact-list small { font-size: 12.5px; color: var(--muted-dark); }
.contact-card .btn { margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--text-light); padding: clamp(80px, 10vw, 140px) var(--gutter) 34px; overflow: hidden; }
.footer__mark {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .18em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 15vw, 260px);
  line-height: .9;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.footer__mark em { color: var(--gold-2); font-size: 1.12em; }
.footer__row {
  margin-top: clamp(50px, 6vw, 90px);
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted-light);
}
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--gold-2); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { gap: 18px; }
  .nav__links a { letter-spacing: .14em; }
}

@media (max-width: 999px) {
  .nav { grid-template-columns: auto 1fr auto auto; gap: 8px; padding: 0 6px 0 18px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__shop { justify-self: end; min-height: 40px; padding: 0 16px; }

  .terroir__grid, .uve__grid, .famiglia__story { grid-template-columns: 1fr; }
  .terroir__media { height: 62vh; }
  .uve__media { order: -1; max-height: 78vh; }
  .people { grid-template-columns: 1fr 1fr; }
  .person:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .person:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line-dark); }
  .olio { grid-template-columns: 1fr; }
  .contatti__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-dark); margin-top: 34px; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 60px; }
  .timeline__item:nth-child(n + 4)::before { display: none; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav { top: 10px; height: 56px; }
  .brand__eight { font-size: 34px; }
  .brand__name { font-size: 10.5px; letter-spacing: .28em; }
  .nav__shop { display: none; }

  .journey--hero { --len: 680vh; }
  .journey--cantina { --len: 360vh; }
  .beat { padding: 100px 20px 96px; }
  .beat--title { padding-top: 118px; }
  .lead br { display: none; }
  .chapters { left: 16px; right: 16px; bottom: 22px; }
  .chapters ol { display: none; }
  .chapters__bar { width: 100%; height: 1px; }
  .chapters__bar i { transform-origin: left; }
  .scroll-hint { bottom: 40px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 26px 14px 0 0; border-left: 0; margin-top: 0; }
  .stat:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line-dark); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-dark); margin-top: 26px; }
  .stat__num { font-size: clamp(50px, 15vw, 72px); }
  .stat__label { font-size: 13px; }
  .timeline { grid-template-columns: 1fr; row-gap: 34px; padding-top: 0; padding-left: 30px; }
  .timeline__line { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }
  .timeline__line i { transform: scaleY(0); transform-origin: top; }
  .timeline.in .timeline__line i { transform: scaleY(1); }
  .timeline__item::before, .timeline__item:nth-child(n + 4)::before { display: block; top: 12px; left: -30px; }
  .aromi { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .person, .person:nth-child(2n) { padding: 34px 0 38px; border-left: 0; }
  .famiglia__wide { height: 70vh; margin-inline: 0; }
  .award { border-radius: 24px; flex-direction: column; text-align: center; gap: 16px; }
  .wine { flex-basis: 76vw; }
  .contact-list span { width: 100%; }
  .footer__row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .marquee__track, .scroll-hint i::after { animation: none; }
  .reveal, .reveal-mask, .reveal-mask img, .split-lines .ln > span { transition: none; }
}

.famiglia__wide img { object-position: 50% 30%; }
