/* ===== VARIABILI / BRAND ===== */
:root{
  --bg:#FFFFFF;
  --bg-2:#F3F3F3;
  --surface:#FFFFFF;
  --surface-2:#F3F3F3;
  --line:rgba(0,0,0,.10);
  --text:#0A0C10;
  --muted:#6B7280;
  --gold:#EEBA4D;
  --gold-2:#C99A2E;
  --silver:#3A3F4A;
  --radius:18px;
  --maxw:1180px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;background:var(--bg)}
body{
  font-family:'Inter',system-ui,sans-serif;
  background:transparent;
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,.font-head{font-family:'Sora','Inter',sans-serif;letter-spacing:-.02em;line-height:1.1}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.gold{
  background:linear-gradient(135deg,#F3D27A 0%,var(--gold) 40%,var(--gold-2) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.muted{color:var(--muted)}
section{position:relative}

/* ===== BOTTONI ===== */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:13px 24px;border-radius:999px;font-weight:600;font-size:15px;
  cursor:pointer;border:1px solid transparent;transition:.25s;white-space:nowrap;
}
.btn-gold{
  background:linear-gradient(135deg,#F3D27A,var(--gold-2));
  color:#1a1407;box-shadow:0 8px 30px rgba(238,186,77,.25);
}
.btn-gold:hover{transform:translateY(-2px);box-shadow:0 12px 38px rgba(238,186,77,.4)}
.btn-ghost{background:rgba(0,0,0,.03);border-color:var(--line);color:var(--text)}
.btn-ghost:hover{background:rgba(0,0,0,.06);border-color:rgba(238,186,77,.5)}

/* ===== NAV ===== */
header{position:fixed;top:0;left:0;right:0;z-index:100;transition:.3s}
header.scrolled{background:rgba(255,255,255,.85);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
nav{display:flex;align-items:center;justify-content:space-between;height:72px}
.brand{display:flex;align-items:center;gap:11px;font-family:'Montserrat',sans-serif;font-weight:800;font-size:16px;letter-spacing:.04em}
.brand img{width:42px;height:42px;border-radius:0;object-fit:contain}
/* stile logo: MONEYMIND grassetto + ACADEMY leggero */
.brand b,.logo-top b{font-weight:800}
.brand .ac,.logo-top .ac{font-weight:600;letter-spacing:.10em}
.nav-links{display:flex;align-items:center;gap:32px}
.nav-links a{font-size:15px;color:var(--muted);transition:.2s}
.nav-links a:hover{color:var(--text)}
.nav-cta{display:flex;align-items:center;gap:12px}
.burger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:8px}
.burger span{width:24px;height:2px;background:var(--text);border-radius:2px;transition:.3s}

/* ===== HERO ===== */
.hero{padding:160px 0 90px;text-align:center;overflow:hidden;position:relative}
/* Sfondo candele scorrevole (loop a specchio: continuo, senza salti) */
.candle-bg{display:none;position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none;opacity:.42;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 16%,#000 84%,transparent);
          mask-image:linear-gradient(to bottom,transparent,#000 16%,#000 84%,transparent)}
.candle-track{display:flex;height:100%;width:max-content;animation:candleScroll 70s linear infinite;will-change:transform}
.candle-track img{height:100%;width:auto;display:block;flex:none}
.candle-track img:nth-child(even){transform:scaleX(-1)}
@keyframes candleScroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.candle-track{animation:none}}
.hero::before{
  content:"";position:absolute;top:-200px;left:50%;transform:translateX(-50%);
  width:900px;height:900px;border-radius:50%;
  background:radial-gradient(circle,rgba(238,186,77,.13) 0%,transparent 60%);
  pointer-events:none;
}
.hero-badge{
  display:inline-flex;align-items:center;gap:8px;padding:7px 16px;border-radius:999px;
  border:1px solid var(--line);background:rgba(0,0,0,.02);font-size:13px;color:var(--silver);
  margin-bottom:28px;
}
.dot{width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 10px var(--gold)}
.hero h1{font-size:clamp(34px,6vw,64px);font-weight:800;max-width:880px;margin:0 auto 22px}
.hero p.sub{font-size:clamp(16px,2.2vw,20px);color:var(--muted);max-width:600px;margin:0 auto 38px}
.hero-cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.trust-row{margin-top:16px;font-size:13px;color:var(--muted)}
.trust-row .star{color:var(--gold-2)}
.trust-row .sep{margin:0 6px;opacity:.5}
.hero-visual{
  margin:70px auto 0;max-width:920px;border-radius:22px;overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(238,186,77,.06);
  position:relative;
}
.hero-visual img{width:100%;display:block}

/* ===== STATS ===== */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding:64px 0;border-bottom:1px solid var(--line)}
.stat{text-align:center}
.stat .num{font-family:'Sora';font-weight:800;font-size:clamp(28px,4vw,42px)}
.stat .lbl{color:var(--muted);font-size:14px;margin-top:4px}

/* ===== SECTION TITLE ===== */
.sec{padding:100px 0}
.sec-head{text-align:center;max-width:680px;margin:0 auto 60px}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-2);margin-bottom:14px}
.sec-head h2{font-size:clamp(28px,4.5vw,46px);font-weight:800;margin-bottom:16px}
.sec-head p{color:var(--muted);font-size:17px}

/* ===== PRODOTTI ===== */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
/* coverflow 3D (attivato via JS allo scroll) */
#prodotti{padding:64px 0 56px}
#prodotti .sec-head{margin-bottom:54px}
.deck{position:relative;height:900px;perspective:2000px;perspective-origin:50% 30%;transform-style:preserve-3d}
#prodotti .deck > *{position:absolute;left:50%;top:60px;width:580px;height:720px;border-radius:26px;backface-visibility:hidden;will-change:transform,opacity,filter;box-shadow:0 24px 60px rgba(0,0,0,.14);overflow:hidden;transition:box-shadow .45s ease;pointer-events:none;cursor:pointer}
/* card centrale in primo piano: bagliore dorato soffuso (niente bordo netto) + unica cliccabile */
#prodotti .deck > *.is-front{box-shadow:0 30px 70px rgba(0,0,0,.18),0 10px 45px rgba(238,186,77,.30);pointer-events:auto}
/* area di click invisibile sopra la card in primo piano (sempre cliccabile) */
#prodotti .deck .deck-hit{position:absolute;left:50%;top:60px;width:560px;height:700px;transform:translateX(-50%);z-index:500;cursor:pointer;border-radius:26px;background:transparent;pointer-events:auto;box-shadow:none}
/* contenuto ingrandito nelle card del coverflow (dimensione raddoppiata) */
#prodotti .deck .card{padding:48px}
#prodotti .deck .card .ic{width:80px;height:80px;border-radius:19px;margin-bottom:26px}
#prodotti .deck .card .ic svg{width:40px;height:40px}
#prodotti .deck .card h3{font-size:32px;margin-bottom:16px}
#prodotti .deck .card p{font-size:19px;line-height:1.55;margin-bottom:26px}
#prodotti .deck .card .link{font-size:18px}
#prodotti .deck .card .tag{top:26px;right:26px;font-size:14px;padding:6px 15px}
/* card che usa un'immagine intera (immagine prodotto) */
.card-photo{padding:0;border:none;background:#F3F3F3;overflow:hidden}
.card-photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
#prodotti .deck .card-photo{padding:0;border:none;background:#F3F3F3}
/* zoom leggero: la cornice dorata del PNG arriva al bordo, sparisce il margine nero */
#prodotti .deck .card-photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
/* riflesso di luce che scorre sulla card centrale */
#prodotti .deck .card-photo::before{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;
  background:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.16) 47%,rgba(255,255,255,.04) 53%,transparent 63%);
  transform:translateX(-130%);
}
#prodotti .deck > *.is-front::before{opacity:1;animation:sheen 5s ease-in-out infinite}
@keyframes sheen{0%{transform:translateX(-130%)}60%,100%{transform:translateX(130%)}}
.card{
  background:linear-gradient(180deg,var(--surface),var(--bg-2));
  border:1px solid var(--line);border-radius:var(--radius);padding:30px;
  transition:.3s;position:relative;overflow:hidden;
}
.card:hover{transform:translateY(-8px);border-color:rgba(238,186,77,.45);box-shadow:0 18px 44px rgba(0,0,0,.10)}
a.card{display:block}
.card .ic{
  width:52px;height:52px;border-radius:13px;display:grid;place-items:center;font-size:24px;
  background:linear-gradient(135deg,rgba(238,186,77,.18),rgba(238,186,77,.04));
  border:1px solid rgba(238,186,77,.2);margin-bottom:20px;
}
.ic svg{width:26px;height:26px;stroke:var(--gold);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pillar .ic svg{width:40px;height:40px}
.card h3{font-size:21px;font-weight:700;margin-bottom:10px}
.card p{color:var(--muted);font-size:15px;margin-bottom:20px}
.card .link{font-size:14px;font-weight:600;color:var(--gold-2);display:inline-flex;gap:6px;transition:.2s}
.card:hover .link{gap:11px}
.tag{position:absolute;top:20px;right:20px;font-size:11px;font-weight:600;padding:4px 10px;border-radius:999px;background:rgba(238,186,77,.12);color:var(--gold);border:1px solid rgba(238,186,77,.25)}

/* ===== PILLARS ===== */
.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:40px}
.pillar{text-align:center}
.pillar .ic{font-size:34px;margin-bottom:16px}
.pillar h3{font-size:20px;margin-bottom:10px}
.pillar p{color:var(--muted);font-size:15px}

