/* ==========================================================================
   Trattoria del Papa, Casablanca.
   An Italian printed paper: ivory carta, ink, the red of Papa's disc, a
   bottle-green for the evening. The print is a damask woven from the house
   moustache (images/damask.png, tinted per band through a CSS mask), and every
   picture hangs like an etching, inside a hairline plate mark with its Tav.
   Type: Libre Caslon Display, Libre Caslon Text italic, Mulish.
   ========================================================================== */

:root {
  --carta: #f4ede0;
  --carta-lt: #fbf7ef;
  --carta-dk: #ebe1cf;
  --ink: #211915;
  --ink-soft: #5e5047;
  --line: rgba(33, 25, 21, 0.16);
  --line-strong: rgba(33, 25, 21, 0.32);
  --rosso: #8c2823;
  --rosso-hi: #a8322d;
  --rosso-dk: #6c1d19;
  --verde: #1d3227;
  --verde-dk: #14241b;
  --ottone: #a88449;
  --ottone-lt: #dcc79c;
  --on-dark: #f4ede0;
  --on-dark-soft: rgba(244, 237, 224, 0.74);
  --line-dark: rgba(244, 237, 224, 0.18);
  --display: 'Libre Caslon Display', 'Didot', Georgia, serif;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --sans: 'Mulish', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --shadow: 0 24px 60px rgba(33, 25, 21, 0.16);
  --shadow-soft: 0 12px 30px rgba(33, 25, 21, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--carta);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--rosso); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--rosso); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; }
h2 em, h1 em, h3 em, .section-title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--rosso);
}

.container { width: min(1200px, 90vw); margin: 0 auto; }
section { padding: 120px 0; position: relative; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-title {
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -0.01em;
  margin: 14px 0 18px;
}
.section-sub { color: var(--ink-soft); max-width: 600px; }
.section-head.center .section-sub { margin: 0 auto; }
.hidden { display: none !important; }

/* The moustache, cut from the logo, used as an ornament in any colour */
.baffi {
  display: inline-block;
  width: 58px;
  aspect-ratio: 450 / 155;
  background: currentColor;
  -webkit-mask: url('/images/baffi.png') center / contain no-repeat;
  mask: url('/images/baffi.png') center / contain no-repeat;
}

/* The damask print. Each band sets --damask to tint it for its own ground. */
.damask { isolation: isolate; }
.damask::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--damask, rgba(33, 25, 21, 0.075));
  -webkit-mask: url('/images/damask.png') 0 0 / 150px 150px repeat;
  mask: url('/images/damask.png') 0 0 / 150px 150px repeat;
}

/* Chapter mark: Roman numeral, a hairline, the Italian word */
.chapter {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rosso);
}
.chapter span { order: 0; font-family: var(--display); font-size: 17px; letter-spacing: 0.08em; }
.chapter::after { content: ''; order: 1; width: 44px; height: 1px; background: currentColor; opacity: 0.55; }
.chapter em {
  order: 2;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
}
.chapter.light { color: var(--ottone-lt); }
.chapter.light em { color: var(--on-dark); }

