/* ==========================================================================
   TRAMINER — Cucina & Vino · Barcellona Pozzo di Gotto (ME)
   Direction: warm limewash canvas + terracotta accent (their logo/plate),
   editorial Newsreader + humanist Mulish, night photos as dark full-bleed bands.
   Mobile-first (390px). One accent, radius 3px everywhere. See intake ## Design.
   ========================================================================== */

:root {
  --bg: #f4ebdf;          /* warm limewash / clay plaster (their stone + walls) */
  --surface: #fbf6ee;     /* cards */
  --alt: #ece1d2;         /* alternating warm band */
  --line: #e0d3c1;        /* hairlines */
  --ink: #221a14;         /* near-black warm (dark beams + wrought iron) */
  --muted: #6b5d4f;       /* warm taupe, secondary text (AA ~5.4:1 on bg) */
  --accent: #b3402c;      /* terracotta-coral — the logo box + coral plate */
  --accent-deep: #8f3120; /* darker terracotta for hover */
  --cream: #f5ece0;       /* text on dark bands */
  --espresso: #211913;    /* footer / dark ground */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", -apple-system, "Segoe UI", sans-serif;
  --radius: 3px;
  --measure: 64ch;
  --edge: clamp(1.25rem, 5vw, 3rem);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  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(--accent); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { max-width: var(--measure); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--edge); }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-family: var(--font-body); font-weight: 700;
  font-size: 0.98rem; letter-spacing: 0.01em;
  padding: 0.78rem 1.35rem; border-radius: var(--radius);
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  line-height: 1;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem var(--edge);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.topbar .brand span { color: var(--accent); }
.topbar-cta {
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  color: #fff; background: var(--accent);
  padding: 0.5rem 1rem; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: background-color .18s ease;
}
.topbar-cta:hover { background: var(--accent-deep); }
.topbar-cta svg { width: 0.95em; height: 0.95em; }

/* -- hero ------------------------------------------------------------------ */
.hero { padding-block: clamp(2.5rem, 7vh, 4.5rem) clamp(2.5rem, 7vh, 4rem); }
.hero-grid { display: grid; gap: clamp(1.75rem, 5vw, 3.5rem); align-items: center; }
.hero-eyebrow {
  color: var(--accent); font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(3.6rem, 17vw, 7rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 0.92;
}
.hero-tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 5vw, 2rem); color: var(--accent);
  line-height: 1.15; padding-bottom: 0.15em; margin-top: 0.35rem;
}
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 42ch; margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}

/* -- statement ------------------------------------------------------------- */
.statement { padding-block: clamp(2.5rem, 6vh, 4rem); text-align: center; }
.statement h2 { margin-inline: auto; }
.statement p { margin: 1rem auto 0; color: var(--muted); font-size: 1.12rem; }
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem;
  margin: 1.9rem auto 0; max-width: 46rem;
}
.chip {
  font-size: 0.86rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  padding: 0.4rem 0.85rem; border-radius: var(--radius);
}
.rating {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.6rem;
  font-weight: 700; font-size: 0.98rem;
}
.rating .stars { color: var(--accent); letter-spacing: 0.08em; }
.rating .count { color: var(--muted); font-weight: 500; }

/* -- dark full-bleed photo band (the signature) ---------------------------- */
.band {
  position: relative; color: var(--cream);
  padding-block: clamp(4rem, 16vh, 8rem);
  background-size: cover; background-position: center;
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,16,10,0.62), rgba(24,16,10,0.78));
}
.band .wrap { position: relative; }
.band--garden { background-image: url("images/garden.jpg"); }
.band h2 { color: var(--cream); max-width: 18ch; }
.band .lede { color: var(--cream); opacity: 0.9; margin-top: 1rem; max-width: 52ch; }
.pull {
  margin-top: 2.2rem; border-left: 3px solid var(--accent);
  padding-left: 1.25rem; max-width: 46ch;
}
.pull blockquote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.25rem, 3.5vw, 1.7rem); line-height: 1.3; color: var(--cream);
}
.pull cite { display: block; margin-top: 0.9rem; font-style: normal;
  font-size: 0.9rem; letter-spacing: 0.02em; color: var(--cream); opacity: 0.75; }

