/* ==========================================================================
   Beppe e Tina, il popolo della piadina — San Lazzaro di Savena
   Direction: retro roadside-chiosco pop. Their real kiosk red as the single
   accent on warm cream; Shrikhand (fat poster face echoing the hand-painted
   "PIADINE" bubble signage) for the big moments, DM Sans for everything read.
   Shape scale: interactive = full pill; large panels/images = 16px; small
   menu chips = 12px. (Documented 3-step radius system, applied consistently.)
   Mobile-first (390px), one committed light theme, motion capped at CSS hover.
   ========================================================================== */

:root {
  --red: #d0301f;          /* the kiosk red — the ONE accent */
  --red-deep: #a8241a;     /* darker red for hover/edges */
  --cream: #f5ead6;        /* warm canvas */
  --cream-card: #fdf7ec;   /* raised surfaces */
  --cream-on-red: #fbf3e6; /* text/elements on red */
  --ink: #26190f;          /* body text */
  --muted: #6e5844;        /* secondary text (AA on cream) */
  --line: rgba(38, 25, 15, 0.14);
  --line-on-red: rgba(251, 243, 230, 0.28);

  --font-display: "Shrikhand", Georgia, serif;
  --font-body: "DM Sans", -apple-system, "Segoe UI", sans-serif;

  --r-card: 16px;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--red); }

h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; }
h2 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  color: var(--ink);
  letter-spacing: 0.005em;
}

