/* ==========================================================================
   Siti web x Ristoranti — stylesheet principale
   Mobile first · un solo font in più, self-hosted, zero richieste a terzi
   dark mode automatica
   ========================================================================== */

/* Titoli: un serif contemporaneo con carattere, caricato da /assets/fonts
   (nessuna richiesta a Google Fonts o ad altri domini). Il testo di corpo
   resta sullo stack di sistema per restare istantaneo. */
@font-face {
  font-family: "Fraunces Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/fraunces-800.woff2") format("woff2");
}

:root {
  /* Palette "sala e cucina": carta, ottone, espresso. Niente rosso da
     insegna né verde da bandiera: l'ottone (--brand/--accent) richiama le
     maniglie, i portamenu e le mollette da comanda dei locali veri. */
  --brand: #7c5e2a;
  --brand-600: #63491f;
  --brand-700: #1c1712;
  --accent: #c99a4a;
  --accent-2: #a67a2f;
  --ink: #1c1712;
  --ink-2: #3a322a;
  --muted: #6b6055;
  --line: #e6ded0;
  --bg: #fdfbf6;
  --bg-soft: #f6f1e6;
  --bg-alt: #efe7d5;
  --card: #fffdf8;
  --white: #fff;
  --ok: #16a34a;
  --warn: #c99a4a;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(28, 23, 18, .07), 0 2px 8px rgba(28, 23, 18, .05);
  --shadow: 0 10px 30px rgba(28, 23, 18, .1);
  --shadow-lg: 0 24px 60px rgba(28, 23, 18, .16);
  --container: 1180px;
  --pad: clamp(1rem, 4vw, 2rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: "Fraunces Display", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas,
    "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3ece0;
    --ink-2: #d9cfbe;
    --muted: #a89b87;
    --line: #382f24;
    --bg: #17130f;
    --bg-soft: #1c1712;
    --bg-alt: #201a13;
    --card: #1d1811;
    /* Ottone più chiaro solo in dark mode: la tinta profonda usata di
       giorno perde troppo contrasto su fondo quasi nero. */
    --brand: #d4a86a;
    --brand-600: #c99a4a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
  line-height: 1.68;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.021em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 3.1vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.7vw, 2.35rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 1.08rem + .6vw, 1.45rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
p, li { text-wrap: pretty; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }

img, svg, video { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Animazioni leggere ---------- */
/* Progressive enhancement: senza JS (o senza IntersectionObserver) tutto
   resta semplicemente visibile. .reveal è aggiunta via main.js, is-visible
   quando l'elemento entra nel viewport. Con prefers-reduced-motion le
   durate sono azzerate dalla regola globale qui sopra: l'effetto sparisce
   ma il layout resta identico. */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
body.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__grid > * { animation: hero-in .7s ease both; }
.hero__grid > *:nth-child(2) { animation-delay: .12s; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.1rem;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: 820px; }
.container--mid { max-width: 980px; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.section--soft { background: var(--bg-soft); }
.section--alt { background: var(--bg-alt); }
.section__title { margin-bottom: .4em; }
.section__head { max-width: 720px; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Etichetta a "cartellino": un punto pieno come il foro di una comanda
   appesa, bordo tratteggiato come una linea di strappo. Ricorre come motivo
   su badge e eyebrow in tutto il sito. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 3px;
  padding: .32rem .7rem .32rem .55rem;
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}
.eyebrow--light {
  color: #ffe3b0;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .35);
}
.eyebrow--light::before { background: #ffe3b0; }

.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* ---------- Fascia promo ---------- */
.topbar {
  background: linear-gradient(90deg, var(--brand-700), var(--brand));
  color: #fff;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .3rem .9rem;
  padding: .6rem var(--pad);
  font-size: .88rem;
  text-align: center;
}
.topbar__text { margin: 0; font-weight: 600; }
.topbar__text strong { font-weight: 800; color: var(--accent); }
.topbar__link {
  color: #fff;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.topbar__link:hover { color: #fff; text-decoration-thickness: 2px; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.06rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
}
.logo__mark { display: block; line-height: 0; }
.logo__mark img { display: block; width: 34px; height: 34px; }
.logo__text { text-transform: lowercase; position: relative; top: 3px; }
.logo__x { color: var(--brand); font-weight: 800; }

.nav-toggle {
  --bar: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 19px;
  height: 2px;
  background: var(--bar);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before { position: absolute; top: -6px; }
.nav-toggle__bar::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  position: absolute;
  inset: 68px 0 auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
}
.nav.is-open { display: block; }
.nav__list {
  list-style: none;
  margin: 0;
  padding: .6rem var(--pad) 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.nav__link {
  display: block;
  padding: .7rem .2rem;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav__link.is-active { color: var(--brand); }
.nav__item--cta { margin-top: .8rem; }
.nav__item--cta .btn { width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: block;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__list { flex-direction: row; align-items: center; gap: .3rem; padding: 0; }
  .nav__link {
    border: 0;
    padding: .5rem .7rem;
    border-radius: 9px;
    font-size: .96rem;
  }
  .nav__link:hover { background: var(--bg-soft); color: var(--brand); }
  .nav__item--cta { margin: 0 0 0 .5rem; }
  .nav__item--cta .btn { width: auto; }
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 8px 22px rgba(124, 94, 42,.28);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(124, 94, 42,.36); }
.btn--secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { color: var(--brand); border-color: var(--brand); }
.btn--light { background: #fff; color: #1c1712; }
.btn--light:hover { color: var(--brand-700); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--sm { padding: .6rem 1.05rem; font-size: .92rem; min-height: 42px; }
.btn--block { width: 100%; }
.btn--email { background: var(--accent); color: #241a00; }
.btn--email:hover { color: #241a00; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.6rem, 7vw, 5.4rem);
  background:
    radial-gradient(1000px 520px at 88% -12%, rgba(201, 154, 74,.16), transparent 60%),
    radial-gradient(760px 420px at 4% 8%, rgba(124, 94, 42,.14), transparent 62%),
    var(--bg);
  overflow: hidden;
}
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.4rem); align-items: center; }
.hero__title { margin-bottom: .45em; }
.hero__title--nolabel { margin-top: -.3em; }
.hero__title .grad { color: var(--brand); }
.hero__text { font-size: clamp(1.05rem, 1rem + .4vw, 1.24rem); color: var(--muted); max-width: 56ch; }
.hero__actions { margin: 1.7rem 0 1.4rem; }
.hero__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.3rem;
  font-size: .93rem;
  color: var(--muted);
}
.hero__trust li { display: flex; align-items: center; gap: .45rem; }
.hero__trust li::before {
  content: "";
  width: 18px; height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

/* ---------- Comanda (illustrazione hero) ----------
   Al posto della solita finestra-browser: il foglietto che passa dalla sala
   al pass, appeso con una molletta. Bordo strappato via clip-path (niente
   immagini), ombra applicata con drop-shadow perché segua il profilo
   dentellato invece del rettangolo pieno. */
/* Wrapper senza clip-path: la molletta deve restare sopra il foglietto, non
   dentro l'area ritagliata (un figlio di un elemento con clip-path viene
   tagliato insieme al resto, anche se sporge fuori dal suo bordo). */
.ticket {
  position: relative;
  max-width: 320px;
  margin-inline: auto;
  transform: rotate(-1.5deg);
}
.ticket__paper {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem 1.4rem;
  filter: drop-shadow(0 22px 34px rgba(28, 23, 18, .16));
  clip-path: polygon(
    0% 16px, 8.3% 5px, 16.6% 16px, 25% 5px, 33.3% 16px, 41.6% 5px,
    50% 16px, 58.3% 5px, 66.6% 16px, 75% 5px, 83.3% 16px, 91.6% 5px, 100% 16px,
    100% 100%, 0% 100%
  );
}
/* Fermacampioni in ottone: corpo a cuneo (la "molla") + due anelli filo che
   sporgono ai lati (le maniglie ripiegate), come quelli veri da comanda.
   Maniglie e corpo sono fratelli (non genitore/figlio): il clip-path del
   corpo, applicato a un genitore comune, taglierebbe via anche le maniglie. */
.ticket__pin {
  position: absolute;
  top: -21px; left: 50%;
  transform: translateX(-50%) rotate(4deg);
  width: 30px; height: 19px;
  z-index: 2;
}
.ticket__pin-body {
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 14px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--brand) 55%, var(--brand-600) 100%);
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 6px rgba(28, 23, 18, .28);
}
.ticket__pin-handle {
  position: absolute;
  top: 6px;
  width: 13px; height: 13px;
  border: 2.2px solid var(--brand-600);
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35);
}
.ticket__pin-handle--l { left: -5px; transform: rotate(-30deg); }
.ticket__pin-handle--r { right: -5px; transform: rotate(30deg) scaleX(-1); }
.ticket__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: .5rem 0 0;
  font-family: var(--font-mono);
  font-size: .74rem;
}
.ticket__kicker { font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); }
.ticket__num { color: var(--muted); }
.ticket__for { margin: .5rem 0 0; font-family: var(--font-display); font-size: 1.14rem; color: var(--ink); }
.ticket__rule { border-top: 1px dashed var(--line); margin: 1rem 0; }
.ticket__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .86rem;
  color: var(--ink-2);
}
.ticket__items li { display: flex; gap: .55rem; }
.ticket__items li span { flex: none; width: 2.4ch; color: var(--brand-600); font-weight: 700; }
.ticket__foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.ticket__foot-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  color: var(--muted);
  max-width: 15ch;
}
.ticket__foot strong {
  font-family: var(--font);
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.score-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: .66rem;
  color: #065f46;
  background: conic-gradient(#22c55e 0 96%, #dcfce7 0);
  box-shadow: inset 0 0 0 3px var(--card);
}

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 94, 42,.14), rgba(201, 154, 74,.16));
  color: var(--brand);
  margin-bottom: 1rem;
}
.card__link { font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.card__link::after { content: "→"; transition: transform .2s ease; }
.card--link:hover .card__link::after { transform: translateX(3px); }
.card__list { margin: .9rem 0 1.1rem; padding: 0; list-style: none; font-size: .95rem; }
.card__list li { padding-left: 1.5rem; position: relative; margin-bottom: .35rem; }
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.stack-link { text-decoration: none; color: inherit; display: block; }
.stack-link h3 { color: var(--ink); }

/* ---------- Numeri / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--brand);
}
.stat__label { font-size: .9rem; color: var(--muted); }

/* ---------- Processo ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.3rem;
  counter-increment: step;
}
.steps li::before {
  content: "0" counter(step);
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  color: var(--brand-600);
  background: var(--bg-soft);
  border: 1.5px dashed var(--brand);
  margin-bottom: .85rem;
}
.steps h3 { font-size: 1.08rem; }
.steps p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Prezzi ---------- */
.pricing { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.price {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  position: relative;
}
.price__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .32rem .9rem .32rem .75rem;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.price__name { font-size: 1.15rem; margin-bottom: .2rem; }
.price__amount { font-size: 2.1rem; font-weight: 820; color: var(--ink); letter-spacing: -.03em; }
.price__amount small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price__listino { font-size: 1.15rem; font-weight: 600; color: var(--muted); opacity: .75; }
.price__risparmio {
  display: inline-block;
  margin: .1rem 0 .9rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ok);
  background: rgba(22, 163, 74, .12);
  padding: .25rem .65rem;
  border-radius: 999px;
}
.price__desc { color: var(--muted); font-size: .95rem; }
.price ul { list-style: none; padding: 0; margin: 1.1rem 0 1.5rem; font-size: .95rem; flex: 1; }
.price ul li { padding-left: 1.7rem; position: relative; margin-bottom: .5rem; }
.price ul li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(22, 163, 74, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Banner promo (pagina prezzi) ---------- */
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, var(--brand-700), var(--brand));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
}
.promo-banner__eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffe3b0;
  margin-bottom: .4rem;
}
.promo-banner__title { color: #fff; margin-bottom: .4em; font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
.promo-banner__text { color: rgba(255, 255, 255, .9); margin: 0; max-width: 60ch; font-size: .95rem; }
.promo-banner .btn--primary { background: #fff; color: var(--brand-700); box-shadow: none; flex-shrink: 0; }
.promo-banner .btn--primary:hover { color: var(--brand-700); }

/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 540px; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 700; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-soft); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__q {
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  font-weight: 650;
  color: var(--ink);
  position: relative;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 1.1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.45rem;
  color: var(--brand);
  line-height: 1;
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 1.2rem 1.2rem; color: var(--muted); }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: .85rem; }
.breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: .7rem 0;
  color: var(--muted);
}
.breadcrumb__item + .breadcrumb__item::before { content: "/"; margin-right: .35rem; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
  padding-block: clamp(2.2rem, 5.5vw, 3.8rem);
  background:
    radial-gradient(680px 320px at 92% -20%, rgba(201, 154, 74,.14), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .35em; }
.page-hero__lead { max-width: 70ch; color: var(--muted); font-size: clamp(1.02rem, 1rem + .3vw, 1.16rem); }

/* ---------- Promo stagionale (home) ---------- */
.promo-hero {
  position: relative;
  padding-block: clamp(2.6rem, 6vw, 4rem);
  background: linear-gradient(155deg, var(--brand-700) 0%, var(--brand-700) 55%, var(--brand) 100%);
  color: #fff;
  overflow: hidden;
}
.promo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 10% 0%, rgba(201, 154, 74, .35), transparent 60%),
    radial-gradient(560px 300px at 92% 100%, rgba(255, 255, 255, .12), transparent 60%);
  pointer-events: none;
}
.promo-hero .container { position: relative; }
.promo-hero__head { max-width: 760px; margin-bottom: 2rem; }
.promo-hero__title { color: #fff; margin-bottom: .5em; }
.promo-hero__lead { color: rgba(255, 255, 255, .88); font-size: clamp(1rem, .96rem + .3vw, 1.12rem); max-width: 68ch; margin: 0; }
.promo-cards { display: grid; gap: 1rem; }
@media (min-width: 720px) { .promo-cards { grid-template-columns: repeat(3, 1fr); } }
.promo-card {
  position: relative;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
}
.promo-card--evidenza {
  /* Sfondo volutamente chiaro anche in dark mode per spiccare sul gradiente:
     testo in un colore fisso (non la variabile --ink, che in dark mode
     diventa chiaro e sparirebbe su questo sfondo). */
  background: rgba(255, 255, 255, .96);
  color: #1c1712;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.promo-card--evidenza .promo-card__nota { color: #6b6055; }
.promo-card__badge {
  position: absolute;
  top: -11px; left: 1.1rem;
  transform: rotate(-2deg);
  background: var(--accent);
  color: #241a00;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .75rem .3rem .6rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.promo-card__nome { font-size: 1.02rem; margin-bottom: .5rem; color: inherit; }
.promo-card--evidenza .promo-card__nome { color: #1c1712; }
.promo-card__prezzo { margin: 0 0 .35rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.promo-card__cifra { font-size: 2.5rem; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.promo-card--evidenza .promo-card__cifra { color: var(--brand-700); }
.promo-card__listino { font-size: 1.15rem; opacity: .65; font-weight: 600; }
.promo-card__nota { margin: 0; font-size: .86rem; opacity: .9; font-weight: 650; }
.promo-card--evidenza .promo-card__nota { opacity: 1; }
.promo-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 0; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand-700), var(--brand) 45%, var(--accent));
  color: #fff;
  padding-block: clamp(2.4rem, 6vw, 3.6rem);
}
.cta__inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1.4fr 1fr; } }
.cta__title { color: #fff; margin-bottom: .3em; }
.cta__text { color: rgba(255, 255, 255, .92); margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Prose (blog / legali) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 1rem 1.3rem;
  border-left: 4px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  background: var(--bg-alt);
  padding: .15em .4em;
  border-radius: 6px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose .callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.8em 0;
}
.prose .callout p:last-child { margin-bottom: 0; }
.prose .callout strong { color: var(--ink); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .87rem; color: var(--muted); text-align: center; margin-top: .5rem; }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2.2rem;
}
.toc h2 { font-size: 1rem; margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .95rem; }
.toc li { margin-bottom: .3em; }

/* ---------- Blog ---------- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  list-style: none;
  padding: 0;
}
.tag {
  display: inline-block;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(124, 94, 42,.1);
  border-radius: 999px;
  padding: .22rem .7rem;
}
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__title { font-size: 1.15rem; margin: .7rem 0 .5rem; }
.post-card__excerpt { color: var(--muted); font-size: .95rem; flex: 1; }
.post-card__meta { font-size: .82rem; color: var(--muted); margin-top: 1rem; }

.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--bg-soft);
  margin-top: 2.5rem;
}
.author-box__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.author-box p { margin: 0; font-size: .93rem; color: var(--muted); }
.author-box strong { color: var(--ink); }

/* ---------- Zone / comuni ---------- */
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.chip {
  display: inline-block;
  padding: .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: .9rem;
  text-decoration: none;
  color: var(--ink-2);
  transition: all .18s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--bg-soft); }

