/* ============================================================
   La Fornace da Gioele — pizzeria/rosticceria, Barcellona P.G.
   Direction: RED as the brand FIELD (the glowing oven), flour-cream
   canvas for the body, warm slab display. One accent: oven-red.
   Fonts: Rokkitt (display slab) + Hanken Grotesk (body).
   ============================================================ */

:root {
  /* brand red — the fornace / the sign */
  --red:        #b8281b;
  --red-deep:   #8c1b10;
  --red-glow:   #d1381f;
  --red-ink:    #ab2517;   /* red on cream: links, prices (AA on cream) */

  /* flour-cream canvas + surfaces */
  --cream:      #f7f0e3;
  --cream-card: #fffdf8;
  --band:       #f1e8d7;
  --line:       #e5dbc6;

  /* ink */
  --ink:        #241813;
  --muted:      #6a5849;   /* AA on cream for small text */

  /* on the red field */
  --on-red:        #f8efe1;
  --on-red-soft:   #f0d7c8;
  --on-red-line:   rgba(248,239,225,.22);

  --maxw: 1120px;
  --pad: 22px;
  --r-surface: 14px;
  --r-photo: 14px;
  /* radius rule: interactive = pill, surfaces & photos = 14px */

  --shadow: 0 14px 34px -18px rgba(58,20,12,.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Rokkitt", Georgia, serif;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -.01em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: .82em 1.4em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary:hover { background: var(--red-deep); }

.btn-ghost { background: transparent; color: var(--red-ink); border-color: var(--red-ink); }
.btn-ghost:hover { background: var(--red-ink); color: var(--on-red); }

/* ================= TOPBAR ================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px var(--pad);
  background: rgba(247,240,227,.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Rokkitt", serif;
  font-weight: 800;
  font-size: 1.32rem;
  line-height: .95;
  color: var(--red-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  letter-spacing: -.01em;
}
.brand-sub {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.topnav { display: none; margin-left: auto; gap: 26px; }
.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.topnav a:hover { color: var(--red-ink); }
.topbar-cta {
  margin-left: auto;
  background: var(--red);
  color: var(--on-red);
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  padding: .55em 1.15em;
  border-radius: 999px;
}
.topnav + .topbar-cta { margin-left: 0; }
.topbar-cta:hover { background: var(--red-deep); }

/* ================= HERO (red brand field) ================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 82% 8%, var(--red-glow) 0%, var(--red) 42%, var(--red-deep) 100%);
  color: var(--on-red);
  padding: 44px var(--pad) 48px;
}
/* faint "heat fracture" glow, honoring their cracked-red sign — no image */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 30% at 12% 100%, rgba(255,150,90,.20), transparent 70%),
    radial-gradient(50% 40% at 100% 0%, rgba(255,190,120,.18), transparent 70%);
  pointer-events: none;
}
.hero-copy { position: relative; }
.eyebrow {
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-red-soft);
  margin: 0 0 18px;
}
.wordmark {
  font-weight: 800;
  font-size: clamp(3.1rem, 15vw, 5.2rem);
  letter-spacing: -.02em;
  text-shadow: 0 2px 0 rgba(90,20,12,.35);
}
.wordmark-2 {
  display: block;
  font-weight: 500;
  font-size: clamp(1.2rem, 5.4vw, 1.7rem);
  letter-spacing: .04em;
  color: var(--on-red-soft);
  margin-top: 6px;
}
.hero-sub {
  max-width: 30ch;
  font-size: 1.08rem;
  color: var(--on-red);
  margin: 20px 0 26px;
}
.hero-sub strong { color: #ffe7b8; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { background: var(--cream-card); color: var(--red-ink); }
.hero .btn-primary:hover { background: #fff; }
.hero .btn-ghost { color: var(--on-red); border-color: var(--on-red-line); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--on-red); }
.hero-status {
  position: relative;
  margin: 22px 0 0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--on-red-soft);
  padding-left: 20px;
}
.hero-status::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 9px; height: 9px;
  margin-top: -4px;
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 0 4px rgba(255,210,122,.2);
}
.closed-day { color: #ffcf9e; }

.hero-photo {
  position: relative;
  margin: 32px 0 0;
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-photo);
  border: 3px solid rgba(255,240,225,.9);
  box-shadow: 0 22px 44px -20px rgba(60,12,6,.7);
}
.hero-photo figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(30,12,8,.72);
  color: var(--on-red);
  font-size: .76rem;
  font-weight: 600;
  padding: .34em .7em;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

