/* STARMAN · magostarman.com · Modulo /richiesta/ "una domanda alla volta" (Pedro, 17/11/2026)
   Pagina standalone (link da WhatsApp): non usa style.css, solo fonts.css + questo file.
   Stessi token del sito: nero pieno, avorio, grigio caldo, oro acceso. Mobile first. */

:root {
  --nero: #000;
  --pannello: #0B0B0B;
  --inchiostro: #FAF8F4;
  --grigio: #8E8A84;
  --linea: #222;
  --linea-2: #2A2A2A;
  --linea-3: #3A3A3A;
  --ottone: #E2B54A;
  --ottone-chiaro: #F5D27A;
  --rosso: #FF8A7A;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --oro-grad: linear-gradient(100deg, #FFD84A 0%, #E9A81C 45%, #FFD955 72%, #C98A0E 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: radial-gradient(ellipse 90% 45% at 50% 0%, #161616 0%, #000 70%) var(--nero); background-attachment: fixed; color: var(--inchiostro); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
p { margin: 0 0 .8em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ottone); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Struttura ---------- */
.pagina { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.testa { position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.testa__riga { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; padding: 0 12px; max-width: 760px; margin: 0 auto; }
.testa__logo { grid-column: 2; display: block; line-height: 0; padding: 6px; }
.testa__logo img { height: 17px; width: auto; display: block; }
.indietro { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; background: none; border: 0; color: var(--grigio); font: 600 14px/1 var(--sans); cursor: pointer; border-radius: 8px; }
.indietro:hover { color: var(--inchiostro); }
.indietro svg { width: 18px; height: 18px; }
.indietro[aria-hidden="true"] { visibility: hidden; }
.progresso { height: 3px; background: var(--linea); }
.progresso__barra { height: 100%; width: 0; background: var(--oro-grad); transition: width .4s ease; }

.scena { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: clamp(28px, 7vh, 72px) 22px 28px; }
.piede { padding: 14px 22px 18px; text-align: center; font-size: 12px; color: var(--grigio); }
.piede a { color: var(--grigio); }

/* ---------- Schermate ---------- */
.passo { animation: entra .45s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.passo.indietro-anim { animation-name: entra-giu; }
@keyframes entra-giu { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }

.numero { display: block; margin-bottom: 10px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ottone); }
.domanda { margin: 0 0 8px; font: 600 clamp(25px, 6.6vw, 34px)/1.22 var(--serif); letter-spacing: -.005em; color: #fff; outline: none; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; } /* titoli: fuoco solo per i lettori di schermo */
.domanda label { cursor: inherit; }
.reazione { display: block; font-style: italic; font-weight: 500; color: var(--ottone-chiaro); }
.sotto { margin: 0 0 22px; color: var(--grigio); font-size: 16px; }
.domanda + .scelte, .domanda + .campo, .domanda + .gruppo { margin-top: 22px; }

/* Benvenuto */
.benvenuto h1 { margin: 0 0 18px; font: 700 clamp(34px, 9vw, 52px)/1.08 var(--serif); color: #fff; outline: none; }
.benvenuto p { color: #D9D5CE; font-size: 18px; }
.benvenuto .carta { margin: 22px 0 0; padding: 16px 18px; border-left: 2px solid var(--ottone); background: rgba(226,181,74,.06); color: var(--inchiostro); font: italic 500 19px/1.5 var(--serif); }
.benvenuto .carta p { color: inherit; font-size: inherit; margin: 0; }
.benvenuto .carta p + p { margin-top: 6px; }

/* Scelte (radio/checkbox veri, stilizzati come pulsanti grandi) */
.gruppo { border: 0; margin: 0; padding: 0; min-width: 0; }
.gruppo + .gruppo { margin-top: 22px; }
.gruppo__titolo { display: block; padding: 0; margin: 0 0 10px; font: 700 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grigio); }
.gruppo__titolo small { font-weight: 500; letter-spacing: .04em; text-transform: none; font-size: 12px; }
.scelte { display: grid; gap: 10px; }
.scelta { position: relative; display: block; cursor: pointer; }
.scelta input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.scelta span { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 16px; border: 1px solid var(--linea-2); border-radius: 12px; background: var(--pannello); font: 600 16px/1.3 var(--sans); color: var(--inchiostro); transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.scelta span::before { content: ""; flex: 0 0 auto; width: 20px; height: 20px; border: 1.5px solid var(--linea-3); border-radius: 50%; transition: border-color .15s, background .15s, box-shadow .15s; }
.scelta input[type="checkbox"] + span::before { border-radius: 5px; }
.scelta:hover span { border-color: #4A4A4A; }
.scelta input:checked + span { border-color: var(--ottone); background: rgba(226,181,74,.10); }
.scelta input[type="radio"]:checked + span::before { border-color: var(--ottone); background: var(--ottone); box-shadow: inset 0 0 0 4px #1A1405; }
.scelta input[type="checkbox"]:checked + span::before { border-color: var(--ottone); background: var(--ottone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%231A1405' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.scelta input:focus-visible + span { outline: 2px solid var(--ottone); outline-offset: 2px; }
.scelta input:disabled + span { display: none; }

/* Variante compatta (schermate con due domande): pillole che vanno a capo */
.scelte--pillole { display: flex; flex-wrap: wrap; gap: 8px; }
.scelte--pillole .scelta span { min-height: 44px; padding: 9px 14px; border-radius: 999px; font-size: 15px; gap: 8px; }
.scelte--pillole .scelta span::before { width: 16px; height: 16px; }
.scelte--pillole .scelta input[type="checkbox"]:checked + span::before { background-size: 13px; }

/* Campi di testo */
.campo { display: block; margin-top: 16px; }
.campo__etichetta { display: block; margin-bottom: 4px; font: 700 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grigio); }
.campo input, .campo textarea, .campo select { width: 100%; padding: 10px 0; border: 0; border-bottom: 2px solid var(--linea-3); border-radius: 0; background: transparent; color: #fff; font: 500 20px/1.35 var(--sans); outline: none; transition: border-color .15s; color-scheme: dark; }
.campo textarea { min-height: 112px; resize: vertical; font-size: 18px; line-height: 1.5; }
.campo input::placeholder, .campo textarea::placeholder { color: #5E5A55; }
.campo input:focus, .campo textarea:focus, .campo select:focus { border-bottom-color: var(--ottone); }
.campo input[aria-invalid="true"], .campo textarea[aria-invalid="true"] { border-bottom-color: var(--rosso); }
.campo input[type="date"] { min-height: 48px; }
.tel { display: flex; gap: 12px; }
.tel select { flex: 0 0 auto; width: auto; max-width: 112px; padding-right: 4px; font-size: 18px; }
.tel select option { background: #111; color: #fff; }
.tel input { flex: 1 1 auto; min-width: 0; }
.campo__nota { display: block; margin-top: 6px; font-size: 13px; color: var(--grigio); }

/* Privacy */
.consenso { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 15px; line-height: 1.5; color: #D9D5CE; cursor: pointer; }
.consenso input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ottone); }
.consenso a { color: var(--ottone); }

/* Azioni */
.azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.btn-oro { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border: 0; border-radius: 12px; background: var(--oro-grad); color: #1A1405; font: 700 17px/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; box-shadow: 0 0 22px rgba(240,190,70,.35), inset 0 1px 0 rgba(255,255,255,.45); transition: box-shadow .25s, transform .2s; }
.btn-oro:hover { box-shadow: 0 0 36px rgba(240,190,70,.6), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-oro:disabled { opacity: .6; cursor: wait; }
.btn-vuoto { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border: 1px solid var(--linea-3); border-radius: 12px; background: transparent; color: var(--inchiostro); font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn-vuoto:hover { border-color: var(--inchiostro); }
.btn-vuoto svg, .btn-oro svg { width: 20px; height: 20px; flex: 0 0 auto; }
.tasto-invio { font-size: 13px; color: var(--grigio); }
.tasto-invio kbd { font: 600 12px/1 var(--sans); padding: 3px 6px; border: 1px solid var(--linea-3); border-radius: 4px; }
@media (pointer: coarse) { .tasto-invio { display: none; } }
@media (max-width: 560px) { .azioni .btn-oro, .azioni .btn-vuoto { width: 100%; } }

.errore { margin: 14px 0 0; color: var(--rosso); font-size: 15px; font-weight: 600; }
.errore:empty { display: none; }

/* Schermata di errore di invio */
.esito h1 { margin: 0 0 14px; font: 700 clamp(30px, 8vw, 44px)/1.12 var(--serif); color: #fff; outline: none; }
.esito p { color: #D9D5CE; }
.esito a:not(.btn-oro):not(.btn-vuoto) { color: var(--ottone); }

/* ---------- Pagina grazie ---------- */
.grazie h1 { margin: 0 0 6px; font: 700 clamp(32px, 8.5vw, 48px)/1.1 var(--serif); color: #fff; outline: none; }
.grazie .lead { font-size: 18px; color: #D9D5CE; margin-bottom: 22px; }
.grazie p { color: #D9D5CE; }
.patto { margin: 24px 0; padding: 16px 18px; border-left: 2px solid var(--ottone); background: rgba(226,181,74,.06); font: italic 500 19px/1.5 var(--serif); color: var(--inchiostro); }
.patto p { margin: 0; color: inherit; }
.patto p + p { margin-top: 6px; }
.grazie .azioni { margin-top: 14px; margin-bottom: 26px; }
.torna { display: inline-block; margin-top: 4px; color: var(--grigio); font-size: 15px; }


/* ---------- Senza JavaScript ---------- */
.no-js-avviso { margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--linea-2); border-radius: 12px; color: #D9D5CE; font-size: 15px; }
.no-js-avviso a { color: var(--ottone); }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .scena { display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 48px; }
  .testa__logo img { height: 20px; }
  .scelte:not(.scelte--pillole) { grid-template-columns: 1fr 1fr; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  .passo, .passo.indietro-anim { animation: none; }
  .progresso__barra, .scelta span, .btn-oro { transition: none; }
}

/* ---------- Telefono: schermate compatte (le schermate con due domande devono stare senza scorrere) ---------- */
@media (max-width: 899px) {
  .testa__riga { height: 50px; }
  .scena { padding: clamp(16px, 3.5vh, 40px) 18px 16px; }
  .numero { margin-bottom: 6px; }
  .domanda { font-size: clamp(22px, 6vw, 30px); line-height: 1.2; }
  .sotto { margin-bottom: 14px; font-size: 15px; }
  .domanda + .scelte, .domanda + .campo, .domanda + .gruppo { margin-top: 16px; }
  .scelte { gap: 8px; }
  .scelta span { min-height: 48px; padding: 10px 14px; font-size: 15.5px; }
  .scelte--pillole { gap: 7px; }
  .scelte--pillole .scelta span { min-height: 40px; padding: 7px 12px; font-size: 14.5px; gap: 7px; }
  .scelte--pillole .scelta span::before { width: 14px; height: 14px; }
  .gruppo + .gruppo { margin-top: 16px; }
  .gruppo__titolo { margin-bottom: 8px; }
  .azioni { margin-top: 20px; }
  .btn-oro, .btn-vuoto { min-height: 52px; }
  .piede { padding: 8px 18px 12px; }
}


/* Elenchi lunghi (Big show D11, 7 opzioni): pulsanti un po' più bassi per stare in uno schermo */
@media (max-width: 899px) {
  .scelte--fitte { gap: 6px; }
  .scelte--fitte .scelta span { min-height: 44px; padding: 8px 14px; }
}

/* ---------- Dettatura vocale (D8 e D15) ---------- */
.detta { margin-top: 10px; }
.detta__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--linea-3); border-radius: 999px; background: transparent; color: var(--inchiostro); font: 600 15px/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .15s, background .15s, color .15s; }
.detta__btn:hover { border-color: var(--inchiostro); }
.detta__btn[aria-pressed="true"] { border-color: var(--ottone); background: rgba(226,181,74,.10); color: var(--ottone-chiaro); }
.detta__punto { display: inline-block; color: #FF5A4F; font-size: 13px; animation: detta-pulsa 1.1s ease-in-out infinite; }
@keyframes detta-pulsa { 50% { opacity: .25; transform: scale(.75); } }
.detta__msg { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--rosso); }
.detta__msg:empty { display: none; }
.detta__nota { margin: 6px 0 0; font-size: 13px; color: var(--grigio); }
@media (prefers-reduced-motion: reduce) { .detta__punto { animation: none; } .detta__btn { transition: none; } }

/* ---------- D5: orario e disponibilità (17/11/2026) ---------- */
.scelte--quando .scelta span { min-height: 48px; font-size: 15.5px; }
.gruppo--orario { margin-top: 16px; }
.dispo { margin: 14px 0 0; padding: 11px 14px; border-radius: 10px; font-size: 15px; line-height: 1.45; animation: dispo-entra .45s ease both; }
.dispo--libero { border: 1px solid rgba(226,181,74,.55); background: rgba(226,181,74,.10); color: var(--ottone-chiaro); }
.dispo--libero::before { content: "✓"; display: inline-block; margin-right: 8px; color: #8FD18B; font-weight: 700; }
.dispo--occupato { border: 1px solid var(--linea-3); background: #101010; color: #D9D5CE; }
@keyframes dispo-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dispo { animation: none; } }
/* su telefono il suggerimento "premi Invio" non serve (pulsante a tutta larghezza) */
@media (max-width: 560px) { .tasto-invio { display: none; } }
@media (max-width: 899px) {
  .scelte--quando .scelta span { min-height: 44px; }
  .dispo { font-size: 14.5px; padding: 9px 12px; margin-top: 12px; }
}
@media (max-width: 899px) {
  .scelte--quando .scelta span { min-height: 42px; }
  .campo--data { margin-top: 10px; }
  .campo--data input[type="date"] { min-height: 44px; padding: 6px 0; }
  .gruppo--orario { margin-top: 12px; }
  .gruppo--orario .gruppo__titolo { margin-bottom: 6px; }
  .dispo { margin-top: 10px; padding: 8px 12px; font-size: 14px; line-height: 1.4; }
  .passo[data-passo="quando"] .azioni { margin-top: 14px; }
}

/* Contatti con azienda e "come mi conosci" (21/11/2026) */
.passo[data-passo="contatti"] .consenso { margin-bottom: 24px; }
.passo[data-passo="quando"] .campo--dove { margin-top: 18px; }
