/* ==========================================================================
   Ghiotto by Baita di Pelé — dark-and-gold griglieria.
   Direction: echoes the restaurant's own engraved gold menu (photo-04).
   Palette from their photos + menu: near-black warm canvas, antique gold,
   ember warmth, cream text. One accent: GOLD. Mobile-first (390px).
   ========================================================================== */

:root {
  --bg: #14100b;            /* near-black warm canvas (their menu ground) */
  --surface: #1c150d;       /* elevated sections */
  --surface-2: #241b10;     /* menu frame fill */
  --text: #ece2cf;          /* cream body text */
  --muted: #a89679;         /* secondary text */
  --gold: #c9a24b;          /* THE accent (their menu gold) */
  --gold-bright: #dcbb6e;   /* hover / highlight */
  --line: rgba(201, 162, 75, 0.30);  /* gold hairline */
  --ink: #14100b;           /* text on gold */

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Spectral", Georgia, serif;
  --radius: 3px;            /* near-sharp: engraved-print feel */
  --measure: 64ch;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-bright); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; }
h2 {
  font-size: clamp(1.55rem, 4.5vw, 2.3rem);
  letter-spacing: 0.06em;
  color: var(--text);
}
h3 { font-size: 0.95rem; }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1.25rem;
  position: sticky; top: 0; z-index: 20;
  height: 60px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.18em; color: var(--gold); padding-left: 0.18em;
}
.topbar-cta {
  color: var(--ink); background: var(--gold);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 1.1rem; border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.topbar-cta:hover { background: var(--gold-bright); color: var(--ink); transform: translateY(-1px); }

/* -- hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 90svh;
  display: flex; align-items: center; justify-content: center;
  padding: 4.5rem 1.25rem 3.5rem;
  text-align: center;
  background-color: #14100b;
  background-image:
    linear-gradient(180deg, rgba(14,10,6,0.78) 0%, rgba(14,10,6,0.66) 34%, rgba(9,6,3,0.97) 100%),
    radial-gradient(120% 78% at 50% 62%, rgba(6,4,2,0.62), rgba(6,4,2,0) 72%),
    radial-gradient(120% 70% at 50% 4%, rgba(122,58,22,0.22), transparent 58%),
    url("images/griglia-piatto.jpg");
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center 46%;
  background-repeat: no-repeat;
}
/* thin gold frame, echoing the printed menu border */
.hero::after {
  content: "";
  position: absolute;
  inset: clamp(0.85rem, 3.2vw, 1.5rem);
  border: 1px solid rgba(201, 162, 75, 0.55);
  box-shadow: inset 0 0 0 3px rgba(20,16,11,0.0), inset 0 0 0 4px rgba(201,162,75,0.16);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 30rem; }
.hero-eyebrow {
  font-family: var(--font-body);
  color: var(--gold); font-size: 0.76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  margin-bottom: 1.4rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.8);
}
.wordmark {
  font-size: clamp(3.4rem, 17vw, 6rem);
  letter-spacing: 0.1em;
  color: var(--gold);
  text-shadow: 0 2px 34px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.8);
  padding-left: 0.1em;
}
.byline {
  font-family: var(--font-body); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  color: var(--text);
  line-height: 1.2;
  margin: 0.1rem 0 1.25rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.85);
}
.hero-sub {
  color: var(--text);
  max-width: 30ch;
  margin: 0 auto 2rem;
  font-size: 1.02rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.9);
}
.hero-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.6rem; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); transform: translateY(-1px); }
.btn-ghost {
  color: var(--text);
  border-color: rgba(201,162,75,0.7);
  background: rgba(20,16,11,0.32);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); transform: translateY(-1px); }

/* -- statement (esperienza) ------------------------------------------------ */
.statement {
  max-width: 40rem; margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) 1.5rem;
  text-align: center;
}
.statement .rule {
  display: block; width: 54px; height: 2px;
  background: var(--gold); margin: 0 auto 2rem;
}
.statement p {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  line-height: 1.5;
  color: var(--text);
  font-weight: 400;
}

