/* Motore di vendita passiva — pagina prodotto e pagine di checkout.
   File separato dal foglio principale (fta-public.css) di proposito: e' una
   nuova superficie del sito, e tenerla qui evita qualunque rischio di
   regressione sulle pagine esistenti mentre si costruisce. */

.pdt-schermo {
  width: min(880px, calc(100% - 44px));
  margin: 40px auto 64px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #243044;
  overflow-x: hidden;
}

/* Contenitore dello SDK PayPal (script di terze parti): un widget futuro
   che si inietti piu' largo del previsto non deve mai poter allargare la
   pagina — la larghezza resta sempre quella della scheda, mai di piu'. */
#pdt-app {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---- copertina + galleria ----
   Colonna immagine a larghezza fissa accanto alla scheda su schermi larghi,
   impilata sopra su mobile: la copertina resta la prima cosa vista (LCP),
   ma senza dominare uno schermo stretto (richiesto: "compatta"). */
.pdt-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
/* Un elemento a griglia rifiuta di default di restringersi oltre la
   larghezza minima del proprio contenuto (min-width:auto implicito),
   stesso principio di min-width:0 gia' usato sui flex qui sotto: senza
   questo, un contenuto interno insolitamente largo nella colonna "scheda"
   potrebbe spingere la traccia oltre la larghezza disponibile invece di
   andare a capo. */
.pdt-layout > * {
  min-width: 0;
}

.pdt-cover-col {
  position: sticky;
  top: 24px;
}

.pdt-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(36, 48, 68, .10);
  background: #fbf7f2;
}
.pdt-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdt-galleria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.pdt-galleria img {
  width: 100%;
  /* L'attributo HTML height="..." (larghezza/altezza intrinseche, per
     evitare CLS) altrimenti vince su aspect-ratio quando entrambe le
     dimensioni risultano "definite": height:auto lascia che sia
     aspect-ratio a decidere l'altezza finale, sempre quadrata qui. */
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(36, 48, 68, .08);
  display: block;
}

@media (max-width: 760px) {
  .pdt-layout {
    grid-template-columns: 1fr;
  }
  .pdt-cover-col {
    position: static;
    width: min(200px, 60vw);
    margin: 0 auto;
  }
}

.pdt-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #f22b8c;
  margin: 0 0 8px;
}

.pdt-titolo {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  margin: 0 0 12px;
}

.pdt-sottotitolo {
  font-size: 17px;
  color: #55627a;
  margin: 0 0 28px;
}

.pdt-scheda {
  background: #fff;
  border: 1px solid #ece6de;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(36, 48, 68, .06);
}

.pdt-descrizione {
  font-size: 15px;
  line-height: 1.6;
}
.pdt-descrizione ul {
  margin: 0;
  padding-left: 20px;
}
.pdt-descrizione li {
  margin: 6px 0;
}

.pdt-fatti {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 16px;
  background: #fbf7f2;
  border-radius: 12px;
  font-size: 14px;
}
.pdt-fatti dt {
  font-weight: 600;
  color: #55627a;
}
.pdt-fatti dd {
  margin: 0 0 8px;
}

.pdt-prezzo {
  font-size: 32px;
  font-weight: 700;
  margin: 20px 0 4px;
}
.pdt-prezzo-nota {
  font-size: 13px;
  color: #8891a3;
  margin: 0 0 20px;
}

.pdt-campo {
  margin-bottom: 16px;
}
.pdt-campo label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.pdt-campo input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #dcd5ca;
  border-radius: 10px;
  font-size: 16px;
}

.pdt-consenso {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #55627a;
  line-height: 1.5;
  margin: 18px 0;
}
.pdt-consenso input {
  margin-top: 3px;
  flex-shrink: 0;
}
.pdt-consenso-bozza {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 999px;
}

.pdt-cta {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #f22b8c;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 16px;
  cursor: pointer;
  text-align: center;
}
.pdt-cta:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.pdt-errore {
  margin-top: 14px;
  padding: 12px 14px;
  background: #fdecec;
  color: #9a2323;
  border-radius: 10px;
  font-size: 14px;
}

.pdt-legale {
  margin-top: 18px;
  font-size: 12px;
  color: #8891a3;
  text-align: center;
}
.pdt-legale a {
  color: #8891a3;
}

