/* Ardesia — fine dining: nero ardesia, avorio, oro. Lento, silenzioso, vivo allo scroll. */
:root {
  --bg: #0e0d0c;
  --surface: #171512;
  --surface-2: #201d19;
  --text: #efe7da;
  --muted: #a39a8b;
  --line: rgba(239, 231, 218, .14);
  --accent: #c6a15b;
  --accent-ink: #14100b;
  --gold-soft: #e3c98f;
  --radius: 2px;
  --font-display: "Bodoni Moda", "Didot", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
}

body { font-size: 17px; font-weight: 300; letter-spacing: .01em; overflow-x: hidden; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(40px, 6.4vw, 92px); }
h2 em, h1 em { font-style: italic; color: var(--gold-soft); }
.label { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.label::before { content: ""; width: 38px; height: 1px; background: currentColor; }
.section { position: relative; padding: clamp(72px, 10vw, 136px) 0; }
p { color: var(--muted); }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 30px; border: 1px solid var(--accent); color: var(--text);
  text-decoration: none; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500;
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.btn:hover { color: var(--accent-ink); }
.btn:hover::before { transform: scaleY(1); }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid::before { background: var(--text); }

/* grana da pellicola */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%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%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

/* ---------- preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; transition: transform 1.1s var(--ease) .1s; }
.loader__name { font-family: var(--font-display); font-size: clamp(44px, 8vw, 96px); letter-spacing: .3em; padding-left: .3em; color: var(--text); display: flex; }
.loader__name span { opacity: 0; transform: translateY(30%); filter: blur(8px); animation: ld-in 1s var(--ease) forwards; }
.loader__line { position: absolute; bottom: 38%; left: 50%; width: 160px; height: 1px; margin-left: -80px; background: var(--accent); transform: scaleX(0); animation: ld-line 1.2s var(--ease) .5s forwards; }
@keyframes ld-in { to { opacity: 1; transform: none; filter: none; } }
@keyframes ld-line { to { transform: scaleX(1); } }
.is-loaded .loader { transform: translateY(-100%); }
.no-anim .loader { display: none; }

/* ---------- cursore ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--accent); border-radius: 50%; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s; mix-blend-mode: difference; display: none; }
.cursor.is-big { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: rgba(198,161,91,.15); }
@media (pointer: fine) { .has-cursor .cursor { display: block; } }

/* ---------- header ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background .6s, border-color .6s, transform .6s var(--ease); border-bottom: 1px solid transparent; }
.top.is-solid { background: rgba(14,13,12,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.top__in { display: flex; align-items: center; gap: 32px; height: 84px; }
.logo { text-decoration: none; font-family: var(--font-display); font-size: 26px; letter-spacing: .32em; text-transform: uppercase; }
.logo small { display: block; font-family: var(--font-body); font-size: 10px; letter-spacing: .38em; color: var(--muted); margin-top: 2px; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.tools { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; font-size: 11px; letter-spacing: .2em; }
.lang button { border: 0; background: none; color: var(--muted); padding: 4px 6px; }
.lang button[aria-pressed="true"] { color: var(--accent); }
.top .btn { min-height: 44px; padding: 0 20px; font-size: 11px; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 0; }
.burger span { display: block; width: 26px; height: 1px; background: var(--text); margin: 7px auto; transition: transform .4s var(--ease); }
@media (max-width: 960px) {
  /* l'header con backdrop-filter diventa il riferimento dei figli "fixed": altezza esplicita
     e visibility, altrimenti il menu chiuso sborda sotto l'header */
  .nav { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; flex-direction: column; justify-content: center; align-items: center; gap: 26px; background: var(--bg); transform: translateY(-100%); visibility: hidden; transition: transform .8s var(--ease), visibility 0s linear .8s; z-index: -1; }
  .nav a { font-family: var(--font-display); font-size: 34px; letter-spacing: .04em; text-transform: none; }
  .menu-open .nav { transform: none; visibility: visible; transition: transform .8s var(--ease); }
  .burger { display: block; }
  .menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .tools { margin-left: auto; }
}
@media (max-width: 480px) { .top .btn { display: none; } .logo { font-size: 21px; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; display: grid; align-items: end; }
.hero__media { position: absolute; inset: -6% 0 0 0; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 3.2s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.18); filter: brightness(.3); } to { transform: scale(1.02); filter: brightness(.68) saturate(1.05); } }
.no-anim .hero__media img { filter: brightness(.68) saturate(1.05); }
.hero__shade { position: absolute; inset: 0; opacity: .8; background: radial-gradient(130% 100% at 0% 100%, rgba(14,13,12,.95) 0%, rgba(14,13,12,.75) 40%, rgba(14,13,12,.25) 70%, transparent 85%), linear-gradient(180deg, rgba(14,13,12,.7) 0%, rgba(14,13,12,.15) 28%, rgba(14,13,12,.8) 100%); }
.hero__in { position: relative; padding-bottom: clamp(56px, 9vh, 110px); }
.hero h1 { font-size: clamp(54px, 11vw, 168px); line-height: .92; letter-spacing: -.02em; margin-top: 22px; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero h1 .w > span { display: inline-block; transition: transform 1.4s var(--ease); }
.anim .hero h1 .w > span { transform: translateY(105%); }
.anim.is-loaded .hero h1 .w > span { transform: none; }
.hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; margin-top: 34px; }
.hero__row p { max-width: 40ch; margin: 0; color: rgba(239,231,218,.92); font-size: 18px; font-weight: 400; text-shadow: 0 1px 14px rgba(0,0,0,.65); }
.hero h1, .hero .label { text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue { position: absolute; right: 24px; bottom: 34px; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--accent), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* ---------- reveal generico ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(48px); filter: blur(6px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease); }
.anim [data-reveal].in { opacity: 1; transform: none; filter: none; }
.anim [data-reveal="2"] { transition-delay: .15s; }
.anim [data-reveal="3"] { transition-delay: .3s; }
.rule { height: 1px; background: var(--line); position: relative; overflow: hidden; }
.rule::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease); }
.rule.in::after { transform: scaleX(1); }