/* ---------- buttons: outlined pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.btn:hover { background: var(--ink); color: var(--carta); }
.btn.solid { background: var(--rosso); border-color: var(--rosso); color: #fff; }
.btn.solid:hover { background: var(--rosso-hi); border-color: var(--rosso-hi); }
.btn.ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); color: inherit; }
.btn.ghost.light { color: var(--on-dark); border-color: rgba(244, 237, 224, 0.6); }
.btn.ghost.light:hover { background: var(--on-dark); color: var(--verde-dk); border-color: var(--on-dark); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 18px 0;
  color: var(--on-dark);
  transition: background 0.4s ease, color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(244, 237, 224, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  padding: 9px 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav.menu-open, .nav.scrolled.menu-open { background: var(--verde-dk); color: var(--on-dark); box-shadow: none; }
.nav .container { width: min(1340px, 94vw); }
.nav-inner { display: flex; align-items: center; gap: 28px; }
.nav-logo img { width: 56px; height: 56px; border-radius: 50%; transition: width 0.35s ease, height 0.35s ease; }
.nav.scrolled .nav-logo img { width: 46px; height: 46px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0 auto; }
.nav-right { display: flex; align-items: center; gap: 18px; list-style: none; }
.nav-links a, .nav-right a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  display: inline-block;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 22px;
  height: 7px;
  background: currentColor;
  -webkit-mask: url('/images/baffi.png') center / contain no-repeat;
  mask: url('/images/baffi.png') center / contain no-repeat;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-cta {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 10px 22px !important;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav-cta:hover { background: var(--rosso); border-color: var(--rosso); color: #fff !important; }
.nav-auth { opacity: 0.88; }
.nav-auth:hover { opacity: 1; }
.nav-auth.signed-in { color: var(--ottone-lt); }
.nav.scrolled .nav-auth.signed-in { color: var(--rosso); }

.lang-switch {
  position: relative;
  display: inline-flex;
  border: 1px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
  font-size: 11px;
}
.lang-switch::before {
  content: '';
  position: absolute;
  inset: 0 50% 0 0;
  background: var(--rosso);
  border-radius: 999px;
  transition: transform 0.3s var(--ease);
}
.lang-switch.on-fr::before { transform: translateX(100%); }
.lang-switch button {
  position: relative;
  z-index: 1;
  background: none;
  border: 0;
  color: inherit;
  padding: 6px 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.lang-switch button.active { color: #fff; }

.burger { display: none; background: none; border: 0; color: inherit; width: 40px; height: 34px; position: relative; z-index: 70; margin-left: auto; }
.burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.burger span:nth-child(1) { top: 10px; }
.burger span:nth-child(2) { top: 16px; }
.burger span:nth-child(3) { top: 22px; }
.burger.open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--on-dark);
  overflow: hidden;
  background: var(--verde-dk);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg img.kb { animation: kb 26s ease-in-out infinite alternate; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 36, 27, 0.62) 0%, rgba(20, 36, 27, 0.12) 30%, rgba(20, 36, 27, 0.25) 58%, rgba(20, 36, 27, 0.92) 100%),
    linear-gradient(90deg, rgba(20, 36, 27, 0.6) 0%, rgba(20, 36, 27, 0) 62%);
}
.hero-content {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 150px 0 46px;
}
.hero-over {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ottone-lt);
  opacity: 0;
  animation: fadeUp 0.9s 0.1s var(--ease) forwards;
}
.hero-name {
  font-size: clamp(64px, 11.5vw, 172px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 14px 0 6px;
  color: #fff;
}
.hero-name .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-name .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.2s var(--ease) forwards; }
.hero-name .line:nth-child(2) > span { animation-delay: 0.14s; padding-left: 0.9em; }
.hero-name em { color: var(--ottone-lt); font-size: 0.62em; vertical-align: 0.18em; margin-right: 0.08em; }
.baffi-hero {
  width: clamp(96px, 10vw, 150px);
  color: #fff;
  margin: 8px 0 4px 0.12em;
  transform-origin: 50% 40%;
  transform: scaleX(0) rotate(-6deg);
  animation: twirl 1.1s 0.75s var(--ease) forwards;
}
.hero-script {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--on-dark);
  margin: 10px 0 6px;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s var(--ease) forwards;
}
.hero-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  opacity: 0;
  animation: fadeUp 0.9s 1s var(--ease) forwards;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
  opacity: 0;
  animation: fadeUp 0.9s 1.1s var(--ease) forwards;
}
.hero-actions .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.65); }
.hero-actions .btn.ghost:hover { background: #fff; color: var(--verde-dk); }

.hero-day {
  position: relative;
  z-index: 2;
  width: min(1200px, 90vw);
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  opacity: 0;
  animation: fadeUp 0.9s 1.25s var(--ease) forwards;
}
.hero-day > div { padding: 16px 0 0; display: flex; align-items: baseline; gap: 16px; }
.hero-day > div + div { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.hero-day dt { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ottone-lt); }
.hero-day dd { font-family: var(--display); font-size: 21px; letter-spacing: 0.04em; display: flex; align-items: center; gap: 10px; }
.hero-day dd i { width: 18px; height: 1px; background: currentColor; opacity: 0.6; }

@keyframes lineUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes twirl {
  0% { transform: scaleX(0) rotate(-6deg); }
  70% { transform: scaleX(1.06) rotate(2deg); }
  100% { transform: scaleX(1) rotate(0); }
}
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.08); } }
.baffi-hero:hover { animation: wiggle 0.7s ease; transform: none; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-5deg) scaleX(1.04); }
  60% { transform: rotate(4deg); }
}

/* ---------- the ribbon ---------- */

.ribbon {
  background: var(--rosso);
  color: var(--on-dark);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}
.ribbon-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: ribbon 40s linear infinite;
  will-change: transform;
}
.ribbon span { font-family: var(--serif); font-style: italic; font-size: 19px; letter-spacing: 0.01em; }
.ribbon b {
  width: 30px;
  height: 11px;
  background: var(--ottone-lt);
  -webkit-mask: url('/images/baffi.png') center / contain no-repeat;
  mask: url('/images/baffi.png') center / contain no-repeat;
}
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- floating book pill ---------- */

