/* Osteria Castelvecchio · Hi-fi redesign */

:root {
  --paper: #f3ecdc;
  --paper-2: #ece2cc;
  --paper-deep: #e2d6ba;
  --ink: #1f1a14;
  --ink-soft: #3a312a;
  --olive: #3d4a2a;
  --olive-deep: #2a3320;
  --wine: #7a1f1f;
  --wine-deep: #5a1414;
  --gold: #b48334;
  --rule: rgba(31, 26, 20, 0.18);
  --rule-strong: rgba(31, 26, 20, 0.55);

  --serif-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --serif-text: "Source Serif 4", "Source Serif Pro", "Spectral", Georgia, serif;
  --label: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(31,26,20,0.025) 1px, transparent 1px),
    radial-gradient(rgba(31,26,20,0.018) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(6px);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 32px);
  flex-wrap: nowrap;
}
.brand-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mini img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  filter: contrast(1.05);
}
.brand-mini-text {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(15px, 1.2vw, 18px);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.brand-mini-text small {
  display: block;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
  font-weight: 400;
}
.nav {
  display: flex;
  gap: clamp(14px, 1.4vw, 26px);
  font-family: var(--label);
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color .2s;
  cursor: pointer;
}
.nav a:hover { color: var(--wine); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--wine);
}
.topbar-cta {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 16px);
  font-family: var(--label);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.phone-num {
  font-family: var(--serif-display);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 600;
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all .2s;
}
.btn:hover { background: var(--wine); border-color: var(--wine); }
.btn.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn.btn-wine { background: var(--wine); border-color: var(--wine); }
.btn.btn-wine:hover { background: var(--wine-deep); border-color: var(--wine-deep); }

/* ===== Layout helpers ===== */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.wrap-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 72px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: "";
  height: 1px;
  background: var(--wine);
  flex: 0 0 32px;
}
.hero-eyebrow::after { flex: 1; }
.hero h1 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--wine);
  font-weight: 500;
}
.hero-lede {
  font-family: var(--serif-text);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 36px;
}
.hero-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 22px;
  font-family: var(--serif-text);
  font-size: 15px;
  margin: 36px 0 36px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: 480px;
}
.hero-meta dt {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 3px;
}
.hero-meta dd { margin: 0; }
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-img {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--paper-2);
  overflow: hidden;
}
.hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.hero-stamp {
  position: absolute;
  top: -28px; right: -28px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.05;
  padding: 12px;
  transform: rotate(-12deg);
  box-shadow: 0 14px 28px rgba(31,26,20,0.18);
}
.hero-stamp small {
  display: block;
  font-family: var(--label);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.85;
}

/* ===== Strip / running announcement ===== */
.strip {
  background: var(--olive-deep);
  color: var(--paper);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid var(--olive);
  border-bottom: 1px solid var(--olive);
}
.strip-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  font-family: var(--label);
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: marquee 38s linear infinite;
}
.strip-track span { display: inline-flex; align-items: center; gap: 48px; }
.strip-track .dot {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Section header ===== */
.section {
  padding: 110px 0;
  position: relative;
}
.section-paper-2 { background: var(--paper-2); }
.section-ink {
  background: var(--ink);
  color: var(--paper);
}
.section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink .section-eyebrow { color: var(--gold); }
.section-ink .section-eyebrow::before { background: var(--gold); }

.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--wine);
}
.section-eyebrow.center::after {
  content: "";
  width: 32px; height: 1px;
  background: var(--wine);
}
.section h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.section h2 em { font-style: italic; color: var(--wine); }
.section-sub {
  font-family: var(--serif-text);
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
}
.section-ink .section-sub { color: rgba(243, 236, 220, 0.78); }

