/* Genitori Calmi — sistema grafico
   Un solo file per tutto il sito. Ogni pagina nuova costa dieci minuti perche'
   i componenti stanno qui: pulsanti, schede, order bump, faq, barra fissa.
   Font: Georgia (gia' su tutti i dispositivi) + stack di sistema. Zero caricamenti esterni. */

:root {
  --crema:      #F7F3EC;
  --sabbia:     #E4D9C8;
  --inchiostro: #2C3639;
  --salvia:     #6B8F71;
  --salvia-cupa:#54755A;
  --terracotta: #C86F4E;
  --terracotta-cupa:#AD5A3B;
  --notte:      #1F2A2E;
  --tenue:      #7C8A85;

  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --max: 720px;
  --raggio: 14px;
  --ombra: 0 2px 14px rgba(44,54,57,.07);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--inchiostro);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- impianto ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap-largo { max-width: 980px; margin: 0 auto; padding: 0 22px; }
section { padding: 54px 0; }
section.fitta { padding: 34px 0; }
.fondo-sabbia { background: var(--sabbia); }
.fondo-notte  { background: var(--notte); color: var(--crema); }
.fondo-notte h1, .fondo-notte h2, .fondo-notte h3 { color: var(--crema); }
.centro { text-align: center; }

/* ---------- testo ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--inchiostro); }
h1 { font-size: clamp(30px, 6.4vw, 46px); letter-spacing: -.01em; }
h2 { font-size: clamp(25px, 4.8vw, 34px); }
h3 { font-size: clamp(20px, 3.4vw, 24px); }
p  { margin: 0 0 1.1em; }
strong { font-weight: 700; }
em.occhiello {
  display: inline-block; font-style: normal; font-family: var(--sans);
  font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--salvia); margin-bottom: 14px;
}
.grande { font-size: 21px; }
.tenue  { color: var(--tenue); font-size: 15.5px; }
a { color: var(--salvia-cupa); }

/* il payoff non si separa mai dal nome */
.marchio { font-family: var(--serif); font-size: 22px; color: var(--salvia); text-decoration: none; }
.marchio .punto { color: var(--terracotta); }
.payoff { font-family: var(--serif); font-style: italic; color: var(--tenue); font-size: 15px; margin: 2px 0 0; }

/* ---------- pulsanti — il terracotta e' SOLO qui ---------- */
.cta {
  display: block; width: 100%; max-width: 460px; margin: 24px auto 10px;
  background: var(--terracotta); color: #fff; text-decoration: none;
  font-family: var(--sans); font-size: 19px; font-weight: 700;
  text-align: center; padding: 19px 24px; border: 0; border-radius: var(--raggio);
  box-shadow: 0 4px 0 var(--terracotta-cupa); cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease;
}
.cta:hover { background: var(--terracotta-cupa); box-shadow: 0 4px 0 var(--terracotta-cupa); }
.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--terracotta-cupa); }
.cta-riga { display: block; font-size: 14px; font-weight: 400; opacity: .9; margin-top: 4px; }
.sotto-cta { text-align: center; font-size: 14.5px; color: var(--tenue); margin: 0 0 6px; }
.cta-scarno {
  display: inline-block; background: none; color: var(--tenue); text-decoration: underline;
  font-size: 15px; padding: 10px 0; box-shadow: none; width: auto; margin: 6px auto;
}