.reserve-badge {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--rosso);
  background: var(--rosso);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(108, 29, 25, 0.35);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease), background 0.3s ease;
}
.reserve-badge.show { opacity: 1; transform: none; pointer-events: auto; }
.reserve-badge:hover { background: var(--rosso-hi); }
.reserve-badge .baffi { width: 30px; color: #fff; }

/* ---------- reveals ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.12s; }
.reveal[data-delay='2'] { transition-delay: 0.24s; }
.reveal[data-delay='3'] { transition-delay: 0.36s; }

/* Pictures develop like a print: they surface from the paper, a touch large */
.reveal-img img { opacity: 0; transform: scale(1.1); transition: opacity 1.2s ease, transform 1.8s var(--ease); }
.reveal-img::before { transform: scale(0.94); opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s ease; }
.reveal-img.visible img { opacity: 1; transform: none; }
.reveal-img.visible::before { transform: none; opacity: 1; }
.reveal-img[data-delay='2'] img, .reveal-img[data-delay='2']::before { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-img img, .reveal-img::before { opacity: 1 !important; transform: none !important; transition: none !important; }
  .gal-track, .ribbon-track, .kb { animation: none !important; }
  .hero-name .line > span, .baffi-hero, .hero-over, .hero-script, .hero-tag, .hero-actions, .hero-day { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero video { display: none; }
}

/* ---------- plates: pictures framed like etchings ---------- */

.plate { position: relative; margin: 0; }
.plate img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.plate::before {
  content: '';
  position: absolute;
  inset: -14px -14px 26px -14px;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}
.plate figcaption {
  position: relative;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.plate figcaption em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0.02em; text-transform: none; font-size: 14px; color: var(--ink); }

/* ---------- I. la casa ---------- */

.about { padding-top: 140px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.about-lead { font-size: 17.5px; color: var(--ink-soft); line-height: 1.85; }
.dropcap::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 5.1em;
  line-height: 0.78;
  color: var(--rosso);
  margin: 0.08em 0.12em 0 0;
}
.about-facts { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.about-facts li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.about-facts b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; color: var(--rosso); }
.about-facts span { color: var(--ink-soft); font-size: 15px; }
.about-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}
.about-sign .baffi { color: var(--rosso); width: 54px; }

.about-images { position: relative; padding: 14px 14px 90px 70px; }
.plate-main img { aspect-ratio: 4 / 5; }
.plate-accent {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  z-index: 3;
}
.plate-accent img { aspect-ratio: 1; box-shadow: 0 0 0 10px var(--carta), var(--shadow); }
.plate-accent::before { display: none; }
.plate-accent figcaption { padding-left: 2px; }

/* ---------- II. il menu ---------- */

.menu-section { background: var(--carta-dk); --damask: rgba(140, 40, 35, 0.07); }
.menu-card {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  background: var(--carta-lt);
  border: 1px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: -12px;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px) clamp(40px, 5vw, 64px);
  box-shadow: var(--shadow-soft);
}
.menu-card-mark { display: block; margin: 0 auto 26px; width: 74px; color: var(--rosso); }

.menu-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 50px; }
.menu-tabs button {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  padding: 11px 32px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.menu-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.menu-tabs button.active { background: var(--ink); border-color: var(--ink); color: var(--carta); }

.menu-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 54px clamp(40px, 6vw, 90px); }
.menu-cat h3 { font-size: 28px; margin-bottom: 4px; display: flex; align-items: center; gap: 16px; }
.menu-cat h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.menu-cat-sub { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--rosso); margin: 2px 0 12px; }
.menu-item { display: flex; align-items: baseline; gap: 10px; padding: 11px 0 1px; }
.menu-item .mi-name { font-weight: 600; font-size: 15.5px; }
.menu-item .mi-dots { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); min-width: 14px; }
.menu-item .mi-price { font-family: var(--display); font-size: 18px; color: var(--ink); white-space: nowrap; }
.menu-item-desc { font-size: 13.5px; color: var(--ink-soft); margin: 2px 0 4px; padding-right: 54px; line-height: 1.55; }
.menu-actions { text-align: center; margin-top: 56px; }

.menu-page { padding-top: 80px; background: var(--carta-dk); --damask: rgba(140, 40, 35, 0.07); }
.menu-page .menu-card { max-width: 1180px; }
.menu-page .promo-notice { margin-bottom: 30px; }
.menu-cat.two-way .mi-price { min-width: 70px; text-align: right; }
.menu-cat.two-way .mi-price.alt { min-width: 84px; }
.menu-item.mi-head { padding-bottom: 0; }
.menu-item.mi-head .mi-price {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.menu-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: -22px auto 46px;
  max-width: 900px;
}
.menu-jump a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--ink-soft);
  transition: all 0.25s ease;
}
.menu-jump a:hover { border-color: var(--rosso); color: var(--rosso); }

/* ---------- III. afterwork ---------- */

.afterwork { background: var(--verde); color: var(--on-dark); --damask: rgba(244, 237, 224, 0.05); }
.afterwork .section-title { color: #fff; }
.afterwork .section-title em { color: var(--ottone-lt); }
.afterwork .chapter { color: var(--ottone-lt); }
.afterwork .chapter em { color: var(--on-dark); }
.afterwork-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.afterwork-copy p { color: var(--on-dark-soft); max-width: 460px; }
.afterwork-copy .afterwork-time {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--on-dark);
  margin: 4px 0 22px;
}
.afterwork-time i { width: 46px; height: 1px; background: var(--ottone-lt); }
.afterwork-copy .btn { margin-top: 30px; }
.afterwork-list {
  border: 1px solid var(--line-dark);
  outline: 1px solid rgba(244, 237, 224, 0.08);
  outline-offset: -10px;
  padding: 38px 40px;
  background: rgba(20, 36, 27, 0.35);
}
.aw-row { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; }
.aw-name { font-family: var(--serif); font-style: italic; font-size: 19px; }
.aw-dots { flex: 1; border-bottom: 1px dotted rgba(244, 237, 224, 0.35); transform: translateY(-5px); }
.aw-price { font-family: var(--display); font-size: 19px; color: var(--ottone-lt); white-space: nowrap; }

