/* ==========================================================================
   LE QUERCE — Ristorante e Pizzeria, Botteghino di Zocca (Pianoro)
   Direction: warm provincial trattoria built on their own oak-tree logo.
   Cream menu-paper canvas, deep oak-green as the single accent, Marcellus
   (heritage display) + Asap (warm body). Menu-cover framed hero.
   Mobile-first (390px), one accent, one 4px radius system.
   ========================================================================== */

:root {
  --paper:    #f7f1e2;   /* canvas — their menu paper */
  --paper-2:  #efe5cf;   /* alternating band / surface */
  --ink:      #2b261c;   /* body text (warm near-black) */
  --muted:    #6c6249;   /* secondary text */
  --green:    #33502c;   /* THE accent — oak leaf */
  --green-2:  #24391e;   /* deep green — CTA fill, headings */
  --on-green: #f7f1e2;   /* text on green */
  --line:     #d7c9a9;   /* warm hairline */
  --line-2:   #cbba94;   /* stronger frame rule */

  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Asap", -apple-system, "Segoe UI", sans-serif;
  --r: 4px;
  --measure: 66ch;
  --edge: 1.35rem;
}

* { 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.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--green-2); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: var(--green); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; }
h2 {
  color: var(--green-2);
  font-size: clamp(1.7rem, 4.6vw, 2.35rem);
  letter-spacing: 0.005em;
  margin-bottom: 0.6rem;
}
h3 { font-size: 1.18rem; color: var(--green-2); margin-bottom: 0.3rem; letter-spacing: 0.01em; }

.wrap { max-width: var(--measure); margin: 0 auto; }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.6rem var(--edge);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--green-2); text-decoration: none; }
.brand-mark { width: 30px; height: auto; color: var(--green); display: block; }
.brand-word { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: 0.02em; }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  color: var(--on-green); background: var(--green-2);
  padding: 0.42rem 1rem; border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.topbar-cta:hover { background: var(--green); transform: translateY(-1px); }
.topbar-cta:active { transform: translateY(0); }

/* -- hero: framed masthead (menu-cover motif) ------------------------------ */
.hero { padding: clamp(2rem, 6vh, 3.5rem) var(--edge) clamp(1.75rem, 4vh, 2.5rem); }
.masthead {
  max-width: 40rem; margin: 0 auto; text-align: center;
  padding: clamp(2rem, 6vw, 3.25rem) clamp(1.25rem, 5vw, 3rem);
  border: 1px solid var(--line-2);
  outline: 1px solid var(--line-2);
  outline-offset: 6px;
  border-radius: var(--r);
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--paper) 40%, #fff) 0%, transparent 60%),
    var(--paper);
}
.masthead-mark { width: 62px; height: auto; color: var(--green); margin: 0 auto 0.9rem; display: block; }
.masthead-eyebrow {
  color: var(--muted); font-size: 0.74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.19em; margin-bottom: 0.9rem;
}
.hero h1 {
  color: var(--green-2);
  font-size: clamp(2.9rem, 13vw, 5.25rem);
  letter-spacing: 0.01em; line-height: 0.98;
  margin-bottom: 0.85rem;
}
.masthead-sub {
  color: var(--muted); max-width: 34ch; margin: 0 auto 1.6rem;
  font-size: 1.02rem;
}
.masthead-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; color: var(--green-2);
  border: 1px solid var(--green-2); border-radius: 999px;
  padding: 0.62rem 1.4rem; font-weight: 600; font-size: 0.97rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: color-mix(in srgb, var(--green-2) 8%, transparent); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green-2); border-color: var(--green-2); color: var(--on-green); }
.btn-primary:hover { background: var(--green); border-color: var(--green); color: var(--on-green); }

/* -- generic section ------------------------------------------------------- */
.section { padding: clamp(2.75rem, 7vw, 4.25rem) var(--edge); }
.section.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.lead { color: var(--muted); max-width: 52ch; margin-bottom: 1.9rem; font-size: 1.06rem; }

