/* ==========================================================================
   TRATTORIA GRILLINI — Pianoro (Val di Zena)
   Direction: warm hillside "almanac", heritage since 1957.
   Palette from their premises: plaster-cream canvas, bordeaux (dehors
   umbrellas + printed logo ink) as the ONE accent, salmon (facade) as a
   decorative-only awning tint. Serif justified by the printed "dal 1957".
   Sharp print edges. Mobile-first (390px). Motion = CSS only.
   ========================================================================== */

:root {
  --paper:   #f5ece1;   /* canvas: plaster-cream, from the salmon facade lightened */
  --sand:    #efe1d2;   /* alternating surface */
  --wine:    #7b2733;   /* THE accent: dehors umbrellas + logo ink */
  --wine-dk: #601c26;   /* accent hover */
  --wine-ink:#f7ece1;   /* text on wine */
  --salmon:  #cf8a63;   /* facade echo — decorative only (awning stripe) */
  --ink:     #2c211d;   /* text */
  --muted:   #6d564a;   /* secondary text (>=4.5:1 on paper) */
  --line:    #d8c6b3;   /* hairlines */

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --radius: 2px;
  --measure: 64ch;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  border-top: 4px solid var(--salmon);   /* awning stripe */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--wine); text-underline-offset: 3px; }
a:hover { color: var(--wine-dk); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
}

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

/* -- top bar --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em;
  line-height: 1.05;
}
.brand small {
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); display: block; margin-top: 0.05rem;
}

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.6rem 1.15rem; border-radius: var(--radius);
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: background .2s ease, color .2s ease, transform .1s ease, border-color .2s ease;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--wine); border-color: var(--wine); color: var(--wine-ink);
}
.btn-primary:hover { background: var(--wine-dk); border-color: var(--wine-dk); color: var(--wine-ink); }
.btn svg { width: 1.05em; height: 1.05em; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.88rem; }

/* -- hero (typographic masthead, left-aligned) ----------------------------- */
.hero { padding-block: clamp(3rem, 9vh, 5.5rem) clamp(2.5rem, 6vh, 3.5rem); }
.hero-eyebrow {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--wine); margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 9vw, 4.6rem);
  font-weight: 600; margin-bottom: 1.1rem; max-width: 12ch;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted); max-width: 36ch; margin-bottom: 1.9rem;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* -- full-bleed photo band ------------------------------------------------- */
.band { margin: 0; }
.band-figure { overflow: hidden; margin: 0; }
.band-figure img {
  width: 100%; height: clamp(240px, 46vh, 460px); object-fit: cover;
  object-position: center 62%;
  transition: transform 6s ease;
}
.band-figure:hover img { transform: scale(1.03); }
.band-cap {
  color: var(--muted); font-size: 0.85rem;
  padding: 0.8rem 1.25rem; max-width: var(--maxw); margin: 0 auto;
}
.band-cap em { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--ink); }

/* -- generic section ------------------------------------------------------- */
.section { padding-block: clamp(3rem, 8vh, 5rem); }
.section--sand { background: var(--sand); border-block: 1px solid var(--line); }
.section h2 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 500; margin-bottom: 1.1rem;
}
.lead { color: var(--ink); max-width: var(--measure); font-size: 1.1rem; }
.lead + .lead { margin-top: 0.9rem; }

/* -- storia (prose + facts + stacked image) -------------------------------- */
.storia-text p { color: var(--ink); }
.storia-text p + p { margin-top: 0.9rem; }
.storia-band { margin-top: 2.6rem; overflow: hidden; border-radius: var(--radius); }
.storia-band img {
  width: 100%; height: clamp(260px, 42vh, 440px); object-fit: cover;
  object-position: center 60%; transition: transform 6s ease;
}
.storia-band:hover img { transform: scale(1.03); }
.storia-band figcaption { color: var(--muted); font-size: 0.82rem; margin-top: 0.7rem; }

/* -- facts row ------------------------------------------------------------- */
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.4rem; border-top: 1px solid var(--line);
}
.facts div { padding: 1.1rem 0.5rem 0; min-width: 0; overflow-wrap: break-word; }
.facts div + div { border-left: 1px solid var(--line); padding-left: 1rem; }
.facts dt {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--muted); margin-bottom: 0.35rem;
}
.facts dd {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.05rem, 3.2vw, 1.5rem); line-height: 1.15;
}
.facts dd small {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: 0.7rem; letter-spacing: 0.02em; color: var(--muted); margin-top: 0.3rem;
}

/* -- menu (grouped clusters, editorial) ------------------------------------ */
.menu-intro { color: var(--muted); max-width: var(--measure); margin-bottom: 2rem; }
.menu-cluster { padding-top: 1.6rem; margin-top: 1.6rem; border-top: 1px solid var(--line); }
.menu-cluster:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.menu-cluster h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--wine); margin-bottom: 1.1rem;
}
.menu-item {
  display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem;
  align-items: baseline; padding: 0.65rem 0;
}
.menu-item .dish { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.menu-item .desc { grid-column: 1 / 2; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.menu-item .price {
  grid-column: 2 / 3; grid-row: 1;
  font-variant-numeric: tabular-nums; font-weight: 600; color: var(--wine);
  white-space: nowrap; font-size: 1.05rem;
}
.menu-note { margin-top: 1.8rem; color: var(--muted); font-size: 0.88rem; max-width: var(--measure); }

/* -- menu section header strip --------------------------------------------- */
.menu-strip { overflow: hidden; border-radius: var(--radius); margin-bottom: 2rem; }
.menu-strip img {
  width: 100%; height: clamp(150px, 22vh, 240px); object-fit: cover;
  object-position: center 42%; transition: transform 6s ease;
}
.menu-strip:hover img { transform: scale(1.03); }

/* -- dove & orari (locator image + info) ----------------------------------- */
.info-grid { display: grid; gap: 2rem; align-items: start; }
.info-grid > * { min-width: 0; }
@media (min-width: 760px) { .info-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: stretch; } }
.dove-figure { overflow: hidden; border-radius: var(--radius); margin: 0; }
.dove-figure img {
  width: 100%; height: 100%; min-height: 300px; object-fit: cover;
  object-position: center 42%;
}
.dove-figure figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 0.6rem; }
@media (max-width: 759px) {
  .dove-figure img { height: 62vw; min-height: 0; max-height: 420px; }
}
.info-grid h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted); margin-bottom: 0.9rem;
}
.hours { width: 100%; border-collapse: collapse; }
.hours th { text-align: left; font-weight: 500; padding: 0.45rem 0; color: var(--ink); font-size: 1rem; }
.hours td { text-align: right; padding: 0.45rem 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours tr:last-child { border-bottom: 0; }
.hours .closed th, .hours .closed td { color: var(--muted); }
.hours .closed td { font-style: italic; }
.hours .today th { color: var(--wine); font-weight: 700; }
.contact-lines { line-height: 1.95; margin-bottom: 1.4rem; }
.contact-lines .addr { color: var(--ink); }
.contact-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  background: var(--sand); border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem; text-align: center; color: var(--muted); font-size: 0.9rem;
}
.footer .brand-foot { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); display: block; margin-bottom: 0.4rem; }
.footer p { margin: 0.2rem 0; }
.footer a { font-weight: 600; }
.demo-note { margin-top: 0.9rem; opacity: 0.75; font-size: 0.82rem; }

/* -- motion off ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
  .band-figure:hover img, .gallery figure:hover img { transform: none; }
}