.pdt-nondisponibile {
  padding: 20px;
  background: #f3f4f6;
  border-radius: 12px;
  text-align: center;
  color: #55627a;
}

.pdt-sandbox-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---- successo / download ---- */

.pdt-successo-icona {
  font-size: 40px;
  margin-bottom: 8px;
}

.pdt-riapertura {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #ece6de;
}

.pdt-coupon {
  border: 1.5px dashed #f2b6d3;
  background: #fff6fa;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.pdt-coupon label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #c81469;
  margin-bottom: 8px;
}
.pdt-coupon-riga {
  display: flex;
  gap: 8px;
}
.pdt-coupon-riga input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #dcd5ca;
  border-radius: 10px;
  font-size: 15px;
  text-transform: uppercase;
}
.pdt-coupon-riga input::placeholder {
  text-transform: none;
}
#pdt-coupon-applica {
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  background: #243044;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 0 18px;
  cursor: pointer;
}
#pdt-coupon-applica:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.pdt-coupon-esito {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
}
.pdt-coupon-esito--ok {
  color: #00966e;
}
.pdt-coupon-esito--errore {
  color: #9a2323;
}

/* ---- Chiedi alla Fata (FTA-CAF-P1-001, STEP-9) ----
   Form pubblico: riusa .pdt-campo, .pdt-cta, .pdt-errore, .pdt-titolo. Qui
   solo cio' che il checkout prodotto non ha: gruppi di campi, riga a due
   colonne, riquadro prezzo, scelta con casella, avviso di errore di campo. */
