/* ============================================
   TapReview — Google Review Card NFC all'ingrosso
   Foglio di stile unico. Mobile-first.
   ============================================ */

/* --- Font ospitato localmente: nessuna richiesta esterna --- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

/* --- Variabili: cambiare un colore qui lo cambia ovunque ---
   Nero, bianco e oro sono i colori della card: sito e prodotto
   devono sembrare la stessa cosa. I quattro colori Google sono
   esclusi di proposito, per non sembrare un servizio ufficiale. */
:root {
  --notte: #0F172A;
  --notte-tenue: #1E293B;
  --oro: #F5A524;
  --oro-scuro: #C97F13;
  --telegram: #229ED9;
  --telegram-scuro: #1B87BA;
  --whatsapp: #25D366;
  --whatsapp-scuro: #1EA952;

  --sfondo: #FAFAFA;
  --bianco: #FFFFFF;
  --testo: #1E293B;
  --testo-tenue: #64748B;
  --bordo: #E2E8F0;

  --raggio: 14px;
  --ombra: 0 4px 16px rgba(15, 23, 42, 0.08);
  --ombra-alta: 0 12px 32px rgba(15, 23, 42, 0.16);

  --larghezza: 1100px;
}

/* --- Azzeramento --- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--sfondo);
  color: var(--testo);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* spazio per la barra Telegram fissa in basso su mobile */
  padding-bottom: 76px;
}

/* --- Impalcatura --- */
.contenitore {
  width: 100%;
  max-width: var(--larghezza);
  margin: 0 auto;
  padding: 0 20px;
}

.sezione {
  padding: 56px 0;
}

.sezione--chiara { background: var(--bianco); }

.sezione--scura {
  background: var(--notte);
  color: var(--bianco);
}

.titolo-sezione {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.sottotitolo-sezione {
  color: var(--testo-tenue);
  max-width: 60ch;
  margin-bottom: 32px;
}

.sezione--scura .sottotitolo-sezione { color: #94A3B8; }

/* --- Apertura --- */
.apertura {
  background: linear-gradient(160deg, var(--notte) 0%, #1B2A44 100%);
  color: var(--bianco);
  padding: 48px 0 56px;
}

.apertura__griglia {
  display: grid;
  gap: 32px;
}

.occhiello {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--oro);
  margin-bottom: 12px;
}

.apertura__titolo {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.evidenza { color: var(--oro); }

.apertura__descrizione {
  color: #CBD5E1;
  max-width: 52ch;
  margin-bottom: 28px;
}

.apertura__azioni {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.apertura__nota {
  font-size: 0.85rem;
  color: #94A3B8;
}

.apertura__foto img {
  border-radius: var(--raggio);
  box-shadow: var(--ombra-alta);
}

/* --- Bottoni --- */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--raggio);
  font-weight: 600;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primario {
  background: var(--oro);
  color: var(--notte);
}
.btn-primario:hover { background: var(--oro-scuro); color: var(--bianco); }

.btn-secondario {
  background: transparent;
  color: var(--bianco);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-secondario:hover { border-color: var(--bianco); }

.btn-telegram {
  background: var(--telegram);
  color: var(--bianco);
}
.btn-telegram:hover { background: var(--telegram-scuro); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--bianco);
}
.btn-whatsapp:hover { background: var(--whatsapp-scuro); }

.btn-grande {
  display: block;
  width: 100%;
  font-size: 1.05rem;
  padding: 16px 22px;
}

/* Barra fissa in basso, solo su schermi stretti */
.barra-contatto {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--telegram);
  color: var(--bianco);
  text-align: center;
  font-weight: 600;
  padding: 16px;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.2);
}

/* --- Schede --- */
.griglia-tre {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--sfondo);
  border: 1px solid var(--bordo);
  border-radius: var(--raggio);
  padding: 24px;
}

.sezione--chiara .card { background: var(--sfondo); }

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p { color: var(--testo-tenue); font-size: 0.95rem; }

/* --- Prodotto --- */
.video-prodotto {
  width: 100%;
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  background: #000;
  margin-bottom: 24px;
}

.galleria {
  display: grid;
  gap: 20px;
}

.galleria img {
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
}

.galleria figcaption {
  font-size: 0.85rem;
  color: var(--testo-tenue);
  margin-top: 8px;
}

/* --- Calcolatore --- */
.calcolatore {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--raggio);
  padding: 24px;
}