/* ---------- manifesto (parole che si accendono) ---------- */
.manifesto { padding-top: clamp(88px, 12vw, 150px); }
.manifesto__text { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 66px); line-height: 1.18; max-width: 22ch; margin: 34px 0 0; color: var(--text); }
.manifesto__text .mw { opacity: .14; transition: opacity .4s; }
.manifesto__text .mw.on { opacity: 1; }
.manifesto__text em { color: var(--gold-soft); }

/* ---------- chef ---------- */
.chef { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.chef__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; clip-path: inset(0); }
.anim .chef__media { clip-path: inset(100% 0 0 0); transition: clip-path 1.8s var(--ease); }
.anim .chef__media.in { clip-path: inset(0); }
.chef__media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.chef__sign { font-family: var(--font-display); font-style: italic; font-size: 34px; color: var(--gold-soft); margin-top: 26px; }
.chef blockquote { margin: 28px 0 0; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; color: var(--text); }
@media (max-width: 860px) { .chef { grid-template-columns: 1fr; } }

/* ---------- percorso orizzontale ---------- */
.journey { position: relative; height: calc(var(--n, 6) * 70vh + 100vh); }
.journey__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 24px; padding: 104px 0 96px; }
.journey__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; position: relative; z-index: 2; }
.journey__count { font-family: var(--font-display); font-size: clamp(34px, 4vw, 56px); color: var(--accent); font-variant-numeric: tabular-nums; }
.journey__count small { color: var(--muted); font-size: .45em; letter-spacing: .1em; }
.journey__track { display: flex; gap: clamp(20px, 3vw, 44px); align-items: center; padding-left: max(20px, calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.course { flex: none; width: clamp(220px, calc((100vh - 400px) * .8), 420px); }
.course__img { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.course__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.course.is-active .course__img img { transform: scale(1); }
.course__num { font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 22px; margin-top: 18px; }
.course h3 { font-size: clamp(20px, 2vw, 28px); margin-top: 4px; line-height: 1.15; }
.course__num { margin-top: 14px; }
.course p { font-size: 15px; margin: 8px 0 0; }
.journey__bar { height: 1px; background: var(--line); margin-top: 26px; }
.journey__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.journey__foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.journey__foot b { color: var(--text); font-weight: 500; }
@media (max-width: 700px) {
  .journey__pin { padding-top: 96px; }
  .course { width: min(76vw, calc((100vh - 380px) * .9)); }
  .course__img { aspect-ratio: 4 / 4.4; }
  .journey__count { font-size: 30px; }
}

/* ---------- cantina ---------- */
.cellar { position: relative; overflow: hidden; }
.cellar__bg { position: absolute; inset: -20% 0; will-change: transform; }
.cellar__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.cellar__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 20%, rgba(14,13,12,.6)); }
.cellar .wrap { position: relative; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; max-width: 900px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(48px, 7vw, 96px); font-weight: 400; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* ---------- galleria parallax ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); margin-top: 70px; }
.gallery__col { display: grid; gap: clamp(14px, 2vw, 28px); will-change: transform; }
.gallery__col:nth-child(2) { margin-top: 120px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery__col img:nth-child(2) { aspect-ratio: 1; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery__col:nth-child(3) { display: none; } .gallery__col:nth-child(2) { margin-top: 60px; } }

/* ---------- riconoscimenti ---------- */
.press { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 60px; }
.press figure { margin: 0; background: var(--bg); padding: clamp(28px, 4vw, 48px); }
.press blockquote { margin: 0 0 22px; font-family: var(--font-display); font-size: clamp(21px, 2vw, 27px); line-height: 1.35; color: var(--text); }
.press figcaption { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 860px) { .press { grid-template-columns: 1fr; } }

/* ---------- prenota + gift ---------- */
.book { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
#prenota { scroll-margin-top: 90px; }
.book__list { list-style: none; padding: 0; margin: 34px 0 0; }
.book__list li { padding: 16px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.book__list li b { font-weight: 400; color: var(--text); }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } }
.bk { border-radius: 0; background: var(--surface); }
.bk h3 { font-weight: 400; }
.bk__badge { letter-spacing: .24em; }

.gift { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.gift__card {
  aspect-ratio: 1.6; position: relative; padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #2a241c, #14110d 60%); border: 1px solid rgba(198,161,91,.4);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); transform: perspective(900px) rotateY(-12deg) rotateX(6deg); transition: transform 1s var(--ease);
}
.gift__card:hover { transform: perspective(900px) rotateY(0) rotateX(0); }
.gift__card b { font-family: var(--font-display); font-size: 30px; letter-spacing: .3em; font-weight: 400; }
.gift__card span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.gift__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(227,201,143,.18) 45%, transparent 60%); background-size: 250% 100%; animation: shine 5s var(--ease) infinite; }
@keyframes shine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }
@media (max-width: 860px) { .gift { grid-template-columns: 1fr; } }

