/* AI Clone LS — home "cyber". Foglio separato: si carica DOPO site.css e vale solo per body.home,
   così le altre pagine (supporto, cookie, ritorno PayPal) restano com'erano.
   Due temi: .tema-scuro (l'effetto neon) e .tema-chiaro (sobrio, stessa struttura). */

.home {
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --ok: #10b981;
  --radius: 24px;
}

.tema-scuro body.home {
  --page: #03050f;
  --surface: rgba(13, 17, 39, .72);
  --surface-2: rgba(0, 0, 0, .35);
  --line: rgba(255, 255, 255, .08);
  --line-forte: rgba(255, 255, 255, .2);
  --txt: #ffffff;
  --muted: #94a3b8;
  --body-soft: #cbd5e1;
  --glow: 0 0 30px rgba(139, 92, 246, .35);
}

.tema-chiaro body.home {
  --page: #f5f6fd;
  --surface: rgba(255, 255, 255, .9);
  --surface-2: #ffffff;
  --line: rgba(16, 22, 48, .1);
  --line-forte: rgba(16, 22, 48, .22);
  --txt: #0f1533;
  --muted: #5f6884;
  --body-soft: #3c4566;
  --purple: #6d28d9;
  --cyan: #0e7490;
  --pink: #be185d;
  --ok: #047857;
  --glow: 0 10px 30px -18px rgba(24, 32, 66, .5);
}

.home body, body.home { background: var(--page); color: var(--txt); }
.home .wrap { max-width: 1200px; padding: 0 24px 60px; }

/* sfondo: griglia + aloni (solo tema scuro, in chiaro sarebbero sporcizia) */
.sfondo-griglia, .alone { position: fixed; z-index: -1; pointer-events: none; }
.sfondo-griglia {
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, .06) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 15%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 30%, #000 15%, transparent 75%);
}
.alone { width: 620px; height: 620px; border-radius: 50%; filter: blur(120px); opacity: .38; }
.alone-1 { background: var(--purple); top: -12%; left: -12%; }
.alone-2 { background: var(--cyan); bottom: -14%; right: -12%; }
.tema-chiaro .sfondo-griglia, .tema-chiaro .alone { display: none; }

/* header */
.home header {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 22px 0; border-bottom: 1px solid var(--line); margin-bottom: 0;
}
.home .logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 8px 22px -12px var(--purple);
}
.home .logo img { width: 100%; height: 100%; }
.home .marchio { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--txt); }