/* -- menu (card grid, no prices) ------------------------------------------- */
.menu { background: var(--alt); padding-block: clamp(3rem, 8vh, 5rem); }
.menu-head { max-width: 40ch; }
.menu-head p { color: var(--muted); margin-top: 0.75rem; }
.menu-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); margin-top: 2.2rem; }
.dish-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.dish-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
.dish-card--plate img { object-position: center 12%; }  /* frame the dish, crop the bottom watermark */
.dish-card .body { padding: 1.4rem 1.5rem 1.6rem; }
.dish-card h3 { color: var(--ink); }
.dish-card p { color: var(--muted); font-size: 1rem; margin-top: 0.55rem; }
.menu-note { margin-top: 1.75rem; color: var(--muted); font-size: 0.92rem; font-style: italic; }

/* -- events (single img+text split) ---------------------------------------- */
.events { padding-block: clamp(3rem, 8vh, 5rem); }
.events-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.events-figure { margin: 0; }
.events-figure img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.events-text p { color: var(--muted); margin-top: 1rem; }
.events-text .btn { margin-top: 1.6rem; }

/* -- orari & dove ---------------------------------------------------------- */
.info { background: var(--alt); padding-block: clamp(3rem, 8vh, 5rem); }
.info-grid { display: grid; gap: 2.5rem; margin-top: 1.75rem; }
.info h3 { color: var(--ink); margin-bottom: 0.9rem; }
.hours { width: 100%; max-width: 24rem; border-collapse: collapse; }
.hours td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.hours td:first-child { color: var(--ink); font-weight: 700; white-space: nowrap; padding-right: 1.5rem; }
.hours tr:last-child td { border-bottom: none; }
.hours tr.today td { color: var(--accent); }
.hours tr.today td:first-child { color: var(--accent); }
.today-tag {
  display: inline-block; margin-left: 0.5rem; font-family: var(--font-body);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 0.1rem 0.45rem; border-radius: var(--radius);
  vertical-align: 0.12em;
}
.contact-lines { color: var(--ink); line-height: 2; margin-bottom: 1.5rem; }
.contact-lines a { font-weight: 600; }
.contact-lines .label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-top: 0.75rem; }

/* -- footer ---------------------------------------------------------------- */
.footer { background: var(--espresso); color: var(--cream); padding-block: 3rem 3.25rem; }
.footer .brand { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }
.footer .brand span { color: var(--accent); }
.footer .f-tag { font-family: var(--font-display); font-style: italic; color: var(--cream); opacity: 0.8; margin-top: 0.2rem; }
.footer .f-meta { margin-top: 1.25rem; color: var(--cream); opacity: 0.72; font-size: 0.92rem; line-height: 1.9; }
.footer .f-meta a { color: var(--cream); }
.footer .demo-note { margin-top: 1.5rem; font-size: 0.82rem; opacity: 0.5; }

/* -- reveal-on-scroll (gated on prefers-reduced-motion AND .js so content
      stays fully visible if JS is off) -------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .hero-animate { transform: translateY(14px); opacity: 0; animation: heroIn .8s cubic-bezier(.16,1,.3,1) .1s forwards; }
  @keyframes heroIn { to { opacity: 1; transform: none; } }
}

/* ==========================================================================
   DESKTOP (min-width: 760px)
   ========================================================================== */
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-figure img { aspect-ratio: 5 / 6; }   /* taller frame on desktop only */
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .events-grid { grid-template-columns: 0.95fr 1.05fr; }
  .events-grid .events-text { order: 2; }
  .events-grid .events-figure { order: 1; }
  .info-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 980px) {
  .hero h1 { font-size: clamp(5rem, 8vw, 7.5rem); }
}
