/* ==========================================================================
   Da Frasca --- Luminous evening osteria (Michelin-quiet craft, amplified)
   Soft stone + charcoal + wine. One cellar night block.
   Dials: variance 9 · motion 6 · density 3
   ========================================================================== */

:root {
  --stone: #e8e3da;
  --paper: #f4f0e9;
  --ink: #2a2422;
  --ink-soft: #5c534c;
  --wine: #7a2838;
  --wine-deep: #5c1c2a;
  --wine-soft: rgba(122, 40, 56, 0.14);
  --cellar: #2a161a;
  --cellar-mist: #c9b6b0;
  --line: rgba(42, 36, 34, 0.12);
  --line-on-dark: rgba(244, 240, 233, 0.16);
  --ivory: #f4f0e9;

  --font-display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --font-sans: "Source Sans 3", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4.5rem;
  --space-7: 7.5rem;
  --space-8: 10rem;

  --radius: 0;
  --header-h: 60px;
  --mobile-cta-h: 65px;
  --mobile-cta-clearance: calc(var(--mobile-cta-h) + env(safe-area-inset-bottom, 0px));
  --max: 1180px;
  --measure: 36rem;
  --measure-tight: 28ch;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-warm: 0 28px 70px rgba(42, 36, 34, 0.14);
  --focus-ring: 2px solid var(--wine);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  /* overflow-x:clip on root can block body→canvas bg propagation; OS dark
     mode then paints a black canvas in admin-bar margin / subpixel gaps. */
  background-color: var(--paper);
  color-scheme: light;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: clip;
}

body.splash-active {
  overflow: hidden;
}

/* ---------- Theme splash (white logo intro) ---------- */
.theme-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #fff;
  padding:
    max(1.5rem, env(safe-area-inset-top, 0px))
    max(1.5rem, env(safe-area-inset-right, 0px))
    max(1.5rem, env(safe-area-inset-bottom, 0px))
    max(1.5rem, env(safe-area-inset-left, 0px));
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.7s var(--ease);
}

html.splash-seen .theme-splash {
  display: none;
}

.theme-splash.is-out {
  opacity: 0;
  pointer-events: none;
}

.theme-splash__inner {
  display: grid;
  place-items: center;
  width: min(100%, 22rem);
}

.theme-splash__logo {
  display: block;
  width: min(52vw, 17.5rem);
  max-width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.92) translateY(10px);
  transform-origin: center center;
  transition:
    opacity 0.85s var(--ease),
    transform 1s var(--ease);
  will-change: opacity, transform;
}