/* ---------- IV. la giornata ---------- */

.ritual-section { background: var(--carta); padding-bottom: 130px; }
.ritual-stage { position: relative; width: min(1360px, 96vw); margin: 0 auto; }
.ritual-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ritual-track { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 14px 0 18px; }
.ritual-track::-webkit-scrollbar { display: none; }
.ritual-card {
  flex: 0 0 auto;
  width: clamp(240px, 23vw, 320px);
  background: none;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}
.ritual-card img { width: 100%; aspect-ratio: 52 / 66; object-fit: cover; transition: transform 1s var(--ease); }
.ritual-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 36, 27, 0.82));
  pointer-events: none;
}
.ritual-card:hover img { transform: scale(1.05); }
.ritual-tag {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #fff;
  text-align: left;
}
.ritual-tag b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.ritual-tag em { font-family: var(--serif); font-size: 17px; color: var(--ottone-lt); }
.ritual-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--carta-lt);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.ritual-arrow.prev { left: 6px; }
.ritual-arrow.next { right: 6px; }
.ritual-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ritual-arrow:hover { background: var(--rosso); border-color: var(--rosso); color: #fff; }

/* ---------- V. le stanze ---------- */

.spaces { background: var(--carta-lt); }
.spaces-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 34px); }
.space-card { margin: 0; }
.space-img { position: relative; overflow: hidden; }
.space-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.6s ease; filter: saturate(0.9); }
.space-img::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
  pointer-events: none;
}
.space-card:hover .space-img img { transform: scale(1.06); filter: none; }
.space-card:hover .space-img::after { opacity: 1; transform: none; }
.space-card figcaption { padding-top: 18px; display: grid; gap: 2px; border-top: 1px solid var(--line); margin-top: 18px; }
.space-card figcaption small { font-family: var(--display); font-size: 14px; color: var(--ottone); letter-spacing: 0.1em; }
.space-card figcaption span { font-family: var(--display); font-size: 27px; line-height: 1.15; }
.space-card figcaption em { font-family: var(--serif); font-size: 14.5px; color: var(--ink-soft); }

/* ---------- VI. galleria ---------- */

.gallery-section { background: var(--carta); overflow: hidden; }
.gal-handle {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 20px;
  transition: all 0.25s ease;
}
.gal-handle:hover { background: var(--ink); color: var(--carta); border-color: var(--ink); }
.gal-rows { display: grid; gap: 20px; }
.gal-marquee { overflow: hidden; }
.gal-track { display: inline-flex; gap: 20px; animation: slide 60s linear infinite; will-change: transform; }
.gal-marquee.reverse .gal-track { animation-direction: reverse; animation-duration: 70s; }
.gal-marquee:hover .gal-track { animation-play-state: paused; }
.gal-track img { height: 300px; width: auto; cursor: zoom-in; transition: filter 0.4s ease, transform 0.5s var(--ease); }
.gal-marquee.reverse .gal-track img { height: 240px; }
.gal-track img:hover { filter: brightness(1.06); transform: translateY(-6px); }
@keyframes slide { to { transform: translateX(-50%); } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 36, 27, 0.95);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1040px, 90vw); max-height: 84vh; outline: 1px solid rgba(244, 237, 224, 0.3); outline-offset: 12px; }
.lightbox button {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(244, 237, 224, 0.4);
  color: var(--on-dark);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.lightbox button:hover { background: var(--rosso); border-color: var(--rosso); }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------- VII. orari ---------- */

.hours { background: var(--carta-lt); }
.info-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 6vw, 96px); align-items: center; }
.info-grid.no-map { grid-template-columns: 1fr; }
.hours-list { list-style: none; margin-top: 10px; }
.hours-list li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours-list .day-col { display: flex; flex-direction: column; }
.hours-list .day { font-size: 12.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.hours-list .day-note { font-family: var(--serif); font-style: italic; color: var(--rosso); font-size: 13.5px; }
.hours-list .dots { flex: 1; }
.hours-list .time { font-family: var(--display); font-size: 19px; }
.hours-list .closed { color: var(--rosso); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-lines { margin-top: 30px; display: grid; gap: 10px; color: var(--ink-soft); }
.contact-lines strong { color: var(--rosso); font-weight: 400; }
.contact-lines a { border-bottom: 1px solid var(--line); transition: color 0.2s ease, border-color 0.2s ease; }
.contact-lines a:hover { color: var(--rosso); border-color: var(--rosso); }

.map-plate { position: relative; padding: 14px; }
.map-plate::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--line-strong); pointer-events: none; }
#map { height: 460px; z-index: 1; }
#map .leaflet-tile-pane { filter: sepia(0.25) saturate(0.85); }
.map-pin { position: relative; width: 22px; height: 22px; }
.map-pin::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--rosso);
  border: 3px solid var(--carta-lt);
  box-shadow: 0 4px 12px rgba(33, 25, 21, 0.4);
}
.map-pin::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px solid var(--rosso);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { from { transform: scale(0.55); opacity: 0.9; } to { transform: scale(1.3); opacity: 0; } }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--carta-lt); color: var(--ink); border-radius: 2px; }
.leaflet-popup-content { font-family: var(--sans); }
.leaflet-popup-content b { font-family: var(--display); font-weight: 400; font-size: 16px; }
.leaflet-popup-content a { color: var(--rosso); font-weight: 700; }