/* -- faccia: framed full-bleed photo band ---------------------------------- */
.band-photo { padding: 0 var(--edge) clamp(1.5rem, 4vw, 2.5rem); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.band-photo figure { max-width: 62rem; margin: 0 auto; padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.band-photo img {
  width: 100%; height: clamp(230px, 46vw, 460px); object-fit: cover;
  border-radius: var(--r); border: 1px solid var(--line-2);
}
.band-photo figcaption {
  color: var(--muted); font-size: 0.86rem; margin-top: 0.7rem; text-align: center;
  font-style: italic;
}

/* -- in cucina: tabellone --------------------------------------------------- */
.board {
  max-width: var(--measure); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line);
}
.board-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.board-item p { color: var(--muted); font-size: 0.98rem; }
.menu-note { max-width: var(--measure); margin: 1.5rem auto 0; color: var(--muted); font-size: 0.9rem; }

/* -- crescentine: feature (image + text) ----------------------------------- */
.feature {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  padding: clamp(2.75rem, 7vw, 4.25rem) var(--edge);
  max-width: 68rem; margin: 0 auto; align-items: center;
}
.feature-media img {
  width: 100%; height: clamp(280px, 70vw, 440px); object-fit: cover;
  border-radius: var(--r); border: 1px solid var(--line-2);
}
.feature-text p { color: var(--muted); margin-top: 0.85rem; max-width: 46ch; }
.feature-text p:first-of-type { color: var(--ink); }

/* -- menù fisso: green band ------------------------------------------------- */
.band-green {
  background: var(--green-2); color: var(--on-green);
  padding: clamp(2.75rem, 7vw, 4rem) var(--edge);
  text-align: center;
}
.band-green h2 { color: var(--on-green); }
.band-green .wrap { max-width: 54ch; }
.band-green p { color: color-mix(in srgb, var(--on-green) 88%, transparent); margin-top: 0.3rem; }
.band-green a { color: var(--on-green); text-decoration-color: color-mix(in srgb, var(--on-green) 55%, transparent); font-weight: 600; }
.band-green a:hover { text-decoration-color: var(--on-green); }

/* -- buono a sapersi: amenities grid --------------------------------------- */
.amenities {
  list-style: none; padding: 0; max-width: var(--measure); margin: 1.2rem auto 0;
  display: grid; grid-template-columns: 1fr; gap: 0.1rem;
}
.amenities li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.amenities li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 44' fill='%2333502c'%3E%3Ccircle cx='16' cy='15' r='9'/%3E%3Ccircle cx='24' cy='12' r='8'/%3E%3Ccircle cx='26' cy='19' r='8'/%3E%3Ccircle cx='15' cy='21' r='7.5'/%3E%3Crect x='19' y='24' width='3.4' height='15' rx='1'/%3E%3Ccircle cx='45' cy='19' r='7'/%3E%3Ccircle cx='51' cy='16' r='6'/%3E%3Ccircle cx='52' cy='22' r='6'/%3E%3Ccircle cx='44' cy='23' r='5.5'/%3E%3Crect x='47.5' y='26' width='2.8' height='12' rx='1'/%3E%3C/svg%3E");
}

/* -- recensioni ------------------------------------------------------------- */
.rating-line { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.6rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.rating-line strong { color: var(--green-2); font-weight: 700; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 17px; height: 17px; fill: var(--green); }
.reviews { display: grid; grid-template-columns: 1fr; gap: 1.1rem; max-width: var(--measure); margin: 0 auto; }
.review-photo { margin: 0; }
.review-photo img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line-2); }
.review-photo figcaption { color: var(--muted); font-size: 0.82rem; margin-top: 0.5rem; font-style: italic; }
blockquote {
  margin: 0; padding: 1.25rem 1.35rem;
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--green); border-radius: var(--r);
}
.section.alt blockquote { background: color-mix(in srgb, var(--paper) 60%, #fff); }
blockquote p { font-size: 1.02rem; }
blockquote cite {
  display: block; margin-top: 0.8rem; font-style: normal;
  font-size: 0.86rem; color: var(--muted); font-weight: 600; letter-spacing: 0.01em;
}

/* -- orari & dove ----------------------------------------------------------- */
.info-grid { display: grid; gap: 2.25rem; max-width: var(--measure); margin: 1.1rem auto 0; }
.hours { border-collapse: collapse; width: 100%; max-width: 22rem; }
.hours td { padding: 0.34rem 0; color: var(--muted); vertical-align: top; }
.hours td:first-child { color: var(--ink); font-weight: 600; padding-right: 1.25rem; white-space: nowrap; }
.hours td:last-child { font-variant-numeric: tabular-nums; }
.contact-lines { margin-bottom: 0.5rem; line-height: 1.8; }
.contact-note { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.25rem; }

/* -- footer ----------------------------------------------------------------- */
.footer {
  padding: 2.5rem var(--edge) 3rem; text-align: center;
  color: var(--muted); font-size: 0.86rem; line-height: 1.7;
  background: var(--green-2); color: color-mix(in srgb, var(--on-green) 80%, transparent);
  border-top: 1px solid var(--green);
}
.footer p { max-width: 60ch; margin: 0 auto; }
.demo-note { margin-top: 0.6rem; opacity: 0.7; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 620px) {
  .board { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .amenities { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  :root { --edge: 2rem; }
  .feature { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
  .feature-media img { height: 460px; }
  .reviews { grid-template-columns: 0.95fr 1fr 1fr; align-items: start; }
  .review-photo img { height: 100%; min-height: 260px; }
}

/* ==========================================================================
   MOTION — CSS only, gentle. Honors reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .masthead { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .band-photo img { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
