/* ===================================================================
   L'Artista Pizzeria — Bra (CN)
   Palette e stile ispirati alla copertina del menù:
   crema, terracotta, verde ottanio, oro/ocra, antracite.
   =================================================================== */

:root {
  --paper:      #f8efd9;
  --paper-warm: #f0e1c5;
  --ink:        #372f27;
  --ink-soft:   #74695a;
  --terracotta: #a83a2e;
  --terracotta-deep: #872c22;
  --teal:       #4a6c66;
  --gold:       #b6852b;
  --dark:       #2a231d;
  --line:       rgba(55, 47, 39, 0.16);

  --wrap: 1120px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta); }
a:hover { color: var(--terracotta-deep); }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.narrow { max-width: 720px; }

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.25rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 400; }
h3 { font-size: 1.4rem; }

h1 .accent { color: var(--terracotta); font-style: italic; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; }
.section-intro { font-size: 1.2rem; line-height: 1.6; max-width: 46ch; }
.center .section-intro { margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow.center { text-align: center; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.wordmark { text-decoration: none; display: flex; align-items: center; gap: 0.6rem; line-height: 1; }
.wordmark-logo { width: 36px; height: 36px; flex: none; }
.wordmark-text { display: flex; flex-direction: column; }
.wordmark-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terracotta);
  font-weight: 500;
}
.wordmark-sub {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

.main-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--terracotta); }

.nav-toggle, .nav-burger, .nav-overlay { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 4rem) 0 clamp(3.5rem, 8vw, 4rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero-actions { margin-top: 2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Cornice stile quadro */
.frame {
  margin: 0;
  padding: 14px;
  background:
    linear-gradient(135deg, #d8b45f, #a9781f 45%, #e4c877 70%, #9c6f1c);
  border-radius: 3px;
  box-shadow:
    0 2px 0 rgba(255,255,255,.25) inset,
    0 0 0 1px rgba(0,0,0,.25),
    0 26px 50px -22px rgba(43, 39, 36, .55);
}
.frame > img,
.frame-empty {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.35);
  background: var(--paper-warm);
}
.frame-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  color: var(--ink-soft);
}
.frame-empty-mark { font-size: 1.6rem; color: var(--gold); }
.frame-empty-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.frame-empty-text em { color: var(--terracotta); font-size: 0.95rem; }

/* ---------- Sezioni ---------- */
.section {
  padding: clamp(3.5rem, 9vw, 4.5rem) 0;
  scroll-margin-top: 80px;
}
.section-tint { background: var(--paper-warm); }
.section h2 { margin-bottom: 0.8rem; }

/* timbro Vera Pizza Napoletana */
.stamp {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--teal);
  border-radius: 4px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* ---------- Card impasti ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.4rem 1.4rem 1.6rem;
}
.section-tint .card { background: #fff; }
.card h3 { color: var(--terracotta); margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--ink-soft); }

.card-photo {
  margin: 0 0 1.1rem;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--paper-warm);
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo.img-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
}
.card-photo.img-missing::after {
  content: attr(data-label) " (foto)";
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---------- Galleria opere ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.opera { margin: 0; }
.opera img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 14px 30px -18px rgba(43,39,36,.5);
}
.opera figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.opera.img-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
}
.opera.img-missing::after {
  content: attr(data-label) " — immagine da caricare";
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.opera.img-missing figcaption { display: none; }

/* ---------- Recensioni ---------- */
.reviews-count { font-size: 0.55em; color: var(--ink-soft); font-style: italic; }
.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.reviews blockquote {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.8rem;
}
.section-tint .reviews blockquote { background: var(--paper); }
.reviews p {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.55;
}
.reviews cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
}
.reviews cite span { color: var(--ink-soft); font-weight: 400; }

/* ---------- Menù ---------- */
.menu-list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 3.5rem;
  align-items: start;
}
.menu-group { margin: 0 0 2.5rem; }
.menu-group h3 {
  color: var(--terracotta);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}
.menu-group-note {
  margin: -0.2rem 0 0.9rem;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-soft);
}
.menu-group ul { list-style: none; margin: 0; padding: 0; }
.menu-group ul + .menu-group-note { margin-top: 1.1rem; }
.menu-group li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--line);
}
.menu-group li:last-child { border-bottom: 0; }
.mi-name { font-weight: 600; }
.mi-desc {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.2rem;
  /* riserva 3 righe: le voci di sinistra e destra restano sulla stessa altezza */
  min-height: 4.15rem;
}
.mi-price {
  font-family: var(--font-display);
  color: var(--teal);
  font-weight: 500;
  white-space: nowrap;
}
.menu-note {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Contatti ---------- */
.section-dark { background: var(--dark); color: #ece4d3; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #e0b24d; }
.section-dark a { color: #f0c877; }
.section-dark a:hover { color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.contact-list { margin: 1.8rem 0 2rem; }
.contact-list > div { padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7a988;
  margin-bottom: 0.25rem;
}
.contact-list dd { margin: 0; }

/* orari giorno per giorno */
.hours-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  max-width: 340px;
}
.center .hours-list { margin-left: auto; margin-right: auto; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: var(--ink); }
.hours-list .time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours-list li.is-closed .day,
.hours-list li.is-closed .time { color: var(--terracotta); }
.hours-list li.is-today .day,
.hours-list li.is-today .time { color: var(--ink); font-weight: 600; }
.hours-list li.is-today .day::after {
  content: " · oggi";
  color: var(--gold);
  font-weight: 600;
  font-size: 0.72em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hours-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* variante su fondo scuro */
.section-dark .hours-list li { border-bottom-color: rgba(255, 255, 255, 0.12); }
.section-dark .hours-list .day { color: #ece4d3; }
.section-dark .hours-list .time { color: #b7a988; }
.section-dark .hours-list li.is-closed .day,
.section-dark .hours-list li.is-closed .time { color: #cf9a86; }
.section-dark .hours-list li.is-today .day,
.section-dark .hours-list li.is-today .time { color: #fff; }
.section-dark .hours-list li.is-today .day::after { color: #e0b24d; }
.section-dark .hours-note { color: #b7a988; }
.map-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 45px -20px rgba(0,0,0,.6);
}
.map-wrap iframe { width: 100%; height: 430px; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #211d1a; color: #8a8069; padding: 2rem 0; }
.copyright { font-size: 0.82rem; text-align: center; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .frame { max-width: 380px; margin: 0 auto; }
  .lead { max-width: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .menu-list { grid-template-columns: 1fr; }
  .mi-desc { min-height: 0; }

  /* menu mobile */
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: var(--paper);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.4);
    transform: translateX(100%);
    transition: transform .28s ease;
    padding: 5rem 2rem 2rem;
    z-index: 60;
  }
  .main-nav ul { flex-direction: column; gap: 1.4rem; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    cursor: pointer;
    z-index: 70;
  }
  .nav-burger span {
    display: block;
    height: 2px;
    width: 24px;
    background: var(--ink);
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav-toggle:checked ~ .main-nav { transform: translateX(0); }
  .nav-toggle:checked ~ .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(43,39,36,.4);
    z-index: 55;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .cards { gap: 0.75rem; }
  .card { padding: 0.9rem 0.9rem 1.1rem; }
  .card p { font-size: 0.9rem; }
  .gallery { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .hero-actions { gap: 0.6rem; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; padding: 0.8rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