/* ---------- VIII. contatti ---------- */

.contact-band { color: var(--on-dark); background: url('/images/contact-bg.jpg') center / cover no-repeat; isolation: isolate; }
.contact-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 36, 27, 0.92), rgba(20, 36, 27, 0.84));
}
.contact-inner { text-align: center; }
.contact-inner .section-title { color: #fff; }
.contact-inner .section-title em { color: var(--ottone-lt); }
.contact-lead { max-width: 560px; margin: 0 auto 46px; color: var(--on-dark-soft); }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 44px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  transition: background 0.3s ease;
}
.contact-card + .contact-card { border-left: 1px solid var(--line-dark); }
a.contact-card:hover { background: rgba(244, 237, 224, 0.06); }
.cc-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220, 199, 156, 0.6);
  transition: background 0.3s ease, border-color 0.3s ease;
}
a.contact-card:hover .cc-icon { background: var(--rosso); border-color: var(--rosso); }
.cc-icon svg { width: 17px; height: 17px; fill: var(--ottone-lt); }
a.contact-card:hover .cc-icon svg { fill: #fff; }
.cc-body { display: flex; flex-direction: column; min-width: 0; text-align: center; }
.cc-body small { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ottone-lt); }
.cc-body b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.contact-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.contact-band .socials { margin-top: 40px; justify-content: center; }

/* ---------- IX. prenota ---------- */

.reserve-section { background: var(--carta-dk); --damask: rgba(140, 40, 35, 0.07); padding-bottom: 140px; }
.reserve-panel {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  background: var(--carta-lt);
  border: 1px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: -12px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 76px);
  box-shadow: var(--shadow);
}
.reserve-panel .section-head { margin-bottom: 10px; }
.reserve-mark { display: block; margin: 0 auto 18px; width: 70px; color: var(--rosso); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 36px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.form-field input, .form-field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  padding: 10px 2px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.25s ease;
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--rosso); box-shadow: 0 1px 0 var(--rosso); }
.form-field input::placeholder { color: rgba(94, 80, 71, 0.5); }
.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
}
.form-field select option { background: var(--carta-lt); color: var(--ink); }
.form-field input[type='date'] { color-scheme: light; }
.phone-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.form-note { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin-top: 14px; font-family: var(--serif); font-style: italic; }
.form-submit { text-align: center; margin-top: 38px; }
.form-msg { text-align: center; margin-top: 16px; font-weight: 600; min-height: 22px; }
.form-msg.ok { color: var(--verde); }
.form-msg.err { color: var(--rosso); }
.field-note { font-size: 12.5px; color: var(--ink-soft); }
.prefill-note { font-size: 13.5px; color: var(--verde); margin-top: 10px; font-family: var(--serif); font-style: italic; }