.theme-splash.is-in .theme-splash__logo {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@media (max-width: 640px) {
  .theme-splash__logo {
    width: min(72vw, 13.5rem);
  }
}

@media (max-width: 380px) {
  .theme-splash__logo {
    width: min(78vw, 11.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-splash,
  .theme-splash__logo {
    transition: none;
  }

  .theme-splash__logo {
    opacity: 1;
    transform: none;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.22s var(--ease);
}

a:hover {
  color: var(--wine);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.btn:focus-visible,
.mobile-cta__btn:focus-visible {
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.75rem 1.55rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.18s var(--ease),
    box-shadow 0.22s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn--primary {
  background: var(--wine);
  color: var(--ivory);
  border-color: var(--wine);
  box-shadow: 0 10px 28px rgba(122, 40, 56, 0.18);
}

.btn--primary:hover {
  background: var(--wine-deep);
  color: var(--ivory);
  border-color: var(--wine-deep);
  box-shadow: 0 14px 34px rgba(92, 28, 42, 0.24);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(42, 36, 34, 0.22);
}

.btn--ghost:hover {
  border-color: rgba(42, 36, 34, 0.42);
  color: var(--ink);
  background: rgba(42, 36, 34, 0.035);
}

.btn--ghost-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(244, 240, 233, 0.48);
}

.btn--ghost-light:hover {
  border-color: rgba(244, 240, 233, 0.9);
  color: var(--ivory);
  background: rgba(244, 240, 233, 0.1);
}

.btn--ivory {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
  box-shadow: 0 10px 28px rgba(26, 18, 20, 0.28);
}

.btn--ivory:hover {
  background: #fffaf3;
  color: var(--ink);
  border-color: #fffaf3;
  box-shadow: 0 14px 34px rgba(26, 18, 20, 0.34);
}

.btn--lg {
  min-height: 54px;
  padding: 0.9rem 1.85rem;
  font-size: 1rem;
}

.text-link {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.24em;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease), text-underline-offset 0.2s var(--ease);
}

.text-link:hover {
  color: var(--wine);
  text-underline-offset: 0.32em;
}

.text-link--on-dark {
  color: var(--cellar-mist);
}

.text-link--on-dark:hover {
  color: var(--ivory);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(244, 240, 233, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.28s var(--ease),
    background 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

/* Keep sticky header flush under WP admin bar (no underlap / ink gap). */
.admin-bar .site-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header.is-scrolled {
  background: rgba(244, 240, 233, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(42, 36, 34, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: calc(var(--max) + 4rem);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.site-brand:hover {
  opacity: 0.88;
}

.site-brand__logo,
.site-brand .custom-logo {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
}

.site-header__cta {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

@media (max-width: 860px) {
  .site-header__cta {
    min-height: 42px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---------- 1. Hero cinematic ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100dvh - var(--header-h));
  overflow: hidden;
  color: var(--ivory);
  background: #140e10;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media {
  position: absolute;
  inset: -4% -2% -8%;
  will-change: transform;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 42%;
  transform: scale(1.04);
  transform-origin: 45% 40%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 72% 58% at 50% 48%,
      rgba(14, 10, 12, 0.72) 0%,
      rgba(14, 10, 12, 0.48) 42%,
      rgba(14, 10, 12, 0.22) 68%,
      rgba(14, 10, 12, 0.32) 100%
    ),
    linear-gradient(
      180deg,
      rgba(14, 10, 12, 0.28) 0%,
      transparent 28%,
      transparent 58%,
      rgba(14, 10, 12, 0.58) 100%
    );
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: calc(var(--max) + 4rem);
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 2.5rem) var(--space-4) clamp(2rem, 7vh, 4rem);
  text-align: center;
}

.hero__title {
  margin: 0 auto var(--space-3);
  max-width: 9ch;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(4.25rem, 13vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  padding-bottom: 0.06em;
  text-wrap: balance;
  text-shadow: 0 18px 48px rgba(8, 5, 6, 0.45);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero__actions .btn--primary {
  box-shadow: 0 12px 32px rgba(92, 28, 42, 0.42);
}

@media (min-width: 900px) {
  .hero__media img {
    object-position: 52% 40%;
  }
}

@media (max-width: 640px) {
  .hero {
    align-items: center;
    min-height: calc(100dvh - var(--header-h) - env(safe-area-inset-bottom, 0px));
  }

  .hero__media img {
    object-position: 50% 38%;
  }

  .hero__veil {
    background:
      radial-gradient(
        ellipse 90% 70% at 50% 48%,
        rgba(14, 10, 12, 0.55) 0%,
        rgba(14, 10, 12, 0.28) 55%,
        rgba(14, 10, 12, 0.42) 100%
      ),
      linear-gradient(
        180deg,
        rgba(14, 10, 12, 0.32) 0%,
        rgba(14, 10, 12, 0.18) 40%,
        rgba(14, 10, 12, 0.45) 100%
      );
  }

  .hero__copy {
    padding-top: clamp(1.25rem, 3vh, 2rem);
    padding-bottom: clamp(1.25rem, 3vh, 2rem);
  }

  .hero__title {
    font-size: clamp(3.1rem, 14vw, 4.4rem);
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    min-height: 48px;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: clamp(2.75rem, 13.5vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__media img {
    animation:
      hero-settle 2s var(--ease) both,
      hero-drift 36s 2s ease-in-out infinite alternate;
  }

  .hero__copy {
    animation: hero-rise 1.15s var(--ease) 0.18s both;
  }
}

@keyframes hero-settle {
  from {
    transform: scale(1.12);
    filter: brightness(0.78) saturate(0.92);
  }
  to {
    transform: scale(1.04);
    filter: brightness(1) saturate(1);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-0.8%, -1%, 0);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ---------- 2. Manifesto type ---------- */
.manifesto {
  padding: clamp(5.5rem, 16vh, 11rem) 0 clamp(4.5rem, 12vh, 8rem);
  background: var(--paper);
}

.manifesto__inner {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 var(--space-4);
  text-align: center;
}

.manifesto__title {
  margin: 0 auto var(--space-5);
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 7.8vw, 5.75rem);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}

.manifesto__title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--wine);
  padding-bottom: 0.1em;
  letter-spacing: -0.03em;
}

.manifesto__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-width: 26rem;
  margin-inline: auto;
  margin-top: 0;
  text-align: center;
}

/* Hours plate — hairline frame, menu-card rhythm */
.manifesto__plate {
  width: 100%;
  padding: var(--space-4) var(--space-4) calc(var(--space-4) + 0.25rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifesto__days {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

.manifesto__days-prep {
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.manifesto__services {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-width: min(100%, 26rem);
  margin-inline: auto;
}

.manifesto__service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  text-align: center;
}

.manifesto__service + .manifesto__service {
  margin-top: 0;
}

.manifesto__service-label {
  text-align: center;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.2;
}

.manifesto__service-time {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.42rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.manifesto__time-range {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 0.42em;
  row-gap: 0.1em;
}

.manifesto__time-open,
.manifesto__time-close {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}

.manifesto__time-sep {
  flex-shrink: 0;
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.78em;
  letter-spacing: 0;
  opacity: 0.5;
  translate: 0 -0.04em;
}

/* Plain-text fallback (block editor preview) */
.manifesto__service-time:not(:has(.manifesto__time-range)) {
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* Single service: no split column */
.manifesto__services:has(> :only-child) {
  max-width: 14rem;
}

.manifesto__services:has(> :only-child) .manifesto__service {
  padding: 0;
}

.manifesto__services:has(> :only-child) .manifesto__service::before {
  display: none;
}

.manifesto__aside {
  margin: 0.15rem 0 0;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.4;
}

.manifesto__addr {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  line-height: 1.5;
  opacity: 0.88;
}

.manifesto__addr a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.manifesto__addr a:hover {
  color: var(--wine);
  border-bottom-color: var(--wine-soft);
  opacity: 1;
}

@media (max-width: 380px) {
  .manifesto__services {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    max-width: 12rem;
  }

  .manifesto__service {
    min-width: 0;
    width: 100%;
    padding: 0;
  }

  .manifesto__service + .manifesto__service {
    padding-left: 0;
    padding-top: 0;
  }

  .manifesto__service + .manifesto__service::before {
    display: none;
  }
}

/* ---------- 3. Sticky cucina chapters ---------- */
.cucina {
  background: var(--stone);
}

.chapters {
  display: grid;
  position: relative;
}

.chapter {
  position: sticky;
  top: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  height: calc(100dvh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  background: var(--stone);
  box-shadow: 0 -1px 0 var(--line);
  transition: filter 0.35s var(--ease);
  isolation: isolate;
}

.chapter.is-passed {
  filter: brightness(0.92);
}

.chapter__progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.chapter__progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.chapter__media {
  margin: 0;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  position: relative;
}

.chapter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 0.9s var(--ease);
}

.chapter.is-active .chapter__media img {
  transform: scale(1);
}

.chapter__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: clamp(1.6rem, 3.8vw, 3rem) clamp(1.4rem, 3vw, 2.75rem);
  background: var(--paper);
  border-left: 1px solid var(--line);
}

.chapter__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.chapter__note {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  max-width: 28ch;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.012em;
}

.chapter__price {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--wine);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.chapter__tease {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  max-width: 22ch;
  border-top: 1px solid var(--line);
}

.chapter__tease li {
  margin: 0;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--ink);
}

.chapter__tease a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s var(--ease), padding-left 0.22s var(--ease);
}

.chapter__tease a:hover {
  color: var(--wine);
  padding-left: 0.2rem;
}

.chapter__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (max-width: 860px) {
  /* Sticky stack + image settle — same parallax behaviour as desktop */
  .chapter {
    position: sticky;
    top: var(--header-h);
    grid-template-columns: 1fr;
    /* Middle ground: was 1.2/0.8 (panel troppo giù) then 1/1 (troppo sopra) */
    grid-template-rows: minmax(0, 1.1fr) minmax(0, 0.9fr);
    height: calc(100dvh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    overflow-x: clip;
  }

  /*
   * Full-menu: media matches regular ~1.1/2 share; panel hugs content.
   * Avoid 1.69× sticky height + 1.35fr — that left a cavern under the CTA.
   */
  .chapter--full {
    grid-template-rows: calc((100dvh - var(--header-h)) * 0.55) auto;
    height: auto;
    min-height: 0;
    align-content: start;
  }

  .chapter__media {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .chapter__media img {
    min-height: 0;
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    transform: scale(1.04);
    transform-origin: center center;
  }

  .chapter.is-active .chapter__media img {
    transform: scale(1);
  }

  .chapter__panel {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: var(--space-4) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  }

  .chapter--full .chapter__panel {
    height: auto;
    overflow: visible;
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  }

  .chapter__name {
    font-size: clamp(1.7rem, 6.5vw, 2.2rem);
  }

  .chapter__note {
    margin-top: 0.45rem;
    max-width: none;
    font-size: 0.95rem;
  }

  .chapter__price {
    margin-top: 0.85rem;
  }

  .chapter__tease {
    margin-top: 1rem;
    max-width: none;
  }

  .chapter__tease li {
    padding: 0.55rem 0;
    font-size: 0.98rem;
  }

  .chapter__actions {
    margin-top: 1.1rem;
    gap: 0.75rem;
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .chapter__media img,
  .chapter.is-active .chapter__media img {
    transform: none;
    transition: none;
  }

  .chapter.is-passed {
    filter: none;
  }
}

/* ---------- 4. Cellar wine night (one dark block) ---------- */
.cellar {
  background: var(--cellar);
  color: var(--ivory);
}

.cellar__stage {
  position: relative;
  min-height: min(82dvh, 820px);
  overflow: hidden;
}

.cellar__media {
  margin: 0;
  position: absolute;
  inset: 0;
}

.cellar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0.7;
  transform: scale(1.05);
  transition: transform 1.4s var(--ease), opacity 1s var(--ease);
}

.cellar.is-visible .cellar__media img {
  transform: scale(1);
  opacity: 0.78;
}

.cellar__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 22, 26, 0.9) 0%, rgba(42, 22, 26, 0.42) 48%, rgba(42, 22, 26, 0.72) 100%),
    linear-gradient(180deg, transparent 28%, rgba(42, 22, 26, 0.88) 100%);
  pointer-events: none;
}

.cellar__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: min(82dvh, 820px);
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.cellar__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ivory);
}

.cellar__text {
  margin: 0 auto;
  max-width: min(36rem, 100%);
  font-size: clamp(1.05rem, 1.55vw, 1.18rem);
  line-height: 1.55;
  color: var(--cellar-mist);
}

.cellar__strip-wrap {
  max-width: none;
  margin: 0;
  padding: 0 0 clamp(3.5rem, 8vh, 5.5rem);
  overflow: hidden;
}

.cellar__marquee {
  display: flex;
  width: max-content;
  margin: 0 0 var(--space-4);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.cellar__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 1.15rem 0;
  list-style: none;
}

.cellar__name {
  flex-shrink: 0;
  padding: 0 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
  line-height: 1.25;
  color: var(--ivory);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.cellar__name::after {
  content: "·";
  margin-left: 1.35rem;
  color: var(--cellar-mist);
  font-weight: 400;
  opacity: 0.72;
}

@media (prefers-reduced-motion: no-preference) {
  .cellar__marquee {
    animation: cellar-marquee 75s linear infinite;
  }

  .cellar__marquee:hover {
    animation-play-state: paused;
  }
}

@keyframes cellar-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cellar__strip-wrap {
    overflow: visible;
  }

  .cellar__marquee {
    display: block;
    width: auto;
    max-width: calc(var(--max) + 4rem);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-4);
    mask-image: none;
    -webkit-mask-image: none;
  }

  .cellar__track {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.55rem;
    padding: 1rem 0;
  }

  .cellar__track[aria-hidden="true"] {
    display: none;
  }

  .cellar__name {
    white-space: normal;
  }

  .cellar__name:last-child::after {
    content: none;
    margin: 0;
  }
}

.cellar__pdf {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 var(--space-4);
  text-align: center;
}

/* ---------- Serate a tema ---------- */
.serate {
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(3.5rem, 9vh, 6rem);
  background: var(--stone);
  border-top: 1px solid var(--line);
}

.serate__inner {
  max-width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--space-4);
  text-align: center;
}

.serate__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.serate__carousel {
  position: relative;
  outline: none;
}

.serate__carousel:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

.serate__viewport {
  overflow: hidden;
}

.serate__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  will-change: transform;
  transition: transform 0.7s var(--ease);
}

.serate__item {
  margin: 0;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.serate__link {
  position: relative;
  display: grid;
  align-items: end;
  width: 100%;
  min-height: clamp(22rem, 58vh, 36rem);
  overflow: hidden;
  color: var(--ivory);
  text-decoration: none;
  text-align: left;
  background: #140e10;
}

.serate__media,
.serate__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.serate__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease);
}

.serate__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 22%,
    rgba(122, 40, 56, 0.58) 55%,
    rgba(122, 40, 56, 0.98) 100%
  );
  pointer-events: none;
}

.serate__fallback {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(122, 40, 56, 0.28), transparent 55%),
    linear-gradient(160deg, #2a161a 0%, #140e10 55%, #1c1214 100%);
}

.serate__copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.45rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 38rem;
}

.serate__item-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.serate__item-meta {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.72);
}

