/* RespawnIT — funnel di valutazione.
   Stile preso dal materiale del brand: fondo chiaro, nero pieno, azzurro
   elettrico, cornici sottili cyan, Montserrat pesante tutto maiuscolo. */

/* Font ospitato da noi: nessuna chiamata a Google, cosi' la privacy policy
   resta vera (niente terze parti oltre a quelle dichiarate). */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/font/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f1f1f1;
  --bg-2: #ffffff;
  --superficie: #ffffff;
  --bordo: #d9dde1;
  --nero: #101215;
  --testo: #101215;
  --testo-2: #545c66;
  --testo-3: #8b939d;
  --cyan: #29abe2;
  --cyan-scuro: #1b8ec0;
  --cyan-tenue: rgba(41, 171, 226, .09);
  /* verde scuro ufficiale WhatsApp: si riconosce a colpo d occhio e regge il
     testo bianco (4,1:1). Il teal di prima, #3fa8a8, stava a 2,85:1 e in pieno
     sole su un telefono non si leggeva. */
  --teal: #128C7E;
  --rosso: #d64545;
  --raggio: 4px;         /* il brand usa angoli vivi, non pillole */
  --raggio-s: 3px;
  --max: 620px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--testo);
  font: 500 16px/1.6 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* trama leggerissima, come la carta del volantino */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90vw 60vh at 50% -10%, rgba(41, 171, 226, .07), transparent 70%),
    linear-gradient(180deg, #f6f6f6, #ebecee);
}

img { max-width: 100%; display: block; }
a { color: var(--cyan-scuro); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 8px 20px 60px; }

/* --- intestazione ------------------------------------------------------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 6px;
  max-width: var(--max);
  margin: 0 auto;
}

.marchio { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.marchio svg { flex: 0 0 auto; }
.marchio .nome {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -.01em;
  line-height: 1;
  text-transform: uppercase;
}
.marchio .nome .it { color: var(--cyan); }
.marchio .paga {
  display: block;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--testo-3);
  text-transform: none;
  margin-top: 3px;
}

.top-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--testo-2);
  text-decoration: none;
}
.top-link:hover { color: var(--cyan); }

/* --- tipografia --------------------------------------------------------- */
h1 {
  font-size: clamp(30px, 8.6vw, 46px);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-weight: 900;
  text-transform: uppercase;
  margin: 16px 0 16px;
}
h1 em { font-style: normal; color: var(--cyan); }

h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}

.occhiello {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}

.sub { color: var(--testo-2); font-size: 15.5px; margin: 0 0 22px; }
.piccolo { font-size: 12.5px; color: var(--testo-3); line-height: 1.55; }
.centro { text-align: center; }

/* --- bottoni ------------------------------------------------------------ */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 17px 22px;
  border: 0;
  border-radius: var(--raggio);
  background: var(--cyan);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .08s ease;
}
.btn:hover { background: var(--cyan-scuro); }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .35; cursor: not-allowed; }