.timepick { position: relative; }
.timepick-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: rgba(94, 80, 71, 0.75);
  padding: 10px 2px;
  font-size: 16px;
  text-align: left;
  transition: border-color 0.25s ease;
}
.timepick-btn:hover, .timepick-btn.open { border-color: var(--rosso); }
.timepick-btn.chosen { color: var(--ink); }
.timepick-btn .tp-caret {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}
.timepick-btn.open .tp-caret { transform: rotate(-135deg) translateY(-2px); }
.timepick-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  background: var(--carta-lt);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px;
}
.timepick-panel[hidden] { display: none; }
.timepick-slot {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 8px 0;
  font-size: 14px;
  font-family: var(--display);
  transition: all 0.2s ease;
}
.timepick-slot:hover { border-color: var(--rosso); color: var(--rosso); }
.timepick-slot.on { background: var(--rosso); border-color: var(--rosso); color: #fff; }

/* ---------- footer ---------- */

footer {
  position: relative;
  background: var(--verde-dk);
  color: var(--on-dark-soft);
  padding: 100px 0 34px;
  --damask: rgba(244, 237, 224, 0.04);
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; color: var(--ottone-lt); margin-bottom: 16px; }
.footer-grid p, .footer-grid a, .footer-grid li { font-size: 14.5px; line-height: 2; }
.footer-grid p { max-width: 380px; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; }
.footer-logo { width: 124px; height: 124px; margin-bottom: 22px; opacity: 0.95; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease);
}
.socials a img { width: 100%; height: 100%; object-fit: cover; }
.socials a:hover { transform: translateY(-4px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 13px;
  position: relative;
}
.footer-bottom a:hover { color: #fff; }

/* ---------- inner page hero (menu) ---------- */

.page-hero {
  position: relative;
  min-height: 56vh;
  display: grid;
  place-items: end center;
  text-align: center;
  color: var(--on-dark);
  overflow: hidden;
  padding-bottom: 70px;
  background: var(--verde-dk) url('/images/menu-hero-poster.jpg') center / cover no-repeat;
}
.page-hero .hero-bg { position: absolute; inset: 0; }
.page-hero .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 36, 27, 0.55), rgba(20, 36, 27, 0.85));
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-video { position: absolute; inset: 0; }
.page-hero > div:last-child { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(54px, 8vw, 110px); color: #fff; }
.page-hero h1 em { color: var(--ottone-lt); }
.page-hero .chapter { color: var(--ottone-lt); }
.page-hero .chapter em { color: var(--on-dark); }
.page-hero .baffi { color: #fff; width: 84px; margin-top: 10px; }

/* ---------- legal pages ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 160px 0 100px; }
.legal h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 24px; }
.legal h2 { font-size: 26px; margin: 38px 0 12px; color: var(--rosso); }
.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; }
.legal ul { padding-left: 22px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 80px);
  background: var(--verde);
  color: var(--on-dark);
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 95;
  font-size: 14.5px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .nav-inner { gap: 18px; }
  .nav-links { gap: 18px; }
  .nav-links a, .nav-right a { font-size: 11px; letter-spacing: 0.12em; }
  .nav-right { gap: 12px; }
}

@media (max-width: 980px) {
  section { padding: 88px 0; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--verde-dk);
    color: var(--on-dark);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 60;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-family: var(--display); font-size: 30px; letter-spacing: 0.02em; text-transform: none; font-weight: 400; }
  .nav-links .lang-switch { font-size: 12px; }
  .nav-links .lang-switch button { font-family: var(--sans); }
  .nav-links.open li { opacity: 0; animation: fadeUp 0.5s var(--ease) forwards; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.05s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.1s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.15s; }
  .nav-links.open li:nth-child(5) { animation-delay: 0.2s; }
  .nav-links.open li:nth-child(6) { animation-delay: 0.25s; }
  .nav-links.open li:nth-child(n+7) { animation-delay: 0.3s; }
  .nav-right { display: none; }
  .nav-links .mobile-only { display: block; }
  .burger { display: block; }

  .about-grid, .info-grid, .afterwork-inner { grid-template-columns: 1fr; }
  .about-images { max-width: 560px; }
  .menu-cols { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  #map { height: 340px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .spaces-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card:nth-child(3) { border-left: 0; }
  .contact-card:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (min-width: 981px) {
  .nav-links .mobile-only { display: none; }
}

@media (max-width: 720px) {
  .hero-content { padding-top: 120px; }
  .hero-name .line:nth-child(2) > span { padding-left: 0.5em; }
  .hero-day { grid-template-columns: 1fr; margin-bottom: 24px; }
  .hero-day > div { padding: 10px 0; justify-content: space-between; }
  .hero-day > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .hero-day dd { font-size: 18px; }
  .hero-actions .btn { padding: 14px 24px; font-size: 11.5px; }
  .gal-track img { height: 220px; }
  .gal-marquee.reverse .gal-track img { height: 180px; }
  .about-images { padding-left: 40px; }
  .afterwork-list { padding: 26px 22px; }
  .menu-card { outline-offset: -8px; }
  .ritual-tag b { font-size: 24px; }
}

@media (max-width: 560px) {
  section { padding: 72px 0; }
  .spaces-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .space-card figcaption span { font-size: 21px; }
  .space-card figcaption em { display: none; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card + .contact-card { border-left: 0; border-top: 1px solid var(--line-dark); }
  .menu-item { flex-wrap: wrap; }
  .menu-item .mi-name { flex: 1 1 60%; }
  .menu-item .mi-dots { display: none; }
  .menu-item-desc { padding-right: 0; }
  .menu-cat.two-way .menu-item { flex-wrap: nowrap; }
  .menu-cat.two-way .mi-name { flex: 1; }
  .menu-cat.two-way .mi-dots { display: block; }
  .menu-cat.two-way .mi-price { min-width: 54px; font-size: 16px; }
  .menu-cat.two-way .mi-price.alt { min-width: 70px; }
  .menu-cat.two-way .mi-head .mi-price { font-size: 9.5px; }
  .about-facts li { grid-template-columns: 1fr; gap: 0; }
  .timepick-panel { grid-template-columns: repeat(3, 1fr); }
  .phone-row { grid-template-columns: 104px 1fr; }
  .reserve-badge { right: 14px; bottom: 14px; }
}

/* ==========================================================================
   Account, deals, reset & delete pages
   ========================================================================== */

.page-account { min-height: 100vh; position: relative; }
.page-account::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/images/account-bg.jpg') center / cover no-repeat;
  z-index: -2;
}
.page-account::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 237, 224, 0.9), rgba(244, 237, 224, 0.97));
  z-index: -1;
}
.page-account .nav { position: sticky; top: 0; }
.page-account .nav-logo img { width: 46px; height: 46px; }
.account-main { padding: 60px 0 100px; }
.account-main > .container { width: min(1080px, 92vw); }
.account-main section { padding: 30px 0; }