.serate__item-excerpt {
  margin-top: 0.15rem;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.5;
  color: rgba(244, 240, 233, 0.78);
  max-width: 42ch;
}

.serate__link:hover,
.serate__link:focus-visible {
  color: var(--ivory);
}

.serate__link:hover .serate__item-title,
.serate__link:focus-visible .serate__item-title {
  color: var(--ivory);
}

.serate__link:hover .serate__item-meta,
.serate__link:focus-visible .serate__item-meta {
  color: rgba(244, 240, 233, 0.72);
}

.serate__link:hover .serate__item-excerpt,
.serate__link:focus-visible .serate__item-excerpt {
  color: rgba(244, 240, 233, 0.78);
}

.serate__link:hover .serate__media img,
.serate__link:focus-visible .serate__media img {
  transform: scale(1.05);
}

.serate__link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.serate__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.serate__nav {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.serate__nav:hover,
.serate__nav:focus-visible {
  color: var(--wine);
  border-color: var(--wine);
}

.serate__nav:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.serate__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.serate__dot {
  width: 1.35rem;
  height: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(42, 36, 34, 0.22);
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.serate__dot.is-active {
  background: var(--wine);
  transform: scaleX(1.15);
}

.serate__dot:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .serate__item-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .serate__track {
    transition: none;
  }

  .serate__media img,
  .serate__link:hover .serate__media img,
  .serate__link:focus-visible .serate__media img {
    transform: none;
    transition: none;
  }

  .serate__dot {
    transition: none;
  }
}

/* Single event / blog — margin-top and padding-bottom share --space-5 */
.page-main--event-hero .event-page-layout,
.page-main--blog-hero .blog-page-layout {
  margin-top: var(--space-5);
  padding: 0 var(--space-4) var(--space-5);
}

/* Related serate: full-bleed like homepage #serate (no content-column padding).
   Equal vertical padding (shared .serate keeps its asymmetric top/bottom). */
.page-main--event-hero .event-related.serate {
  padding: clamp(4rem, 10vh, 7rem) 0;
}

.event-page__hero,
.blog-post__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: max(70vh, calc(100dvh - var(--header-h) - 6rem));
  margin: 0;
  overflow: hidden;
  color: var(--ivory);
  background: #140e10;
}

