/* ==========================================================================
   BOZZA SITO — "IL RIFUGIO" (nome provvisorio)
   Pizzeria · Dancing/Balera · Parco — Fiuggi (FR)
   Foglio di stile condiviso
   ========================================================================== */

/* ---- Token di design ---------------------------------------------------- */
:root {
  /* Palette: la balera come punto di partenza.
     Bordeaux dei divanetti in velluto, ottone degli specchi e delle lucine,
     blu notte delle serate all'aperto, crema calda della carta, verde del parco. */
  --bordeaux: #5a0e1e;
  --bordeaux-scuro: #430a17;
  --crema: #f5eddd;
  --crema-scura: #ece0c9;
  --ottone: #c2962f;
  --ottone-chiaro: #e0c06a;
  --notte: #1c2438;
  --verde-parco: #47582f;
  --inchiostro: #2b2622;
  --inchiostro-tenue: #6a6156;

  --ombra: 0 18px 40px -22px rgba(43, 38, 34, 0.55);
  --ombra-soft: 0 8px 24px -16px rgba(43, 38, 34, 0.5);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-script: "Sacramento", cursive;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
}

/* ---- Reset leggero ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--inchiostro);
  background: var(--crema);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

/* ---- Utility ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ottone);
}
.script { font-family: var(--font-script); font-weight: 400; }
.centro { text-align: center; }

/* Nota "bozza" — banner promemoria per il cliente. Da togliere in versione finale. */
.nota-bozza {
  background: repeating-linear-gradient(45deg, var(--notte), var(--notte) 12px, #232d45 12px, #232d45 24px);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
}
.nota-bozza strong { color: var(--ottone-chiaro); }

/* ==========================================================================
   LUCINE — elemento firma del sito
   Filo di lucine da balera, in puro CSS, sopra gli hero e come separatore.
   ========================================================================== */
.lucine {
  position: relative;
  height: 26px;
  background:
    radial-gradient(circle at 20px -6px, rgba(224,192,106,0.35), transparent 60%) repeat-x;
  background-size: 40px 26px;
}
.lucine::before {
  /* il "filo" */
  content: "";
  position: absolute;
  top: 4px; left: 0; right: 0;
  height: 2px;
  background: rgba(0,0,0,0.18);
}
.lucine::after {
  /* le lampadine */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 26px;
  background-image: radial-gradient(circle, var(--ottone-chiaro) 0 3.5px, rgba(224,192,106,0.35) 3.5px 5px, transparent 5.5px);
  background-size: 40px 26px;
  background-position: 0 6px;
  animation: brilla 3.2s ease-in-out infinite;
}
@keyframes brilla {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; filter: drop-shadow(0 0 4px rgba(224,192,106,0.7)); }
}

