/* ==========================================================================
   UNNI MANCI! — Trattoria e Pizzeria, Barcellona Pozzo di Gotto (ME)
   Direction: bandiera navy + rosso + bianco-caldo lifted from their own badge.
   Type: Gabarito (display) + Hanken Grotesk (body). Mobile-first (390px).
   Radius rule: interactive = pill (999px); cards/images = 14px. One accent (red).
   ========================================================================== */

:root {
  --bg: #fbf7f0;            /* warm white canvas — walls + tablecloths */
  --surface: #ffffff;       /* cards */
  --navy: #1b2942;          /* structural ink — logo + accent wall */
  --navy-2: #14203a;        /* deeper navy for footer/hero */
  --text: #2a2622;          /* warm near-black body */
  --muted: #6d5844;         /* wood/tortora secondary text */
  --accent: #c62128;        /* THE accent — logo/ribbon red */
  --accent-hover: #a91a20;
  --on-accent: #fff8f2;     /* text on red */
  --line: #e7ddcf;          /* warm hairline */
  --line-navy: rgba(255,255,255,0.16);
  --font-display: "Gabarito", "Trebuchet MS", sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
em { font-style: italic; }

h1, h2, h3, .brand, .foot-brand {
  font-family: var(--font-display);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy);
}

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

.bang, .brand-bang, .star { color: var(--accent); }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 0.72rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent; line-height: 1;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { color: #fff8f2; border-color: rgba(255,248,242,0.5); }
.btn-ghost:hover { border-color: #fff8f2; background: rgba(255,248,242,0.08); }
.btn-line { color: var(--accent); border-color: var(--accent); background: transparent; }
.btn-line:hover { background: var(--accent); color: var(--on-accent); }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1.25rem; height: 64px;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.35rem; text-decoration: none; letter-spacing: -0.03em; }
.topbar-cta {
  text-decoration: none; font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem; color: var(--on-accent); background: var(--accent);
  padding: 0.45rem 1.05rem; border-radius: 999px; line-height: 1;
  transition: background-color .18s ease;
}
.topbar-cta:hover { background: var(--accent-hover); }

/* -- hero (split) ---------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr; }
.hero-panel {
  background: var(--navy-2); color: #fdf6ee;
  padding: 3rem 1.25rem 3.25rem;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-kicker {
  color: #e7c9b0; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 1.1rem;
}
.hero-title {
  color: #fdf6ee; font-weight: 900;
  font-size: clamp(3.4rem, 18vw, 6rem);
  letter-spacing: -0.04em; line-height: 0.92; margin-bottom: 1.2rem;
}
.hero-sub {
  color: #d8cfc4; font-size: 1.1rem; max-width: 30ch; margin-bottom: 1.9rem;
}
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.hero-media { min-height: 58vw; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }

/* -- section rhythm -------------------------------------------------------- */
.specialita, .galleria, .dove { padding-block: clamp(3.25rem, 8vw, 5.5rem); }
.sect-head { max-width: 40ch; margin-bottom: 2.4rem; }
h2 { font-size: clamp(2rem, 6vw, 2.9rem); }
.sect-lead { color: var(--muted); font-size: 1.12rem; margin-top: 0.7rem; }

/* -- specialità (asymmetric bento: pizze = feature) ------------------------ */
.dishes { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.dish-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.6rem;
  border-top: 4px solid var(--accent);
}
.dish-card h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 0.5rem; }
.dish-card p { color: var(--text); }
.dish-card--feature {
  background: var(--navy); border-color: var(--navy);
  display: flex; flex-direction: column; justify-content: center;
}
.dish-card--feature h3 { color: #fdf6ee; font-size: 1.7rem; }
.dish-card--feature p { color: #d8cfc4; font-size: 1.12rem; max-width: 34ch; }
.dish-card--feature em { color: #fff; }
.menu-foot {
  margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.2rem;
  align-items: flex-start;
}
.menu-note { color: var(--muted); font-size: 0.98rem; max-width: 52ch; }

/* -- quote band ------------------------------------------------------------ */
.quote { background: var(--bg); border-block: 1px solid var(--line); }
.quote .wrap { padding-block: clamp(3rem, 7vw, 4.5rem); max-width: 900px; text-align: center; }
.quote-body {
  font-family: var(--font-display); font-weight: 700;
  color: var(--navy); font-size: clamp(1.55rem, 5vw, 2.4rem);
  line-height: 1.2; letter-spacing: -0.02em;
}
.quote-body .hl { color: var(--accent); }
.quote-by { color: var(--muted); font-size: 0.95rem; margin-top: 1.1rem; letter-spacing: 0.01em; }
.quote-by .star { font-size: 1rem; }

/* -- sala (image + text) --------------------------------------------------- */
.sala { display: grid; grid-template-columns: 1fr; }
.sala-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.2; }
.sala-text {
  background: var(--surface); padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem;
  display: flex; flex-direction: column; justify-content: center;
}
.sala-text h2 { margin-bottom: 0.9rem; }
.sala-text p { color: var(--text); max-width: 46ch; }
.tags { list-style: none; padding: 0; margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tags li {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  color: var(--navy); background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem;
}

/* -- galleria (asymmetric grid) -------------------------------------------- */
.galleria .wrap { padding-bottom: 1.8rem; }
.grid {
  max-width: var(--wrap); margin: 0 auto; padding-inline: 1.25rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem;
}
.grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.grid figure:hover img { transform: scale(1.04); }
.g-tall { grid-row: span 2; }
.g-wide img, .g-sq img { aspect-ratio: 3 / 2; }

/* -- orari & dove ---------------------------------------------------------- */
.dove { background: var(--surface); border-top: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 2.6rem; }
.info-block h2 { margin-bottom: 1.1rem; font-size: clamp(1.7rem, 5vw, 2.2rem); }
.hours { border-collapse: collapse; width: 100%; max-width: 340px; }
.hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.hours td:first-child { font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.hours td:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours td.closed { color: var(--accent); font-weight: 600; }
.hours-note { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; }
.addr { margin-bottom: 1.1rem; line-height: 1.7; }
.addr a { font-weight: 600; text-decoration: none; }
.addr a:hover { text-decoration: underline; }
.info-block .btn { margin-top: 0.4rem; }

/* -- footer ---------------------------------------------------------------- */
.footer { background: var(--navy-2); color: #d8cfc4; padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.footer .wrap { text-align: center; }
.foot-brand { color: #fdf6ee; font-size: 1.9rem; letter-spacing: -0.03em; }
.foot-line { margin-top: 0.7rem; font-size: 0.95rem; }
.foot-line a { color: #fdf6ee; text-decoration: none; }
.foot-line a:hover { text-decoration: underline; }
.foot-copy { margin-top: 1.2rem; font-size: 0.85rem; color: #9d9488; }
.demo-note { margin-top: 0.6rem; font-size: 0.8rem; color: #857c72; }

/* -- entrance motion (gated) ----------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-panel > * { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.16,1,.3,1) forwards; }
  .hero-kicker { animation-delay: .05s; }
  .hero-title { animation-delay: .13s; }
  .hero-sub { animation-delay: .22s; }
  .hero-actions { animation-delay: .3s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ==========================================================================
   DESKTOP / TABLET
   ========================================================================== */
@media (min-width: 720px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: min(88vh, 760px); }
  .hero-panel { padding: 3.5rem clamp(2rem, 5vw, 4rem); }
  .hero-media { min-height: 0; }
  .hero-media img { aspect-ratio: auto; }

  .dishes { grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.1rem; }
  .dish-card--feature { grid-row: span 2; }

  .sala { grid-template-columns: 1.05fr 1fr; }
  .sala-media img { aspect-ratio: auto; min-height: 100%; }
  .sala-text { padding-inline: clamp(2.5rem, 5vw, 4.5rem); }

  .grid { grid-template-columns: 1.2fr 1fr; gap: 0.9rem; }
  .g-wide img, .g-sq img { aspect-ratio: 16 / 10; }

  .info-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (min-width: 1000px) {
  .hero-title { font-size: clamp(4.5rem, 6.5vw, 6.2rem); }
}