/* ================= BAND: come a casa (red) ================= */
.band {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--on-red);
  padding: 46px var(--pad);
}
.band-inner { max-width: var(--maxw); margin: 0 auto; }
.band-lead {
  font-family: "Rokkitt", serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 5.4vw, 2rem);
  line-height: 1.24;
  max-width: 24ch;
  margin: 0 0 30px;
}
.band-lead strong { color: #ffe7b8; font-weight: 700; }
.band-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--on-red-line);
  padding-top: 26px;
}
.band-facts li { display: flex; flex-direction: column; }
.fact-num {
  font-family: "Rokkitt", serif;
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1;
}
.fact-star { color: #ffd27a; font-size: 1.3rem; margin-left: 2px; }
.fact-lbl { font-size: .86rem; color: var(--on-red-soft); margin-top: 4px; }

.reviews {
  max-width: var(--maxw);
  margin: 32px auto 0;
  display: grid;
  gap: 16px;
}
.reviews blockquote {
  margin: 0;
  background: rgba(255,246,235,.1);
  border: 1px solid var(--on-red-line);
  border-radius: var(--r-surface);
  padding: 20px 22px;
}
.reviews p { margin: 0 0 12px; font-size: 1.02rem; }
.reviews cite {
  font-style: normal;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--on-red-soft);
}

/* ================= SECTIONS (cream) ================= */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 54px var(--pad);
}
.section-head { margin-bottom: 30px; }
.section-head h2 {
  font-weight: 800;
  font-size: clamp(1.9rem, 7vw, 2.7rem);
  color: var(--ink);
}
.section-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: var(--red);
}
.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