.event-page__hero-stage,
.blog-post__hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.event-page__hero-media,
.blog-post__hero-media {
  position: absolute;
  inset: -4% -2% -8%;
}

.event-page__hero-media img,
.blog-post__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 42%;
  transform: scale(1.04);
  transform-origin: 45% 40%;
}

.event-page__hero-veil,
.blog-post__hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 72% 58% at 50% 48%,
      rgba(14, 10, 12, 0.55) 0%,
      rgba(14, 10, 12, 0.32) 42%,
      rgba(14, 10, 12, 0.18) 68%,
      rgba(14, 10, 12, 0.28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(14, 10, 12, 0.22) 0%,
      transparent 32%,
      rgba(14, 10, 12, 0.55) 72%,
      rgba(14, 10, 12, 0.78) 100%
    );
  pointer-events: none;
}

.event-page__hero-copy,
.blog-post__hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 2.5rem) var(--space-4);
  text-align: center;
}

@media (max-width: 640px) {
  .event-page__hero,
  .blog-post__hero {
    justify-content: center;
    min-height: max(68vh, calc(100dvh - var(--header-h) - env(safe-area-inset-bottom, 0px) - 4rem));
  }

  .event-page__hero-media img,
  .blog-post__hero-media img {
    object-position: 50% 38%;
  }

  .event-page__hero-copy,
  .blog-post__hero-copy {
    padding-top: clamp(1.25rem, 3vh, 2rem);
    padding-bottom: clamp(1.25rem, 3vh, 2rem);
  }
}