/* ===== STEPS ===== */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.step{padding:30px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.step .n{font-family:'Sora';font-weight:800;font-size:15px;color:var(--gold-2);letter-spacing:.1em;margin-bottom:18px}
.step h3{font-size:19px;margin-bottom:10px}
.step p{color:var(--muted);font-size:15px}

/* ===== TESTIMONIALS ===== */
.quotes{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.quote{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px}
.quote p{font-size:15px;margin-bottom:20px}
.quote .who{display:flex;align-items:center;gap:12px}
.quote .av{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold-2));display:grid;place-items:center;font-weight:700;color:#1a1407}
.quote .who b{font-size:14px}
.quote .who span{font-size:13px;color:var(--muted);display:block}
.stars{color:var(--gold);font-size:14px;margin-bottom:14px;letter-spacing:2px}

/* ===== CTA BAND ===== */
.cta-band{
  margin:0 24px;border-radius:28px;padding:70px 30px;text-align:center;position:relative;overflow:hidden;
  background:linear-gradient(135deg,rgba(238,186,77,.14),rgba(201,154,46,.05));
  border:1px solid rgba(238,186,77,.22);
}
.cta-band h2{font-size:clamp(28px,4.5vw,44px);font-weight:800;margin-bottom:18px;max-width:640px;margin-inline:auto}
.cta-band p{color:var(--muted);font-size:17px;margin-bottom:34px;max-width:520px;margin-inline:auto}

/* ===== FAQ ===== */
.faq-wrap{max-width:780px;margin:0 auto}
.faq{border:1px solid var(--line);border-radius:14px;margin-bottom:14px;background:var(--surface);overflow:hidden}
.faq-q{padding:22px 26px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-weight:600;font-size:16px;gap:16px}
.faq-q .pl{color:var(--gold);font-size:22px;transition:.3s;flex-shrink:0}
.faq.open .faq-q .pl{transform:rotate(45deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease;color:var(--muted);font-size:15px}
.faq-a div{padding:0 26px 24px}

/* ===== FOOTER ===== */
footer{border-top:1px solid var(--line);padding:64px 0 32px;margin-top:40px}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:40px;margin-bottom:48px}
.foot-brand .brand{margin-bottom:16px}
.foot-brand p{color:var(--muted);font-size:14px;max-width:300px}
.foot-col h4{font-size:14px;margin-bottom:18px;font-family:'Sora'}
.foot-col a{display:block;color:var(--muted);font-size:14px;margin-bottom:12px;transition:.2s}
.foot-col a:hover{color:var(--gold)}
.socials{display:flex;gap:12px;margin-top:18px}
.socials a{width:38px;height:38px;border-radius:10px;border:1px solid var(--line);display:grid;place-items:center;transition:.2s;font-size:16px}
.socials a{color:var(--muted)}
.socials a:hover{border-color:var(--gold);color:var(--gold);background:rgba(238,186,77,.08)}
.socials a svg{width:18px;height:18px;fill:currentColor;display:block}
.foot-bottom{border-top:1px solid var(--line);padding-top:26px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.foot-bottom p{color:var(--muted);font-size:13px}
.foot-bottom a{color:inherit;transition:.2s}
.foot-bottom a:hover{color:var(--gold-2)}
.disclaimer{font-size:12px;color:#5d6373;line-height:1.7;margin-top:22px;max-width:960px}
.disclaimer p{font-size:12px;color:#5d6373;line-height:1.7;margin:0 0 10px}
.disclaimer p:last-child{margin-bottom:0}
.disclaimer strong{color:var(--text);font-weight:700}

/* ===== PAGINE PRODOTTO ===== */
.forwho-wrap{max-width:760px;margin:0 auto;display:grid;gap:14px}
.chk{display:flex;gap:14px;align-items:flex-start;padding:18px 22px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.chk .tick{color:#3ecf8e;font-size:18px;flex-shrink:0;margin-top:1px}
.chk b{color:var(--text);display:block;margin-bottom:2px;font-size:15px}
.chk p{color:var(--muted);font-size:14px}
.price-box{max-width:680px;margin:0 auto;text-align:center;padding:54px 30px;border-radius:24px;background:linear-gradient(135deg,rgba(238,186,77,.14),rgba(201,154,46,.05));border:1px solid rgba(238,186,77,.22)}
.price-box h2{font-size:clamp(24px,4vw,38px);font-weight:800;margin-bottom:14px}
.price-amount{margin-top:18px;font-family:'Montserrat',sans-serif;font-weight:800;font-size:clamp(40px,7vw,60px);line-height:1;background:linear-gradient(135deg,var(--gold),var(--gold-2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:var(--gold-2)}
.price-note{display:inline-block;margin-left:8px;font-family:'Inter',sans-serif;font-size:14px;font-weight:600;color:var(--muted);-webkit-text-fill-color:var(--muted);vertical-align:middle}
.hero .prod-ic{font-size:58px;margin-bottom:14px;filter:drop-shadow(0 6px 24px rgba(238,186,77,.35))}
.prod-ic svg{width:66px;height:66px;stroke:var(--gold);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* ===== REVEAL ANIM ===== */
.reveal{opacity:0;transform:translateY(24px);transition:.7s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}

/* ===== EFFETTI ===== */
#progress{position:fixed;top:0;left:0;height:3px;width:0;z-index:200;background:linear-gradient(90deg,#F3D27A,#C99A2E);box-shadow:0 0 12px rgba(238,186,77,.6)}
.hero canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0;opacity:.38;pointer-events:none}
#hero3d{position:fixed;inset:0;width:100vw;height:100vh;z-index:-1;opacity:.92;pointer-events:none}
.hero .wrap{position:relative;z-index:2}
.shine{background-size:220% auto;animation:shine 5s linear infinite}
@keyframes shine{to{background-position:220% center}}
.ticker{overflow:hidden;border-block:1px solid var(--line);background:var(--bg-2);white-space:nowrap;padding:13px 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.ticker-track{display:inline-flex;gap:42px;animation:scrollx 34s linear infinite}
.ticker:hover .ticker-track{animation-play-state:paused}
.tk{display:inline-flex;align-items:center;gap:9px;font-size:14px;font-weight:600}
.tk .s{color:var(--silver)}
.tk .up{color:#3ecf8e}.tk .dn{color:#ff5c6c}
@keyframes scrollx{to{transform:translateX(-50%)}}
.card::after{content:"";position:absolute;inset:0;border-radius:var(--radius);opacity:0;transition:opacity .3s;
  background:radial-gradient(360px circle at var(--mx,50%) var(--my,50%),rgba(238,186,77,.16),transparent 45%);pointer-events:none}
.card:hover::after{opacity:1}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .grid,.pillars,.steps,.quotes{grid-template-columns:1fr 1fr}
  .stats{grid-template-columns:1fr 1fr;gap:40px}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  .nav-links{
    position:fixed;top:72px;left:0;right:0;flex-direction:column;gap:0;
    background:var(--bg-2);border-bottom:1px solid var(--line);padding:10px 0;
    transform:translateY(-150%);transition:.35s;
  }
  .nav-links.open{transform:none}
  .nav-links a{padding:14px 24px;width:100%}
  .burger{display:flex}
  /* barra compatta su mobile: brand più corto + bottoni piccoli, così
     Accedi e Registrati restano visibili e non sforano lo schermo */
  .brand .ac{display:none}
  .brand{font-size:14px;gap:8px}
  .brand img{width:32px;height:32px}
  .nav-cta{gap:6px}
  .nav-cta .btn{padding:8px 12px;font-size:12.5px}
  .nav-cta .btn-ghost{display:inline-flex}
  .grid,.pillars,.steps,.quotes,.foot-grid{grid-template-columns:1fr}
  .hero{padding:130px 0 60px}
}
/* telefoni molto stretti: nascondi il toggle tema dalla barra per far spazio */
@media(max-width:380px){
  .nav-cta .theme-toggle{display:none}
  .nav-cta .btn{padding:8px 11px;font-size:12px}
}

/* ===== AUTH (registrazione / login / area download) ===== */
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:120px 20px 70px;position:relative}
.auth-wrap::before{
  content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:760px;height:760px;border-radius:50%;
  background:radial-gradient(circle,rgba(238,186,77,.12) 0%,transparent 62%);pointer-events:none;
}
.auth-card{
  width:100%;max-width:440px;position:relative;z-index:1;
  background:linear-gradient(180deg,var(--surface),var(--bg-2));
  border:1px solid var(--line);border-radius:22px;padding:38px 34px;
  box-shadow:0 24px 70px rgba(0,0,0,.10);
}
.auth-card .logo-top{display:flex;align-items:center;gap:10px;justify-content:center;margin-bottom:22px;font-family:'Montserrat',sans-serif;font-weight:800;font-size:15px;letter-spacing:.04em}
.auth-card .logo-top img{width:40px;height:40px;border-radius:0;object-fit:contain}
.auth-card h1{font-size:25px;font-weight:800;text-align:center;margin-bottom:6px}
.auth-card .lead{text-align:center;color:var(--muted);font-size:14.5px;margin-bottom:26px}
.field{margin-bottom:15px}
.field label{display:block;font-size:13.5px;margin-bottom:7px;color:var(--silver);font-weight:500}
.field input{
  width:100%;padding:13px 15px;border-radius:12px;font-size:15px;font-family:inherit;
  background:var(--bg);border:1px solid var(--line);color:var(--text);transition:.2s;
}
.field input::placeholder{color:#5d6373}
.field input:focus{outline:none;border-color:rgba(238,186,77,.55);box-shadow:0 0 0 3px rgba(238,186,77,.1)}
.btn-gold.full,.btn-ghost.full{width:100%;justify-content:center;margin-top:6px}
.auth-alt{text-align:center;margin-top:20px;font-size:14px;color:var(--muted)}
.auth-alt a{color:var(--gold);font-weight:600}
.auth-alt a:hover{text-decoration:underline}
.auth-msg{margin:4px 0 14px;padding:12px 15px;border-radius:12px;font-size:13.5px;line-height:1.5;display:none}
.auth-msg.show,.auth-msg.warn,.auth-msg.err,.auth-msg.ok{display:block}
.auth-msg.err{background:rgba(255,92,108,.1);border:1px solid rgba(255,92,108,.3);color:#ff8d97}
.auth-msg.ok{background:rgba(62,207,142,.1);border:1px solid rgba(62,207,142,.3);color:#6fe0ab}
.auth-msg.warn{background:rgba(238,186,77,.1);border:1px solid rgba(238,186,77,.3);color:var(--gold)}
.link-mini{display:block;text-align:right;font-size:13px;color:var(--muted);margin:-6px 0 14px}
.link-mini:hover{color:var(--gold)}

/* Area download */
.dl-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:36px}
.dl-user{font-size:14px;color:var(--muted)}
.dl-user b{color:var(--text)}
.dl-list{display:grid;gap:16px}
.dl-item{
  display:flex;align-items:center;gap:18px;padding:20px 22px;border-radius:16px;
  background:var(--surface);border:1px solid var(--line);transition:.2s;
}
.dl-item:hover{border-color:rgba(238,186,77,.35);transform:translateY(-2px)}
.dl-item .dic{
  width:50px;height:50px;flex-shrink:0;border-radius:12px;display:grid;place-items:center;font-size:22px;
  background:linear-gradient(135deg,rgba(238,186,77,.18),rgba(238,186,77,.04));border:1px solid rgba(238,186,77,.2);
}
.dl-item .dinfo{flex:1;min-width:0}
.dl-item .dinfo h3{font-size:17px;font-weight:700;margin-bottom:3px}
.dl-item .dinfo p{color:var(--muted);font-size:14px;margin:0}
.dl-item .dtag{font-size:11px;font-weight:600;padding:3px 9px;border-radius:999px;background:rgba(238,186,77,.12);color:var(--gold);border:1px solid rgba(238,186,77,.25);white-space:nowrap}
.dl-empty{text-align:center;color:var(--muted);padding:50px 20px;border:1px dashed var(--line);border-radius:16px}
@media(max-width:560px){
  .auth-card{padding:30px 22px}
  .dl-item{flex-wrap:wrap}
}

/* ===== HERO — LAYOUT 2 colonne con la "A" del brand ===== */
.hero-copy{text-align:left}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:50px;align-items:center}
.hero-copy h1{max-width:none;margin:0 0 18px}
.hero-copy .sub{max-width:520px;margin:0 0 32px}
.hero-copy .hero-cta{justify-content:flex-start}
/* visual: la "A" del brand in 3D (WebGL) con bagliore dorato dietro */
.hero-shot{position:relative;display:grid;place-items:center;min-height:420px}
.hero-shot::before{
  content:"";position:absolute;width:74%;aspect-ratio:1/1;border-radius:50%;z-index:0;
  background:radial-gradient(circle,rgba(242,178,40,.42),rgba(238,186,77,.12) 45%,transparent 66%);filter:blur(10px);
}
/* canvas 3D sovrapposto */
#logo3d{position:absolute;inset:0;width:100%;height:100%;z-index:2;cursor:grab}
/* "A" statica: fallback mostrato finché il 3D non è pronto (o se WebGL manca) */
.hero-shot .hero-a-fallback{
  position:relative;z-index:1;width:100%;max-width:340px;height:auto;display:block;
  filter:drop-shadow(0 22px 42px rgba(201,154,46,.38));
  animation:floatA 6s ease-in-out infinite;
}
@keyframes floatA{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@media (prefers-reduced-motion:reduce){.hero-shot .hero-a-fallback{animation:none}}
@media(max-width:860px){
  .hero{text-align:center;padding:140px 0 60px}
  .hero-grid{grid-template-columns:1fr;gap:24px}
  .hero-copy h1,.hero-copy .sub{margin-inline:auto}
  .hero-copy .hero-cta{justify-content:center}
  .hero-shot{order:-1;min-height:320px}
  .hero-shot .hero-a-fallback{max-width:200px}
}

/* ===== PRODOTTI: 4 card affiancate in fila (no coverflow) ===== */
#prodotti .grid{grid-template-columns:repeat(4,1fr)}
#prodotti .card{display:flex;flex-direction:column}
#prodotti .card .link{margin-top:auto}            /* allinea il link in basso */
@media(max-width:980px){ #prodotti .grid{grid-template-columns:repeat(2,1fr)} }
@media(max-width:560px){ #prodotti .grid{grid-template-columns:1fr} }
/* card sempre visibili in griglia (il vecchio coverflow non le gestisce più) */
.card.reveal{opacity:1;transform:none}

/* ===== PRODOTTI: card grandi (stile Sinergy) 2 per riga ===== */
#prodotti .grid{grid-template-columns:repeat(2,1fr);gap:30px}
#prodotti .card{padding:46px 42px;min-height:380px;border-radius:24px}
#prodotti .card .ic{width:76px;height:76px;border-radius:19px;margin-bottom:28px}
#prodotti .card .ic svg{width:38px;height:38px}
#prodotti .card h3{font-size:28px;margin-bottom:14px}
#prodotti .card p{font-size:18px;line-height:1.6;margin-bottom:26px}
#prodotti .card .link{font-size:17px}
#prodotti .card .tag{top:26px;right:26px;font-size:13px;padding:6px 14px}
#prodotti .card:hover{transform:translateY(-10px)}
@media(max-width:760px){ #prodotti .grid{grid-template-columns:1fr} #prodotti .card{min-height:300px;padding:36px 30px} }

/* Banner quotazioni live (TradingView Ticker Tape) — pulito e centrato */
.ticker-live{background:transparent;border:0}
.ticker-live .tradingview-widget-container{max-width:820px;margin:0 auto}
.ticker-live .tradingview-widget-container__widget{min-height:46px}

/* Card Academy come immagine intera */
#prodotti .card-photo{padding:0;min-height:0;border:1px solid var(--line)}
#prodotti .card-photo img{width:100%;height:auto;display:block;object-fit:contain}

/* ===== PRODOTTI: look "academy 2" — card bianche con alone dorato ===== */
#prodotti .card{
  background:#fff;
  border:1px solid rgba(238,186,77,.45);
  border-radius:26px;
  box-shadow:0 16px 50px rgba(238,186,77,.20), 0 4px 14px rgba(0,0,0,.05);
}
#prodotti .card:hover{
  transform:translateY(-10px);
  border-color:rgba(238,186,77,.75);
  box-shadow:0 28px 70px rgba(238,186,77,.34), 0 8px 22px rgba(0,0,0,.07);
}
/* riquadro icona come nel mockup (tile crema con cappello oro) */
#prodotti .card .ic{
  background:linear-gradient(160deg,#FFF7E6,#FBEAC4);
  border:1px solid rgba(238,186,77,.40);
  box-shadow:0 5px 14px rgba(238,186,77,.20);
}
#prodotti .card .ic svg{stroke:var(--gold-2)}
/* pill (Best seller / Crypto / Community) con contorno oro */
#prodotti .card .tag{
  background:#fff;border:1px solid rgba(238,186,77,.6);color:var(--gold-2);
  box-shadow:0 2px 8px rgba(238,186,77,.15);
}
#prodotti .card .link{color:var(--gold-2)}
/* segnaposto embed terze parti (pre-consenso) */
.mm-embed-ph{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;padding:14px;color:var(--muted);font-size:14px;text-align:center}

/* pill "Gratis" (card Club): oro pieno, in alto a sinistra */
#prodotti .card .tag-free{
  left:26px;right:auto;
  background:var(--gold);border-color:var(--gold);color:#0A0C10;
  box-shadow:0 2px 10px rgba(238,186,77,.35);
}

/* ===== PRODOTTI: effetto 3D (tilt verso il mouse) ===== */
#prodotti .grid{perspective:1200px}
#prodotti .card{transform-style:preserve-3d;transition:transform .12s ease, box-shadow .3s ease, border-color .3s ease;will-change:transform}
/* livelli che "escono" dalla card per dare profondità */
#prodotti .card .ic{transform:translateZ(45px)}
#prodotti .card .tag{transform:translateZ(8px)}
#prodotti .card h3{transform:translateZ(28px)}
#prodotti .card p{transform:translateZ(16px)}
#prodotti .card .link{transform:translateZ(34px)}
/* il 3D dei livelli richiede overflow visibile */
#prodotti .card{overflow:visible}

/* icone 3D (immagini) dentro il riquadro */
#prodotti .card .ic{padding:9px;overflow:visible}
#prodotti .card .ic img{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 5px 10px rgba(201,154,46,.30))}

/* icone 3D nell'hero delle pagine prodotto */
.prod-ic img{width:120px;height:auto;object-fit:contain;display:inline-block}

/* ====== Animazioni 3D pagine prodotto (hero icon, price-box) ====== */
.hero .prod-ic{perspective:800px;transform-style:preserve-3d}
.hero .prod-ic img{will-change:transform;transition:filter .3s ease;filter:drop-shadow(0 16px 36px rgba(238,186,77,.45))}
/* alone pulsante dietro l'icona hero */
.hero .prod-ic{position:relative}
.hero .prod-ic::before{content:"";position:absolute;left:50%;top:48%;width:160px;height:160px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,rgba(238,186,77,.40),rgba(238,186,77,0) 68%);filter:blur(6px);z-index:-1;animation:icGlow 4s ease-in-out infinite}
@keyframes icGlow{0%,100%{opacity:.55;transform:translate(-50%,-50%) scale(.92)}50%{opacity:.95;transform:translate(-50%,-50%) scale(1.08)}}

/* price-box: profondità, riflesso che scorre, hover lift */
.price-box{position:relative;overflow:hidden;transform-style:preserve-3d;transition:transform .18s ease,box-shadow .35s ease;box-shadow:0 20px 60px rgba(238,186,77,.16)}
.price-box>*{position:relative;z-index:1}
.price-box::after{content:"";position:absolute;top:-30%;left:-65%;width:45%;height:160%;background:linear-gradient(120deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-22deg);z-index:0;pointer-events:none;animation:priceShine 5s ease-in-out infinite}
@keyframes priceShine{0%{left:-65%}55%{left:150%}100%{left:150%}}
.price-amount{position:relative}
.price-box .btn-gold{box-shadow:0 10px 30px rgba(238,186,77,.45);animation:ctaPulse 2.6s ease-in-out infinite}
@keyframes ctaPulse{0%,100%{box-shadow:0 10px 30px rgba(238,186,77,.40)}50%{box-shadow:0 14px 42px rgba(238,186,77,.70)}}

@media (prefers-reduced-motion:reduce){
  .hero .prod-ic::before,.price-box::after,.price-box .btn-gold{animation:none}
}

/* griglia 2x2 (es. programma Mentorship: Rischio&mentalità accanto a Volumetrica) */
.grid.grid-2{grid-template-columns:repeat(2,1fr);max-width:820px;margin-inline:auto}
@media(max-width:560px){ .grid.grid-2{grid-template-columns:1fr} }
.grid.grid-4{grid-template-columns:repeat(4,1fr)}
@media(max-width:900px){ .grid.grid-4{grid-template-columns:repeat(2,1fr)} }
@media(max-width:520px){ .grid.grid-4{grid-template-columns:1fr} }

/* card "cosa include" prodotti: un filo più grandi + icone 3D dorate */
.grid.grid-4 .card{padding:36px 26px;border-radius:20px;text-align:center;
  border-color:rgba(238,186,77,.30);box-shadow:0 12px 34px rgba(238,186,77,.10)}
.grid.grid-4 .card:hover{transform:translateY(-10px);border-color:rgba(238,186,77,.60);
  box-shadow:0 24px 56px rgba(238,186,77,.22)}
.grid.grid-4 .card .ic{
  width:94px;height:94px;margin:0 auto 20px;padding:0;background:none;border:0;box-shadow:none;
  display:grid;place-items:center;transition:transform .3s ease;
}
.grid.grid-4 .card:hover .ic{transform:translateY(-5px) scale(1.06)}
.grid.grid-4 .card .ic img{width:100%;height:100%;object-fit:contain;
  filter:drop-shadow(0 8px 14px rgba(201,154,46,.42))}
/* icone verticali (testa): riducile così non sovrastano il testo */
.grid.grid-4 .card .ic img[src*="ic-mindset"]{width:auto;height:80%;max-width:100%;transform:translateY(-18px)}
.grid.grid-4 .card h3{font-size:19px;margin-bottom:10px}
.grid.grid-4 .card p{font-size:14.5px;margin-bottom:0}

/* ====== Pagine legali / informative ====== */
.legal{max-width:860px;margin:0 auto}
.legal-head{text-align:center;margin-bottom:40px}
.legal-head h1{font-size:clamp(30px,5vw,46px);font-weight:800;margin-bottom:10px}
.legal-head p{color:var(--muted);font-size:15px}
.legal h2{font-size:clamp(20px,3vw,26px);font-weight:800;margin:38px 0 14px}
.legal h2:first-of-type{margin-top:0}
.legal p{color:#3a3f4a;line-height:1.8;margin:0 0 16px;font-size:15.5px}
.legal ul{list-style:none;margin:0 0 16px;padding:0}
.legal li{position:relative;padding:8px 0 8px 30px;color:#3a3f4a;line-height:1.7;border-bottom:1px solid var(--line)}
.legal li:last-child{border-bottom:0}
.legal li::before{content:"";position:absolute;left:4px;top:15px;width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold-2));box-shadow:0 0 0 4px rgba(238,186,77,.15)}
.legal .no li::before{background:#c0392b;box-shadow:0 0 0 4px rgba(192,57,43,.12)}
.legal .note{font-size:13px;color:#5d6373;border-left:3px solid var(--gold);padding:10px 16px;background:rgba(238,186,77,.06);border-radius:0 10px 10px 0;margin-top:28px}

/* ====== Payout / proof gallery (pagina Perché noi) ====== */
.proof-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:8px}
@media(max-width:880px){ .proof-grid{grid-template-columns:repeat(2,1fr)} }
@media(max-width:560px){ .proof-grid{grid-template-columns:1fr} }
.proof{border:1px solid rgba(238,186,77,.35);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 14px 40px rgba(238,186,77,.14);transition:transform .18s ease,box-shadow .3s ease}
.proof:hover{transform:translateY(-6px);box-shadow:0 22px 56px rgba(238,186,77,.26)}
.proof .shot{aspect-ratio:16/10;background:linear-gradient(135deg,#fafafa,#f0f0f0);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.proof-grid.certs .proof{border-color:rgba(238,186,77,.30)}
.proof-grid.certs .proof .shot{aspect-ratio:1/1;background:#0f1115}
.proof-grid.wide{grid-template-columns:repeat(2,1fr)}
@media(max-width:560px){ .proof-grid.wide{grid-template-columns:1fr} }
.proof-grid.wide .proof{border-color:rgba(238,186,77,.30)}
.proof-grid.wide .proof .shot{aspect-ratio:3/2;background:#15161c}
.proof-grid.wide .proof .shot img{object-fit:contain}

/* ====== Pulsante tema chiaro/scuro ====== */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:rgba(0,0,0,.03);color:var(--text);cursor:pointer;transition:.2s;flex-shrink:0}
.theme-toggle:hover{border-color:rgba(238,186,77,.55);background:rgba(238,186,77,.10);color:var(--gold-2)}
.theme-toggle svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .ic-sun{display:none}
.theme-toggle .ic-moon{display:block}

/* ====== TEMA SCURO ====== */
html[data-theme="dark"]{
  --bg:#0B0D12;
  --bg-2:#12151C;
  --surface:#151922;
  --surface-2:#12151C;
  --line:rgba(255,255,255,.10);
  --text:#EDEFF3;
  --muted:#9AA3B2;
  --silver:#C2C8D2;
}
html[data-theme="dark"] header.scrolled{background:rgba(11,13,18,.85);border-bottom:1px solid var(--line)}
html[data-theme="dark"] .btn-ghost{background:rgba(255,255,255,.05);color:var(--text)}
html[data-theme="dark"] .btn-ghost:hover{background:rgba(255,255,255,.09)}
html[data-theme="dark"] .theme-toggle{background:rgba(255,255,255,.05)}
html[data-theme="dark"] .theme-toggle .ic-moon{display:none}
html[data-theme="dark"] .theme-toggle .ic-sun{display:block}
html[data-theme="dark"] #prodotti .card{background:var(--surface);box-shadow:0 16px 50px rgba(0,0,0,.5),0 0 0 1px rgba(238,186,77,.10)}
html[data-theme="dark"] #prodotti .card .tag{background:#1b2030;color:var(--gold)}
html[data-theme="dark"] .proof{background:var(--surface);box-shadow:0 14px 40px rgba(0,0,0,.45)}
html[data-theme="dark"] .myfx-card{background:var(--surface);box-shadow:0 14px 40px rgba(0,0,0,.45)}
html[data-theme="dark"] .myfx-logo{color:#fff;background:linear-gradient(135deg,rgba(238,186,77,.22),rgba(238,186,77,.06))}
html[data-theme="dark"] .legal p,html[data-theme="dark"] .legal li{color:#C2C8D2}
html[data-theme="dark"] .disclaimer,html[data-theme="dark"] .disclaimer p{color:#9AA3B2}
html[data-theme="dark"] .field input::placeholder{color:#7b8494}
html[data-theme="dark"] .price-box{box-shadow:0 20px 60px rgba(0,0,0,.5)}

/* ====== Sfondo rete di puntini (hero pagina Club) ====== */
#netbg{position:absolute;inset:0;width:100%;height:100%;z-index:0;opacity:1;pointer-events:none}

/* ====== Sfondo 3D wireframe (hero pagina Indicatori) ====== */
#bg3d{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 24%,#000 80%,transparent);
          mask-image:linear-gradient(to bottom,transparent,#000 24%,#000 80%,transparent)}

/* ====== Sfondo "torcia" rete rivelata dal cursore (hero Mentorship) ====== */
#revealbg{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.reveal-hint{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:1;
  font-size:12.5px;letter-spacing:.06em;color:var(--muted);opacity:.75;pointer-events:none;
  transition:opacity .5s ease;animation:hintPulse 2.4s ease-in-out infinite}
.reveal-hint.hide{opacity:0}
@keyframes hintPulse{0%,100%{opacity:.4}50%{opacity:.85}}
@media (prefers-reduced-motion:reduce){ .reveal-hint{animation:none} }

/* ====== Sfondo "aurora dorata" (hero pagina Academy) ====== */
.aurora{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.aurora span{position:absolute;border-radius:50%;filter:blur(70px);will-change:transform,opacity}
.aurora .b1{width:480px;height:480px;left:-60px;top:-140px;background:radial-gradient(circle,rgba(243,210,122,.55),transparent 70%);animation:aur1 17s ease-in-out infinite}
.aurora .b2{width:560px;height:560px;right:-120px;top:-80px;background:radial-gradient(circle,rgba(238,186,77,.50),transparent 70%);animation:aur2 21s ease-in-out infinite}
.aurora .b3{width:420px;height:420px;left:18%;bottom:-180px;background:radial-gradient(circle,rgba(201,154,46,.45),transparent 70%);animation:aur3 19s ease-in-out infinite}
.aurora .b4{width:360px;height:360px;right:22%;bottom:-120px;background:radial-gradient(circle,rgba(243,210,122,.40),transparent 70%);animation:aur4 23s ease-in-out infinite}
@keyframes aur1{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(60px,40px) scale(1.15)}}
@keyframes aur2{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-50px,50px) scale(1.1)}}
@keyframes aur3{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(40px,-50px) scale(1.18)}}
@keyframes aur4{0%,100%{transform:translate(0,0) scale(1.05)}50%{transform:translate(-40px,-30px) scale(.92)}}
html[data-theme="dark"] .aurora span{filter:blur(80px)}
html[data-theme="dark"] .aurora .b1{background:radial-gradient(circle,rgba(243,210,122,.40),transparent 70%)}
html[data-theme="dark"] .aurora .b2{background:radial-gradient(circle,rgba(238,186,77,.36),transparent 70%)}
html[data-theme="dark"] .aurora .b3{background:radial-gradient(circle,rgba(201,154,46,.34),transparent 70%)}
html[data-theme="dark"] .aurora .b4{background:radial-gradient(circle,rgba(243,210,122,.30),transparent 70%)}
@media (prefers-reduced-motion:reduce){ .aurora span{animation:none} }
.proof .shot img{width:100%;height:100%;object-fit:cover;display:block}
.proof .shot .ph{display:flex;flex-direction:column;align-items:center;gap:8px;color:#b9842b;font-size:13px;font-weight:600;text-align:center;padding:16px}
.proof .shot .ph svg{width:34px;height:34px;stroke:var(--gold);fill:none;stroke-width:1.6}
.proof .meta{padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line)}
.proof .meta .firm{font-weight:700;font-size:14px;color:var(--text)}
.proof .meta .firm span{display:block;font-weight:500;font-size:12px;color:var(--muted)}
.proof .meta .amt{font-family:'Montserrat',sans-serif;font-weight:800;font-size:18px;background:linear-gradient(135deg,var(--gold),var(--gold-2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;white-space:nowrap}
.proof .badge{position:absolute;top:10px;left:10px;background:rgba(0,0,0,.72);color:#fff;font-size:11px;font-weight:600;padding:4px 10px;border-radius:999px;letter-spacing:.02em}
.embed-box{margin-top:24px;border:1px dashed rgba(238,186,77,.55);border-radius:18px;background:rgba(238,186,77,.05);min-height:120px;display:flex;align-items:center;justify-content:center;padding:26px;text-align:center;color:#8a6a22;font-size:14px}
.embed-box iframe{width:100%;border:0}
.myfx-card{margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:26px 30px;border:1px solid rgba(238,186,77,.35);border-radius:18px;background:#fff;box-shadow:0 14px 40px rgba(238,186,77,.14)}
.myfx-info{display:flex;align-items:center;gap:18px}
.myfx-logo{font-family:'Montserrat',sans-serif;font-weight:800;font-size:20px;color:#0a0c10;background:linear-gradient(135deg,rgba(238,186,77,.18),rgba(238,186,77,.05));border:1px solid rgba(238,186,77,.3);padding:12px 16px;border-radius:12px;white-space:nowrap}
.myfx-info b{display:block;font-size:16px;color:var(--text)}
.myfx-info span{display:block;font-size:13px;color:var(--muted);margin-top:3px;max-width:380px}
@media(max-width:560px){ .myfx-card{flex-direction:column;align-items:flex-start} .myfx-card .btn{width:100%;text-align:center} }

/* ===== Passaggio design 2026-07: accessibilità e micro-interazioni ===== */
/* focus visibile (tastiera) su tutti gli elementi interattivi */
a:focus-visible,button:focus-visible,.btn:focus-visible,input:focus-visible,
.faq-q:focus-visible,.theme-toggle:focus-visible{
  outline:2px solid var(--gold-2);outline-offset:2px;border-radius:6px;
}
.btn:focus-visible{border-radius:999px}
/* hover ghost allineato al gold: leggero lift + alone oro */
.btn-ghost:hover{transform:translateY(-2px);box-shadow:0 8px 26px rgba(238,186,77,.18)}
/* card prodotti/griglie: lift coerente (il tilt 3D resta) */
#prodotti .card,.grid-4 .card{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
/* tap target ≥44px su touch */
@media (max-width:680px){
  .socials a{width:44px;height:44px}
  .nav-links a{padding:10px 4px}
}
/* rispetto prefers-reduced-motion */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* pagina chi-siamo: testo + visual affiancati */
.about-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:center}
@media(max-width:860px){.about-grid{grid-template-columns:1fr;gap:28px}}

/* ===== fix <picture> (fallback WebP): il wrapper deve riempire come l'img ===== */
.card .ic picture,#prodotti .card .ic picture,.grid.grid-4 .card .ic picture,.proof .shot picture{
  display:block;width:100%;height:100%;
}
.prod-ic picture{display:inline-block}
.candle-track picture{display:block;height:100%;flex:none}
.candle-track picture img{height:100%;width:auto}
.candle-track picture:nth-child(even) img{transform:scaleX(-1)}

/* ===== fix nav mobile: su schermi 360-430px la barra sbordava a destra (~17px, "Registrati" tagliato) ===== */
@media(max-width:430px){
  header .wrap{padding:0 14px}
  .brand{font-size:13px;gap:6px}
  .brand img{width:28px;height:28px}
  .nav-cta{gap:5px}
  .nav-cta .btn{padding:8px 10px;font-size:12px}
}