.btn-2 {
  background: transparent;
  color: var(--testo-2);
  border: 2px solid var(--bordo);
  font-weight: 700;
  padding: 15px 22px;
}
.btn-2:hover { background: #fff; border-color: var(--nero); color: var(--nero); }

.btn-wa { background: var(--teal); }
.btn-wa:hover { background: #0f7268; }

.btn-riga { display: flex; gap: 10px; margin-top: 12px; }
.btn-riga .btn, .btn-riga .btn-2 { flex: 1; }

/* --- riquadri con cornice cyan (motivo del volantino) -------------------- */
.card {
  background: var(--superficie);
  border: 1px solid var(--bordo);
  border-radius: var(--raggio);
  padding: 20px;
}

.riquadro {
  border: 2px solid var(--cyan);
  border-radius: var(--raggio);
  background: var(--superficie);
  padding: 22px 20px;
}
.riquadro .titolo {
  text-align: center;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

/* --- passi del funnel --------------------------------------------------- */
.passo { display: none; animation: entra .26s ease both; }
.passo.attivo { display: block; }

@keyframes entra {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .passo, .spinner, .barra i { animation: none !important; }
  .btn { transition: none; }
}

.barra {
  height: 3px;
  background: var(--bordo);
  overflow: hidden;
  margin-bottom: 24px;
}
.barra i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cyan);
  transition: width .35s ease;
}

/* --- elenco con spunte cyan (motivo "ZERO SBATTI") ---------------------- */
.spunte { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.spunte li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--testo);
}
.spunte li::before {
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* --- prove sociali ------------------------------------------------------ */
.prove { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 0; padding: 0; list-style: none; }
.prove li {
  font-size: 12px;
  font-weight: 600;
  color: var(--testo-2);
  background: var(--superficie);
  border: 1px solid var(--bordo);
  border-radius: var(--raggio-s);
  padding: 7px 12px;
}
.prove b { color: var(--nero); font-weight: 800; }

/* --- caricamento foto --------------------------------------------------- */
.dropzone {
  border: 2px dashed var(--cyan);
  border-radius: var(--raggio);
  background: var(--cyan-tenue);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.dropzone:hover, .dropzone.sopra { background: rgba(41, 171, 226, .16); border-color: var(--cyan-scuro); }
.dropzone .icona { color: var(--cyan); margin: 0 auto 10px; }
.dropzone b { display: block; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }

.miniature { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.miniatura {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--raggio-s);
  overflow: hidden;
  border: 1px solid var(--bordo);
  background: #fff;
}
.miniatura img { width: 100%; height: 100%; object-fit: cover; }
.miniatura button {
  position: absolute;
  top: 6px; right: 6px;
  width: 28px; height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 18, 21, .78);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

/* --- scelte (stato / accessori) ----------------------------------------- */
.scelte { display: grid; gap: 9px; margin-bottom: 24px; }

.scelta {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  background: var(--superficie);
  border: 2px solid var(--bordo);
  border-radius: var(--raggio);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  transition: border-color .12s ease, background .12s ease;
}
.scelta:hover { border-color: #b6bec6; }
.scelta[aria-pressed="true"] { border-color: var(--cyan); background: var(--cyan-tenue); }
.scelta .pallino {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--bordo);
  background: #fff;
  position: relative;
}
.scelta[aria-pressed="true"] .pallino { border-color: var(--cyan); background: var(--cyan); }
.scelta[aria-pressed="true"] .pallino::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.scelta .txt b { display: block; font-weight: 800; font-size: 15px; }
.scelta .txt span { display: block; font-size: 12.5px; color: var(--testo-3); line-height: 1.45; font-weight: 500; }

/* --- attesa ------------------------------------------------------------- */
.attesa { text-align: center; padding: 60px 0; }
.spinner {
  width: 46px; height: 46px;
  margin: 0 auto 22px;
  border: 3px solid var(--bordo);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: gira .8s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }

/* --- risultato ---------------------------------------------------------- */
.esito {
  border: 2px solid var(--cyan);
  border-radius: var(--raggio);
  background: var(--superficie);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 18px;
}
.esito .etichetta {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.esito .oggetto {
  font-size: 21px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.esito .fascia {
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.esito .nota { color: var(--testo-2); font-size: 14px; margin-top: 12px; }

/* Il disclaimer sul prezzo: deve essere impossibile non vederlo, perche' la
   cifra e' un esempio prodotto da un'AI e non un'offerta. */
.disclaimer {
  border: 2px solid var(--nero);
  border-radius: var(--raggio);
  background: #fff;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--testo-2);
  margin-bottom: 18px;
}
.disclaimer b { color: var(--nero); }

.esito .postilla {
  font-size: 12px;
  color: var(--testo-3);
  margin-top: 10px;
}

.avvisi { display: grid; gap: 8px; margin-bottom: 18px; }
.avviso {
  font-size: 13px;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: var(--raggio-s);
  background: #fff;
  border-left: 3px solid var(--cyan);
  border-top: 1px solid var(--bordo);
  border-right: 1px solid var(--bordo);
  border-bottom: 1px solid var(--bordo);
  color: var(--testo-2);
}

/* --- gate contatti ------------------------------------------------------ */
.gate { border: 2px solid var(--cyan); }

.campo { margin-bottom: 13px; }
.campo label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--testo-2);
  margin-bottom: 6px;
}

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 14px 14px;
  background: #fff;
  border: 2px solid var(--bordo);
  border-radius: var(--raggio-s);
  color: var(--testo);
  font: inherit;
  font-size: 16px; /* sotto 16px iOS zooma da solo */
  font-weight: 500;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--cyan); }
textarea { resize: vertical; min-height: 74px; }

/* il campo esca deve sparire agli umani ma restare compilabile dai bot */
.esca { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consenso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--testo-2);
  line-height: 1.5;
  margin-bottom: 11px;
  cursor: pointer;
}
.consenso input { flex: 0 0 auto; margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--cyan); }

.errore { color: var(--rosso); font-size: 13px; font-weight: 600; margin: 10px 0 0; min-height: 1px; }

/* --- breakdown guadagno ------------------------------------------------- */
.conto { margin: 0; }
.conto .riga {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--bordo);
  font-size: 14.5px;
}
.conto .riga span { color: var(--testo-2); }
.conto .riga b { font-weight: 800; font-variant-numeric: tabular-nums; }
.conto .riga.netto { border-bottom: 0; padding-top: 18px; }
.conto .riga.netto span { color: var(--nero); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.conto .riga.netto b { font-size: 34px; color: var(--cyan); letter-spacing: -.03em; }

.incluso { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.incluso li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--testo-2);
  padding-left: 28px;
  position: relative;
  line-height: 1.45;
}
.incluso li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* --- card condivisibile ------------------------------------------------- */
#cardPreview { width: 100%; border: 1px solid var(--bordo); margin-bottom: 12px; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { margin-top: 44px; }
.faq details { border-bottom: 1px solid var(--bordo); padding: 16px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 22px; font-weight: 700; line-height: .9; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--testo-2); font-size: 14px; font-weight: 500; margin: 10px 0 0; }

/* --- piede -------------------------------------------------------------- */
.piede {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--bordo);
  text-align: center;
  font-size: 12px;
  color: var(--testo-3);
}
.piede a { color: var(--testo-2); text-decoration: none; margin: 0 8px; font-weight: 600; }
.piede a:hover { color: var(--cyan); }
.piede .paga {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .22em;
  font-size: 10px;
  margin-top: 12px;
  text-transform: uppercase;
}

/* --- pagine SEO --------------------------------------------------------- */
.seo-intro { margin-bottom: 28px; }
.seo-prezzo {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--testo-2);
  background: var(--superficie);
  border: 2px solid var(--cyan);
  border-radius: var(--raggio-s);
  padding: 8px 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.seo-prezzo b { color: var(--cyan); font-weight: 900; }
.correlati { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.correlati a {
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--testo-2);
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--raggio-s);
  padding: 7px 12px;
}
.correlati a:hover { border-color: var(--cyan); color: var(--cyan); }
