@import url("../fonts/fonts.css");

/* ============================================================
   MASTO a Testaccio — bianco & rossovino  ·  v2
   ============================================================ */

:root {
  --paper: #FCF9F2;
  --paper-2: #F6F0E4;
  --paper-3: #F2EADB;
  --ink: #241F1D;
  --ink-soft: #5B524C;
  --ink-dim: #6E645E;
  --wine: #6E1220;
  --wine-mid: #8E1C2C;
  --wine-deep: #4A0B15;
  --gold: #9C7B41;
  --gold-soft: #CBA96A; /* leggibile sul fondo vino della fascia stampa */
  --line: rgba(36, 31, 29, .16);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --bar-h: 68px;
  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --sec-y: clamp(64px, 9vw, 140px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--wine); color: var(--paper); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.06; margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap--wide { max-width: 1560px; }

.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: 11.5px;
  letter-spacing: .26em; text-transform: uppercase; color: var(--wine-mid); margin: 0 0 16px;
}
.lede { font-size: clamp(16.5px, 1.8vw, 20px); color: var(--ink-soft); max-width: 60ch; }
.rule { width: 46px; height: 1px; background: var(--wine-mid); opacity: .5; margin: 22px 0; border: 0; }

/* ---------- buttons ---------- */

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--wine); border-radius: 2px;
  background: var(--wine); color: var(--paper);
  transition: color .4s var(--ease), border-color .4s var(--ease);
  cursor: pointer;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wine-deep);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out);
}
.btn:hover::after { transform: scaleY(1); }

.btn--ghost { background: transparent; color: var(--wine); }
.btn--ghost::after { background: var(--wine); }
.btn--ghost:hover { color: var(--paper); }

.btn--light { background: transparent; color: var(--paper); border-color: rgba(251, 247, 239, .8); }
.btn--light::after { background: var(--paper); }
.btn--light:hover { color: var(--wine); border-color: var(--paper); }

.btn--paper { background: var(--paper); color: var(--wine); border-color: var(--paper); }
.btn--paper::after { background: #FFFDF8; }
.btn--paper:hover { color: var(--wine-deep); border-color: #FFFDF8; }

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  display: flex; align-items: center;
  background: rgba(251, 247, 239, 0);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .45s var(--ease);
}
.site-header.is-solid {
  background: rgba(251, 247, 239, .94);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-102%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 13px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--wine); }
.brand svg { width: 116px; height: auto; display: block; }
.brand .brand-sub {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft); border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.3;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--wine-mid); transition: width .35s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav-book { display: none; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { min-height: 42px; padding: 0 20px; font-size: 11px; }

.nav-ig { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; }
.nav-ig .social-ico { width: 19px; height: 19px; }
.nav-ig:hover .social-ico { color: var(--gold); }

.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 0; color: var(--ink); }
.burger span { display: block; width: 22px; height: 1px; background: currentColor; margin: 5px auto; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.site-header.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO — la sala in piena luce, il marchio sopra la fotografia
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  background: #1B1210; color: var(--paper);
}
.hero__bg, .hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__bg img { filter: brightness(1.08) saturate(1.02); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 52%, rgba(20, 10, 8, .34), transparent 70%),
    linear-gradient(180deg, rgba(20, 10, 8, .24) 0%, rgba(20, 10, 8, .12) 30%,
                            rgba(20, 10, 8, .18) 56%, rgba(22, 11, 8, .42) 100%);
}

