/* ==========================================================================
   Casetta Magli — editorial rural direction.
   Canvas: salvia-calcare (dai verdi delle colline). Unico accento: bordeaux
   della loro facciata. Display serif Newsreader (corsivo = eco del menù
   stampato) + Hanken Grotesk. Mobile-first, 390px.
   ========================================================================== */

:root {
  --bg: #edefe6;          /* sage-limestone canvas */
  --surface: #f6f7f1;     /* paper: menu card, topbar */
  --surface-2: #e3e6d8;   /* deeper sage: alternating bands */
  --ink: #2b2a22;         /* olive-charcoal text */
  --muted: #5f6152;       /* sage-grey secondary */
  --line: #d2d5c4;        /* hairlines */
  --accent: #7c2b39;      /* bordeaux, from their facade */
  --accent-deep: #641f2c; /* hover */
  --accent-ink: #fbf7f2;  /* text on accent */

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 3px;
  --measure: 64ch;
  --edge: 1.375rem;       /* page gutter */
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  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(--accent); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); transform: translateY(-1px); }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.7rem var(--edge);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.topbar-cta {
  font-weight: 600; font-size: 0.9rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.5rem 1.05rem; border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.topbar-cta:hover { background: var(--accent-deep); }

/* -- shared section shell -------------------------------------------------- */
.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(3.25rem, 8vw, 5.5rem) var(--edge);
}
.section > h2 {
  font-size: clamp(1.75rem, 5.2vw, 2.7rem);
  max-width: 20ch;
}

/* ========================= HERO ========================= */
.hero {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--edge) clamp(2.5rem, 6vw, 3.5rem);
}
.hero-copy { max-width: 47rem; }
.hero h1 {
  font-size: clamp(2.15rem, 7.4vw, 2.85rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.15rem;
}
.hero h1 br { display: none; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-frame {
  margin-top: clamp(2rem, 5vw, 3rem);
  background: var(--surface);
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-frame img {
  width: 100%;
  height: clamp(260px, 52vw, 560px);
  object-fit: cover;
  border-radius: 1px;
}

/* ========================= L'ESPERIENZA ========================= */
.experience { border-top: 1px solid var(--line); }
.experience .lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  line-height: 1.42;
  color: var(--ink);
  max-width: 32ch;
  margin: 1.5rem 0 2.75rem;
}
.facts {
  list-style: none; padding: 0;
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.facts li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.fact-h {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.fact-b { display: block; color: var(--muted); max-width: 46ch; }
.aside {
  margin-top: 1.75rem;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 1.1rem;
}

/* ========================= ESEMPIO DI MENU ========================= */
.menu-section { max-width: var(--maxw); }
.menu-intro { max-width: 46ch; margin-bottom: 2.5rem; }
.menu-intro p { color: var(--muted); margin-top: 0.9rem; }

.menu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  max-width: 620px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent),
              0 22px 48px -34px color-mix(in srgb, var(--ink) 45%, transparent);
}
.menu-card-date {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.course { margin-bottom: 1.7rem; }
.course h3 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.85rem;
}
.course ul { list-style: none; padding: 0; }
.course li {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
  max-width: 42ch;
  margin: 0 auto 0.7rem;
}
.course li:last-child { margin-bottom: 0; }
.menu-card-price {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.menu-card-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.6rem;
  max-width: 40ch;
  margin-inline: auto;
}

/* ========================= COLLAGE (terrazza/cucina) ========================= */
.places { border-top: 1px solid var(--line); }
.places-intro { color: var(--muted); max-width: 52ch; margin-top: 0.9rem; margin-bottom: 2.5rem; }
.collage { display: grid; gap: 0.85rem; grid-template-columns: 1fr; }
.collage figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* mobile: single column, height comes from aspect-ratio on the figure */
.collage figure { aspect-ratio: 3 / 2; }
.collage-tall { aspect-ratio: 3 / 4; }
.collage-sq { aspect-ratio: 4 / 3; }

/* ========================= B&B BAND ========================= */
.stay {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}
.stay-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 5rem) var(--edge);
  max-width: 46rem;
}
.stay h2 { font-size: clamp(1.75rem, 5.2vw, 2.7rem); margin-bottom: 1rem; }
.stay p { font-size: 1.15rem; color: var(--ink); max-width: 52ch; }

/* ========================= PRENOTA ========================= */
.booking-intro { color: var(--muted); max-width: 50ch; margin: 0.9rem 0 2.5rem; }
.booking-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.booking h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}
.hours { display: grid; gap: 0; }
.hours > div {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.hours > div:first-child { border-top: 1px solid var(--line); }
.hours dt { font-weight: 600; }
.hours dd { color: var(--muted); text-align: right; }
.hours .closed dd { font-style: italic; }

.contact-lines { font-style: normal; line-height: 1.7; margin-bottom: 1.4rem; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.contact-actions .btn { width: 100%; text-align: center; }
.maplink { font-weight: 600; font-size: 0.98rem; padding-top: 0.25rem; }

/* ========================= FOOTER ========================= */
.footer {
  border-top: 1px solid var(--line);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 2.75rem var(--edge) 3.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.footer a { color: var(--accent); }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.footer-hours { margin-top: 0.15rem; }
.demo-note { margin-top: 1.25rem; font-size: 0.82rem; opacity: 0.85; }

/* ========================= RESPONSIVE ========================= */
@media (min-width: 720px) {
  .hero h1 br { display: inline; }
  .collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 230px 190px 190px;
    grid-template-areas:
      "tall wide"
      "tall sq1"
      "tall sq2";
    gap: 0.9rem;
  }
  .collage figure { aspect-ratio: auto; height: 100%; }
  .collage-tall { grid-area: tall; }
  .collage-wide { grid-area: wide; }
  .collage-sq:nth-of-type(3) { grid-area: sq1; }
  .collage-sq:nth-of-type(4) { grid-area: sq2; }

  .booking-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .contact-actions .btn { width: auto; }

  .facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    border-top: none;
  }
  .facts li { border-bottom: none; border-top: 2px solid var(--accent); padding-top: 1.1rem; }
}

@media (min-width: 1000px) {
  .hero { padding-top: clamp(3rem, 5vw, 4.5rem); }
  .collage {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: 300px 240px;
    grid-template-areas:
      "tall wide wide"
      "tall sq1  sq2";
  }
}