/* ===== Storia ===== */
.storia-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.storia-img {
  aspect-ratio: 3/4;
  background: var(--paper-deep);
  overflow: hidden;
  position: relative;
}
.storia-img img { width: 100%; height: 100%; object-fit: cover; }
.storia-img .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(31,26,20,0.8), transparent);
  color: var(--paper);
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.storia-text h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.dropcap::first-letter {
  font-family: var(--serif-display);
  font-size: 5.6em;
  float: left;
  line-height: 0.85;
  padding: 8px 12px 0 0;
  font-weight: 500;
  color: var(--wine);
  font-style: italic;
}
.storia-text p {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 18px;
}
.storia-timeline {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.storia-timeline dt {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 36px;
  color: var(--wine);
  line-height: 1;
  margin-bottom: 6px;
}
.storia-timeline dd {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

/* ===== Tortello Amaro feature ===== */
.tortello {
  background:
    linear-gradient(rgba(31,26,20,0.55), rgba(31,26,20,0.7)),
    url("assets/tortello-amaro.jpg") center/cover;
  color: var(--paper);
  padding: 140px 0;
  position: relative;
}
.tortello h2 { color: var(--paper); }
.tortello h2 em { color: var(--gold); }
.tortello-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.tortello .section-sub { color: rgba(243,236,220,0.85); margin: 0; max-width: none; }
.recipe-card {
  background: var(--paper);
  color: var(--ink);
  padding: 44px 40px;
  border: 1px solid rgba(31,26,20,0.15);
  position: relative;
}
.recipe-card::before, .recipe-card::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--wine);
}
.recipe-card::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.recipe-card::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.recipe-card h4 {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--wine);
}
.recipe-card .title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 24px;
}
.recipe-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.recipe-card li {
  padding: 12px 4px;
  font-family: var(--serif-text);
  font-size: 15px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.recipe-card li:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--rule); }
.recipe-card li:nth-child(even) { padding-left: 16px; }

/* ===== Menu ===== */
.menu-section { background: var(--paper-2); }
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 80px;
}
.menu-card { }
.menu-card h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: 32px;
  margin: 0 0 6px;
  color: var(--ink);
}
.menu-card .menu-roman {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 22px;
  display: block;
}
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dotted var(--rule-strong);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .name {
  font-family: var(--serif-text);
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
}
.menu-item .desc {
  font-family: var(--serif-text);
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
  display: block;
  margin-top: 3px;
  font-weight: 300;
}
.menu-item .price {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--wine);
  font-feature-settings: "lnum";
  white-space: nowrap;
}
.menu-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wine);
  border: 1px solid var(--wine);
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.menu-foot {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.menu-foot p {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

/* ===== Lucia ===== */
.lucia {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.lucia-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.lucia-portrait {
  aspect-ratio: 3/4;
  background: var(--olive);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(243,236,220,0.1);
}
.lucia-portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.lucia-portrait .portrait-placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(243,236,220,0.04) 0 8px,
      rgba(243,236,220,0.07) 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}
.lucia-portrait .portrait-placeholder span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(243,236,220,0.55);
  text-transform: uppercase;
}
.lucia-portrait .portrait-placeholder .glyph {
  width: 80px; height: 80px;
  border: 1px solid rgba(243,236,220,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 44px;
  color: rgba(243,236,220,0.7);
}
.lucia-quote-mark {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 180px;
  line-height: 0.6;
  color: var(--wine);
  margin-bottom: 24px;
}
.lucia h2 {
  color: var(--paper);
  margin-bottom: 28px;
}
.lucia h2 em { color: var(--gold); font-style: italic; }
.lucia-quote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--paper);
  margin: 0 0 32px;
  font-weight: 400;
}
.lucia-bio {
  font-family: var(--serif-text);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(243,236,220,0.78);
  max-width: 540px;
}
.lucia-sign {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.lucia-sign::before {
  content: "";
  height: 1px; width: 48px;
  background: var(--gold);
}

/* ===== Pranzi aziendali ===== */
.aziendali {
  background: var(--olive-deep);
  color: var(--paper);
  padding: 100px 0;
}
.aziendali h2 { color: var(--paper); }
.aziendali h2 em { color: var(--gold); }
.aziendali-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.aziendali-text p {
  font-family: var(--serif-text);
  font-size: 17px;
  line-height: 1.7;
  color: rgba(243,236,220,0.85);
}
.aziendali-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(243,236,220,0.18);
  border: 1px solid rgba(243,236,220,0.18);
}
.aziendali-features .feat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.feat {
  background: var(--olive-deep);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat .num {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
}
.feat h4 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0;
  color: var(--paper);
}
.feat p {
  font-family: var(--serif-text);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(243,236,220,0.75);
  margin: 4px 0 0;
}

/* ===== Piatti tipici cards ===== */
.piatti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.piatto {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: transform .35s, box-shadow .35s;
  cursor: pointer;
}
.piatto:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(31,26,20,0.25);
}
.piatto-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-2);
}
.piatto-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.piatto:hover .piatto-img img { transform: scale(1.04); }
.piatto-body { padding: 28px 26px 32px; }
.piatto-num {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wine);
}
.piatto h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: 28px;
  margin: 8px 0 14px;
  line-height: 1.05;
}
.piatto p {
  font-family: var(--serif-text);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.piatto .price-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.piatto .price-tag .price {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--wine);
}
.piatto .price-tag .stagione {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ===== Galleria ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 8px;
}
.gallery .g {
  overflow: hidden;
  background: var(--paper-2);
}
.gallery .g img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s, filter .35s;
  filter: saturate(0.92);
}
.gallery .g:hover img { transform: scale(1.05); filter: saturate(1.05); }
.gallery .g1 { grid-column: span 5; grid-row: span 3; }
.gallery .g2 { grid-column: span 4; grid-row: span 2; }
.gallery .g3 { grid-column: span 3; grid-row: span 2; }
.gallery .g4 { grid-column: span 4; grid-row: span 2; }
.gallery .g5 { grid-column: span 3; grid-row: span 3; }