.auth-wrap { display: grid; place-items: center; padding: 30px 0; }
.auth-card {
  width: min(520px, 100%);
  background: var(--carta-lt);
  border: 1px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: -10px;
  box-shadow: var(--shadow);
  padding: clamp(32px, 5vw, 54px);
  text-align: center;
}
.auth-logo { height: 76px; width: 76px; border-radius: 50%; margin: 0 auto 18px; }
.auth-card .section-title { font-size: clamp(32px, 4vw, 44px); }
.auth-logo + .section-title { margin-top: 0; }
.auth-sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 26px; }
.auth-form { display: grid; gap: 18px; text-align: left; }
#signupForm { grid-template-columns: 1fr 1fr; }
#signupForm .full { grid-column: 1 / -1; }
.auth-form label { display: grid; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.auth-form input, .auth-form select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  padding: 10px 2px;
  font-family: inherit;
  font-size: 15.5px;
  transition: border-color 0.25s ease;
}
.auth-form input:focus, .auth-form select:focus { outline: none; border-color: var(--rosso); box-shadow: 0 1px 0 var(--rosso); }
.auth-form select option { background: var(--carta-lt); color: var(--ink); }
.auth-form .btn { margin-top: 10px; }
.auth-form .btn.ghost { border-color: var(--ink); color: var(--ink); }
.auth-hint { font-size: 12px; color: var(--ink-soft); text-transform: none; letter-spacing: 0; font-weight: 400; }
.gender-row { display: flex; gap: 8px; }
.gender-row button {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  padding: 9px 0;
  font-size: 13px;
  transition: all 0.25s ease;
}
.gender-row button:hover { border-color: var(--ink); }
.gender-row button.active { background: var(--ink); border-color: var(--ink); color: var(--carta); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-msg { min-height: 20px; font-size: 14px; margin-top: 12px; }
.auth-msg.err { color: var(--rosso); }
.auth-msg.ok { color: var(--verde); }
.auth-switch { font-size: 14px; color: var(--ink-soft); margin-top: 18px; }
.auth-switch a { color: var(--rosso); font-weight: 700; border-bottom: 1px solid currentColor; }
.pending-title { font-size: 28px; }

.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.member-card { background: var(--carta-lt); border: 1px solid var(--line); box-shadow: var(--shadow-soft); padding: 28px 30px; }
.member-card h3 { font-size: 23px; margin-bottom: 12px; }
.member-card .btn { margin-top: 14px; padding: 11px 24px; font-size: 11.5px; }
.member-card .muted { color: var(--ink-soft); font-size: 14px; }
.fidelity-card { background: var(--verde); color: var(--on-dark); border: 0; }
.fidelity-card .kicker { color: var(--ottone-lt); }
.fidelity-card b { font-family: var(--display); font-size: 40px; display: block; line-height: 1.1; font-weight: 400; }
.fidelity-card p { font-size: 13.5px; color: var(--on-dark-soft); }
.fidelity-card.off b { font-size: 22px; }
.member-heading { font-size: 30px; margin: 44px 0 16px; }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; color: var(--rosso); }

.res-list { display: grid; gap: 12px; }
.res-card { display: flex; align-items: center; gap: 22px; background: var(--carta-lt); border: 1px solid var(--line); padding: 18px 24px; }
.res-when { display: flex; flex-direction: column; min-width: 120px; }
.res-when b { font-family: var(--display); font-size: 20px; font-weight: 400; }
.res-when span { color: var(--ink-soft); font-size: 13.5px; }
.res-meta { display: flex; flex-direction: column; }
.res-meta b { font-weight: 700; }
.res-meta span { color: var(--ink-soft); font-size: 13.5px; }
.res-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 16px;
  border: 1px solid currentColor;
}
.res-badge.pending { color: var(--ottone); }
.res-badge.confirmed { color: var(--verde); }
.res-badge.cancelled { color: var(--ink-soft); }

@media (max-width: 860px) {
  .member-grid { grid-template-columns: 1fr; }
  .res-card { flex-wrap: wrap; gap: 10px 20px; }
  .res-when { min-width: 0; }
}
@media (max-width: 560px) {
  #signupForm { grid-template-columns: 1fr; }
  .auth-card { padding: 30px 20px; }
  .account-main { padding-top: 30px; }
}