.hero__content {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: calc(var(--bar-h) + 30px) var(--pad) clamp(64px, 10svh, 120px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__eyebrow {
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(251, 247, 239, .86); margin: 0 0 clamp(20px, 3.4svh, 34px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 2px 16px rgba(0, 0, 0, .4);
  text-wrap: balance;
}
.hero__mark { width: min(84vw, 700px); color: var(--paper);
  filter: drop-shadow(0 12px 44px rgba(0, 0, 0, .4)); }
.hero__mark svg { width: 100%; height: auto; display: block; }
.hero__tag {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(18px, 2.3vw, 25px); line-height: 1.42;
  color: rgba(251, 247, 239, .95); max-width: 40ch;
  margin: clamp(20px, 3.2svh, 30px) 0 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55), 0 2px 20px rgba(0, 0, 0, .45);
}
.hero__tag em { color: var(--paper); }
.hero__stars { color: #DDB77C; font-size: 13px; letter-spacing: .3em; }
.hero__acts { display: flex; gap: 18px; margin-top: clamp(24px, 3.6svh, 38px);
  flex-wrap: wrap; justify-content: center; }
.hero__acts .btn { min-height: 50px; padding: 0 26px; }
.hero__acts .btn--light { min-width: 150px; }

.hero__cue {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 16px;
  width: max-content; margin-inline: auto; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(251, 247, 239, .82); padding: 10px 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 2px 12px rgba(0, 0, 0, .5);
}
.hero__cue span { width: 1px; height: 34px; background: rgba(251, 247, 239, .6); }

/* ---- load-in ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero .anim { opacity: 0; transform: translateY(10px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
  .hero__bg { opacity: 0; transition: opacity 1.4s ease; }
  .is-ready .hero .anim { opacity: 1; transform: none; }
  .is-ready .hero__bg { opacity: 1; }
  .is-ready .hero .n2 { transition-delay: .12s; }
  .is-ready .hero .n3 { transition-delay: .24s; }
  .is-ready .hero .n4 { transition-delay: .34s; }
  .is-ready .hero .n5 { transition-delay: .44s; }
  .is-ready .hero .n6 { transition-delay: .9s; }
}

/* ---- header over the photograph, before it turns solid ---- */
.site-header:not(.is-solid):not(.is-open) .brand { color: var(--paper); }
.site-header:not(.is-solid):not(.is-open) .brand-sub {
  color: rgba(251, 247, 239, .78); border-left-color: rgba(251, 247, 239, .3); }
.site-header:not(.is-solid):not(.is-open) .nav a { color: var(--paper); }
.site-header:not(.is-solid):not(.is-open) .nav a::after { background: var(--paper); }
.site-header:not(.is-solid):not(.is-open) .burger { color: var(--paper); }
.site-header:not(.is-solid):not(.is-open) .header-cta .btn {
  background: transparent; border-color: rgba(251, 247, 239, .55); color: var(--paper); }
.site-header:not(.is-solid):not(.is-open) .header-cta .btn::after { background: var(--paper); }
.site-header:not(.is-solid):not(.is-open) .header-cta .btn:hover { color: var(--wine); border-color: var(--paper); }
.site-header:not(.is-solid):not(.is-open) .nav-ig .social-ico { color: rgba(251, 247, 239, .9); }
.site-header:not(.is-solid):not(.is-open) .nav-ig:hover .social-ico { color: var(--gold-soft); }

/* ============================================================
   sections
   ============================================================ */

.section { position: relative; overflow: clip; padding-block: var(--sec-y); }
.section--paper2 { background: var(--paper-2); }
.section--wine { background: var(--wine); color: var(--paper); }
.section--wine .eyebrow { color: rgba(251, 247, 239, .68); }
.section--wine .lede { color: rgba(251, 247, 239, .8); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }

.section__head { max-width: 720px; margin-bottom: clamp(34px, 4.6vw, 62px); }
.section__head h2 { font-size: clamp(32px, 5.2vw, 60px); }
.section__head p { margin: 18px 0 0; }

/* locale — heading paired with the Piramide di Caio Cestio landmark motif */
.locale__heading { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.locale__landmark { flex: none; opacity: .82; }

/* ---------- le voci — real Google quotes ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 46px); }
.review { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.review__stars { color: var(--gold); font-size: 13px; letter-spacing: .3em; }
.review__stars i { font-style: normal; opacity: .28; }
.review blockquote {
  margin: 14px 0 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5;
}
.review figcaption {
  margin-top: 14px; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* dicono di noi — wine band, Forbes in evidenza */
.stampa-rule {
  display: block; width: 70px; height: 1px; background: var(--gold-soft);
  opacity: .5; margin: 0 auto clamp(30px, 4vw, 46px);
}
.press-feature {
  position: relative; display: block; max-width: 880px; margin-inline: auto;
  text-align: center; text-decoration: none; color: inherit;
  padding-bottom: clamp(34px, 4.6vw, 58px);
  border-bottom: 1px solid rgba(251, 247, 239, .22);
}
.press-feature::before {
  content: "“"; position: absolute; top: -.32em; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: normal; font-weight: 500; line-height: 1;
  font-size: clamp(120px, 15vw, 210px); color: var(--gold-soft); opacity: .14;
  pointer-events: none; z-index: 0;
}
.press-feature blockquote, .press-feature__source { position: relative; z-index: 1; }
.press-feature blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(23px, 3vw, 34px); line-height: 1.4;
}
.press-feature__source {
  display: inline-block; margin-top: 20px; font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-soft);
}
.press-feature__brand {
  display: inline-block; font-family: var(--serif); font-variant: small-caps;
  font-style: normal; text-transform: none; font-weight: 600;
  font-size: clamp(19px, 2.1vw, 25px); letter-spacing: .03em; color: var(--paper); margin-right: 2px;
}
.press-feature__source em { font-style: italic; text-transform: none; letter-spacing: .04em; font-size: 13px; }
.press-feature:hover .press-feature__source { color: var(--paper); }
.press {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3vw, 46px); max-width: 880px; margin-inline: auto;
  margin-top: clamp(28px, 3.6vw, 44px);
}
.press__item { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.press__meta { display: flex; align-items: baseline; gap: 10px; }
.press__meta strong {
  font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 1.8vw, 23px);
  transition: color .3s var(--ease-out);
}
.press__meta span { font-size: 11px; letter-spacing: .2em; color: rgba(251, 247, 239, .6); }
.press__item blockquote {
  margin: 12px 0 0; flex: 1; font-family: var(--serif); font-style: italic;
  font-size: 15.5px; line-height: 1.55; color: rgba(251, 247, 239, .82);
}
.press__cta {
  margin-top: 16px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-soft);
}
.press__cta span { display: inline-block; transition: transform .3s var(--ease-out); }
.press__item:hover .press__meta strong { color: var(--gold-soft); }
.press__item:hover .press__cta span { transform: translateX(4px); }