.quantita {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.quantita__scelta {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bianco);
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 12px 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.quantita__scelta:hover { border-color: var(--oro); }

.quantita__scelta--attiva {
  background: var(--oro);
  border-color: var(--oro);
  color: var(--notte);
}

.calcolatore__pannelli {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.pannello {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
}

.pannello--ricavo {
  background: rgba(245, 165, 36, 0.10);
  border: 1px solid rgba(245, 165, 36, 0.3);
}

.pannello__titolo {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: 14px;
}

.pannello--ricavo .pannello__titolo { color: var(--oro); }

.voce {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  /* su schermi stretti l'importo scende a capo intero invece di spezzare
     l'etichetta a meta': piu' leggibile di due colonne strizzate */
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.voce:last-of-type { border-bottom: none; }

.voce dt { color: #CBD5E1; font-size: 0.92rem; }
.voce dd { font-weight: 600; white-space: nowrap; margin-left: auto; }

.voce--forte {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.voce--forte dt { color: var(--bianco); font-weight: 600; }

.voce--forte dd {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pannello--ricavo .voce--forte dd { color: var(--oro); }


.pannello__avvertenza {
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.5;
  margin-top: 14px;
}

.suggerimento {
  background: rgba(245, 165, 36, 0.14);
  border-left: 3px solid var(--oro);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #FDE9C8;
  margin-bottom: 20px;
}

/* Secondo canale: presente ma senza rubare la scena al bottone principale */
.calcolatore__alternativa {
  text-align: center;
  font-size: 0.9rem;
  color: #94A3B8;
  margin-top: 12px;
}

.calcolatore__alternativa a {
  color: var(--whatsapp);
  font-weight: 600;
  text-decoration: underline;
}

.chiusura__canali {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.calcolatore__nota {
  font-size: 0.82rem;
  color: #94A3B8;
  text-align: center;
  margin-top: 12px;
}

/* --- Clienti --- */
.elenco-clienti {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.elenco-clienti li {
  background: var(--bianco);
  border: 1px solid var(--bordo);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.nota-metodo {
  background: var(--bianco);
  border-left: 3px solid var(--oro);
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--testo-tenue);
  max-width: 68ch;
}

/* --- Passi --- */
.passi {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
}

.passo {
  background: var(--sfondo);
  border: 1px solid var(--bordo);
  border-radius: var(--raggio);
  padding: 24px;
}

.passo__numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--notte);
  color: var(--oro);
  font-weight: 800;
  margin-bottom: 12px;
}

.passo h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.passo p { color: var(--testo-tenue); font-size: 0.95rem; }

.avviso {
  background: var(--notte);
  color: var(--bianco);
  border-radius: var(--raggio);
  padding: 24px;
}

.avviso h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.avviso p { color: #CBD5E1; font-size: 0.95rem; }
.avviso a { color: var(--oro); font-weight: 600; }

/* --- Specifiche --- */
.tabella-specifiche {
  width: 100%;
  border-collapse: collapse;
  background: var(--bianco);
  border: 1px solid var(--bordo);
  border-radius: var(--raggio);
  overflow: hidden;
}

.tabella-specifiche th,
.tabella-specifiche td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--bordo);
  font-size: 0.95rem;
}

.tabella-specifiche tr:last-child th,
.tabella-specifiche tr:last-child td { border-bottom: none; }

.tabella-specifiche th {
  font-weight: 600;
  color: var(--testo-tenue);
  width: 42%;
}

.tabella-specifiche td { font-weight: 600; }

/* --- Domande --- */
.domanda {
  background: var(--sfondo);
  border: 1px solid var(--bordo);
  border-radius: var(--raggio);
  padding: 16px 20px;
  margin-bottom: 10px;
}

.domanda summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.domanda summary::-webkit-details-marker { display: none; }

.domanda summary::after {
  content: '+';
  float: right;
  color: var(--oro);
  font-weight: 800;
}

.domanda[open] summary::after { content: '−'; }

.domanda p {
  color: var(--testo-tenue);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* --- Chiusura --- */
.chiusura { text-align: center; }
.chiusura .sottotitolo-sezione { margin-left: auto; margin-right: auto; }
.chiusura .btn-grande { max-width: 420px; margin: 0 auto; }

/* --- Piede --- */
.pie {
  background: var(--notte);
  color: #94A3B8;
  padding: 40px 0;
  font-size: 0.88rem;
}

.pie__marchio {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--bianco);
  margin-bottom: 8px;
}

.pie__righe { margin-bottom: 16px; }
.pie__righe a { color: var(--oro); }

.pie__legale {
  font-size: 0.78rem;
  line-height: 1.6;
  color: #64748B;
  max-width: 70ch;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

/* ============================================
   Da tablet in su
   ============================================ */
@media (min-width: 720px) {
  body { padding-bottom: 0; }

  /* la barra fissa serve solo dove lo schermo è stretto */
  .barra-contatto { display: none; }

  .sezione { padding: 76px 0; }
  .titolo-sezione { font-size: 2.1rem; }
  .apertura { padding: 72px 0 84px; }
  .apertura__titolo { font-size: 3rem; }

  .apertura__griglia {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
  }

  .griglia-tre { grid-template-columns: repeat(3, 1fr); }
  .galleria { grid-template-columns: repeat(3, 1fr); }
  .passi { grid-template-columns: repeat(3, 1fr); }
  .elenco-clienti { grid-template-columns: repeat(4, 1fr); }

  .calcolatore { padding: 32px; }
  .calcolatore__pannelli { grid-template-columns: 1fr 1fr; gap: 20px; }
  .btn-grande { max-width: 420px; margin: 0 auto; }

  .video-prodotto { max-height: 520px; object-fit: cover; }
}

/* Chi ha chiesto meno animazioni nel sistema operativo non ne riceve */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  * { transition: none !important; }
}