.event-page__hero .event-page__eyebrow {
  color: rgba(244, 240, 233, 0.72);
}

.event-page__hero .event-page__title,
.blog-post__hero .blog-post__title {
  color: var(--ivory);
  text-shadow: 0 12px 36px rgba(8, 5, 6, 0.4);
}

.blog-post__hero .blog-post__title {
  margin-top: 0;
}

.event-page__hero .event-page__meta,
.blog-post__hero .blog-post__meta {
  color: rgba(244, 240, 233, 0.78);
}

@media (prefers-reduced-motion: no-preference) {
  .event-page__hero-media img,
  .blog-post__hero-media img {
    animation: hero-settle 1.8s var(--ease) both;
  }

  .event-page__hero-copy,
  .blog-post__hero-copy {
    animation: hero-rise 1s var(--ease) 0.12s both;
  }
}

.event-page-layout,
.blog-page-layout {
  max-width: var(--measure);
  margin: 0 auto;
}

.event-page-layout--with-sidebar,
.blog-page-layout--with-sidebar {
  max-width: min(58rem, 100%);
}

.event-page {
  max-width: var(--measure);
  margin: 0 auto;
}

.event-page-layout--with-sidebar .event-page,
.blog-page-layout--with-sidebar .blog-post {
  margin: 0;
  max-width: var(--measure);
}

