/* Sito template — mobile-first.
   Colori principali sovrascritti da config.json (primaryColor / accentColor). */
:root {
  --ink: #1c1917;          /* testo e sfondi scuri */
  --accent: #b08a4e;       /* ottone */
  --cream: #f6f1ea;
  --paper: #fffdf9;
  --line: #e7dfd3;
  --muted: #6f655b;
  --on-dark: #f5efe6;
  --on-dark-muted: #c9bfb2;
  --radius: 14px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
p { margin: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* ------------------------------ Pulsanti ------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); padding: 13px 22px; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-accent { background: var(--accent); color: #1a140c; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* -------------------------------- Demo -------------------------------- */
.demo-bar { background: var(--accent); color: #1a140c; font-size: .82rem; text-align: center; padding: 8px 16px; font-weight: 500; }

/* -------------------------------- Nav --------------------------------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(28,25,23,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--on-dark-muted); text-decoration: none; font-size: .92rem; transition: color .2s; }
.nav-links a:hover { color: #fff; }

/* -------------------------------- Hero -------------------------------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: var(--on-dark);
  background: var(--ink) center / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(20,17,15,.35) 0%, rgba(20,17,15,.55) 45%, rgba(20,17,15,.92) 100%); }
.hero-content { position: relative; padding-top: 120px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.6rem, 11vw, 5.2rem); font-weight: 600; max-width: 12ch; }
.hero-tagline { font-size: clamp(1.05rem, 3.6vw, 1.3rem); color: var(--on-dark-muted); margin: 16px 0 30px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.open-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: .9rem; color: var(--on-dark-muted); }
.open-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #d9534f; box-shadow: 0 0 0 4px rgba(217,83,79,.2); }
.open-status.open::before { background: #4caf7a; box-shadow: 0 0 0 4px rgba(76,175,122,.2); }

/* ------------------------------ Sezioni ------------------------------- */
.section { padding: 72px 0; }
.section-light { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head .muted { margin-top: 12px; }

/* Listino in stile "menu" */
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 48px; }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.menu-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.menu-price { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.menu-desc { grid-column: 1; color: var(--muted); font-size: .92rem; }
.menu-meta { grid-column: 2; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.menu-duration { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.menu-book { background: none; border: 0; padding: 0; font: 600 .85rem var(--sans); color: var(--accent); cursor: pointer; white-space: nowrap; }
.menu-book:hover { text-decoration: underline; }

/* Chi siamo */
.about { display: grid; gap: 36px; align-items: center; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream); max-height: 560px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.lead { font-size: 1.08rem; color: var(--muted); margin: 18px 0 28px; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.highlights li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.highlights .num { font-family: var(--serif); font-size: 1.3rem; color: var(--accent); line-height: 1.3; }
.highlights strong { display: block; font-weight: 600; }
.highlights span { color: var(--muted); font-size: .94rem; }

/* Galleria */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #2a2521; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }

/* Orari e contatti */
.info { display: grid; gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h2 { font-size: 1.6rem; margin-bottom: 18px; }
.hours { display: grid; grid-template-columns: auto 1fr; margin: 0; }
.hours dt, .hours dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 500; padding-right: 16px; }
.hours dd { margin: 0; text-align: right; color: var(--muted); }
.hours .today { font-weight: 700; color: var(--ink); }
.hours .closed { color: #b0a597; }
.contact-line { margin-bottom: 10px; color: var(--muted); }
.contact-line a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* CTA finale */
.cta { background: var(--ink) linear-gradient(135deg, rgba(176,138,78,.18), transparent 60%); color: var(--on-dark); padding: 72px 0; text-align: center; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--on-dark-muted); margin-bottom: 28px; }

/* Footer */
.footer { background: #141110; color: var(--on-dark-muted); padding: 36px 0 110px; font-size: .9rem; }
.footer-inner { display: grid; gap: 10px; }
.brand-footer { font-size: 1rem; }
.footer-small { font-size: .78rem; opacity: .7; max-width: 70ch; }

/* Barra prenota fissa (solo mobile) */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(28,25,23,0), rgba(28,25,23,.85) 40%); }

/* ------------------------------ Desktop ------------------------------- */
@media (min-width: 760px) {
  .container { padding: 0 32px; }
  .nav-links { display: flex; }
  .section { padding: 104px 0; }
  .menu { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 5fr 6fr; gap: 64px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .info { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-content { padding-bottom: 88px; }
  .mobile-cta { display: none; }
  .footer { padding-bottom: 40px; }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; column-gap: 32px; }
  .footer-small { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery img { transition: none; }
}

/* Cifre allineate (Playfair di default usa numeri "minuscoli") */
.menu-price, .hours dd { font-variant-numeric: lining-nums tabular-nums; }
/* Su mobile la barra "Prenota" fissa non deve coprire il fondo dell'hero */
@media (max-width: 759px) { .hero-content { padding-bottom: 104px; } }

/* ------------------------- Rifiniture responsive ------------------------- */
/* Nome nell'header sempre su una riga */
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand { min-width: 0; }
.nav .btn { flex: none; }
@media (max-width: 380px) {
  .brand { font-size: 1rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .nav .btn-sm { padding: 9px 14px; }
  .container { padding: 0 16px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
/* Titolo hero proporzionato anche a telefono orizzontale */
.hero h1 { font-size: clamp(2.4rem, min(11vw, 14vh), 5.2rem); }
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero-content { padding-top: 48px; padding-bottom: 40px; }
  .hero-tagline { margin: 10px 0 18px; }
}
/* Barra "Prenota" fissa: compare solo dopo aver superato l'hero */
.mobile-cta { transform: translateY(110%); transition: transform .25s ease; }
.mobile-cta.show { transform: none; }
@media (max-width: 759px) { .hero-content { padding-bottom: 56px; } }
/* Listino su mobile: descrizione e "Prenota" a tutta larghezza */
@media (max-width: 759px) {
  .menu-desc, .menu-meta { grid-column: 1 / -1; }
  .menu-meta { justify-content: space-between; margin-top: 6px; }
}
/* Orari: una fascia per riga */
.hours dd span { display: block; white-space: nowrap; }