/* ===== Contatti ===== */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contatti-card {
  background: var(--paper);
  padding: 48px 44px;
  border: 1px solid var(--rule);
}
.contatti-card h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: 32px;
  margin: 0 0 28px;
}
.contatti-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.contatti-row:first-of-type { border-top: 0; padding-top: 0; }
.contatti-row dt {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contatti-row dd {
  margin: 0;
  font-family: var(--serif-text);
  font-size: 16px;
}
.contatti-row dd strong {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 20px;
  display: block;
}
.orari-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--serif-text);
  font-size: 15px;
}
.orari-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.orari-table td:first-child {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.orari-table td:last-child { text-align: right; }
.contatti-map {
  aspect-ratio: 4/3;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.contatti-map iframe {
  width: 100%; height: 100%; border: 0;
  filter: sepia(0.15) saturate(0.85);
}

/* ===== Footer ===== */
footer {
  background: var(--ink);
  color: rgba(243,236,220,0.7);
  padding: 72px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.foot-grid h5 {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.foot-grid p, .foot-grid li {
  font-family: var(--serif-text);
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(243,236,220,0.75);
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid ul li { padding: 3px 0; cursor: pointer; transition: color .2s; }
.foot-grid ul li:hover { color: var(--gold); }
.foot-brand {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}
.foot-brand img { height: 56px; width: 56px; }
.foot-brand-name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--paper);
  line-height: 1;
}
.foot-brand-name small {
  display: block;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--gold);
}
.foot-bottom {
  border-top: 1px solid rgba(243,236,220,0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243,236,220,0.5);
}

/* Decorative ornament divider */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 24px;
  color: var(--wine);
}
.ornament .line { width: 64px; height: 1px; background: currentColor; opacity: 0.5; }
.ornament .glyph {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
}

/* Booking modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(31, 26, 20, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadein .25s;
}
/* Nasconde la modale finché non si clicca "Prenota" */
.modal-overlay[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--paper);
  width: 100%;
  max-width: 520px;
  padding: 44px 44px 40px;
  border: 1px solid var(--rule);
  position: relative;
}
.modal h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: 36px;
  margin: 0 0 6px;
}
.modal .modal-sub {
  font-family: var(--serif-text);
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  font-family: var(--serif-display);
  font-size: 20px;
  color: var(--ink-soft);
  transition: all .2s;
}
.modal-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.field {
  display: flex; flex-direction: column;
  margin-bottom: 18px;
}
.field label {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  font-family: var(--serif-text);
  font-size: 16px;
  padding: 10px 0 8px;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--wine);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.modal .btn { width: 100%; justify-content: center; padding: 14px; margin-top: 10px; }
.modal-success {
  text-align: center;
  padding: 30px 10px 0;
}
.modal-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--wine);
  color: var(--wine);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-size: 28px;
  font-family: var(--serif-display);
  font-style: italic;
}

/* Lucia modal */
.modal.lucia-modal { max-width: 640px; }

/* Float-in scroll */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .9s, transform .9s; }
.fade-in.visible { opacity: 1; transform: none; }

/* ===== Palette variants ===== */
body[data-palette="oliva"] {
  --paper: #ecead8;
  --paper-2: #e0debc;
  --paper-deep: #cfcca0;
  --wine: #5a4a1e;
  --wine-deep: #3d320f;
  --olive: #2d3a1a;
  --olive-deep: #1d2611;
  --gold: #a78a3c;
}
body[data-palette="vino"] {
  --paper: #f1e6dc;
  --paper-2: #e7d5c4;
  --paper-deep: #d6bda5;
  --wine: #6e1717;
  --wine-deep: #4a0d0d;
  --olive: #3a2118;
  --olive-deep: #25140e;
  --ink: #221412;
  --gold: #c19447;
}