.event-page__header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.event-page__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.event-page__title {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.event-page__meta {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.event-page__sep {
  margin: 0 0.35rem;
}

.event-page__body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
}

.event-page__body > *:first-child {
  margin-top: 0;
}

.event-page__body p,
.event-page__body ul {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.event-page__note {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Sidebar — quiet related lists (event + blog) */
.event-sidebar,
.post-sidebar {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.event-sidebar__block + .event-sidebar__block,
.post-sidebar__block + .post-sidebar__block {
  margin-top: var(--space-5);
}

.event-sidebar__title,
.post-sidebar__title {
  margin: 0 0 var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.event-sidebar__list,
.post-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-sidebar__item,
.post-sidebar__item {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.event-sidebar__item:last-child,
.post-sidebar__item:last-child {
  border-bottom: none;
}

.event-sidebar__link,
.post-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.event-sidebar__media,
.post-sidebar__media {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  background: var(--line);
}

.event-sidebar__media img,
.post-sidebar__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-sidebar__body,
.post-sidebar__body {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.event-sidebar__link:hover,
.event-sidebar__link:focus-visible,
.post-sidebar__link:hover,
.post-sidebar__link:focus-visible {
  color: var(--wine);
}

.event-sidebar__item-title,
.post-sidebar__item-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.event-sidebar__item-meta,
.post-sidebar__item-meta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.event-sidebar__link:hover .event-sidebar__item-meta,
.event-sidebar__link:focus-visible .event-sidebar__item-meta,
.post-sidebar__link:hover .post-sidebar__item-meta,
.post-sidebar__link:focus-visible .post-sidebar__item-meta {
  color: var(--wine);
}

.event-sidebar__more,
.post-sidebar__more {
  margin: var(--space-3) 0 0;
}

/* Stacked layout (<960px): hide sidebar blocks that duplicate the full-bleed
   related sections below (and Prossime serate / Dal blog on mobile). */
@media (max-width: 959px) {
  .post-sidebar__block--related,
  .post-sidebar__block--serate,
  .event-sidebar__block--related,
  .event-sidebar__block--blog {
    display: none;
  }

  /* Sidebars only hold those blocks — hide the empty shells. */
  .post-sidebar,
  .event-sidebar {
    display: none;
  }
}

/* Related bar — Altri articoli: full-bleed cards like homepage #blog. */
.page-main--blog-hero:has(.post-related) {
  padding-bottom: 0;
}

.post-related {
  padding: clamp(4rem, 10vh, 7rem) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.post-related__inner {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 var(--space-4);
  text-align: center;
}

.post-related__title {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.post-related .blog__more:first-child {
  margin-top: 0;
}

@media (min-width: 960px) {
  .event-page-layout--with-sidebar,
  .blog-page-layout--with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12.5rem, 14.5rem);
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .event-sidebar,
  .post-sidebar {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .serate__inner {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.95s var(--ease),
      transform 0.95s var(--ease),
      filter 0.95s var(--ease);
    filter: blur(3px);
  }

  .serate.is-visible .serate__inner {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* ---------- Dal blog / Novità ---------- */
/* section.blog — not bare .blog: WP adds body.blog on the posts index. */
section.blog {
  padding: clamp(5rem, 12vh, 8.5rem) 0 clamp(4.5rem, 11vh, 7.5rem);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.blog__inner {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 var(--space-4);
  text-align: center;
}

.blog__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.blog__text {
  margin: 0 auto var(--space-5);
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  line-height: 1.55;
}

.blog__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  text-align: left;
}

.blog__item {
  margin: 0;
  min-width: 0;
  height: 100%;
}

.blog__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #fffaf3;
  border: 1px solid var(--line);
  overflow: hidden;
}

.blog__link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.blog__item-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
}

.blog__item-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.blog__link:hover .blog__item-media img,
.blog__link:focus-visible .blog__item-media img {
  transform: scale(1.04);
}

.blog__item-body {
  display: grid;
  gap: 0.4rem;
  flex: 1;
  padding: 1.15rem 1.2rem 1.35rem;
}

.blog__item-meta {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.28s var(--ease);
}

.blog__link:hover .blog__item-meta,
.blog__link:focus-visible .blog__item-meta {
  color: var(--wine);
}

.blog__item-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color 0.28s var(--ease);
}

.blog__link:hover .blog__item-title,
.blog__link:focus-visible .blog__item-title {
  color: var(--wine);
}

.blog__item-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog__more {
  margin: var(--space-5) 0 0;
}

@media (min-width: 640px) {
  .blog__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

@media (min-width: 900px) {
  .blog__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog__item-media img,
  .blog__item-meta,
  .blog__item-title {
    transition: none;
  }

  .blog__link:hover .blog__item-media img,
  .blog__link:focus-visible .blog__item-media img {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .blog__inner {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.95s var(--ease),
      transform 0.95s var(--ease),
      filter 0.95s var(--ease);
    filter: blur(3px);
  }

  section.blog.is-visible .blog__inner {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* Single post + blog archive */
.blog-post {
  max-width: var(--measure);
  margin: 0 auto;
}

.blog-archive {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
}

.blog-archive__header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.blog-archive__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.blog-post__title,
.blog-archive__title {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.blog-post__meta {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.blog-post__body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
}

.blog-post__body > *:first-child {
  margin-top: 0;
}

.blog-post__body h2 {
  margin: 2.25rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.blog-post__body h3 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.blog-post__body p,
.blog-post__body ul {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.blog-post__body ul {
  padding-left: 1.15rem;
}

.blog-post__body a {
  color: var(--wine);
}

.blog-archive__empty {
  text-align: center;
  color: var(--ink-soft);
}

.page-main .navigation.pagination {
  margin-top: var(--space-5);
  text-align: center;
}

.page-main .navigation.pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.page-main .navigation.pagination a,
.page-main .navigation.pagination .current {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.page-main .navigation.pagination a:hover,
.page-main .navigation.pagination a:focus-visible {
  color: var(--wine);
}

/* ---------- 5. Dove giant type + map ---------- */
.place {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
  min-height: min(74dvh, 720px);
  background: var(--stone);
  border-top: 1px solid var(--line);
}

.place__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 5.5rem) var(--space-4);
  max-width: 42rem;
}

.place__address {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.2vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 0.98;
}

.place__address a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

.place__address a:hover {
  color: var(--wine);
}

.place__address span {
  display: block;
  color: var(--wine);
}

.place__city {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.12;
  padding-bottom: 0.08em;
  letter-spacing: -0.02em;
}

.place__directions {
  align-self: flex-start;
  margin-top: 0.15rem;
}

.place__map {
  margin: 0;
  overflow: hidden;
  min-height: 280px;
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--stone) 70%, var(--ink) 30%);
}

.place__map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(74dvh, 720px);
  border: 0;
  filter: grayscale(0.22) contrast(0.96) saturate(0.88);
}

@media (max-width: 768px) {
  .place {
    grid-template-columns: 1fr;
  }

  .place__inner {
    align-items: center;
    max-width: none;
    text-align: center;
  }

  .place__directions {
    align-self: center;
  }

  .place__map {
    border-left: 0;
    border-top: 1px solid var(--line);
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .place__map-frame {
    min-height: 0;
    height: 100%;
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--space-5) 0 calc(var(--space-5) + var(--mobile-cta-clearance));
  background: var(--ink);
  color: var(--ivory);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  grid-template-areas: "contacts bottom legal";
  align-items: start;
  column-gap: var(--space-5);
  row-gap: var(--space-4);
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.site-footer__col--contacts {
  grid-area: contacts;
  text-align: left;
}

.site-footer__col--legal {
  grid-area: legal;
  text-align: right;
}

/* Shared column rhythm: same gap under labels whether next sibling is p or ul */
.site-footer__col--contacts,
.site-footer__col--legal {
  display: flex;
  flex-direction: column;
  row-gap: 0.3rem;
}

.site-footer__label {
  margin: 0 0 0.25rem; /* + row-gap → 0.55rem under label */
  color: var(--cellar-mist);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}

.site-footer a {
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer a:hover {
  color: #e8b4be;
}

.site-footer a.btn {
  transition:
    background-color 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.18s var(--ease),
    box-shadow 0.22s var(--ease);
}

.site-footer a.btn--primary {
  color: var(--ivory);
}

.site-footer a.btn--primary:hover {
  color: var(--ivory);
  background: var(--wine-deep);
  border-color: var(--wine-deep);
}

.site-footer__col p:not(.site-footer__label) {
  margin: 0;
  color: var(--ivory);
  font-size: 0.95rem;
  line-height: 1.45;
}

.site-footer__sep {
  color: var(--cellar-mist);
  font-weight: 300;
}

.footer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.45;
}

.footer-nav li + li {
  margin-top: 0.3rem;
}

.site-footer__bottom {
  grid-area: bottom;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  text-align: center;
}

.site-footer__hours {
  margin: 0;
  color: var(--cellar-mist);
  font-size: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.site-footer__hours p {
  margin: 0;
}

.site-footer__hours p + p {
  margin-top: 0.12rem;
}

.site-footer__copy {
  margin: 0;
  color: rgba(201, 182, 176, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "contacts"
      "legal"
      "bottom";
    row-gap: var(--space-3);
  }

  .site-footer__col--legal,
  .site-footer__col--contacts {
    text-align: center;
  }

  .site-footer__bottom {
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- Bottom booking banner (desktop + mobile) ---------- */
.mobile-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  padding: 0.7rem 1.25rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 36px rgba(42, 36, 34, 0.05);
  color: var(--ink);
}

.mobile-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.mobile-cta__text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.mobile-cta__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 0.55rem;
}

.mobile-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.15s var(--ease);
}

.mobile-cta__btn:active {
  transform: scale(0.985);
}

.mobile-cta__btn--primary {
  background: var(--wine);
  color: var(--ivory);
  box-shadow: 0 6px 18px rgba(122, 40, 56, 0.16);
}

.mobile-cta__btn--primary:hover {
  background: var(--wine-deep);
  color: var(--ivory);
}

.mobile-cta__btn--ghost {
  border: 1px solid rgba(42, 36, 34, 0.2);
  color: var(--ink);
  background: transparent;
}

.mobile-cta__btn--ghost:hover {
  border-color: rgba(42, 36, 34, 0.38);
  background: rgba(42, 36, 34, 0.03);
  color: var(--ink);
}

@media (max-width: 860px) {
  :root {
    --mobile-cta-h: 118px;
  }

  .mobile-cta {
    padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .mobile-cta__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .mobile-cta__text {
    text-align: center;
    font-size: 1.05rem;
  }

  .mobile-cta__actions {
    width: 100%;
  }

  .mobile-cta__btn {
    flex: 1;
    min-height: 46px;
    padding: 0 0.75rem;
    font-size: 0.92rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  .mobile-cta__btn {
    transition: none;
  }

  .mobile-cta__btn:active {
    transform: none;
  }
}

/* ---------- Reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .manifesto__title,
  .manifesto__meta,
  .cellar__copy,
  .place__inner {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.95s var(--ease),
      transform 0.95s var(--ease),
      filter 0.95s var(--ease);
    filter: blur(3px);
  }

  .manifesto.is-visible .manifesto__title,
  .manifesto.is-visible .manifesto__meta,
  .cellar.is-visible .cellar__copy,
  .place.is-visible .place__inner {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }

  .manifesto.is-visible .manifesto__meta {
    transition-delay: 0.2s;
  }
}

/* ---------- Content / legal pages ---------- */
.page-main {
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%, rgba(122, 40, 56, 0.05), transparent 55%),
    linear-gradient(180deg, var(--stone) 0%, var(--paper) 18%, var(--paper) 100%);
  color: var(--ink);
  padding: clamp(3rem, 8vh, 5.5rem) var(--space-4) var(--space-7);
}

/* After .page-main so shorthand padding does not re-inset the hero. */
.page-main--event-hero,
.page-main--blog-hero {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Related block already has .serate vertical padding — don't stack space-7 under it. */
.page-main--event-hero:has(.event-related) {
  padding-bottom: 0;
}

.content-page {
  max-width: var(--measure);
  margin: 0 auto;
}

.content-page__header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.content-page__eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
}

.content-page__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.content-page__intro {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.content-page__body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
}

.content-page__footer {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(26, 22, 18, 0.12);
  text-align: center;
}

.content-page__note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.content-page__body > *:first-child {
  margin-top: 0;
}

.content-page__body h2 {
  margin: 2.25rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.content-page__body h3 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.content-page__body p,
.content-page__body ul {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.content-page__body ul {
  padding-left: 1.15rem;
}

.content-page__body li + li {
  margin-top: 0.35rem;
}

.content-page__body a,
.site-main--content a {
  color: var(--wine);
}

.site-main--content {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-7);
  color: var(--ink);
}

.site-main--content h1,
.site-main--content h2,
.site-main--content h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* ---------- Full menu page ---------- */
.menu-page {
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%, rgba(122, 40, 56, 0.05), transparent 55%),
    linear-gradient(180deg, var(--stone) 0%, var(--paper) 18%, var(--paper) 100%);
  color: var(--ink);
}

.menu-page__hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) var(--space-4) var(--space-5);
  text-align: center;
}

.menu-page__eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.menu-page__title {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 8vw, 5.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.menu-page__lead {
  margin: 1rem auto 0;
  max-width: 28ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.5;
}

.menu-page__body {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-6);
  display: grid;
  gap: var(--space-5);
}

.menu-section {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
  width: 100%;
}

.menu-section__title {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
}

.menu-item__name {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.menu-item__price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--wine);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  flex-shrink: 0;
}

.menu-page__footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-4) clamp(4rem, 10vh, 7rem);
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  border-top: 1px solid var(--line);
  padding-top: var(--space-5);
  text-align: center;
}

.menu-page__note {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.menu-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .menu-page__title,
  .menu-page__lead {
    opacity: 0;
    transform: translateY(18px);
    animation: menu-rise 0.9s var(--ease) forwards;
  }

  .menu-page__lead {
    animation-delay: 0.08s;
  }

  .menu-section {
    opacity: 0;
    transform: translateY(14px);
    animation: menu-rise 0.85s var(--ease) forwards;
  }

  .menu-section:nth-child(1) { animation-delay: 0.12s; }
  .menu-section:nth-child(2) { animation-delay: 0.18s; }
  .menu-section:nth-child(3) { animation-delay: 0.24s; }
  .menu-section:nth-child(4) { animation-delay: 0.3s; }
  .menu-section:nth-child(5) { animation-delay: 0.36s; }
  .menu-section:nth-child(6) { animation-delay: 0.42s; }
  .menu-section:nth-child(7) { animation-delay: 0.48s; }
}

@keyframes menu-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Mobile polish (targeted) ---------- */
@media (max-width: 640px) {
  .site-brand__logo,
  .site-brand .custom-logo {
    height: 42px;
  }

  .manifesto {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .place__inner {
    padding: var(--space-5) var(--space-4);
  }

  .place__address {
    font-size: clamp(2.05rem, 9.5vw, 2.85rem);
    overflow-wrap: anywhere;
  }

  .place__directions .btn {
    min-height: 48px;
  }

  .chapter__actions .btn {
    min-height: 48px;
  }

  .menu-page__hero {
    padding: clamp(2.25rem, 6vh, 3.5rem) var(--space-4) var(--space-4);
  }

  .menu-page__title {
    font-size: clamp(2.55rem, 11vw, 3.5rem);
  }

  .menu-page__body {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .menu-page__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .menu-page__actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .site-footer {
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }

  .site-footer__inner {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .mobile-cta__btn {
    min-height: 48px;
  }

  .cellar__copy {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .cellar__title {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }
}

@media (max-width: 380px) {
  .menu-item {
    gap: 0.75rem;
  }

  .menu-item__price {
    font-size: 0.98rem;
  }

  .mobile-cta__text {
    font-size: 0.98rem;
  }
}
