/* Corpo umano: stile comune a home e pagina prodotto (clonato da Mysteria il 03/12/2026).
   Colori della pagina Instagram: blu notte e azzurro, Oswald per i titoli e Inter per i testi.
   Il popup di pagamento segue gli stessi colori. */
:root {
  --night: #050E1A;
  --night-2: #0A1A2D;
  --violet: #0E4F9E;
  --violet-light: #7CC4FF;
  --ivory: #EAF2FA;
  --ivory-dim: rgba(234,242,250,0.72);
  --gold: #3FB6FF;
  --gold-light: #A8DCFF;
  --gold-dark: #1E6FB8;
  --wax: #8C1D1D;
  --line: rgba(63,182,255,0.22);
  --parch: #f6f0e4;
  --parch-2: #ece2cf;
  --ink: #1c140c;
  --ink-dim: #6b5a45;
  --deco: 'Oswald', 'Arial Narrow', sans-serif;
  --cinzel: 'Inter', system-ui, sans-serif;
  --serif: 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
}
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; }
body { font-family:var(--serif); background:var(--night); color:var(--ivory); font-size:18px; line-height:1.6; overflow-x:hidden;
  background-image:radial-gradient(ellipse 90% 520px at 50% 0, rgba(14,79,158,0.55), transparent 70%); background-repeat:no-repeat; }
a { color:inherit; }
img { display:block; max-width:100%; height:auto; }