.section > .wrap { position: relative; z-index: 1; }

/* ============================================================
   le tre anime
   ============================================================ */

.souls { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.soul {
  position: relative; background: var(--paper); border: 1px solid var(--line); overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.soul:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(36, 31, 29, .45); }
.soul__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.soul__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.soul:hover .soul__img img { transform: scale(1.06); }
.soul__body { padding: 24px clamp(18px, 2vw, 30px) 30px; }
.soul__motif { margin: 0 0 12px; }
.soul__body h3 { font-size: clamp(23px, 2.5vw, 31px); }
.soul__body p { color: var(--ink-soft); font-size: 15px; margin: 12px 0 0; }
.soul__n {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: var(--serif); font-size: 13px; letter-spacing: .2em; color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

/* ============================================================
   storia
   ============================================================ */

.story { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 5vw, 76px); align-items: center; }
.story__img { margin: 0; position: relative; }
.story__img img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; }
.story__img figcaption { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }
.story blockquote { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2.3vw, 27px); line-height: 1.42; font-style: italic; }
.story .sig { margin-top: 24px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--wine-mid); }
.story p { color: var(--ink-soft); }

/* ============================================================
   il banco — split layout, framed counter photo (paper-2 bg)
   ============================================================ */

.banco__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 76px); align-items: center;
}
.banco__body h2 { font-size: clamp(30px, 5vw, 54px); }
.banco__body .lede { margin: 20px 0 0; }