/* ================= SPECIALITÀ (feature) ================= */
.feature {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}
.feature:last-child { margin-bottom: 0; }
.feature-photo { margin: 0; }
.feature-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-photo);
  box-shadow: var(--shadow);
}
.feature-text h3 {
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--red-ink);
  margin-bottom: 10px;
}
.feature-text p { margin: 0 0 12px; color: #3a2a20; }
.feature-text p:last-child { margin-bottom: 0; }
.feature-price {
  font-family: "Rokkitt", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink) !important;
}
.feature-price span {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 500;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ================= MENÙ (listino) ================= */
.menu-section { background: var(--cream); }
.menu-cols {
  display: grid;
  gap: 40px;
}
.menu-group h3 {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.menu-list li:last-child { border-bottom: none; }
.dish { flex: 1; min-width: 0; }
.dish-name {
  display: block;
  font-family: "Rokkitt", serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
}
.dish-ing {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin-top: 1px;
}
.price {
  flex-shrink: 0;
  font-family: "Rokkitt", serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--red-ink);
  white-space: nowrap;
}
.price i { color: var(--line); font-style: normal; margin: 0 3px; }
.price::before { content: "€ "; font-weight: 600; }
.dish-star .dish-name::after {
  content: "★";
  color: var(--red);
  font-size: .78em;
  margin-left: 7px;
  vertical-align: 2px;
}

.menu-extra {
  margin-top: 36px;
  display: grid;
  gap: 12px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  padding: 22px;
}
.extra-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 14px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.menu-extra .extra-item:last-child { padding-bottom: 0; border-bottom: none; }
.extra-name {
  font-family: "Rokkitt", serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.extra-desc { grid-column: 1; font-size: .85rem; color: var(--muted); }
.extra-price {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-family: "Rokkitt", serif;
  font-weight: 700;
  color: var(--red-ink);
  white-space: nowrap;
}
.menu-note {
  margin-top: 26px;
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* ================= DOVE ================= */
.dove-section { max-width: var(--maxw); }
.dove-grid { display: grid; gap: 30px; }
.dove-info h3 {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.dove-h3 { margin-top: 30px; }
.hours { width: 100%; border-collapse: collapse; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours th {
  text-align: left;
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink);
  padding: 11px 0;
}
.hours td {
  text-align: right;
  font-weight: 600;
  font-size: .95rem;
  color: var(--muted);
  padding: 11px 0;
}
.hours td.chiuso { color: var(--red-ink); }
.hours tr.is-today th,
.hours tr.is-today td {
  color: var(--red-ink);
  font-weight: 700;
}
.hours tr.is-today th::before {
  content: "Oggi · ";
  font-weight: 700;
  color: var(--red);
  font-size: .72rem;
  letter-spacing: .04em;
}
.contact-lines { margin: 0 0 18px; color: var(--ink); line-height: 1.7; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-second { margin: 14px 0 0; font-size: .92rem; color: var(--muted); }
.btn-map { margin-top: 18px; }

.dove-photo { margin: 0; }
.dove-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-photo);
  box-shadow: var(--shadow);
}
.dove-photo figcaption {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

/* ================= FOOTER (red) ================= */
.footer {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--on-red);
  padding: 44px var(--pad) 30px;
  text-align: center;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-brand {
  font-family: "Rokkitt", serif;
  font-weight: 800;
  font-size: 1.8rem;
  line-height: .95;
  margin: 0 0 14px;
}
.footer-brand span {
  display: block;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: .6rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--on-red-soft);
  margin-top: 4px;
}
.footer-lines { margin: 0 0 14px; font-size: .95rem; color: var(--on-red-soft); line-height: 1.7; }
.footer-lines a { color: var(--on-red); font-weight: 600; text-decoration: none; }
.footer-lines a:hover { text-decoration: underline; }
.footer-tag {
  font-family: "Rokkitt", serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 26px;
  color: #ffe7b8;
}
.footer-copy {
  font-size: .8rem;
  color: var(--on-red-soft);
  border-top: 1px solid var(--on-red-line);
  padding-top: 22px;
  margin: 0;
}
.demo-note {
  margin: 12px 0 0;
  font-size: .74rem;
  color: rgba(248,239,225,.6);
}

/* ================= MOTION (CSS only, gated) ================= */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-photo {
    animation: fadeUp .7s cubic-bezier(.16,1,.3,1) both;
  }
  .hero-copy .eyebrow { animation-delay: .02s; }
  .hero-copy .wordmark { animation-delay: .08s; }
  .hero-copy .hero-sub { animation-delay: .16s; }
  .hero-copy .hero-actions { animation-delay: .24s; }
  .hero-copy .hero-status { animation-delay: .32s; }
  .hero-photo { animation-delay: .28s; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================= RESPONSIVE ================= */
@media (min-width: 640px) {
  .band-facts { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .menu-extra { grid-template-columns: repeat(3, 1fr); }
  .menu-extra .extra-item { border-bottom: none; padding-bottom: 0; }
}

@media (min-width: 720px) {
  .contact-actions { }
}

@media (min-width: 1000px) {
  :root { --pad: 40px; }
  .topnav { display: flex; }
  .topnav + .topbar-cta { margin-left: 4px; }

  /* hero: split red field + tall framed photo */
  .hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 48px;
    padding: 68px var(--pad) 72px;
    max-width: none;
  }
  .hero > * { max-width: 560px; }
  .hero-copy { justify-self: end; width: 100%; }
  .hero-photo { margin: 0; justify-self: start; width: 100%; }
  .hero-photo img { aspect-ratio: 4 / 5; }  /* taller allowed on desktop only */

  .menu-cols { grid-template-columns: 1fr 1fr; gap: 56px; }

  .feature {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 44px;
    margin-bottom: 44px;
  }
  .feature-reverse .feature-photo { order: 2; }
  .feature-photo img { aspect-ratio: 4 / 3; }

  .dove-grid { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 48px; }
  .dove-photo img { aspect-ratio: 4 / 3; }

  .band { padding: 68px var(--pad); }
  .band-lead { font-size: 2.2rem; max-width: 30ch; }
}

@media (min-width: 1180px) {
  .band-inner, .reviews, .section, .footer-inner { }
}