/* ==========================================================================
   NAVIGAZIONE
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 237, 221, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--crema-scura);
}
/* Fascia sottile in alto: menù + prenotazione, sempre visibile */
.nav-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding-block: 0.45rem;
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px dotted var(--crema-scura);
}
.nav-top .nome-locale {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.4rem; letter-spacing: 0.01em; text-transform: none;
  color: var(--bordeaux); text-decoration: none;
}
.nav-top-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-top a { text-decoration: none; font-weight: 700; color: var(--inchiostro-tenue); transition: color 0.15s; }
.nav-top a:hover { color: var(--bordeaux); }
.nav-top a.prenota-mini {
  background: var(--bordeaux); color: #fff;
  padding: 0.35rem 0.75rem; border-radius: 999px; letter-spacing: 0.04em;
}
.nav-top a.prenota-mini:hover { background: var(--bordeaux-scuro); color: #fff; }

/* Nav principale: Sala (sinistra) · Pizzeria (centro, home) · Parco (destra) */
.nav-main {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; min-height: 60px;
}
.nav-main .nav-side {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center;
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: var(--inchiostro);
  white-space: nowrap;
}
.nav-main .nav-side.a-sinistra { justify-content: flex-start; }
.nav-main .nav-side.a-destra { justify-content: flex-end; }
.nav-main .nav-side span {
  padding: 0.4rem 0.7rem; border-radius: var(--radius);
  transition: background 0.18s, box-shadow 0.18s;
}
.nav-main .nav-side:hover span { background: var(--crema-scura); }
.nav-main .brand-centro {
  flex: 0 0 auto; text-align: center; text-decoration: none;
  padding: 0.3rem 0.6rem; line-height: 1.05;
  border-radius: var(--radius);
  transition: background 0.18s;
}
.nav-main .brand-centro .wordmark {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.3rem; letter-spacing: 0.01em; color: var(--bordeaux);
}

/* Voce di menù attiva: chip crema con sottile riga oro, "carino" ma discreto */
.nav-main .nav-side.attiva span,
.nav-main .brand-centro.attiva {
  background: var(--crema-scura);
  box-shadow: inset 0 -2px 0 var(--ottone);
}
.nav-main .nav-side.attiva span { color: var(--bordeaux); }

@media (max-width: 480px) {
  .nav-top { font-size: 0.62rem; gap: 0.75rem; }
  .nav-top .nome-locale { font-size: 1.1rem; }
  .nav-main .nav-side { font-size: 0.76rem; }
  .nav-main .nav-side span { padding: 0.3rem 0.4rem; }
  .nav-main .brand-centro .wordmark { font-size: 1.05rem; }
}

/* Migliora il layout della nav su telefoni: mantiene il brand centrato */
@media (max-width: 520px) {
  .nav-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
  }
  .nav-main .brand-centro { justify-self: center; padding-inline: 0.25rem; }
  .nav-main .nav-side span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  color: var(--crema);
  background:
    linear-gradient(180deg, rgba(28,36,56,0.72), rgba(67,10,23,0.78)),
    var(--bordeaux);
  overflow: hidden;
}
.hero::after {
  /* bagliore caldo, ora dorata sulla collina */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 120%, rgba(224,192,106,0.35), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  max-width: 760px;
}
.hero .placeholder-immagine {
  /* segnaposto: qui andrà la foto reale (vista panoramica / forno / sala).
     Angolo in basso a destra, non invasivo: non deve mai sovrapporsi al testo. */
  position: absolute; right: 1rem; bottom: 0.9rem; z-index: 0;
  max-width: 45%; text-align: right;
  opacity: 0.4; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .hero .placeholder-immagine { display: none; } /* su mobile lo spazio è poco: si nasconde da solo */
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}
.hero h1 .script {
  display: block; color: var(--ottone-chiaro);
  font-size: 0.55em; font-weight: 400; letter-spacing: 0;
  margin-top: -0.2em; margin-bottom: -0.1em;
}
.hero p.sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: rgba(255,255,255,0.9);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero .luogo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; letter-spacing: 0.06em;
  color: var(--ottone-chiaro);
  margin-bottom: 1.25rem;
}

/* ---- Bottoni ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.15s, background 0.18s, color 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-oro { background: var(--ottone); color: var(--bordeaux-scuro); }
.btn-oro:hover { background: var(--ottone-chiaro); }
.btn-linea { border-color: var(--bordeaux); color: var(--bordeaux); background: transparent; }
.btn-linea:hover { border-color: var(--bordeaux-scuro); background: rgba(90,14,30,0.04); }

/* Varianti per contesti scuri: hero e fasce colorate */
.hero .btn-linea { border-color: rgba(255,255,255,0.6); color: #fff; }
.hero .btn-linea:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.fascia .btn-linea { border-color: rgba(255,255,255,0.9); color: #fff; }
.btn-bordeaux { background: var(--bordeaux); color: #fff; }
.btn-bordeaux:hover { background: var(--bordeaux-scuro); }
.btn-gruppo { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ==========================================================================
   SEZIONI GENERICHE
   ========================================================================== */
section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.sezione-titolo { max-width: 60ch; margin-bottom: 2.5rem; }
.sezione-titolo h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  color: var(--bordeaux);
  margin: 0.6rem 0 0.8rem;
}
.sezione-titolo p { color: var(--inchiostro-tenue); font-size: 1.05rem; }

/* Griglia caratteristiche */
.griglia {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--crema-scura);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--ombra-soft);
}
.card .icona {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--crema); color: var(--bordeaux);
  margin-bottom: 1rem;
}
.card .icona svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.3rem; color: var(--inchiostro); margin-bottom: 0.5rem; }
.card p { color: var(--inchiostro-tenue); font-size: 0.98rem; }