/* -- feature split (dalla griglia) ----------------------------------------- */
.feature {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.feature-body {
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem;
  max-width: 46ch;
  margin: 0 auto;
}
.feature-body h2 { margin-bottom: 1rem; }
.feature-body p { color: var(--muted); font-size: 1.08rem; }

@media (min-width: 800px) {
  .feature { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .feature-media img { aspect-ratio: auto; min-height: 100%; }
  .feature-body { margin: 0; padding: clamp(3rem, 5vw, 5rem) clamp(2.5rem, 5vw, 4rem); align-self: center; }
}

/* -- menu ------------------------------------------------------------------ */
.menu {
  padding: clamp(3.5rem, 8vw, 6rem) 1.1rem;
}
.menu-frame {
  max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(201,162,75,0.45);
  box-shadow: inset 0 0 0 4px rgba(20,16,11,0.6), inset 0 0 0 5px rgba(201,162,75,0.18);
  padding: clamp(1.8rem, 5vw, 3.5rem) clamp(1.2rem, 4vw, 3rem);
}
.menu-head { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.menu-head h2 { color: var(--gold); font-size: clamp(1.9rem, 6vw, 2.8rem); letter-spacing: 0.14em; }
.byline-sm { font-size: 1.05rem; margin: 0.35rem 0 0; color: var(--muted); }

.menu-cols { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 780px) {
  .menu-cols { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4rem); }
}
.menu-group { margin-bottom: 1.8rem; }
.menu-group h3 {
  font-family: var(--font-display); font-weight: 600;
  color: var(--gold); font-size: 1.05rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  padding-bottom: 0.6rem; margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.menu-list { list-style: none; padding: 0; }
.menu-list li {
  display: flex; align-items: baseline; gap: 0.4rem;
  padding: 0.4rem 0;
}
.dish { font-weight: 500; color: var(--text); }
.desc {
  display: block; font-style: italic; font-weight: 400;
  font-size: 0.9rem; color: var(--muted); margin-top: 0.1rem;
}
.dots { flex: 1; border-bottom: 1px dotted rgba(168,150,121,0.55); transform: translateY(-0.25rem); min-width: 1.5rem; }
.price {
  font-family: var(--font-display); font-weight: 600;
  color: var(--gold); font-size: 0.98rem;
  white-space: nowrap; letter-spacing: 0.02em;
}
.menu-note { margin-top: 1.6rem; color: var(--muted); font-size: 0.92rem; text-align: center; }
.menu-note-alt { margin-top: 0.4rem; font-style: italic; opacity: 0.85; }

/* -- atmosfera (gallery) --------------------------------------------------- */
.atmosfera {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
  text-align: center;
}
.atmosfera h2 { color: var(--text); margin-bottom: 0.8rem; }
.atmosfera-lead { color: var(--muted); max-width: 44ch; margin: 0 auto 2.2rem; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
.gallery figure { overflow: hidden; border: 1px solid var(--line); }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-lg img { aspect-ratio: 4 / 3; }
.gallery-sm img { aspect-ratio: 4 / 3; }
.gallery figure:hover img { transform: scale(1.04); }
@media (min-width: 720px) {
  .gallery { grid-template-columns: 1.5fr 1fr; align-items: stretch; }
  .gallery figure { height: min(64vh, 520px); }
  .gallery-lg img, .gallery-sm img { aspect-ratio: auto; height: 100%; }
}

/* -- orari & dove ---------------------------------------------------------- */
.dove {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.dove > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.dove {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
}
.dove h2 { text-align: center; margin-bottom: 2.2rem; }
.dove h3 {
  font-family: var(--font-display); color: var(--gold);
  letter-spacing: 0.2em; text-transform: uppercase;
  font-size: 0.95rem; margin-bottom: 1rem;
}
.info-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.hours { border-collapse: collapse; width: 100%; max-width: 24rem; }
.hours td { padding: 0.45rem 1rem 0.45rem 0; color: var(--muted); vertical-align: top; border-bottom: 1px solid rgba(201,162,75,0.14); }
.hours td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.hours tr:last-child td { border-bottom: none; }
.contact-lines { margin-bottom: 1.5rem; line-height: 1.9; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  padding: 3rem 1.25rem 3.5rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer-brand {
  font-family: var(--font-display); font-weight: 700;
  color: var(--gold); font-size: 1.3rem; letter-spacing: 0.16em;
  margin-bottom: 0.5rem;
}
.footer-by { font-family: var(--font-body); font-style: italic; font-weight: 400; font-size: 0.95rem; color: var(--muted); letter-spacing: 0; }
.footer p { margin-bottom: 0.35rem; }
.demo-note { margin-top: 0.9rem; opacity: 0.65; font-size: 0.82rem; }

/* -- motion (CSS only, subtle) --------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
