/* =========================================================
   Ristorante page
   Hero carousel · Intro · Le cinque stanze · Dal menù ·
   Live music · Eventi privati · Trovaci
   ========================================================= */

.risto { background: var(--paper-warm); color: var(--ink); }

/* ---------- HERO carousel ----------------------------------- */
.risto-hero {
  position: relative;
  height: 100dvh;
  min-height: 720px;
  max-height: 940px;
  color: #fff;
  overflow: hidden;
}
@media (min-width: 720px) {
  .risto-hero {
    /* Match .app height (bezel was removed). */
    height: min(844px, calc(100dvh - 64px));
    min-height: 0;
    max-height: none;
  }
}
.risto-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1100ms ease;
}
.risto-hero__slide.is-active { opacity: 1; }

/* Ken Burns on photo slides — start zoomed & slightly off-centre,
   drift to rest while the slide is active. Skips the <video> slide
   (which has its own motion). */
img.risto-hero__slide {
  transform: scale(1.12) translate(1.5%, 1%);
  transition: opacity 1100ms ease, transform 6s ease-out;
}
img.risto-hero__slide.is-active {
  transform: scale(1) translate(0, 0);
}

.risto-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.risto-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.05) 30%,
    rgba(0,0,0,0.05) 50%,
    rgba(0,0,0,0.50) 80%,
    rgba(12,11,9,0.92) 100%);
  pointer-events: none;
}


.risto-hero__head {
  position: absolute;
  left: 0; right: 0;
  bottom: 110px;
  padding: 0 var(--gutter-body);
  z-index: 5;
}
.risto-hero__eye {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}
.risto-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: var(--ls-display);
  /* base.css sets `h1 { color: var(--ink) }`; override so "Un bistrot"
     stays light against the hero video / photos. */
  color: #fff;
}
.risto-hero__title em {
  font-style: italic;
  color: var(--blush);
}

.risto-hero__bottom {
  position: absolute;
  /* Pulled 20px higher than before so the dots float a bit further
     above the bottom edge of the hero. */
  left: var(--gutter-body); right: var(--gutter-body);
  bottom: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 5;
}

/* `.hero-dots` shared dot indicators live in chrome.css so any page
   carousel can use them. */

/* ---------- Section base for risto -------------------------- */
.risto .section { background: var(--paper-warm); }
.risto .section--cream { background: var(--paper); }
.risto .section--warm  { background: var(--paper-warm); }
.risto .section--dark  { background: var(--ink); color: var(--paper); }
.risto .section--night { background: #0c0b09; color: var(--paper); }

/* ---------- Intro ------------------------------------------- */
.risto-intro__lede {
  margin: 0;
  max-width: 520px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(28, 31, 26, 0.85);
}

.hairline {
  height: 1px;
  background: rgba(28, 31, 26, 0.14);
  border: 0;
  margin: 0;
}

/* ---------- Le cinque stanze (horizontal cards) ------------- */
/* `.stanze-strip` + `.stanza-card` styles live in chrome.css so the
   prenota modal (which can open from any page) can reuse them. */

.stanze-hint {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(28, 31, 26, 0.45);
}

/* ---------- Dal menù ---------------------------------------- */
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.menu-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(28, 31, 26, 0.18);
}
.menu-line__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}
.menu-line__price {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: rgba(28, 31, 26, 0.7);
}

/* ---------- Live music (sticky stack) ----------------------- */
.live-music { padding: var(--section-y) 0; background: #0c0b09; color: var(--paper); }
.live-music__head { padding: 0 var(--gutter-body); margin-bottom: 36px; }
.live-music__eye {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}
.live-music__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: var(--ls-headline);
  color: var(--paper);
}
.live-music__title em { font-style: italic; }
.live-music__sub {
  margin: 0;
  max-width: 460px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(245, 242, 236, 0.75);
}

/* Stack-and-stick: each card occupies its own row, then sticks at a
   progressively lower offset so newer cards land on top with a peek
   of the previous card visible. CSS-only adaptation of the prototype's
   JS scroll-stack. */
.live-music__stack {
  margin-top: 28px;
  padding: 0 var(--gutter-body);
}
.live-music__card {
  position: sticky;
  display: block;
  width: 100%;
  max-width: 360px;
  height: 440px;
  margin: 0 auto 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 60px -32px rgba(0, 0, 0, 0.85), 0 -10px 30px -20px rgba(0, 0, 0, 0.5);
}
.live-music__card:nth-child(1) { top: 80px;  z-index: 1; }
.live-music__card:nth-child(2) { top: 116px; z-index: 2; }
.live-music__card:nth-child(3) { top: 152px; z-index: 3; }
/* Drop the trailing margin so the last card releases cleanly. */
.live-music__card:last-child { margin-bottom: 0; }
/* Runway after the last card so the deck has space to stay pinned
   while the user finishes scrolling through the section. */
.live-music__stack::after {
  content: '';
  display: block;
  height: 200px;
}

.live-music__card-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.live-music__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.32) 18%,
    rgba(0,0,0,0.05) 36%,
    rgba(0,0,0,0.78) 100%);
}
.live-music__card-body {
  position: absolute;
  inset: 0;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.live-music__card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.live-music__when {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: #fff;
}
.live-music__index {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.live-music__name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}
.live-music__copy {
  margin: 0 0 14px;
  max-width: 320px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}
.live-music__hours {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.live-music__playlist {
  display: inline-block;
  margin: 28px var(--gutter-body) 0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--paper);
  padding-bottom: 4px;
}

/* ---------- Eventi privati teaser --------------------------- */
.eventi-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0 calc(-1 * var(--gutter-body));
}
.eventi-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.eventi-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
}
.eventi-card__copy {
  position: absolute;
  left: 24px; right: 24px; bottom: 22px;
  color: #fff;
}
.eventi-card__eye {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}
.eventi-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}
.eventi-card__title span { display: inline-block; margin-left: 6px; }

/* ---------- Trovaci ---------------------------------------- */
.trovaci__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.trovaci__title em { font-style: italic; color: var(--gold); }
.trovaci__hours { display: flex; flex-direction: column; margin-bottom: 26px; }
.trovaci__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.trovaci__row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.trovaci__day {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.6);
}
.trovaci__hours-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
}
.trovaci__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(245, 242, 236, 0.85);
}
.trovaci__contact a { color: inherit; text-decoration: none; }
.trovaci__map {
  display: block;
  position: relative;
  aspect-ratio: 5 / 3;
  background: #2a2d27;
  overflow: hidden;
  text-decoration: none;
  margin: 0 calc(-1 * var(--gutter-body));
}
.trovaci__map svg { display: block; width: 100%; height: 100%; }
.trovaci__map-link {
  position: absolute;
  right: 14px; top: 14px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.7);
}