/* Comparsa morbida */
.reveal { opacity:0; transform:translateY(14px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* Pulsante d'acquisto: prezzo dentro, su una seconda riga più piccola */
.cta-btn { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; padding:14px 20px; border:1px solid var(--gold-light); border-radius:10px;
  background:linear-gradient(180deg, #6CCBFF 0%, var(--gold) 55%, #1C8FE0 100%); color:#031222; font-family:var(--cinzel); cursor:pointer; -webkit-appearance:none;
  box-shadow:0 8px 28px rgba(63,182,255,0.22); transition:transform .15s ease, box-shadow .15s ease; text-decoration:none; }
.cta-btn:hover { transform:translateY(-1px); box-shadow:0 10px 34px rgba(63,182,255,0.34); }
.cta-btn .btn-main { font-size:17px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; line-height:1.2; }
.cta-btn .btn-price { font-family:var(--sans); font-size:14px; font-weight:700; letter-spacing:.5px; margin-top:3px; opacity:.85; }
.cta-btn .btn-price:empty { display:none; }

/* LIBRO IN 3D (mockup): copertina vera + pagine sul lato + dorso in ombra. Tutto CSS, niente immagini in più. */
.book3d { --w:200px; --t:16px; width:var(--w); height:calc(var(--w) * 1.4145); perspective:1500px; margin:0 auto; position:relative; flex-shrink:0; isolation:isolate; }
.book3d::after { content:""; position:absolute; left:6%; right:-4%; bottom:-16px; height:26px; background:radial-gradient(closest-side, rgba(0,0,0,0.75), transparent); z-index:-1; }
.book3d-body { position:relative; width:100%; height:100%; transform-style:preserve-3d; transform:rotateY(-30deg) rotateX(3deg); transition:transform .6s ease; }
.book-card:hover .book3d-body, .hero-cover:hover .book3d-body { transform:rotateY(-20deg) rotateX(2deg); }
.book3d-front { position:absolute; inset:0; transform:translateZ(calc(var(--t) / 2)); border-radius:2px 4px 4px 2px; overflow:hidden; box-shadow:0 0 0 1px rgba(63,182,255,0.18); }
.book3d-front img { width:100%; height:100%; object-fit:cover; }
.book3d-front::after { content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(90deg, rgba(0,0,0,0.55) 0, rgba(255,255,255,0.14) 2.2%, rgba(0,0,0,0.2) 4%, transparent 9%, transparent 70%, rgba(255,255,255,0.07) 100%); }
.book3d-body::before { content:""; position:absolute; top:3px; left:0; width:var(--t); height:calc(100% - 6px);
  transform:translateX(calc(var(--w) - var(--t) / 2 - 3px)) rotateY(90deg);
  background:repeating-linear-gradient(90deg, #f2f4f7 0, #f2f4f7 1px, #d5dbe3 1px, #d5dbe3 2px); box-shadow:inset 0 0 6px rgba(0,0,0,0.35); }
.book3d-body::after { content:""; position:absolute; inset:0; transform:translateZ(calc(var(--t) / -2)); background:#040B15; border-radius:2px 4px 4px 2px;
  box-shadow:-18px 10px 50px 6px rgba(0,0,0,0.7), 0 0 60px 10px rgba(14,79,158,0.35); }
.book3d-sm { --w:176px; --t:14px; }
.book3d-lg { --w:220px; --t:17px; }
@media (min-width:860px) { .book3d-lg { --w:300px; --t:22px; } }
@media (min-width:561px) { .book3d-sm { --w:190px; } }
@media (prefers-reduced-motion: reduce) { .book3d-body { transition:none; } }

/* HOME: nome piccolo in alto, il libro si vede appena apri */
.brand-hero { display:flex; align-items:center; justify-content:center; gap:12px; padding:18px 20px 8px; text-align:left; }
.brand-medal { width:46px; height:46px; filter:drop-shadow(0 0 14px rgba(63,182,255,0.25)); }
.brand-name { font-family:var(--deco); font-weight:900; font-size:30px; letter-spacing:2px; color:var(--gold); line-height:1; text-shadow:0 0 22px rgba(124,196,255,0.35); }
.brand-claim { font-style:italic; font-size:15px; color:var(--ivory-dim); margin-top:3px; }
.wrap { max-width:620px; margin:0 auto; padding:8px 18px 56px; }
.eyebrow { text-align:center; font-family:var(--cinzel); font-weight:600; font-size:13px; letter-spacing:3px; text-transform:uppercase; color:var(--gold); margin-bottom:18px; }
.book-card { display:flex; gap:30px; align-items:center; text-decoration:none; background:linear-gradient(160deg, rgba(14,79,158,0.28), rgba(10,26,45,0.9) 60%); border:1px solid var(--line); border-radius:14px; padding:26px 24px 22px 30px; transition:border-color .2s; }
.book-card:hover { border-color:var(--gold-dark); }
.book-card-info { flex:1; min-width:0; }
.book-tag { display:inline-block; font-family:var(--sans); font-size:12px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--violet-light); border:1px solid rgba(124,196,255,0.35); border-radius:999px; padding:3px 11px; margin-bottom:10px; }
.book-title { font-family:var(--deco); font-weight:900; font-size:30px; line-height:1.1; color:var(--gold); }
.book-subtitle { font-style:italic; font-size:16px; color:var(--gold-light); margin-top:4px; line-height:1.35; }
.book-desc { margin-top:10px; color:var(--ivory-dim); font-size:16px; line-height:1.5; }
.book-price { display:block; margin:14px 0 12px; font-family:var(--sans); font-size:24px; font-weight:700; color:var(--gold-light); }
.book-card .cta-btn { padding:12px 16px; }
.book-card .cta-btn .btn-main { font-size:15px; }
@media (max-width:560px) {
  .book-card { flex-direction:column; gap:26px; text-align:center; padding:22px 18px 20px; }
}
.about { margin-top:52px; text-align:center; }
.about p { color:var(--ivory-dim); }
.text-link { display:inline-block; margin-top:12px; color:var(--gold); text-decoration:none; font-family:var(--sans); font-weight:700; }

/* PAGINA PRODOTTO */
.product-header { position:sticky; top:0; z-index:50; display:flex; align-items:center; justify-content:space-between; padding:9px 16px; background:rgba(5,14,26,0.9); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
.product-back { width:38px; height:38px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:50%; color:var(--gold); text-decoration:none; font-size:18px; }
.product-brand { display:flex; align-items:center; gap:8px; text-decoration:none; font-family:var(--deco); font-weight:700; font-size:18px; letter-spacing:1px; color:var(--gold); }
.product-brand img { width:34px; height:34px; }
.header-spacer { width:38px; }
.product-hero { max-width:980px; margin:0 auto; padding:24px 20px 6px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:30px; }
.hero-cover { position:relative; isolation:isolate; }
.hero-cover::before { content:""; position:absolute; inset:-18% -40%; background:radial-gradient(closest-side, rgba(124,196,255,0.34), rgba(14,79,158,0.2) 55%, transparent); z-index:-2; }
.hero-info { max-width:500px; }
.product-title { font-family:var(--deco); font-weight:900; font-size:clamp(38px,10vw,56px); line-height:1; color:var(--gold); letter-spacing:2px; text-shadow:0 0 30px rgba(124,196,255,0.3); }
.product-subtitle { font-style:italic; font-size:18px; color:var(--gold-light); margin:8px 0 12px; }
.product-tagline { color:var(--ivory-dim); font-size:17px; margin-bottom:18px; }
.hero-note { font-family:var(--sans); font-size:14px; color:var(--ivory-dim); margin-top:10px; text-align:center; }
@media (min-width:860px) {
  .product-hero { flex-direction:row; text-align:left; gap:72px; padding-top:48px; justify-content:center; }
  .hero-cover { flex-shrink:0; }
  .hero-info .cta-btn { max-width:360px; }
  .hero-info .hero-note { text-align:left; }
}
.product-content { max-width:600px; margin:0 auto; padding:20px 18px 36px; }
.quote { margin:18px 0 8px; padding:6px 0 6px 20px; border-left:2px solid var(--gold); }
.quote p { font-style:italic; font-size:19px; line-height:1.5; color:var(--ivory); }
.quote cite { display:block; margin-top:10px; font-style:normal; font-family:var(--cinzel); font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--gold); }
.section-title { font-family:var(--cinzel); font-weight:600; font-size:13px; letter-spacing:3px; text-transform:uppercase; color:var(--gold); margin:36px 0 12px; display:flex; align-items:center; gap:12px; }
.section-title::after { content:""; flex:1; height:1px; background:linear-gradient(90deg, var(--line), transparent); }
.product-description p { color:var(--ivory-dim); }
.product-description p + p { margin-top:14px; }
.parts { display:flex; flex-direction:column; gap:10px; }
.part { border:1px solid var(--line); border-radius:12px; padding:13px 16px; background:linear-gradient(160deg, rgba(14,79,158,0.22), rgba(10,26,45,0.6) 70%); }
.part-num { font-family:var(--cinzel); font-size:11px; letter-spacing:2.5px; text-transform:uppercase; color:var(--violet-light); }
.part h3 { font-family:var(--deco); font-weight:700; font-size:21px; color:var(--gold); line-height:1.2; margin:2px 0 4px; }
.part p { font-size:16.5px; color:var(--ivory-dim); line-height:1.55; }
.extras { list-style:none; }
.extras li { padding:12px 0 12px 26px; position:relative; border-bottom:1px solid var(--line); font-size:16.5px; color:var(--ivory-dim); line-height:1.5; }
.extras li::before { content:"✦"; position:absolute; left:2px; top:14px; color:var(--gold); font-size:12px; }
.extras li strong { display:block; font-weight:500; color:var(--ivory); font-size:18px; }
.faq details { border-bottom:1px solid var(--line); }
.faq summary { cursor:pointer; list-style:none; padding:15px 30px 15px 0; position:relative; font-weight:500; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; position:absolute; right:4px; top:12px; color:var(--gold); font-size:22px; font-family:var(--sans); }
.faq details[open] summary::after { content:"−"; }
.faq details p { padding:0 0 16px; color:var(--ivory-dim); font-size:16.5px; }
.final { margin-top:40px; text-align:center; padding:26px 20px 24px; border:1px solid var(--line); border-radius:14px; background:radial-gradient(ellipse at 50% 0, rgba(14,79,158,0.4), transparent 70%); }
.final img { width:64px; height:64px; margin:0 auto 10px; }
.final-line { font-style:italic; font-size:22px; color:var(--ivory); margin-bottom:20px; }
.final .cta-btn { max-width:360px; margin:0 auto; }

/* Barra fissa in basso (telefono): prezzo a sinistra, pulsante a destra */
.has-bar { padding-bottom:84px; }
.checkout-bar { position:fixed; bottom:0; left:0; right:0; background:rgba(10,26,45,.97); border-top:1px solid var(--line); padding:11px 16px; z-index:100; }
.checkout-bar-inner { max-width:620px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.checkout-price { display:block; font-family:var(--sans); font-size:22px; font-weight:700; color:var(--gold-light); line-height:1.1; }
.checkout-label { font-family:var(--sans); font-size:12.5px; color:var(--ivory-dim); }
.checkout-bar .cta-btn { width:auto; flex:1; max-width:230px; padding:13px 16px; }
.checkout-bar .cta-btn .btn-main { font-size:15px; }
@media (min-width:860px) { .checkout-bar { display:none; } .has-bar { padding-bottom:0; } }

/* FOOTER */
footer { border-top:1px solid var(--line); padding:28px 16px 32px; text-align:center; font-family:var(--sans); }
footer p { font-size:12px; color:rgba(234,242,250,0.45); }
.footer-links { display:flex; justify-content:center; flex-wrap:wrap; gap:14px; margin-top:10px; }
.footer-links a { color:rgba(234,242,250,0.55); text-decoration:none; font-size:13px; }
.footer-links a:hover { color:var(--gold); }

/* PAGAMENTO (popup creato da checkout.js): stessa struttura di Convincimi, colori delle copertine (blu notte, azzurro) */
@keyframes popIn { from { opacity:0; transform:scale(0.94) translateY(10px); } to { opacity:1; transform:none; } }
.payment-overlay { display:none; position:fixed; inset:0; background:rgba(2,6,12,0.8); z-index:2000; backdrop-filter:blur(6px); align-items:center; justify-content:center; padding:20px; }
.payment-overlay.active { display:flex; }
.payment-modal { background:#081628; background-image:radial-gradient(ellipse 120% 260px at 50% 0, rgba(14,79,158,0.45), transparent 75%); color:var(--ivory); width:100%; max-width:420px; border:1px solid rgba(63,182,255,0.35); border-radius:14px; overflow:hidden; box-shadow:0 20px 70px rgba(0,0,0,0.7), 0 0 50px rgba(14,79,158,0.35); animation:popIn 0.36s cubic-bezier(0.34,1.4,0.64,1) forwards; max-height:90vh; overflow-y:auto; font-family:var(--sans); }
.payment-header { border-bottom:1px solid var(--line); padding:18px 20px; display:flex; align-items:center; }
.payment-header h3 { font-family:var(--cinzel); font-size:14px; letter-spacing:2px; font-weight:600; color:var(--ivory); text-transform:uppercase; }
.payment-header .amount { font-family:var(--cinzel); font-weight:700; font-size:20px; white-space:nowrap; color:var(--gold-light); margin-left:auto; }
.payment-close { background:none; border:none; color:rgba(234,242,250,0.55); font-size:20px; cursor:pointer; margin-left:12px; }
.payment-body { padding:20px; }
.payment-summary { display:flex; align-items:center; gap:12px; background:rgba(14,79,158,0.25); border:1px solid rgba(124,196,255,0.3); border-radius:10px; padding:10px 12px; margin-bottom:18px; font-size:13px; color:var(--ivory-dim); line-height:1.4; }
.payment-summary strong { display:block; font-family:var(--deco); font-weight:700; color:var(--gold); font-size:16px; letter-spacing:1px; }
.field-label { font-size:12px; font-weight:700; color:var(--gold-light); letter-spacing:0.5px; display:block; margin-bottom:6px; }
.gd-email { width:100%; padding:14px; border:1.5px solid rgba(63,182,255,0.3); border-radius:10px; font-family:var(--sans); font-size:16px; color:var(--ivory); background:#0D2138; outline:none; }
.gd-email::placeholder { color:rgba(234,242,250,0.4); }
.gd-email:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(63,182,255,0.18); }
.gd-email.field-invalid { border-color:#ff6b5b; box-shadow:0 0 0 3px rgba(255,107,91,0.2); }
.in-wrap { position:relative; margin-bottom:14px; }
.in-err-mark { position:absolute; top:-9px; right:-9px; width:22px; height:22px; display:none; align-items:center; justify-content:center; background:#e5483a; color:#fff; border-radius:50%; font-size:13px; font-weight:800; z-index:3; }
.in-wrap.show-err .in-err-mark { display:flex; }
.gd-payment-element { min-height:60px; margin-bottom:16px; }
.consent-block { margin:4px 0 14px; display:flex; flex-direction:column; gap:10px; color:var(--ivory-dim); }
.consent-block.invalid { outline:1.5px solid #ff6b5b; outline-offset:7px; border-radius:6px; }
.consent-block label { display:flex; align-items:flex-start; gap:9px; font-size:12.5px; line-height:1.5; cursor:pointer; }
.consent-block input { margin-top:2px; width:16px; height:16px; flex-shrink:0; accent-color:var(--gold); cursor:pointer; }
.consent-block a { color:var(--gold-light); }
.consent-note { font-size:11.5px; line-height:1.45; color:rgba(234,242,250,0.55); }
.pay-btn { width:100%; padding:16px; background:linear-gradient(180deg, #6CCBFF 0%, var(--gold) 55%, #1C8FE0 100%); color:#031222; border:1px solid var(--gold-light); font-family:var(--cinzel); font-size:15px; font-weight:700; letter-spacing:2px; text-transform:uppercase; border-radius:10px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; -webkit-appearance:none; box-shadow:0 8px 28px rgba(63,182,255,0.22); }
.pay-btn:disabled { opacity:0.6; cursor:not-allowed; }
.spinner { width:16px; height:16px; border:2px solid rgba(3,18,34,0.3); border-top-color:#031222; border-radius:50%; animation:spin 0.7s linear infinite; display:none; }
.pay-btn.loading .spinner { display:block; }
.pay-btn.loading .btn-text { display:none; }
@keyframes spin { to { transform:rotate(360deg); } }
.pay-error { color:#ff8a7d; font-size:13px; text-align:center; margin-top:10px; display:none; }
.pay-secure { text-align:center; margin-top:12px; font-size:11.5px; color:rgba(234,242,250,0.55); }
.pay-success { display:none; padding:32px 20px; text-align:center; }
.pay-success.active { display:block; }
.pay-success .icon { font-size:44px; margin-bottom:12px; }
.pay-success h3 { font-family:var(--deco); font-weight:700; font-size:28px; color:var(--gold); margin-bottom:8px; }
.pay-success p { font-size:14px; color:var(--ivory-dim); line-height:1.6; }
.dl-btn { display:block; margin:14px 0 10px; padding:14px 18px; border:1px solid var(--gold-light); border-radius:10px; background:linear-gradient(180deg, #6CCBFF 0%, var(--gold) 55%, #1C8FE0 100%); color:#031222; font-weight:700; text-decoration:none; text-align:center; }

/* Corpo umano: titoli Oswald maiuscoli, testi Inter, trilogia con tre copertine in fila (mai sovrapposte) */
.brand-name, .book-title, .product-title, .product-brand, .part h3, .payment-summary strong, .pay-success h3 { font-weight:700; text-transform:uppercase; letter-spacing:1px; text-shadow:none; }
.brand-name { font-size:30px; color:var(--ivory); }
.brand-claim, .book-subtitle, .product-subtitle, .quote p, .final-line { font-style:normal; }
.book-title { color:var(--ivory); font-size:30px; }
.book-subtitle { color:var(--gold-light); font-weight:500; }
.product-title { font-size:clamp(40px,11vw,64px); line-height:1.02; color:var(--ivory); }
.product-subtitle { color:var(--gold-light); font-weight:500; }
.product-brand { color:var(--ivory); font-size:17px; }
.part h3 { color:var(--gold-light); font-size:20px; }
.quote p { font-weight:500; font-size:20px; }
.final-line { font-family:var(--deco); font-weight:600; font-size:24px; text-transform:uppercase; letter-spacing:.5px; line-height:1.25; }
.extras li::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--gold); top:22px; }
.extras li strong { font-weight:600; }
.faq summary { font-weight:600; }
.wrap > .book-card + .book-card { margin-top:16px; }

.trio { display:flex; gap:10px; justify-content:center; flex-shrink:0; }
.trio img { width:78px; border-radius:3px; box-shadow:0 10px 26px rgba(0,0,0,.55), 0 0 0 1px rgba(63,182,255,.18); }
.hero-trio .trio { gap:14px; }
.hero-trio .trio img { width:min(27vw,150px); }
.bundle-card { position:relative; border-color:rgba(63,182,255,.55); background:linear-gradient(160deg, rgba(14,79,158,0.45), rgba(10,26,45,0.92) 65%); box-shadow:0 0 40px rgba(14,79,158,.35); }
.bundle-badge { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--gold); color:#031222; font-family:var(--sans); font-size:12px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; padding:4px 12px; border-radius:999px; white-space:nowrap; }
.bundle-card .book-desc span { white-space:nowrap; }
.bundle-promo { display:block; margin-top:34px; padding:18px 18px 16px; border:1px solid rgba(63,182,255,.45); border-radius:14px; background:linear-gradient(160deg, rgba(14,79,158,.35), rgba(10,26,45,.7) 70%); text-decoration:none; }
.bundle-kicker { display:block; font-family:var(--deco); font-weight:700; font-size:20px; text-transform:uppercase; letter-spacing:1px; color:var(--ivory); }
.bundle-text { display:block; margin-top:4px; color:var(--ivory-dim); font-size:16.5px; line-height:1.5; }
.bundle-text strong { color:var(--gold-light); }
.bundle-promo .text-link { margin-top:8px; }
.part-link { display:block; text-decoration:none; transition:border-color .2s; }
.part-link:hover { border-color:var(--gold-dark); }
@media (min-width:561px) { .bundle-card .trio img { width:92px; } }
.bundle-card { margin-top:20px; }

/* Elenco dei capitoli (pagine prodotto) */
.chapters { list-style: none; counter-reset: cap; margin: 0 0 8px; padding: 0; }
.chapters li { counter-increment: cap; display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(124,196,255,.14); font-size: 16px; line-height: 1.45; }
.chapters li::before { content: counter(cap, decimal-leading-zero); font-family: var(--deco); font-weight: 600; color: #3FB6FF; min-width: 26px; font-size: 15px; letter-spacing: .04em; }
.chapters li:last-child { border-bottom: 0; }
.chapters li.bonus::before { content: 'Bonus'; min-width: auto; font-size: 12px; text-transform: uppercase; }