/* -- buttons (all full-pill) ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  line-height: 1; white-space: nowrap;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-cream { background: var(--cream-on-red); color: var(--red-deep); }
.btn-cream:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--cream-on-red); border-color: var(--line-on-red); }
.btn-ghost:hover { background: rgba(251, 243, 230, 0.12); }
.btn-red { background: var(--red); color: var(--cream-on-red); }
.btn-red:hover { background: var(--red-deep); }

/* -- top bar ---------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--red);
  line-height: 1;
}
.topbar-cta {
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  color: var(--cream-on-red); background: var(--red);
  padding: 0.55rem 1.05rem; border-radius: 999px;
  transition: background 0.15s ease;
}
.topbar-cta:hover { background: var(--red-deep); }

/* -- hero ------------------------------------------------------------------- */
.hero {
  background: var(--red);
  color: var(--cream-on-red);
  padding: 2.5rem 1.25rem 3rem;
  position: relative;
  overflow: hidden;
}
/* faint painted-stripe texture, like the awning — pure CSS, no asset */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, rgba(255,255,255,0.05) 0 22px, transparent 22px 44px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--wrap); margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.75rem;
}
.hero-kicker {
  font-weight: 500; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--cream-on-red); opacity: 0.85;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.9rem, 11vw, 5rem);
  color: var(--cream-on-red);
  letter-spacing: 0.01em;
}
.hero-sub-name {
  display: block;
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(0.85rem, 3vw, 1.05rem);
  text-transform: uppercase; letter-spacing: 0.22em;
  margin-top: 0.9rem; opacity: 0.92;
}
.hero-sub {
  font-size: 1.1rem; line-height: 1.5;
  max-width: 34ch; margin: 1.4rem 0 1.9rem;
  color: var(--cream-on-red); opacity: 0.95;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-photo {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 6px solid var(--cream-on-red);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  max-height: 46vh;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 860px) {
  .hero { padding: 3.25rem 1.5rem 3.75rem; }
  .hero-inner {
    flex-direction: row; align-items: center;
    gap: 3rem;
  }
  .hero-copy { flex: 1.15; }
  .hero-photo {
    flex: 0.85; max-height: none; align-self: stretch;
    max-width: 420px;
    transform: rotate(-1.5deg);
  }
}

/* -- intro + facts ---------------------------------------------------------- */
.intro {
  max-width: 900px; margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}
.intro-lead {
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  line-height: 1.5; font-weight: 500;
  max-width: 40ch; margin: 0 auto;
  color: var(--ink);
}
.intro-lead em { font-style: italic; color: var(--red); font-weight: 700; }
.facts {
  list-style: none; padding: 0;
  margin: 2.5rem auto 0; max-width: 720px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
}
.facts li {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 0.5rem;
  border-left: 1px solid var(--line);
}
.facts li:first-child { border-left: 0; }
.fact-big {
  font-family: var(--font-display); font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  color: var(--red); line-height: 1;
}
.fact-small { font-size: 0.82rem; color: var(--muted); line-height: 1.3; }

/* -- menu ------------------------------------------------------------------- */
.menu {
  max-width: var(--wrap); margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.menu-head { text-align: center; margin-bottom: 2.25rem; }
.menu-intro {
  color: var(--muted); margin-top: 0.6rem;
  max-width: 44ch; margin-left: auto; margin-right: auto;
}
.menu-cat { margin-bottom: 2.5rem; }
.cat-title {
  display: inline-block;
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.35rem; line-height: 1;
  color: var(--cream-on-red); background: var(--red);
  padding: 0.5rem 1.1rem 0.6rem; border-radius: 999px;
  margin-bottom: 1.25rem;
  transform: rotate(-1deg);
}
.piada-list { columns: 1; column-gap: 1rem; }
@media (min-width: 560px) { .piada-list { columns: 2; } }
@media (min-width: 940px) { .piada-list { columns: 3; } }
.piada {
  break-inside: avoid;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.85rem 0.7rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.piada:hover { border-color: var(--red); transform: translateY(-2px); }
.piada-name {
  display: block; font-weight: 700; font-size: 1.02rem;
  color: var(--ink); letter-spacing: 0.005em;
}
.piada-ing {
  display: block; font-size: 0.88rem; line-height: 1.4;
  color: var(--muted); margin-top: 0.15rem;
}

/* -- slogan closer ---------------------------------------------------------- */
.slogan {
  background: var(--red);
  color: var(--cream-on-red);
  border-radius: var(--r-card);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative; overflow: hidden;
  margin-top: 1rem;
}
.slogan::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, rgba(255,255,255,0.05) 0 22px, transparent 22px 44px);
  pointer-events: none;
}
.slogan-big {
  position: relative;
  font-family: var(--font-display); font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1; color: var(--cream-on-red);
}
.slogan-small {
  position: relative;
  margin: 1rem auto 0; max-width: 46ch;
  font-size: 0.98rem; opacity: 0.92;
}

/* -- gallery ---------------------------------------------------------------- */
.gallery {
  max-width: var(--wrap); margin: 0 auto;
  padding: 1rem 1.25rem 3.5rem;
}
.gallery h2 { margin-bottom: 1.5rem; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.gallery-grid figure { border-radius: var(--r-card); overflow: hidden; margin: 0; background: var(--cream-card); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.g-wide { grid-column: 1 / -1; }
.g-wide img { aspect-ratio: 16 / 9; }

/* -- orari & dove ----------------------------------------------------------- */
.dove {
  background: var(--red);
  color: var(--cream-on-red);
  padding: 3.5rem 1.25rem;
  position: relative; overflow: hidden;
}
.dove::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, rgba(255,255,255,0.05) 0 22px, transparent 22px 44px);
  pointer-events: none;
}
.dove-inner {
  position: relative;
  max-width: var(--wrap); margin: 0 auto;
  display: grid; gap: 2.5rem;
}
@media (min-width: 720px) { .dove-inner { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.dove h2 { color: var(--cream-on-red); margin-bottom: 1.25rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 340px; }
.hours td { padding: 0.5rem 0; border-bottom: 1px solid var(--line-on-red); font-size: 0.98rem; }
.hours td:first-child { font-weight: 700; }
.hours td:last-child { text-align: right; }
.hours tr:last-child td { border-bottom: 0; }
.closed { opacity: 0.7; }
.hours-note { margin-top: 1rem; font-size: 0.9rem; opacity: 0.85; }
.addr { font-size: 1.05rem; line-height: 1.5; margin-bottom: 1.25rem; }
.contact-lines { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.75rem; }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--cream-on-red); text-decoration: none; font-weight: 500;
  width: fit-content;
}
.contact-link svg { flex: none; opacity: 0.9; }
.contact-link:hover { text-decoration: underline; }

/* -- footer ----------------------------------------------------------------- */
.footer {
  padding: 2.5rem 1.25rem 3rem; text-align: center;
  color: var(--muted); font-size: 0.9rem; line-height: 1.7;
}
.footer a { color: var(--red); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-brand {
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--red); margin-bottom: 0.4rem;
}
.demo-note { margin-top: 0.75rem; opacity: 0.7; }

/* -- motion discipline ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .hero-photo, .cat-title { transform: none !important; }
}