.banco__steps { list-style: none; margin: clamp(26px, 3vw, 40px) 0 0; padding: 0; display: grid; gap: 0; }
.banco__steps li {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--serif); font-size: clamp(18px, 2vw, 23px);
  padding: 13px 0; border-top: 1px solid var(--line);
}
.banco__steps li:last-child { border-bottom: 1px solid var(--line); }
.banco__steps li em {
  font-family: var(--sans); font-style: normal; font-size: 11px;
  letter-spacing: .2em; color: var(--wine-mid); flex: 0 0 auto;
}

@media (min-width: 900px) {
  .banco__steps { grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 4vw, 60px); }
  .banco__steps li:nth-child(2) { border-top: 1px solid var(--line); }
  .banco__steps li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* framed portrait photo — thin gold-soft offset, echoes the site's fine-line accents */
.banco__frame { position: relative; }
.banco__frame::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid var(--gold-soft); opacity: .6; z-index: 0;
}
.banco__img { position: relative; z-index: 1; overflow: clip; background: var(--paper-3); aspect-ratio: 645 / 722; }
.banco__img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   menu teaser
   ============================================================ */

.menu-card {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  border: 1px solid var(--line); background: var(--paper); overflow: hidden; min-height: 430px;
}
.menu-card__media { position: relative; overflow: hidden; aspect-ratio: 1055 / 1400; }
.menu-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.menu-card:hover .menu-card__media img { transform: scale(1.05); }
.menu-card__body { padding: clamp(28px, 4.2vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.menu-card__body h2 { font-size: clamp(29px, 4vw, 48px); }
.menu-card__body p { color: var(--ink-soft); margin: 16px 0 0; }
.menu-card__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.menu-card__list li { font-family: var(--serif); font-size: 19px; display: flex; align-items: baseline; gap: 12px; }
.menu-card__list li::before { content: ""; flex: 0 0 16px; height: 1px; background: var(--wine-mid); opacity: .55; }
.menu-card .btn { margin-top: 32px; align-self: flex-start; }

/* ============================================================
   gallery — static grid
   ============================================================ */

.gal { position: relative; background: var(--paper-2); }
.gal__head { padding-block: var(--sec-y) clamp(24px, 3vw, 42px); }
.gal__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.2vw, 18px); padding-bottom: var(--sec-y);
}
.gal__item {
  position: relative; display: block; padding: 0; margin: 0; border: 0; cursor: zoom-in;
  overflow: hidden; background: var(--paper-3); aspect-ratio: 3 / 2;
}
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.gal__item:hover img { transform: scale(1.04); }
.gal__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 34px 16px 13px; text-align: left;
  font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(to top, rgba(16, 8, 6, .78), transparent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.gal__item:hover .gal__cap, .gal__item:focus-visible .gal__cap { opacity: 1; }
@media (hover: none) { .gal__cap { opacity: 1; } }

.lb {

  position: fixed; inset: 0; z-index: 200; background: rgba(10, 5, 6, .94);
  display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 60px);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  backdrop-filter: blur(4px);
}
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb img { max-width: 100%; max-height: 84svh; object-fit: contain; transform: scale(.97); transition: transform .45s var(--ease-out); }
.lb.is-open img { transform: none; }
.lb__cap {
  position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: rgba(251, 247, 239, .7);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.lb__x, .lb__nav {
  position: absolute; background: transparent; border: 1px solid rgba(251, 247, 239, .3); color: var(--paper);
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; border-radius: 2px;
  transition: background .3s var(--ease), border-color .3s var(--ease); font-size: 18px; line-height: 1;
}
.lb__x:hover, .lb__nav:hover { background: rgba(251, 247, 239, .14); border-color: rgba(251, 247, 239, .6); }
.lb__x { top: 18px; right: 18px; }
.lb__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   orari / prenota
   ============================================================ */

.hours-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(26px, 5vw, 68px); align-items: center; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(251, 247, 239, .18); }
.hours-list .d { font-family: var(--serif); font-size: 21px; }
.hours-list .t { font-size: 14px; letter-spacing: .12em; }
.hours-note { font-size: 13px; color: rgba(251, 247, 239, .62); margin-top: 18px; max-width: 52ch; }
.services { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 0; padding: 0; }
.services li {
  border: 1px solid rgba(251, 247, 239, .28); padding: 9px 15px; border-radius: 2px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(251, 247, 239, .88);
}
.book-box { background: rgba(251, 247, 239, .07); border: 1px solid rgba(251, 247, 239, .2); padding: clamp(22px, 3vw, 36px); }
.book-box h3 { font-size: 26px; }
.book-links { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.book-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 52px; padding: 0 18px; text-decoration: none;
  border: 1px solid rgba(251, 247, 239, .28); color: var(--paper);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  transition: background .35s var(--ease), border-color .35s var(--ease), padding-left .35s var(--ease);
}
.book-links a:hover { background: rgba(251, 247, 239, .12); border-color: rgba(251, 247, 239, .5); padding-left: 24px; }
.book-links a span:last-child { font-size: 15px; opacity: .55; }
.book-direct { margin-top: 20px; font-size: 14px; color: rgba(251, 247, 239, .78); }
.book-direct a { color: var(--paper); }