.cfa-schermo { max-width: 100%; }
.cfa-form { display: grid; gap: 20px; margin-top: 28px; }
.cfa-gruppo {
  margin: 0; padding: 18px 18px 6px;
  border: 1px solid #ece6dc; border-radius: 14px; background: #fff;
}
.cfa-gruppo legend {
  padding: 0 6px; font-size: 15px; font-weight: 700; color: #243044;
}
.cfa-riga { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .cfa-riga { grid-template-columns: 1fr 1fr; } }
.cfa-gruppo .pdt-campo input[type="text"],
.cfa-gruppo .pdt-campo input[type="tel"],
.cfa-gruppo .pdt-campo textarea,
.cfa-gruppo .pdt-campo select {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  border: 1px solid #dcd5ca; border-radius: 10px; font: inherit; font-size: 16px;
  background: #fff; color: #243044;
}
.cfa-gruppo .pdt-campo textarea { min-height: 140px; resize: vertical; }
.cfa-gruppo .pdt-campo input:focus-visible,
.cfa-gruppo .pdt-campo textarea:focus-visible,
.cfa-gruppo .pdt-campo select:focus-visible {
  outline: 2px solid #f22b8c; outline-offset: 2px;
}
.cfa-aiuto { margin: 6px 0 0; font-size: 13px; color: #5b6577; }
.cfa-facoltativo { font-weight: 400; color: #5b6577; }
.cfa-centrato { text-align: center; }
.cfa-prezzo-nota { font-weight: 400; color: #5b6577; }
.cfa-errore-campo {
  margin: 6px 0 0; padding: 8px 10px; border-radius: 8px;
  background: #fdecec; color: #9a2323; font-size: 14px;
}
.cfa-scelta {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; line-height: 1.45; color: #243044;
}
.cfa-scelta input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: #f22b8c; }
.cfa-prezzo {
  padding: 18px; border-radius: 14px;
  background: #fff7fb; border: 1px solid #f7cfe3;
}
.cfa-prezzo h2 { margin: 0 0 6px; font-size: 16px; color: #243044; }
.cfa-voci { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.cfa-voci li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 15px; color: #243044;
  font-variant-numeric: tabular-nums;
}
.cfa-importo { font-weight: 600; white-space: nowrap; }
.cfa-totale {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #f0d3e4;
  font-size: 17px; color: #243044;
}
.cfa-totale strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.cfa-invia:disabled { opacity: .5; cursor: not-allowed; }
.cfa-trappola {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.cfa-chiuso {
  margin-top: 28px; padding: 22px; border-radius: 14px;
  background: #fff; border: 1px solid #ece6dc; color: #243044;
}
.cfa-chiuso h2 { margin: 0 0 8px; font-size: 19px; }
.cfa-chiuso p { margin: 0; }
.cfa-riferimento {
  display: inline-block; margin: 8px 0 14px; padding: 10px 14px;
  border-radius: 10px; background: #fff7fb; font-size: 18px; letter-spacing: .08em;
  color: #243044; word-break: break-all;
}
.cfa-link-cta { display: inline-block; width: auto; padding: 14px 22px; text-decoration: none; }

/* ---- nota vocale: registrazione e player (FTA-CAF-P1-001, STEP-10) ----
   Gli stati (vuoto, registra, pausa, pronta) si alternano con l'attributo
   hidden: il CSS non deve mai imporre display sugli elementi che lo usano. */
.cfa-vocale [hidden] { display: none !important; }

.cfa-rec { margin-top: 16px; }
.cfa-rec-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.cfa-rec-pulsante {
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  background: #e11d2e;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(225, 29, 46, .32);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cfa-rec-pulsante:hover { transform: scale(1.04); box-shadow: 0 14px 30px rgba(225, 29, 46, .40); }
.cfa-rec-pulsante:focus-visible,
.cfa-rotondo:focus-visible,
.cfa-play:focus-visible { outline: 3px solid #243044; outline-offset: 4px; }
.cfa-rec-pulsante svg { width: 40px; height: 40px; }

/* Onde: cinque barre che salgono e scendono in loop finche' si registra. */
.cfa-onde { display: flex; align-items: center; gap: 5px; height: 40px; }
.cfa-onde i {
  display: block;
  width: 5px;
  height: 100%;
  border-radius: 3px;
  background: #fff;
  transform-origin: center;
  animation: cfa-onda .9s ease-in-out infinite alternate;
}
.cfa-onde i:nth-child(1) { animation-duration: .8s; animation-delay: -.3s; }
.cfa-onde i:nth-child(2) { animation-duration: 1.1s; animation-delay: -.6s; }
.cfa-onde i:nth-child(3) { animation-duration: .7s; animation-delay: -.1s; }
.cfa-onde i:nth-child(4) { animation-duration: 1s; animation-delay: -.5s; }
.cfa-onde i:nth-child(5) { animation-duration: .9s; animation-delay: -.2s; }
@keyframes cfa-onda {
  from { transform: scaleY(.22); }
  to { transform: scaleY(1); }
}

.cfa-rec-tempo {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #243044;
  font-variant-numeric: tabular-nums;
}

.cfa-rotondo {
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid #d6dbe4;
  border-radius: 50%;
  background: #fff;
  color: #243044;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.cfa-rotondo svg { width: 20px; height: 20px; }
.cfa-rotondo:hover { border-color: #e11d2e; color: #e11d2e; }

/* Player: una pillola unica, stessa tinta rossa del pulsante di registrazione. */
.cfa-player {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 10px 12px 10px 10px;
  border: 1px solid #e3e7ef;
  border-radius: 999px;
  background: #f4f6fa;
}
.cfa-play {
  flex: none;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #e11d2e;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cfa-play svg { width: 22px; height: 22px; }
.cfa-player-corpo { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cfa-progresso { width: 100%; margin: 0; accent-color: #e11d2e; cursor: pointer; }
.cfa-player-tempo {
  margin: 0;
  font-size: 13px;
  color: #5b6577;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .cfa-onde i { animation: none; transform: scaleY(.6); }
  .cfa-rec-pulsante { transition: none; }
}

/* ---- metodi di pagamento della ricevuta (FTA-CAF-P1-001, STEP-11) ----
   PayPal sempre; Apple Pay e Google Pay solo se l'SDK li dichiara eleggibili
   (il display lo decide lo script, non il markup). */
.cfa-metodi { display: grid; gap: 14px; margin-top: 16px; }
.cfa-wallet { display: grid; }
.cfa-wallet-pulsante {
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cfa-wallet-apple { background: #000; color: #fff; }
.cfa-metodi .cfa-invia:disabled { opacity: .5; cursor: not-allowed; }
/* Tutti i pulsanti di pagamento hanno la stessa misura: altezza fissa e larghezza piena. */
.cfa-metodi .pdt-cta,
.cfa-wallet-pulsante,
.cfa-wallet button,
.cfa-wallet .gpay-button {
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  min-height: 0;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
/* Lo SDK Google Pay applica margini propri al pulsante: qui vincono quelli della griglia. */
#cfa-googlepay .gpay-button-fill {
  width: 100% !important;
  height: 56px !important;
  margin: 0 !important;
  padding: 0 !important;
}
#cfa-googlepay .gpay-button {
  width: 100% !important;
  height: 56px !important;
  margin: 0 !important;
}

/* ---- sconto visibile sul prodotto (FTA, 2026-10-05) ----
   Il prezzo barrato e il prezzo finale sono in evidenza; la percentuale e' il segnale principale. */
.pdt-sconto { margin: 18px 0 0; display: grid; gap: 6px; }
.pdt-sconto-testa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.pdt-sconto-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e11d2e;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.pdt-sconto-etichetta { font-size: 14px; font-weight: 600; color: #9a2323; }
.pdt-prezzo-listino { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.pdt-barrato { font-size: 18px; color: #8891a3; text-decoration: line-through; font-variant-numeric: tabular-nums; }
.pdt-risparmio { font-size: 14px; font-weight: 700; color: #1f7a3f; }
.pdt-prezzo--scontato { font-size: 40px; color: #e11d2e; margin-top: 4px; margin-bottom: 2px; }
.pdt-sconto-scadenza { margin: 0 0 6px; font-size: 13px; color: #9a2323; font-weight: 600; }

/* ---- wallet sulla pagina prodotto: Apple Pay e Google Pay (FTA, 2026-10-05) ----
   Stessa misura del pulsante PayPal (56px, larghezza piena): il pulsante Google Pay e'
   generato dallo SDK, il suo wrapper va azzerato come nella ricevuta. */
.pdt-wallet { display: grid; gap: 10px; margin-top: 12px; }
.pdt-wallet[hidden] { display: none; }
.pdt-wallet-slot { display: grid; }
.pdt-wallet-slot > button,
.pdt-wallet-pulsante {
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.pdt-wallet-apple { background: #000; color: #fff; display: flex; align-items: center; justify-content: center; }
#pdt-googlepay .gpay-button-fill {
  width: 100% !important;
  height: 56px !important;
  margin: 0 !important;
  padding: 0 !important;
}
#pdt-googlepay .gpay-button { width: 100% !important; height: 56px !important; margin: 0 !important; }
/* Il pulsante PayPal della pagina prodotto ha la stessa altezza dei wallet (56px). */
#pdt-form .pdt-cta { box-sizing: border-box; height: 56px; }

/* ---- riquadro di acquisto (FTA, 2026-10-05) ----
   Un riquadro piatto con PayPal e i wallet, tutti alla stessa misura (52px, larghezza piena).
   Colori da token: il sito pubblico non ha un selettore di tema, quindi il riquadro
   segue il tema di sistema (prefers-color-scheme) e resta leggibile in entrambi. */
.pdt-acquisto {
  --pa-superficie: #f7f8fb;
  --pa-linea: #e3e7ef;
  --pa-testo: #243044;
  --pa-apple-fondo: #000;
  --pa-apple-testo: #fff;
  --pa-paypal-fondo: #ffc439;
  --pa-paypal-testo: #111827;
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--pa-linea);
  border-radius: 14px;
  background: var(--pa-superficie);
  color: var(--pa-testo);
  box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pdt-acquisto {
    --pa-superficie: #1b2231;
    --pa-linea: #34405a;
    --pa-testo: #eef1f6;
    --pa-apple-fondo: #fff;
    --pa-apple-testo: #000;
    --pa-paypal-fondo: #ffc439;
    --pa-paypal-testo: #111827;
  }
}
:root[data-theme="dark"] .pdt-acquisto {
  --pa-superficie: #1b2231;
  --pa-linea: #34405a;
  --pa-testo: #eef1f6;
  --pa-apple-fondo: #fff;
  --pa-apple-testo: #000;
  --pa-paypal-fondo: #ffc439;
  --pa-paypal-testo: #111827;
}
.pdt-acquisto-titolo {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 700;
  color: var(--pa-testo);
  text-wrap: balance;
}
.pdt-acquisto .pdt-cta,
.pdt-acquisto .pdt-wallet-slot > button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.pdt-acquisto .pdt-cta--paypal {
  background: var(--pa-paypal-fondo);
  color: var(--pa-paypal-testo);
}
.pdt-acquisto .pdt-cta:disabled { opacity: .55; cursor: not-allowed; }
.pdt-acquisto .pdt-wallet { display: grid; gap: 10px; margin: 0; }
.pdt-acquisto .pdt-wallet[hidden] { display: none; }
.pdt-acquisto .pdt-wallet-slot { display: grid; min-width: 0; }
/* Pulsante Apple Pay ufficiale (linee guida Apple): stile e testo li decide Safari.
   Nero su tema chiaro, bianco su tema scuro; altezza e larghezza come gli altri pulsanti.
   Il tipo "buy" produce "Acquista con Apple Pay" nella lingua della pagina (lang="it"). */
.pdt-acquisto .pdt-wallet-apple,
.apple-pay-button {
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: buy;
  -apple-pay-button-style: black;
  appearance: -apple-pay-button;
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pdt-acquisto .pdt-wallet-apple,
  :root:not([data-theme="light"]) .apple-pay-button {
    -apple-pay-button-style: white;
  }
}
:root[data-theme="dark"] .pdt-acquisto .pdt-wallet-apple,
:root[data-theme="dark"] .apple-pay-button {
  -apple-pay-button-style: white;
}
.pdt-acquisto #pdt-googlepay .gpay-button-fill {
  width: 100% !important; height: 52px !important;
  margin: 0 !important; padding: 0 !important;
  border-radius: 12px; overflow: hidden;
}
.pdt-acquisto #pdt-googlepay .gpay-button {
  width: 100% !important; height: 52px !important; margin: 0 !important;
}
.pdt-acquisto .pdt-errore { margin: 0; }

/* Pulsante PayPal: logo PayPal ufficiale monocromatico (nero, su fondo giallo) + "/ Carta".
   Il testo ha la stessa dimensione e peso degli altri pulsanti del riquadro. */
.pdt-acquisto .pdt-cta--paypal { gap: 8px; }
.pdt-acquisto .pdt-cta-logo { display: block; height: 20px; width: auto; }
.pdt-acquisto .pdt-cta-testo { font-size: 16px; font-weight: 600; line-height: 1; }
.pdt-sconto-stato {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7e6;
  color: #5a3b00;
  font-size: .9rem;
  font-weight: 600;
}
.pdt-sconto-stato[hidden] { display: none; }
#pdt-timer-tempo { font-variant-numeric: tabular-nums; }

/* ---- Chiedi alla Fata: nota vocale sempre visibile e riga allegati (2026-10-06) ----
   Campi tecnici (switch nascosti e input file) fuori dalla vista ma attivabili via JS. */
.cfa-nascosto {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}
.cfa-vocale { margin-top: 4px; }
.cfa-vocale .cfa-rec { margin-top: 4px; }
.cfa-rec-centro { gap: 8px; }
.cfa-rec-titolo { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: #243044; text-align: center; }
.cfa-rec-sotto { margin: 0; font-size: 13px; color: #5b6577; text-align: center; }

.cfa-allegati-riga {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.cfa-btn {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .08s ease;
  -webkit-tap-highlight-color: transparent;
}
.cfa-btn:active { transform: scale(.98); }
.cfa-btn:focus-visible { outline: 3px solid rgba(242, 43, 140, .4); outline-offset: 2px; }
.cfa-btn-icona { flex: none; width: 22px; height: 22px; }
.cfa-btn-testi { display: grid; gap: 2px; min-width: 0; }
.cfa-btn-titolo { font-size: 15px; font-weight: 700; line-height: 1.15; }
.cfa-btn-sotto { font-size: 12px; font-weight: 500; line-height: 1.2; opacity: .8; }

/* Azione: aggiungere allegati. Bordo e icona rosa, fondo tenue. */
.cfa-btn--azione {
  border: 1.5px solid #f22b8c;
  background: #fff0f7;
  color: #a5105a;
}

/* Interruttore "Più allegati": vuoto quando spento, pieno quando acceso. */
.cfa-btn--toggle {
  justify-content: center;
  text-align: center;
  border: 1.5px solid #c9cfda;
  background: transparent;
  color: #243044;
}
.cfa-btn--toggle .cfa-btn-testi { justify-items: center; }
.cfa-btn--toggle[aria-pressed="true"] {
  border-color: #f22b8c;
  background: #f22b8c;
  color: #fff;
}

.cfa-file-lista {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.cfa-file-lista[hidden] { display: none; }
.cfa-file-lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 6px 6px 12px;
  border: 1px solid #e3e7ef;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}
.cfa-file-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #243044; }
.cfa-file-peso { flex: none; font-size: 12px; color: #5b6577; font-variant-numeric: tabular-nums; }
.cfa-file-elimina {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9a2323;
  cursor: pointer;
}
.cfa-file-elimina:focus-visible { outline: 3px solid rgba(154, 35, 35, .35); outline-offset: 1px; }
.cfa-file-elimina svg { width: 18px; height: 18px; }
#cfa-allegati-info { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .cfa-btn { transition: none; }
  .cfa-btn:active { transform: none; }
}
/* iPhone 12 (390px): i titoli dei due pulsanti restano su una riga. */
.cfa-btn { gap: 8px; padding: 10px; min-height: 58px; }
.cfa-btn--toggle { padding: 8px 4px; }
.cfa-btn-icona { width: 20px; height: 20px; }
.cfa-btn-titolo { font-size: 14px; white-space: nowrap; }
.cfa-btn-sotto { white-space: nowrap; }
/* Hover solo con il mouse: su iPhone resterebbe attaccato dopo il tocco e "Più allegati" spento sembrerebbe acceso. */
@media (hover: hover) {
  .cfa-btn--azione:hover { background: #ffe4f0; }
  .cfa-btn--toggle[aria-pressed="false"]:hover { border-color: #f22b8c; }
  .cfa-file-elimina:hover { background: #fdecec; }
}
.cfa-file-lista li { padding: 2px 4px 2px 12px; }

/* ---- Chiedi alla Fata: tempi di risposta e canale a pulsanti (2026-10-06) ----
   Stessa grammatica di "Più allegati": vuoto = spento, pieno = acceso. Radio nativi nascosti. */
.cfa-etichetta { margin: 0 0 8px; font-weight: 600; font-size: 15px; color: #243044; }
.cfa-scelte { display: grid; gap: 10px; }
.cfa-scelte--tempi { grid-template-columns: repeat(3, 1fr); }
.cfa-scelte--canali { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cfa-scelte--canali { grid-template-columns: repeat(4, 1fr); } }

.cfa-scelta-btn {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 10px 6px;
  border: 1.5px solid #c9cfda;
  border-radius: 14px;
  background: transparent;
  color: #243044;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .08s ease;
}
.cfa-scelta-btn:active { transform: scale(.97); }
.cfa-scelta-btn.is-scelta,
.cfa-scelta-btn:has(input:checked) {
  border-color: #f22b8c;
  background: #f22b8c;
  color: #fff;
}
.cfa-scelta-btn:has(input:focus-visible) { outline: 3px solid rgba(242, 43, 140, .4); outline-offset: 2px; }
.cfa-scelta-btn.is-disabilitata { opacity: .5; cursor: help; }
.cfa-scelta-btn.is-disabilitata:active { transform: none; }
@media (hover: hover) {
  .cfa-scelta-btn:not(.is-scelta):not(.is-disabilitata):hover { border-color: #f22b8c; }
}

.cfa-scelta-sopra { font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.2; }
.cfa-scelta-grande { font-size: 26px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cfa-scelta-sotto { font-size: 12px; font-weight: 600; line-height: 1.2; }

/* Canali: tendenzialmente quadrati, nome al centro in grassetto. */
.cfa-scelta-btn--canale { aspect-ratio: 5 / 4; padding: 8px; }
.cfa-scelta-nome { font-size: 15px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }

/* Finestra "la Fata non e' online" */
.cfa-modal {
  width: min(360px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #243044;
  box-shadow: 0 24px 60px rgba(16, 38, 76, .25);
}
.cfa-modal::backdrop { background: rgba(16, 24, 40, .45); }
.cfa-modal-corpo { padding: 22px 20px 18px; text-align: center; display: grid; gap: 8px; }
.cfa-modal-icona { margin: 0; font-size: 34px; line-height: 1; }
.cfa-modal-titolo { margin: 4px 0 0; font-size: 19px; font-weight: 800; }
.cfa-modal-testo { margin: 0; font-size: 15px; line-height: 1.45; color: #4a5568; }
.cfa-modal-azioni { display: grid; gap: 8px; margin-top: 10px; }
.cfa-modal-azioni button {
  min-height: 48px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cfa-modal-primario { border: 0; background: #f22b8c; color: #fff; }
.cfa-modal-secondario { border: 1.5px solid #c9cfda; background: transparent; color: #243044; }
.cfa-modal-azioni button:focus-visible { outline: 3px solid rgba(242, 43, 140, .4); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .cfa-scelta-btn { transition: none; }
  .cfa-scelta-btn:active { transform: none; }
}
/* Le etichette dentro .pdt-campo hanno display:block e margine (regola .pdt-campo label, piu' specifica di
   .cfa-scelta-btn): qui la specificita' sale apposta, altrimenti i pulsanti perdono il layout centrato. */
.cfa-scelte .cfa-scelta-btn {
  display: flex;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
.cfa-scelta-sopra { white-space: nowrap; }
@media (max-width: 380px) {
  .cfa-scelta-sopra { font-size: 10px; }
  .cfa-scelta-grande { font-size: 24px; }
}
@media (min-width: 640px) {
  .cfa-scelta-btn--canale { aspect-ratio: 4 / 3; }
}
/* Il reset globale azzera il margine: il <dialog> va centrato a mano. */
.cfa-modal[open] { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 32px); overflow: auto; }
/* Canali: carattere piu' grande e uguale per tutti (Videochiamata va su due righe). */
.cfa-scelta-nome { font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: normal; }
@media (max-width: 380px) { .cfa-scelta-nome { font-size: 18px; } }

/* ---- 3H in risalto quando la Fata e' online (2026-10-06) ----
   Spinta a sceglierlo senza sacrificare la leggibilita': testo scuro su fondo chiaro caldo,
   contorno dorato, etichetta "Fata online" con punto verde. Selezionato diventa pieno come gli altri. */
.cfa-scelte--tempi { padding-top: 10px; }
.cfa-scelte .cfa-scelta-btn.is-in-evidenza {
  border: 2px solid #e0a106;
  background: linear-gradient(160deg, #fff8e1 0%, #ffe9b0 100%);
  color: #3a2a00;
  box-shadow: 0 6px 18px rgba(224, 161, 6, .28);
}
.cfa-scelta-btn.is-in-evidenza .cfa-scelta-sopra { opacity: .85; }
.cfa-scelta-btn.is-in-evidenza .cfa-scelta-sotto { color: #8a4b00; font-weight: 800; }
.cfa-scelte .cfa-scelta-btn.is-in-evidenza.is-scelta,
.cfa-scelte .cfa-scelta-btn.is-in-evidenza:has(input:checked) {
  border-color: #f22b8c;
  background: #f22b8c;
  color: #fff;
  box-shadow: 0 6px 18px rgba(242, 43, 140, .35);
}
.cfa-scelta-btn.is-in-evidenza.is-scelta .cfa-scelta-sotto,
.cfa-scelta-btn.is-in-evidenza:has(input:checked) .cfa-scelta-sotto { color: #fff; }

.cfa-scelta-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -55%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #0f7a3d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 122, 61, .35);
}
.cfa-punto-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dff9f;
  box-shadow: 0 0 0 0 rgba(125, 255, 159, .7);
  animation: cfa-pulsa 1.6s ease-out infinite;
}
@keyframes cfa-pulsa {
  0% { box-shadow: 0 0 0 0 rgba(125, 255, 159, .7); }
  70% { box-shadow: 0 0 0 6px rgba(125, 255, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 255, 159, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cfa-punto-online { animation: none; }
}
/* L'etichetta deve stare dentro il pulsante anche a 360px (pulsante ~86px). */
.cfa-scelta-badge { padding: 2px 6px; gap: 4px; font-size: 9.5px; letter-spacing: 0; }
.cfa-punto-online { width: 6px; height: 6px; }