/* hero */
.hero { text-align: center; padding: 72px 0 48px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.04; letter-spacing: -.035em;
  margin: 0 0 22px; font-weight: 800;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--cyan), var(--purple), var(--pink));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sfumatura 6s linear infinite;
}
@keyframes sfumatura { to { background-position: 200% center; } }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.azioni { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primario, .btn-secondo {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px;
  border-radius: 99px; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer; font-family: inherit;
}
.tema-scuro .btn-primario { background: #fff; color: #03050f; }
.tema-chiaro .btn-primario { background: var(--txt); color: #fff; }
.btn-primario:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -16px var(--purple); }
.btn-secondo { background: var(--surface); color: var(--txt); border-color: var(--line-forte); }
.btn-secondo:hover { border-color: var(--cyan); transform: translateY(-2px); }
.btn-primario .icona, .btn-secondo .icona { width: 18px; height: 18px; }

/* titoli di sezione */
.sezione { margin: 70px 0; }
.intestazione { text-align: center; margin-bottom: 44px; }
.intestazione h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin: 0 0 10px; letter-spacing: -.02em; }
.intestazione p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ── demo audio ─────────────────────────────────────────────────────────────── */
.terminale {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-bottom: 20px; position: relative; overflow: hidden;
  backdrop-filter: blur(16px); box-shadow: var(--glow);
}
.terminale::before {
  content: ''; position: absolute; top: 0; left: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scansione 3.5s linear infinite;
}
@keyframes scansione { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.terminale-testa { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.spia { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulsa 2s infinite; }
@keyframes pulsa { 50% { opacity: .35; } }
.terminale-testa span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; color: var(--cyan); letter-spacing: .04em; }

.voci { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.voce {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.voce:hover { border-color: color-mix(in srgb, var(--purple) 55%, transparent); }
.voce.playing { border-color: var(--cyan); box-shadow: 0 0 22px -8px var(--cyan); }
.voce-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.voce-nome { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.voce-nome .icona { width: 17px; height: 17px; color: var(--purple); }
.play {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: var(--txt); display: inline-flex;
  align-items: center; justify-content: center; transition: background .2s ease, box-shadow .2s ease;
}
.tema-chiaro .play { background: color-mix(in srgb, var(--purple) 12%, #fff); }
.voce:hover .play, .voce.playing .play { background: var(--purple); color: #fff; box-shadow: 0 0 16px -4px var(--purple); }
.play .icona { width: 16px; height: 16px; }
.play:disabled { opacity: .45; cursor: not-allowed; }
.onda { display: flex; align-items: flex-end; gap: 4px; height: 26px; opacity: .32; transition: opacity .2s ease; }
.voce.playing .onda { opacity: 1; }
.onda span { flex: 1; height: 30%; background: var(--cyan); border-radius: 2px; }
.voce.playing .onda span { animation: eq 1s infinite alternate ease-in-out; }
.onda span:nth-child(2) { animation-delay: .18s; }
.onda span:nth-child(3) { animation-delay: .36s; }
.onda span:nth-child(4) { animation-delay: .09s; }
.onda span:nth-child(5) { animation-delay: .27s; }
.onda span:nth-child(6) { animation-delay: .45s; }
.onda span:nth-child(7) { animation-delay: .15s; }
.onda span:nth-child(8) { animation-delay: .33s; }
@keyframes eq { from { height: 22%; } to { height: 100%; } }
.voce-nota { font-size: 11px; color: var(--muted); margin: 8px 0 0; display: none; }
.voce.senza-file .voce-nota { display: block; }
.voce.senza-file .onda { opacity: .12; }

/* ── vantaggi (bento) ──────────────────────────────────────────────────────── */
.vantaggi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vantaggio {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden; backdrop-filter: blur(10px);
  transition: transform .25s ease, border-color .25s ease;
}
.vantaggio:hover { transform: translateY(-4px); border-color: var(--line-forte); }
.vantaggio.largo { grid-column: span 2; }
.vantaggio h3 { font-size: 1.2rem; margin: 0 0 10px; color: var(--txt); }
.vantaggio p { color: var(--muted); margin: 0; font-size: .95rem; }
.icona-scatola {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--purple) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--purple) 30%, transparent);
  color: var(--purple); margin-bottom: 18px;
}
.icona-scatola .icona { width: 22px; height: 22px; }

/* ── prezzi: struttura nostra, pelle cyber ─────────────────────────────────── */
.home .grid { grid-template-columns: 1fr; gap: 20px; margin: 0 0 22px; }
@media (min-width: 780px) { .home .grid { grid-template-columns: repeat(3, 1fr); } }
.home .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; backdrop-filter: blur(10px); box-shadow: none;
}
.home .card:hover { transform: translateY(-6px); }
.home .card.hot {
  border-color: var(--purple);
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--purple) 14%, transparent) 100%);
  box-shadow: 0 0 44px -18px var(--purple);
}
.home .card .small { color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.home .price { font-size: 2.7rem; font-weight: 800; margin: 12px 0 8px; align-items: baseline; display: flex; gap: 6px; }
.home .price .small { font-size: .95rem; letter-spacing: 0; font-weight: 500; }
.home .poi { color: var(--cyan); font-size: .84rem; margin: 0 0 4px; }
.home .poi .icona { width: 13px; height: 13px; }
.home .risparmio { background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); font-size: .78rem; margin-bottom: 22px; }
.home .card ul { list-style: none; padding: 0; margin: 0 0 26px; color: var(--body-soft); }
.home .card ul li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .93rem; }
.home .card ul li::before {
  content: ''; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; border-radius: 4px;
  background: var(--cyan); opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home form[action*="paypal.com"] { display: block; margin-top: auto; }
.home form[action*="paypal.com"] button.buy {
  width: 100%; border-radius: 12px; padding: 14px 16px; font-size: .98rem;
  background: var(--surface-2); border: 1px solid var(--line-forte); color: var(--txt);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.tema-chiaro .home form[action*="paypal.com"] button.buy, .tema-chiaro.home form[action*="paypal.com"] button.buy { background: #fff; }
.home form[action*="paypal.com"] button.buy:hover { border-color: var(--cyan); box-shadow: 0 0 22px -12px var(--cyan); transform: none; }
.home .card.hot form[action*="paypal.com"] button.buy {
  background: var(--purple); border-color: var(--purple); color: #fff;
}
.home .card.hot form[action*="paypal.com"] button.buy:hover { background: color-mix(in srgb, var(--purple) 85%, #000); box-shadow: 0 0 26px -10px var(--purple); }
.home .badge {
  background: linear-gradient(90deg, var(--purple), var(--pink)); top: -13px;
  font-size: .74rem; letter-spacing: .12em; box-shadow: 0 0 22px -6px var(--purple);
}

/* ── FAQ + footer in stile home ────────────────────────────────────────────── */
.home .faq { margin: 70px 0; }
.home .faq h2 { text-align: center; font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; margin: 0 0 30px; }
.home .faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; margin-bottom: 12px; backdrop-filter: blur(10px);
}
.home .faq details:hover { border-color: var(--line-forte); }
.home .faq summary {
  /* flex: serve perché `margin-left: auto` del '+' spinga il segno a destra.
     Senza flex il '+' resta attaccato alla domanda (era il difetto). */
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem; font-weight: 600; color: var(--txt);
  cursor: pointer;
  list-style: none;                      /* via il triangolino di sistema */
}
.home .faq summary::-webkit-details-marker { display: none; }
.home .faq summary::after {
  content: '+';
  margin-left: auto;
  color: var(--cyan);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: transform .2s ease;
}
.home .faq details[open] summary::after { content: '\2212'; }
.home .faq details p { color: var(--muted); margin: 14px 0 0; }

.home footer {
  border-top: 1px solid var(--line); margin-top: 70px; padding-top: 26px;
  color: var(--muted); font-size: .9rem;
}
.home footer a { color: var(--muted); }
.home footer a:hover { color: var(--txt); }

/* comparsa morbida: solo classi, nessuno stile in linea */
.home .rivela { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.home .rivela.visibile { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .vantaggi { grid-template-columns: 1fr; }
  .vantaggio.largo { grid-column: span 1; }
  .hero { padding: 60px 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .home .rivela { opacity: 1; transform: none; transition: none; }
  .terminale::before, .spia, .hero h1 span, .voce.playing .onda span { animation: none; }
}

/* icone play/pausa nello stesso bottone: cambia solo lo stato della scheda */
.icona-pausa { display: none; }
.voce.playing .icona-play { display: none; }
.voce.playing .icona-pausa { display: inline; }

/* nota sotto i prezzi */
.nota-acquisto { text-align: center; color: var(--muted); font-size: .85rem; max-width: 700px; margin: 0 auto; }
.nota-acquisto strong { color: var(--txt); }

/* link con icona nel footer */
.home footer a.con-icona { display: inline-flex; align-items: center; gap: 6px; }
.home footer a.con-icona .icona { width: 14px; height: 14px; }