/* ============================================================
   one form
   ============================================================ */

.contatta { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(26px, 4.5vw, 62px); align-items: center; }
.contatta__copy h2 { font-size: clamp(30px, 4.4vw, 52px); }
.contatta__copy p { color: var(--ink-soft); margin: 18px 0 0; }
.reasons { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.reasons li { display: flex; gap: 13px; align-items: baseline; font-size: 15px; color: var(--ink-soft); }
.reasons li::before { content: ""; flex: 0 0 14px; height: 1px; background: var(--wine-mid); transform: translateY(-4px); }

.form-panel { border: 1px solid var(--line); background: var(--paper); padding: clamp(24px, 3.2vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field > legend { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); padding: 0; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px;
  padding: 13px 14px; min-height: 50px; width: 100%;
  transition: border-color .28s var(--ease), background .28s var(--ease);
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine-mid); background: var(--paper); }
fieldset.field { border: 0; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}
.chip input:checked + span { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--wine-mid); outline-offset: 2px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }

/* eventi — richiesta via Netlify Forms, niente email esposta */
.eventi-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eventi-form .hp-field { position: absolute; left: -9999px; opacity: 0; }
@media (max-width: 700px) { .eventi-form__grid { grid-template-columns: 1fr; } }
.eventi-form__status { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: var(--wine-mid); }
.eventi-form .field input, .eventi-form .field select, .eventi-form .field textarea { min-height: 48px; font-size: 16px; }
.eventi-form .field textarea { min-height: 96px; }

.form-status { font-size: 14px; margin-top: 12px; color: var(--wine); min-height: 20px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }

/* ============================================================
   trova / map
   ============================================================ */

.find { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.find__info h2 { font-size: clamp(29px, 3.8vw, 46px); }
.info-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.info-list .k { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--wine-mid); }
.info-list .v { font-family: var(--serif); font-size: 20px; margin-top: 3px; }
.info-list .v a { text-decoration: none; border-bottom: 1px solid var(--line); }
.info-list .v a:hover { border-bottom-color: var(--wine-mid); }

/* ---------- social icons — hand-drawn 24px badges, currentColor ---------- */
.social-ico { width: 19px; height: 19px; flex: none; color: var(--wine-mid); transition: color .3s var(--ease); }
.social-line { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 2px; }
.info-list .v a.social-link {
  display: inline-flex; align-items: center; gap: 9px; border-bottom: 0;
}
.social-link:hover, .social-link:hover .social-ico { color: var(--gold); }
.footer-social {
  display: inline-flex; align-items: center; gap: 10px;
}
.footer-social .social-ico { color: rgba(251, 247, 239, .78); }
.footer-social:hover, .footer-social:hover .social-ico { color: var(--gold-soft); }

.map-frame { position: relative; min-height: 380px; border: 1px solid var(--line); overflow: hidden; background: var(--paper-3); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.35) sepia(.12) saturate(.65); }

/* ============================================================
   footer
   ============================================================ */