/* Blocco split immagine + testo */
.split {
  display: grid; gap: clamp(1.5rem, 5vw, 3.5rem);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.split.invertito .split-media { order: 2; }
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
  .split.invertito .split-media { order: 0; }
}
.split-testo h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--bordeaux); margin-bottom: 1rem; }
.split-testo p { color: var(--inchiostro-tenue); margin-bottom: 1rem; }
.split-testo ul { list-style: none; padding: 0; margin: 1.25rem 0; }
.split-testo li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.4rem 0; color: var(--inchiostro);
}
.split-testo li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px;
  background: var(--ottone); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/70% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/70% no-repeat;
}

/* Segnaposto immagine — dove il cliente metterà le foto reali */
.ph {
  position: relative;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, var(--crema-scura), var(--crema-scura) 14px, #e4d7bd 14px, #e4d7bd 28px);
  display: grid; place-items: center;
  color: var(--inchiostro-tenue);
  min-height: 320px;
  border: 1px dashed rgba(90,14,30,0.35);
  overflow: hidden;
}
.ph span {
  background: rgba(245,237,221,0.9);
  padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bordeaux);
}
.ph.tall { min-height: 440px; }
.ph.foto { background: none; border-style: solid; border-color: var(--crema-scura); }
.ph.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Mappa incorporata: container responsivo per iframe */
.map-container {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--crema-scura);
}
.map-container iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

/* Fascia bordeaux (call to action) */
.fascia {
  background: var(--bordeaux);
  color: var(--crema);
  text-align: center;
}
.fascia h2 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 1rem; }
.fascia p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 auto 2rem; }

/* Fascia notte (per le serate di ballo) */
.fascia-notte { background: var(--notte); }
.fascia-notte h2 { color: var(--ottone-chiaro); }

/* Menu / listino (segnaposto) */
.menu-lista { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.menu-blocco h3 {
  color: var(--bordeaux); font-size: 1.35rem; margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--crema-scura);
}
.menu-voce { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; }
.menu-voce .nome { font-weight: 500; }
.menu-voce .desc { color: var(--inchiostro-tenue); font-size: 0.88rem; }
.menu-voce .prezzo { color: var(--ottone); font-weight: 600; white-space: nowrap; }

/* Orari / info pratiche */
.info-griglia { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.info-blocco h3 { color: var(--bordeaux); font-size: 1.15rem; margin-bottom: 0.6rem; }
.info-blocco p { color: var(--inchiostro-tenue); font-size: 0.96rem; }
.orari-riga { display: flex; justify-content: space-between; padding: 0.3rem 0; border-bottom: 1px dotted var(--crema-scura); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bordeaux-scuro);
  color: rgba(255,255,255,0.8);
  padding-block: 3rem 2rem;
}
.footer a { color: var(--ottone-chiaro); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-top { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; } }
.footer .wordmark {
  font-family: var(--font-display); font-weight: 900; font-size: 1.4rem;
  color: #fff; margin-bottom: 0.5rem;
}
.footer h3 {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 0.72rem; color: var(--ottone-chiaro); margin-bottom: 0.8rem;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}

/* ==========================================================================
   ACCESSIBILITÀ
   ========================================================================== */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--ottone);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