.pw-wrap { position: relative; display: grid; }
.pw-wrap input { padding-right: 46px; }
.pw-eye {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--ink-soft);
  opacity: 0.8;
}
.pw-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pw-eye .eye-shut { display: none; }
.pw-eye.on .eye-open { display: none; }
.pw-eye.on .eye-shut { display: block; }
.pw-eye:hover { opacity: 1; color: var(--rosso); }
.auth-form label.stay-row {
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.stay-row input { accent-color: var(--rosso); width: 16px; height: 16px; }
.stay-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stay-line .stay-row { margin: 0; }
.forgot-link { font-size: 13px; color: var(--rosso); font-weight: 700; text-transform: none; letter-spacing: 0; border-bottom: 1px solid transparent; }
.forgot-link:hover { border-color: currentColor; }
.birthday-note { font-size: 12px; color: var(--ink-soft); text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ---------- deals ---------- */

.mi-was { color: var(--ink-soft); opacity: 0.75; margin-right: 8px; font-size: 0.85em; }
.mi-deal { color: var(--rosso); }
.nav-deals { color: var(--ottone-lt) !important; }
.nav.scrolled .nav-deals { color: var(--rosso) !important; }
.deals-main { padding: 140px 0 100px; min-height: 70vh; }
.deals-main .section-head { text-align: center; }
.deals-empty { text-align: center; color: var(--ink-soft); max-width: 440px; margin: 40px auto 0; }
.deals-empty .contact-actions { margin-top: 24px; }
.deal-group h2 { font-size: 30px; margin: 44px 0 18px; }
.deal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.deal-card { background: var(--carta-lt); border: 1px solid var(--line); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s ease; }
.deal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.deal-card img { width: 100%; height: 180px; object-fit: cover; }
.deal-body { padding: 18px 20px 22px; }
.deal-body h3 { font-size: 21px; }
.deal-body p { color: var(--ink-soft); font-size: 13.5px; margin-top: 4px; }
.deal-prices { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; font-family: var(--display); }
.deal-prices s { color: var(--ink-soft); font-size: 15px; }
.deal-prices b { color: var(--rosso); font-size: 22px; font-weight: 400; }
.deal-badge {
  display: inline-block;
  border: 1px solid var(--rosso);
  color: var(--rosso);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
@media (max-width: 860px) { .deal-cards { grid-template-columns: 1fr; } }

/* ---------- delete account ---------- */

.del-card { text-align: left; width: min(640px, 100%); }
.del-card .section-title, .del-card .auth-sub { text-align: center; }
.del-block h2 { font-size: 22px; margin: 26px 0 10px; color: var(--rosso); }
.del-list { list-style: none; display: grid; gap: 8px; }
.del-list li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 14.5px; }
.del-list li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--rosso); }
.del-note { font-size: 13.5px; color: var(--rosso); font-weight: 700; margin-top: 16px; }
.del-or { text-align: center; color: var(--ink-soft); margin: 18px 0; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.del-app { background: var(--carta); border: 1px solid var(--line); padding: 18px 20px; font-size: 14.5px; color: var(--ink-soft); }
.del-card .btn { width: 100%; }
.btn.danger { background: var(--rosso-dk); border-color: var(--rosso-dk); color: #fff; }
.btn.danger:hover { background: #4f1512; border-color: #4f1512; }

/* ---------- boot veil ---------- */

.page-boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--carta);
  transition: opacity 0.45s ease;
}
.page-boot.gone { opacity: 0; pointer-events: none; }
.boot-mark { position: relative; display: grid; place-items: center; }
.boot-mark img { height: 84px; width: 84px; border-radius: 50%; }
.boot-ring {
  position: absolute;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--rosso);
  border-right-color: var(--ottone);
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- promo banner ---------- */

.promo-banner {
  position: relative;
  z-index: 55;
  background: var(--verde);
  color: var(--on-dark);
  overflow: hidden;
  padding: 11px 0;
}
.promo-track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: promoslide 26s linear infinite;
  will-change: transform;
  padding-left: 100%;
}
.promo-banner:hover .promo-track { animation-play-state: paused; }
.promo-banner-text { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
a.promo-banner-text:hover { text-decoration: underline; }
@keyframes promoslide { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.promo-notice {
  background: rgba(140, 40, 35, 0.07);
  border: 1px solid rgba(140, 40, 35, 0.3);
  color: var(--rosso);
  padding: 12px 18px;
  font-size: 14px;
  text-align: center;
}
.promo-notice.hidden { display: none; }

/* ---------- 404 and legal wrappers ---------- */

.legal-wrap { padding-top: 160px; }
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--carta-dk); --damask: rgba(140, 40, 35, 0.07); }
.nf > div { padding: 0 6vw; }
.nf-logo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 26px; }
.nf-sub { margin: 0 auto 34px; }
.nf .chapter { justify-content: center; }

/* Only the home page opens on a dark hero; everywhere else the nav sits on paper */
body:not(.home) .nav {
  background: rgba(244, 237, 224, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  padding: 9px 0;
}
body:not(.home) .nav.menu-open { background: var(--verde-dk); color: var(--on-dark); }
body:not(.home) .nav-logo img { width: 46px; height: 46px; }

/* Caslon Display draws a 1 like a capital I at small sizes; figures that
   carry information use the Text cut */
.menu-item .mi-price, .aw-price, .hours-list .time, .hero-day dd, .timepick-slot,
.deal-prices, .res-when b, .ritual-tag b { font-family: var(--serif); }
.menu-item .mi-price { font-size: 16.5px; }
.hero-day dd { font-size: 19px; }