.site-footer { background: #1B1412; color: rgba(251, 247, 239, .72); padding-block: clamp(46px, 6vw, 78px) 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.site-footer .brand-mark { width: 180px; color: var(--paper); }
.site-footer .brand-mark svg { width: 100%; height: auto; }
.site-footer p { font-size: 14.5px; margin: 16px 0 0; }
.site-footer h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(251, 247, 239, .5); font-weight: 500; }
.site-footer ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.site-footer ul a { text-decoration: none; font-size: 14.5px; }
.site-footer ul a:hover { color: var(--paper); }
.footer-bottom {
  margin-top: clamp(30px, 4.5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(251, 247, 239, .14);
  display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: rgba(251, 247, 239, .5);
}
.by {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  color: rgba(251, 247, 239, .8); min-height: 44px;
  border: 1px solid rgba(251, 247, 239, .18); border-radius: 2px; padding: 6px 14px 6px 10px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.by img { width: 34px; height: auto; }
.by:hover { border-color: rgba(251, 247, 239, .45); }

/* ============================================================
   reveal
   ============================================================ */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  #bottles { display: none; }
  .gal__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   menu page
   ============================================================ */

.page-head { padding-top: calc(var(--bar-h) + clamp(44px, 7vw, 92px)); padding-bottom: clamp(30px, 4.5vw, 54px); background: var(--paper-2); position: relative; overflow: clip; }
.page-head h1 { font-size: clamp(40px, 7vw, 78px); }
.page-head p { color: var(--ink-soft); margin: 16px 0 0; max-width: 60ch; }

.menu-nav {
  position: sticky; top: var(--bar-h); z-index: 40;
  background: rgba(251, 247, 239, .95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: top .45s var(--ease);
}
.hdr-hidden .menu-nav { top: 0; }
.menu-nav__scroll { display: flex; gap: 8px; overflow-x: auto; padding: 11px var(--pad); scrollbar-width: none; }
.menu-nav__scroll::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: 0 0 auto; padding: 10px 15px; min-height: 44px; display: inline-flex; align-items: center;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line); border-radius: 2px; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.menu-nav a:hover, .menu-nav a.is-active { background: var(--wine); color: var(--paper); border-color: var(--wine); }

.menu-body { display: block; }

.menu-cols { min-width: 0; }
.menu-section { padding-block: clamp(38px, 4.8vw, 66px); scroll-margin-top: calc(var(--bar-h) + 72px); position: relative; }
.menu-section:first-of-type { padding-top: clamp(28px, 3.4vw, 44px); }
.menu-section + .menu-section { border-top: 1px solid var(--line); }
.menu-section h2 { font-size: clamp(27px, 4vw, 42px); }
.menu-section__motif { margin: 0 0 18px; width: clamp(68px, 16vw, 92px); }
.menu-section .eyebrow { margin-bottom: 12px; }
.menu-section__note { color: var(--ink-soft); font-size: 16px; margin: 12px 0 0; max-width: 64ch; }

.dishes { list-style: none; margin: clamp(22px, 3vw, 34px) 0 0; padding: 0; display: grid; gap: 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(30px, 3.6vw, 60px); }
.dishes--one { grid-template-columns: 1fr; }
.dish__top { display: flex; align-items: baseline; gap: 12px; }
.dish__name { font-family: var(--serif); font-size: clamp(20px, 2.1vw, 24px); line-height: 1.2; text-wrap: pretty; }
.dish__name sup { font-family: var(--sans); font-size: 10.5px; color: var(--ink-soft); letter-spacing: .06em; opacity: .75; white-space: nowrap; }
.dish__dots { flex: 1 1 auto; border-bottom: 1px dotted rgba(36, 31, 29, .3); transform: translateY(-4px); min-width: 20px; }
.dish__price { font-family: var(--serif); font-size: clamp(19px, 2vw, 22px); color: var(--wine); white-space: nowrap; }
.dish__desc {
  font-family: var(--sans); font-weight: 300; font-size: clamp(13.5px, 1.4vw, 15px);
  color: var(--ink-dim); line-height: 1.62; margin: 7px 0 0; max-width: 46ch;
}

.allergens { background: var(--paper-2); }
.allergens ol { columns: 2; column-gap: 40px; margin: 20px 0 0; padding-left: 20px; font-size: 16px; color: var(--ink-soft); }
.allergens li { break-inside: avoid; margin-bottom: 6px; }

.shop-note { border: 1px solid var(--line); padding: clamp(20px, 2.6vw, 32px); background: var(--paper); margin-top: 28px; }
.shop-note h3 { font-size: 23px; }
.shop-note p { color: var(--ink-soft); font-size: 15px; margin: 10px 0 0; }

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1080px) {
  .souls { grid-template-columns: 1fr 1fr; }
  .souls > :last-child { grid-column: 1 / -1; }
  .soul__img { aspect-ratio: 16 / 10; }
}

@media (max-width: 900px) {
  :root { --sec-y: clamp(52px, 8vw, 78px); }
  body { font-size: 16.5px; }

  .nav {
    position: fixed; inset: var(--bar-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
    max-height: calc(100svh - var(--bar-h)); overflow-y: auto;
  }
  .site-header.is-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-header.is-open { background: rgba(251, 247, 239, .97); backdrop-filter: blur(12px); border-bottom-color: transparent; }
  .site-header.is-open .brand, .site-header.is-open .burger { color: var(--wine); }
  .site-header.is-open .brand .brand-sub { color: var(--ink-soft); border-left-color: var(--line); }
  .nav a { color: var(--ink) !important; min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav a::after { display: none; }
  .nav a.nav-book {
    display: flex !important; justify-content: center; margin-top: 16px;
    background: var(--wine); color: var(--paper) !important; border: 1px solid var(--wine) !important;
    border-radius: 2px; letter-spacing: .18em;
  }
  .burger { display: block; }
  .header-cta .btn { display: none; }

  .story, .hours-grid, .find, .menu-card, .contatta, .banco__grid { grid-template-columns: 1fr; }
  .menu-card { min-height: 0; }
  .menu-card__media { aspect-ratio: 4 / 5; }
  .story__img { order: -1; }
  .story__img img { aspect-ratio: 4 / 3; }
  .banco__frame { order: -1; }
  .banco__frame::before { inset: 12px -12px -12px 12px; }
  .dishes { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .brand-mark { width: 148px; }

  /* souls → photo-led rows. v4 is photo-first: the pictures stay on the
     phone, at a wide crop so the section doesn't balloon. */
  .souls { grid-template-columns: 1fr; gap: 26px; }
  .souls > :last-child { grid-column: auto; }
  .soul { border: 1px solid var(--line); }
  .soul:hover { transform: none; box-shadow: none; }
  .soul__img { display: block; aspect-ratio: 16 / 10; }
  .soul__body { padding: 18px 20px 24px; }
  .soul__body p { margin: 8px 0 0; }

  .reviews { grid-template-columns: 1fr; gap: 0; }
  .review { padding-block: 22px; }
  .review:last-child { border-bottom: 1px solid var(--line); }
  .press { grid-template-columns: 1fr; gap: 0; }
  .press__item { padding-block: 22px; }
  .press__item + .press__item { border-top: 1px solid rgba(251, 247, 239, .22); }
  .story__img img { aspect-ratio: 3 / 2; }
  .story blockquote { font-size: 19px; }
  .menu-card__list { gap: 6px; margin-top: 18px; }
  .menu-card__list li { font-size: 17.5px; }
  .hours-list li { padding: 11px 0; }
  .book-links a { min-height: 48px; }

  /* gallery → two static columns, no rail */
  .gal__head { padding-bottom: 16px; }
  .gal__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gal__cap { opacity: 1; padding: 26px 10px 9px; font-size: 11px; letter-spacing: .12em; }
}

/* On a phone two columns shrink the food to ~165px — too small to read as
   appetising. One column gives each photo the width to actually work. */
@media (max-width: 560px) {
  .gal__grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  /* two full-width anchors give the food room to read; the rest pair up,
     so the section gains presence without costing a whole extra screen */
  .gal__item { aspect-ratio: 1 / 1; }
  .gal__item:nth-child(1), .gal__item:nth-child(4) {
    grid-column: 1 / -1; aspect-ratio: 16 / 9;
  }
  .gal__cap { padding: 32px 13px 11px; font-size: 11.5px; letter-spacing: .13em; }

  /* trim the page: the chips already say what these bullets say */
  .reasons { display: none; }
  .contatta__copy p { margin-top: 14px; }
  .soul__img { aspect-ratio: 16 / 10; }
  .soul__body { padding: 18px 18px 22px; }
  .soul__body p { font-size: 14.5px; margin-top: 9px; }
  .map-frame, .map-frame iframe { min-height: 290px; }
  .info-list { gap: 14px; margin-top: 22px; }
  .site-footer { padding-block: 40px 22px; }
  .footer-bottom { margin-top: 26px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .site-footer ul { gap: 7px; }
  .site-footer ul a { font-size: 13.5px; }
  .form-grid { grid-template-columns: 1fr; }
  .allergens ol { columns: 1; }
  .hero__actions .btn { flex: 1 1 100%; }
  .scroll-hint { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero__eyebrow { font-size: 9.5px; letter-spacing: .24em; }
}

@media (max-width: 380px) {
  :root { --pad: 18px; }
  .brand svg { width: 96px; }
  .brand .brand-sub { display: none; }
}

@media (pointer: coarse), (max-width: 900px) {
  .nav a, .book-links a, .site-footer ul a, .menu-nav a, .by, .info-list .v a,
  .book-direct a, .form-note a, .shop-note a, .brand, .gal__item, .nav-ig { min-height: 44px; }
  .site-footer ul a, .info-list .v a, .book-direct a, .form-note a, .shop-note a {
    display: inline-flex; align-items: center; min-width: 44px;
  }
  .nav-ig { width: 44px; }
  .brand { align-items: center; }
}

/* ============================================================
   motion — everything here fires on ARRIVAL or on touch.
   Nothing is bound to scroll position: no scrub, no parallax,
   no hijacking. Reduced motion switches all of it off.
   ============================================================ */

/* staggered children (lists, grids, step rows) */
.r-stagger > * {
  opacity: 0; transform: translateY(12px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 65ms);
}
.r-stagger.is-in > * { opacity: 1; transform: none; }

/* image wipe. The clip lives on the CHILD — clipping the observed element
   itself gives it zero intersection area, so the observer never fires. */
.r-img { overflow: clip; }
.r-img > img, .r-img > picture > img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.06);
  transition: clip-path 1.05s var(--ease-out), transform 1.5s var(--ease-out);
}
.r-img.is-in > img, .r-img.is-in > picture > img { clip-path: inset(0 0 0 0); transform: none; }

/* section headings settle up under their own eyebrow */
.section__head .eyebrow, .banco__body .eyebrow { position: relative; }
.section__head .eyebrow::after, .banco__body .eyebrow::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: currentColor; opacity: .5; transition: width 1s var(--ease-out) .25s;
}
.reveal.is-in .eyebrow::after, .eyebrow.reveal.is-in::after { width: 46px; }

/* links and cards answer the pointer */
.gal__item { transition: transform .5s var(--ease-out); }
.gal__item:hover { transform: translateY(-3px); }
.soul { transition: transform .5s var(--ease-out); }
.info-list .v a, .book-links a { transition: color .3s var(--ease); }

/* cross-page transition between the home page and the carta */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* thin reading line — compositor-driven, costs no JS and no scroll listener */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 90;
  background: var(--wine-mid); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root block); }
  @keyframes grow { to { transform: scaleX(1); } }
}

@media (prefers-reduced-motion: reduce) {
  .r-stagger > *, .r-img > img, .r-img > picture > img {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
    transition: none !important;
  }
  .section__head .eyebrow::after, .banco__body .eyebrow::after { transition: none; }
  .progress { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