/* ---------- dove ---------- */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); }
.hours { width: 100%; border-collapse: collapse; margin-top: 30px; }
.hours td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td:first-child { padding-right: 16px; color: var(--muted); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.addr { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); color: var(--text); margin: 24px 0 8px; line-height: 1.15; }
.map { min-height: 360px; border: 0; width: 100%; height: 100%; filter: grayscale(1) invert(.92) contrast(.9) sepia(.25); }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } .map { min-height: 280px; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 70px 0 36px; }
.foot__big { font-family: var(--font-display); font-size: clamp(64px, 16vw, 230px); letter-spacing: .12em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(198,161,91,.35); text-align: center; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 40px; font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.foot__row a { text-decoration: none; }
.gw-credit { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: "Geist", system-ui, sans-serif; letter-spacing: 0; color: var(--muted); }
.gw-credit b { color: var(--text); font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .grain, .gift__card::after, .scroll-cue::after { animation: none; }
  .hero__media img { animation: none; }
}

/* ---------- Signature: il piatto si compone + foto liquide ---------- */
.sig-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sig-on .hero__media img { opacity: 0; animation: none; filter: brightness(.68) saturate(1.05); transform: scale(1.02); }
.sig-wrap { display: block; position: relative; overflow: hidden; }
.sig-pending { opacity: 0; }

/* griglie: le colonne possono restringersi sotto il contenuto */
.book__grid > *, .book-grid > *, .where > *, .kitchen > *, .people > *, .drinks > *, .shop__in > *, .hero__grid > * { min-width: 0; }