.comune-card { display: flex; flex-direction: column; gap: .3rem; }
.comune-card__meta { font-size: .84rem; color: var(--muted); }

.info-grid { display: grid; gap: .8rem; }
@media (min-width: 700px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
.info-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  background: var(--card);
}
.info-item dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .2rem; }
.info-item dd { margin: 0; font-weight: 600; color: var(--ink); }

/* ---------- Portfolio ---------- */
.demo-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.demo-card__thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}
.demo-card__thumb h3 { color: #fff; margin: 0 0 .3rem; font-size: 1.35rem; }
.demo-card__thumb span { font-size: .88rem; opacity: .9; }
.demo-card__body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.demo-card__body p { color: var(--muted); font-size: .95rem; flex: 1; }

.demo-banner {
  background: #111827;
  color: #fff;
  font-size: .85rem;
  padding: .55rem 0;
  text-align: center;
}
.demo-banner a { color: #7dd3fc; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 650; font-size: .93rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  width: 100%;
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 2px solid rgba(124, 94, 42,.2); outline-offset: 0; }
.field__hint { font-size: .82rem; color: var(--muted); }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.checkbox input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: .15rem; }
.form__note { font-size: .85rem; color: var(--muted); }
.form-status { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .93rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(22, 163, 74, .12); color: #15803d; border: 1px solid rgba(22, 163, 74, .3); }

/* ---------- Contatti ---------- */
.contact-methods { display: grid; gap: 1rem; max-width: 360px; margin: 0 auto; }
.contact-method {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-method:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.contact-method__label { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.contact-method__value { font-size: 1.1rem; font-weight: 700; color: var(--ink); word-break: break-word; }
.contact-method__note { font-size: .88rem; color: var(--muted); }

/* ---------- Testimonianze ---------- */
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote__stars { color: var(--accent); letter-spacing: .1em; font-size: .95rem; }
.quote p { margin: 0; flex: 1; }
.quote__who { font-size: .88rem; color: var(--muted); }
.quote__who strong { color: var(--ink); display: block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 3.8rem) 1.6rem;
  font-size: .94rem;
}
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; } }
.logo--footer { margin-bottom: .9rem; }
.footer__desc { color: var(--muted); max-width: 42ch; }
.footer__contacts, .footer__list { list-style: none; padding: 0; margin: 0; }
.footer__contacts li, .footer__list li { margin-bottom: .45rem; }
.footer__contacts a, .footer__list a { color: var(--muted); text-decoration: none; }
.footer__contacts a:hover, .footer__list a:hover { color: var(--brand); text-decoration: underline; }
.footer__title { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink); margin-bottom: .9rem; }
.footer__bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}
.footer__bottom p { margin: 0 0 .3rem; }
.footer__note { opacity: .8; }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.4rem; }
.mt-3 { margin-top: 2.2rem; }

/* ---------- Copertine fotografiche delle schede demo ---------- */
.demo-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
  padding: 0;
  background: var(--bg-alt);
}
.demo-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .demo-card__img { transform: scale(1.04); }
.demo-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem 1.2rem;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(9, 12, 20, .82));
}
.demo-card__overlay h2,
.demo-card__overlay h3 { color: #fff; margin: 0 0 .2rem; font-size: 1.25rem; }
.demo-card__overlay span { font-size: .88rem; opacity: .92; }