/* ---------- schede ---------- */
.scheda {
  background: #fff; border: 1px solid rgba(44,54,57,.09); border-radius: var(--raggio);
  padding: 24px 26px; margin: 16px 0; box-shadow: var(--ombra);
}
.scheda.evidenza { border-left: 5px solid var(--salvia); }
.scheda.avviso   { border-left: 5px solid var(--terracotta); background: #fffaf7; }
.griglia { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* la scena: il formato che regge tutta la comunicazione */
.scena {
  font-family: var(--serif); font-size: clamp(21px, 3.6vw, 27px); line-height: 1.4;
  border-left: 4px solid var(--terracotta); padding: 6px 0 6px 22px; margin: 26px 0;
}

/* ---------- elenchi ---------- */
ul.spunte { list-style: none; padding: 0; margin: 18px 0; }
ul.spunte li { position: relative; padding: 0 0 14px 34px; }
ul.spunte li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--salvia); font-weight: 700; font-size: 19px;
}
ul.croci { list-style: none; padding: 0; margin: 18px 0; }
ul.croci li { position: relative; padding: 0 0 14px 34px; }
ul.croci li::before { content: "✕"; position: absolute; left: 2px; color: var(--terracotta); font-weight: 700; }

/* ---------- order bump ---------- */
.bump {
  border: 2px dashed var(--terracotta); background: #fffaf7;
  border-radius: var(--raggio); padding: 20px 22px; margin: 26px 0;
}
.bump label { display: flex; gap: 13px; align-items: flex-start; cursor: pointer; }
.bump input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--terracotta); flex: none; }
.bump .titolo { font-weight: 700; font-family: var(--serif); font-size: 19px; }

/* ---------- prezzo ---------- */
.prezzo { text-align: center; margin: 26px 0 6px; }
.prezzo .cifra { font-family: var(--serif); font-size: 54px; font-weight: 700; color: var(--inchiostro); line-height: 1; }
.prezzo .barrato { color: var(--tenue); text-decoration: line-through; font-size: 21px; margin-right: 10px; }

/* ---------- recensioni ---------- */
.recensione { background: #fff; border-radius: var(--raggio); padding: 20px 22px; box-shadow: var(--ombra); }
.recensione p { font-family: var(--serif); font-style: italic; margin-bottom: .6em; }
.recensione .firma { font-size: 14px; color: var(--tenue); font-style: normal; }
.stelle { color: var(--terracotta); letter-spacing: 2px; font-size: 15px; }

/* ---------- faq ---------- */
details.faq { border-bottom: 1px solid rgba(44,54,57,.13); padding: 16px 0; }
details.faq summary {
  cursor: pointer; font-weight: 700; font-family: var(--serif); font-size: 19px;
  list-style: none; display: flex; justify-content: space-between; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--salvia); font-size: 24px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 12px 0 2px; }

/* ---------- barra fissa in basso (mobile) ---------- */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(247,243,236,.97); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(44,54,57,.12); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none;
}
.barra .cta { margin: 0; padding: 15px; font-size: 17px; max-width: none; }
body.con-barra { padding-bottom: 84px; }
@media (max-width: 760px) { .barra { display: block; } }

/* ---------- pop-up di uscita ---------- */
.velo {
  position: fixed; inset: 0; z-index: 60; background: rgba(31,42,46,.55);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.velo.aperto { display: flex; }
.popup {
  background: var(--crema); border-radius: 18px; padding: 32px 28px; max-width: 440px; width: 100%;
  text-align: center; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.popup .chiudi {
  position: absolute; top: 10px; right: 14px; background: none; border: 0;
  font-size: 28px; color: var(--tenue); cursor: pointer; line-height: 1;
}
.popup input[type=email] {
  width: 100%; padding: 15px 16px; font-size: 17px; font-family: var(--sans);
  border: 1px solid rgba(44,54,57,.25); border-radius: 10px; margin: 14px 0 6px; background: #fff;
}

/* ---------- piede ---------- */
footer { background: var(--notte); color: rgba(247,243,236,.72); padding: 40px 0 34px; font-size: 14.5px; }
footer a { color: rgba(247,243,236,.9); }
footer .disclaimer { font-size: 13px; opacity: .62; margin-top: 16px; line-height: 1.55; }

/* ---------- utilita' ---------- */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
hr.sottile { border: 0; border-top: 1px solid rgba(44,54,57,.14); margin: 34px 0; }
@media (max-width: 520px) { body { font-size: 17px; } section { padding: 40px 0; } }
@media print { .barra, .velo { display: none !important; } }