/* ===== Lavagna menu ===== */
body[data-menu-variant="lavagna"] .menu-section {
  background: #1f2018;
  color: #f0e8d0;
}
body[data-menu-variant="lavagna"] .menu-section h2 { color: #f5edd6; }
body[data-menu-variant="lavagna"] .menu-section h2 em { color: #d6b96a; }
body[data-menu-variant="lavagna"] .menu-section .section-sub { color: rgba(240,232,208,0.78); }
body[data-menu-variant="lavagna"] .menu-section .section-eyebrow { color: #d6b96a; }
body[data-menu-variant="lavagna"] .menu-section .section-eyebrow::before,
body[data-menu-variant="lavagna"] .menu-section .section-eyebrow.center::after { background: #d6b96a; }
body[data-menu-variant="lavagna"] .menu-section .ornament { color: #d6b96a; }
body[data-menu-variant="lavagna"] .menu-card h3 { color: #f5edd6; font-family: "Caveat", "Cormorant Garamond", cursive; font-size: 44px; font-weight: 600; }
body[data-menu-variant="lavagna"] .menu-card .menu-roman { color: #d6b96a; }
body[data-menu-variant="lavagna"] .menu-item { border-bottom-color: rgba(240,232,208,0.18); }
body[data-menu-variant="lavagna"] .menu-item .name { color: #f0e8d0; font-family: "Caveat", cursive; font-size: 22px; }
body[data-menu-variant="lavagna"] .menu-item .desc { color: rgba(240,232,208,0.6); }
body[data-menu-variant="lavagna"] .menu-item .price { color: #d6b96a; font-family: "Caveat", cursive; font-size: 26px; font-weight: 700; }
body[data-menu-variant="lavagna"] .menu-flag { color: #d6b96a; border-color: #d6b96a; }
body[data-menu-variant="lavagna"] .menu-foot { border-top-color: rgba(240,232,208,0.18); }
body[data-menu-variant="lavagna"] .menu-foot p { color: rgba(240,232,208,0.65); }
body[data-menu-variant="lavagna"] .menu-foot .btn-ghost { color: #f0e8d0; border-color: #f0e8d0; }
body[data-menu-variant="lavagna"] .menu-foot .btn-ghost:hover { background: #f0e8d0; color: #1f2018; }
body[data-menu-variant="lavagna"] .menu-section::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.6;
}

/* Responsiveness */
@media (max-width: 1180px) {
  .nav { gap: 12px; font-size: 11px; letter-spacing: 0.1em; }
  .phone-num { display: none; }
}
@media (max-width: 980px) {
  .hero-grid, .storia-grid, .lucia-grid, .aziendali-grid, .menu-grid, .tortello-grid, .contatti-grid { grid-template-columns: 1fr; gap: 48px; }
  .piatti-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 100px; }
  .gallery .g1 { grid-column: span 6; grid-row: span 2; }
  .gallery .g2, .gallery .g3, .gallery .g4 { grid-column: span 3; grid-row: span 2; }
  .gallery .g5 { grid-column: span 6; grid-row: span 2; }
  .nav { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .aziendali-features { grid-template-columns: 1fr; }
}

/* ===== Mobile (smartphone) ===== */
html, body { overflow-x: clip; }
.contatti-grid > *, .contatti-row dd { min-width: 0; }
.contatti-row dd, .foot-grid li { overflow-wrap: anywhere; }

@media (max-width: 980px) {
  /* Galleria: niente buchi */
  .gallery .g2 { grid-column: span 6; grid-row: span 2; }
  .gallery .g3, .gallery .g4 { grid-column: span 3; grid-row: span 3; }
}

@media (max-width: 640px) {
  /* Barra in alto */
  .topbar-inner { padding: 10px 16px; gap: 10px; }
  .brand-mini { gap: 8px; min-width: 0; }
  .brand-mini img { height: 32px; width: 32px; }
  .brand-mini-text { font-size: 15px; }
  .brand-mini-text small { display: none; }
  .topbar-cta .btn { padding: 10px 14px; font-size: 11px; letter-spacing: 0.14em; }

  /* Bollino "Aperti dal 1920" dentro lo schermo */
  .hero-stamp { top: -18px; right: -6px; width: 104px; height: 104px; font-size: 17px; }

  /* Linea del tempo della storia */
  .storia-timeline { gap: 16px; }
  .storia-timeline dd { font-size: 10px; letter-spacing: 0.14em; }

  /* Pulsanti a tutta larghezza */
  .hero-actions .btn, .aziendali .btn { width: 100%; justify-content: center; }

  /* Contatti */
  .contatti-card { padding: 32px 22px; }
  .contatti-row { grid-template-columns: 1fr; gap: 6px; }
  .contatti-map { aspect-ratio: 1 / 1; }

  /* Footer su una colonna */
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
