/* ==========================================================================
   EdictumX Home Premium 2.20 — Hero a slide
   Quattro scene: EdictumX 2.0 + Caronte AI · PotheinosX · SuiteX · Portale Necrologi
   Font self-hosted (nessuna richiesta a Google Fonts, in linea con il GDPR).
   ========================================================================== */

@font-face{font-family:"Fraunces";font-style:normal;font-weight:100 900;font-display:swap;src:url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2")}
@font-face{font-family:"Fraunces";font-style:italic;font-weight:100 900;font-display:swap;src:url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;src:url("../fonts/manrope-latin-wght-normal.woff2") format("woff2")}

#edxhp-home .x24-hero{
  --h:clamp(680px,calc(100svh - 72px),980px);
  --red:#d6001c;--red2:#ff1838;
  --accent:#58a9ff;
  --ease:cubic-bezier(.2,.9,.2,1);
  --mx:0;--my:0;--zap:0;
  position:relative;min-height:var(--h);background:#04050a;color:#fff;overflow:hidden;isolation:isolate;
  font-family:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;
}
#edxhp-home .x24-hero[data-theme="potheinos"]{--accent:#f2c879}
#edxhp-home .x24-hero[data-theme="suite"]{--accent:#e8c276}
#edxhp-home .x24-hero[data-theme="portale"]{--accent:#ff9d5c}

#edxhp-home .x24-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- stage & slide ---------- */
#edxhp-home .x24-stage{display:grid;min-height:var(--h)}
#edxhp-home .x24-slide{
  grid-area:1/1;position:relative;display:flex;align-items:center;min-height:var(--h);overflow:hidden;
  visibility:hidden;z-index:1;clip-path:circle(0% at var(--cx,72%) var(--cy,62%));
  padding-left:clamp(28px,6.5vw,118px);
}
#edxhp-home .x24-slide.is-active{visibility:visible;z-index:3;clip-path:circle(150% at var(--cx,72%) var(--cy,62%));transition:clip-path 1.2s cubic-bezier(.75,0,.18,1)}
#edxhp-home .x24-slide.is-active.is-settled{clip-path:none;transition:none}
#edxhp-home .x24-slide.is-leaving{visibility:visible;z-index:2;clip-path:none;transform:scale(.965);filter:brightness(.55);transition:transform 1.25s var(--ease),filter 1.25s var(--ease)}
#edxhp-home .x24-hero.is-instant .x24-slide{transition:none!important}

/* ---------- background stack ---------- */
#edxhp-home .x24-bg{position:absolute;inset:0;z-index:0;overflow:hidden}
#edxhp-home .x24-bg>*{position:absolute;inset:0}
#edxhp-home .x24-bgart{display:block}
#edxhp-home .x24-bgart img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:60% 50%;transform:scale(1.14);transform-origin:70% 60%}
#edxhp-home .x24-slide.is-active .x24-bgart img{animation:x24kb 22s ease-out forwards}
#edxhp-home .x24-cv{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
#edxhp-home .x24-cv-front{z-index:5}
#edxhp-home .x24-grain{opacity:.16;mix-blend-mode:overlay;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
#edxhp-home .x24-shade{background:linear-gradient(90deg,rgba(3,4,8,.86) 0%,rgba(3,4,8,.6) 30%,rgba(3,4,8,.12) 58%,rgba(3,4,8,0) 70%),linear-gradient(0deg,rgba(3,4,8,.62),transparent 30%),linear-gradient(180deg,rgba(3,4,8,.55),transparent 18%)}

/* procedural scene (always present beneath the generated scene) */
#edxhp-home .x24-bgfx{overflow:hidden}
#edxhp-home .x24-bgfx::before,#edxhp-home .x24-bgfx::after{content:"";position:absolute;inset:-25%;pointer-events:none}
#edxhp-home .x24-s1 .x24-bgfx{background:
  radial-gradient(52% 62% at 74% 84%,rgba(46,128,255,.52),rgba(20,60,160,.2) 48%,transparent 72%),
  radial-gradient(34% 44% at 6% 20%,rgba(214,0,28,.24),transparent 70%),
  radial-gradient(60% 60% at 96% 4%,rgba(40,80,200,.28),transparent 70%),
  linear-gradient(165deg,#03040a 0%,#070c1c 55%,#03040a 100%)}
#edxhp-home .x24-s1 .x24-bgfx::after{background:radial-gradient(38% 26% at 28% 86%,rgba(120,170,255,.16),transparent 70%),radial-gradient(40% 28% at 82% 72%,rgba(120,170,255,.14),transparent 70%);animation:x24mist 24s ease-in-out infinite alternate}
#edxhp-home .x24-s2 .x24-bgfx{background:
  radial-gradient(46% 58% at 72% 38%,rgba(255,196,120,.34),rgba(170,70,90,.16) 46%,transparent 72%),
  radial-gradient(40% 50% at 100% 100%,rgba(130,20,60,.5),transparent 70%),
  radial-gradient(50% 50% at 0% 0%,rgba(70,60,170,.34),transparent 70%),
  linear-gradient(180deg,#0b0a22 0%,#17102f 52%,#1d0c1f 100%)}
#edxhp-home .x24-s2 .x24-bgfx::after{background:radial-gradient(36% 24% at 20% 90%,rgba(255,235,210,.12),transparent 70%),radial-gradient(40% 26% at 86% 84%,rgba(255,235,210,.1),transparent 70%);animation:x24mist 26s ease-in-out infinite alternate-reverse}
#edxhp-home .x24-s3 .x24-bgfx{background:
  radial-gradient(54% 74% at 74% 62%,rgba(255,190,96,.42),rgba(190,110,30,.14) 50%,transparent 72%),
  radial-gradient(34% 66% at 100% 0%,rgba(170,0,28,.62),transparent 70%),
  radial-gradient(34% 60% at 0% 100%,rgba(150,0,26,.42),transparent 70%),
  linear-gradient(180deg,#0a0709 0%,#140a0c 100%)}
#edxhp-home .x24-s4 .x24-bgfx{background:
  radial-gradient(48% 56% at 78% 74%,rgba(255,150,70,.4),rgba(200,90,40,.12) 52%,transparent 72%),
  radial-gradient(60% 50% at 20% 0%,rgba(70,90,200,.3),transparent 70%),
  linear-gradient(180deg,#0a1124 0%,#1a1d3a 38%,#3a2430 74%,#190e11 100%)}
#edxhp-home .x24-s4 .x24-bgfx::after{background:radial-gradient(40% 22% at 76% 96%,rgba(255,170,100,.2),transparent 70%);animation:x24mist 20s ease-in-out infinite alternate}

/* static glyph field on slide 1 (drawn by JS, nod to the Linotype) */
#edxhp-home .x24-s1 .x24-cv-back{-webkit-mask-image:radial-gradient(70% 80% at 72% 70%,#000 0,rgba(0,0,0,.55) 45%,transparent 80%);mask-image:radial-gradient(70% 80% at 72% 70%,#000 0,rgba(0,0,0,.55) 45%,transparent 80%)}

/* spotlight beams on slide 3 */
#edxhp-home .x24-beams{inset:0;overflow:hidden;pointer-events:none;mix-blend-mode:screen}
#edxhp-home .x24-beams i{position:absolute;top:-6%;left:72%;width:34vw;height:130%;margin-left:-17vw;transform-origin:50% 0;background:linear-gradient(180deg,rgba(255,232,176,.5),rgba(255,214,140,.14) 60%,transparent 92%);clip-path:polygon(46% 0,54% 0,100% 100%,0 100%);opacity:.5;animation:x24sway 9s ease-in-out infinite alternate}
#edxhp-home .x24-beams i:nth-child(2){left:62%;width:26vw;margin-left:-13vw;opacity:.34;animation-duration:12s;animation-delay:-4s;animation-direction:alternate-reverse}
#edxhp-home .x24-beams i:nth-child(3){left:84%;width:24vw;margin-left:-12vw;opacity:.3;animation-duration:10s;animation-delay:-2s}

/* ---------- copy ---------- */
#edxhp-home .x24-copy{position:relative;z-index:6;width:min(660px,48%);padding:clamp(48px,7vh,84px) 0 clamp(116px,14vh,136px);text-align:left}
#edxhp-home .x24-eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 20px;font-size:12px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:var(--accent)}
#edxhp-home .x24-pulse{position:relative;width:8px;height:8px;border-radius:50%;background:var(--accent);flex:none}
#edxhp-home .x24-pulse::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:1px solid var(--accent);opacity:.7;animation:x24ping 2.2s ease-out infinite}
#edxhp-home .x24-hero .x24-h{margin:0;font-family:"Fraunces","Iowan Old Style","Palatino Linotype",Georgia,serif;font-weight:600;font-size:clamp(44px,5vw,88px);line-height:.94;letter-spacing:-.035em;color:#fff;text-wrap:balance}
#edxhp-home .x24-hero .x24-h-big{font-size:clamp(50px,6.3vw,110px)}
#edxhp-home .x24-line{display:block;overflow:hidden;padding:.05em .02em .12em;margin:-.05em 0 -.12em}
#edxhp-home .x24-line>span{display:inline-block;transform:translate3d(0,112%,0);will-change:transform}
#edxhp-home .x24-line+.x24-line>span,#edxhp-home .x24-s2 .x24-line>span{font-style:italic}
#edxhp-home .x24-s2 .x24-line>span,#edxhp-home .x24-s3 .x24-line+.x24-line>span,#edxhp-home .x24-s4 .x24-line+.x24-line>span{background:linear-gradient(95deg,var(--g1),var(--g2) 55%,var(--g1));background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.08em;animation:x24shine 7s linear infinite}
#edxhp-home .x24-s2{--g1:#fff3da;--g2:#f0b765}
#edxhp-home .x24-s3{--g1:#fff0cf;--g2:#e5a93f}
#edxhp-home .x24-s4{--g1:#ffe2c4;--g2:#ff7a45}
#edxhp-home .x24-s3 .x24-line:first-child>span,#edxhp-home .x24-s4 .x24-line:first-child>span{color:#fff}
#edxhp-home .x24-slide.is-active .x24-line>span{transform:none;transition:transform 1.05s var(--ease) calc(.55s + var(--i,0)*.12s)}

#edxhp-home .x24-logo{width:min(450px,86%);height:auto;margin:0 0 2px -8px;filter:drop-shadow(0 8px 24px rgba(0,0,0,.5))}
#edxhp-home .x24-logo-p{width:min(400px,78%);margin-bottom:8px}
#edxhp-home .x24-h-logo .x24-line{padding:.3em .5em .34em;margin:-.3em -.5em -.34em}
#edxhp-home .x24-h-logo .x24-line:first-of-type{margin-top:-.36em}
#edxhp-home .x24-num{display:inline-block;font-style:normal;font-weight:800;font-size:clamp(64px,9vw,156px);line-height:.9;letter-spacing:-.06em;background:linear-gradient(180deg,#ff5a6f 0%,#e00022 55%,#8a0014 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 12px rgba(255,24,56,.38))}
#edxhp-home .x24-ai{display:inline-block;font-style:italic;font-weight:560;font-size:clamp(30px,4vw,70px);letter-spacing:-.03em;margin-left:.08em;color:#e8f3ff;text-shadow:0 0 18px rgba(88,169,255,.9),0 0 52px rgba(60,140,255,.55)}
#edxhp-home .x24-lead{margin:24px 0 0;max-width:520px;font-size:clamp(16px,1.35vw,19px);line-height:1.62;color:rgba(255,255,255,.8)}
#edxhp-home .x24-hero .xhome-actions{margin-top:26px}
#edxhp-home .x24-hero .xbtn-ghost{color:#fff!important;border-color:rgba(255,255,255,.3)!important;background:rgba(255,255,255,.06)!important;backdrop-filter:blur(8px)}
#edxhp-home .x24-hero .xbtn:focus-visible,#edxhp-home .x24-hero a:focus-visible,#edxhp-home .x24-hero button:focus-visible{outline:2px solid #fff;outline-offset:3px}

#edxhp-home .x24-badge{display:inline-flex;align-items:center;gap:10px;margin:18px 0 0;padding:8px 14px 8px 10px;border-radius:999px;font-size:12.5px;font-weight:700;color:#cfe6ff;background:rgba(60,140,255,.12);border:1px solid rgba(110,180,255,.3)}
#edxhp-home .x24-badge i{width:8px;height:8px;border-radius:50%;background:#58a9ff;box-shadow:0 0 12px #58a9ff}

/* animated prompt */
#edxhp-home .x24-prompt{display:flex;align-items:center;gap:10px;width:min(540px,100%);margin-top:24px;padding:8px 8px 8px 10px;border-radius:999px;background:rgba(10,15,30,.66);border:1px solid rgba(120,180,255,.3);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 14px 44px rgba(0,0,0,.45),0 0 44px rgba(60,140,255,.18)}
#edxhp-home .x24-prompt-orb{position:relative;flex:none;width:34px;height:34px;border-radius:50%;background:radial-gradient(circle at 34% 28%,#ff7a8c,#d6001c 52%,#4a000d);box-shadow:0 0 18px rgba(255,24,56,.6)}
#edxhp-home .x24-prompt-orb i{position:absolute;inset:-5px;border-radius:50%;border:1px solid rgba(255,80,100,.55);animation:x24ping 2.4s ease-out infinite}
#edxhp-home .x24-prompt-field{flex:1;min-width:0;display:flex;align-items:center;font-size:14.5px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden}
#edxhp-home .x24-prompt-ph{color:rgba(255,255,255,.42)}
#edxhp-home .x24-prompt.is-typing .x24-prompt-ph,#edxhp-home .x24-prompt.is-done .x24-prompt-ph{display:none}
#edxhp-home .x24-typed{overflow:hidden;text-overflow:ellipsis}
#edxhp-home .x24-prompt.is-done .x24-typed{color:#8dffb6}
#edxhp-home .x24-caret{flex:none;width:2px;height:1.15em;margin-left:2px;background:#58a9ff;animation:x24blink 1s steps(1) infinite}
#edxhp-home .x24-prompt-mic{flex:none;display:grid;place-items:center;width:34px;height:34px;color:rgba(255,255,255,.7)}
#edxhp-home .x24-prompt-send{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#fff;background:linear-gradient(180deg,var(--red2),#b40022);box-shadow:0 6px 18px rgba(214,0,28,.4);transition:transform .25s}
#edxhp-home .x24-prompt.is-sending .x24-prompt-send{transform:scale(.88)}

/* slide 2/3/4 small furniture */
#edxhp-home .x24-pills{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 0;padding:0;list-style:none}
#edxhp-home .x24-pills li{margin:0;padding:8px 14px;border-radius:999px;font-size:13px;font-weight:700;color:#ffe9c4;background:rgba(255,214,150,.07);border:1px solid rgba(255,214,150,.34)}
#edxhp-home .x24-equation{display:flex;flex-wrap:wrap;align-items:center;gap:14px;width:fit-content;max-width:100%;margin:28px 0 0;padding:14px 20px;border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02));border:1px solid rgba(232,194,118,.34);backdrop-filter:blur(10px)}
#edxhp-home .x24-equation img{height:38px;width:auto;max-width:none}
#edxhp-home .x24-equation img.x24-eq-suite{height:46px}
#edxhp-home .x24-equation b{font-family:"Fraunces",Georgia,serif;font-size:30px;font-weight:600;color:#e8c276;line-height:1}
#edxhp-home .x24-steps{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 0;padding:0;list-style:none}
#edxhp-home .x24-steps li{display:flex;align-items:center;gap:9px;margin:0;padding:7px 14px 7px 7px;border-radius:999px;font-size:13px;font-weight:700;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(8px)}
#edxhp-home .x24-steps b{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;font-size:12px;color:#1a0f12;background:var(--accent)}

/* reveal for secondary copy */
#edxhp-home .x24-rise{opacity:0;transform:translate3d(0,26px,0)}
#edxhp-home .x24-slide.is-active .x24-rise{opacity:1;transform:none;transition:opacity .9s ease calc(.55s + var(--r,0)*.1s),transform 1s var(--ease) calc(.55s + var(--r,0)*.1s)}
#edxhp-home .x24-hero.is-instant .x24-slide.is-active .x24-rise,#edxhp-home .x24-hero.is-instant .x24-slide.is-active .x24-line>span{transition-duration:0s!important;transition-delay:0s!important}

/* ---------- art (characters & floating UI) ---------- */
#edxhp-home .x24-art{position:absolute;z-index:4;right:clamp(0px,2.4vw,56px);bottom:0;pointer-events:none}
#edxhp-home .x24-par{position:absolute;inset:0;transform:translate3d(calc(var(--mx) * var(--d,10) * -1px),calc(var(--my) * var(--d,10) * -.55px),0);will-change:transform}
#edxhp-home .x24-actor{position:absolute;left:0;top:0;width:100%;height:100%;max-width:none;object-fit:contain;object-position:50% 100%;opacity:0;transform:translate3d(7%,0,0) scale(1.07);filter:blur(12px)}
#edxhp-home .x24-slide.is-active .x24-actor{opacity:1;transform:none;filter:none;transition:opacity 1s ease .45s,transform 1.5s var(--ease) .4s,filter 1.2s ease .45s}
#edxhp-home .x24-hero.is-instant .x24-slide.is-active .x24-actor{transition-duration:0s!important;transition-delay:0s!important}

/* slide 1 */
#edxhp-home .x24-art-1{height:min(91%,calc(var(--h) * .94));aspect-ratio:1122/1224}
#edxhp-home .x24-caronte{filter:drop-shadow(0 30px 50px rgba(0,0,0,.55))}
#edxhp-home .x24-slide.is-active .x24-caronte{filter:drop-shadow(0 30px 50px rgba(0,0,0,.55))}
#edxhp-home .x24-glow{position:absolute;z-index:2;left:20%;top:54%;width:60%;height:42%;background:radial-gradient(closest-side,rgba(120,190,255,.8),rgba(50,120,255,.34) 48%,transparent 74%);filter:blur(16px);mix-blend-mode:screen;opacity:calc(.28 + var(--zap) * .55);animation:x24breathe 3.4s ease-in-out infinite}
#edxhp-home .x24-chip-wrap{inset:auto;width:max-content;max-width:250px;z-index:3}
#edxhp-home .x24-chip{padding:12px 16px 13px;border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.04));border:1px solid rgba(160,205,255,.34);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 18px 44px rgba(0,0,0,.4),0 0 34px rgba(70,150,255,.2);opacity:0;transform:translate3d(0,18px,0) scale(.94);animation:x24float 6s ease-in-out infinite}
#edxhp-home .x24-chip b{display:block;font-size:13.5px;line-height:1.25;font-weight:800;color:#fff}
#edxhp-home .x24-chip span{display:block;margin-top:3px;font-size:11.5px;line-height:1.3;color:rgba(214,232,255,.76)}
#edxhp-home .x24-slide.is-active .x24-chip{opacity:1;transform:none;transition:opacity .8s ease calc(1s + var(--k,0) * .16s),transform .9s var(--ease) calc(1s + var(--k,0) * .16s)}
#edxhp-home .x24-chip-a{left:-6%;top:7%;--k:0}
#edxhp-home .x24-chip-b{left:10%;top:47%;--k:1}
#edxhp-home .x24-chip-c{right:3%;top:13%;--k:2}
#edxhp-home .x24-chip-d{right:1%;top:66%;--k:3}
#edxhp-home .x24-chip-b .x24-chip{animation-delay:-2s;animation-duration:7s}
#edxhp-home .x24-chip-c .x24-chip{animation-delay:-4s;animation-duration:6.4s}
#edxhp-home .x24-chip-d .x24-chip{animation-delay:-1s;animation-duration:7.6s}
#edxhp-home .x24-medal-wrap{inset:auto;right:-3%;top:38%;width:clamp(96px,9.4vw,152px);z-index:3}
#edxhp-home .x24-medal{position:relative;width:100%;aspect-ratio:1;border-radius:50%;opacity:0;transform:scale(.6) rotate(-30deg)}
#edxhp-home .x24-slide.is-active .x24-medal{opacity:1;transform:none;transition:opacity .8s ease 1.5s,transform 1.2s var(--ease) 1.5s}
#edxhp-home .x24-medal svg{position:absolute;inset:0;width:100%;height:100%;animation:x24spin 28s linear infinite}
#edxhp-home .x24-medal text{font-family:"Manrope",sans-serif;font-size:13.5px;font-weight:800;letter-spacing:.06em;fill:#ffd9a3}
#edxhp-home .x24-medal img{position:absolute;inset:17%;width:66%;height:66%;max-width:none;border-radius:50%;object-fit:cover;object-position:50% 14%;background:#1a120b;border:2px solid rgba(255,214,150,.65);filter:sepia(1) saturate(.75) contrast(1.05) brightness(1.02);box-shadow:0 10px 30px rgba(0,0,0,.5)}

/* slide 2 */
#edxhp-home .x24-art-2{height:min(94%,calc(var(--h) * .96));aspect-ratio:1122/1402;right:-1px}
#edxhp-home .x24-beatrice{filter:drop-shadow(0 0 34px rgba(255,214,150,.32)) drop-shadow(0 34px 44px rgba(0,0,0,.5))}
#edxhp-home .x24-slide.is-active .x24-beatrice{filter:drop-shadow(0 0 34px rgba(255,214,150,.32)) drop-shadow(0 34px 44px rgba(0,0,0,.5))}
#edxhp-home .x24-halo{position:absolute;left:23%;top:-5%;width:80%;aspect-ratio:1;opacity:0;transform:scale(.7);filter:drop-shadow(0 0 14px rgba(255,200,120,.65))}
#edxhp-home .x24-slide.is-active .x24-halo{opacity:1;transform:none;transition:opacity 1.4s ease .5s,transform 1.8s var(--ease) .4s}
#edxhp-home .x24-halo svg{width:100%;height:100%;overflow:visible}
#edxhp-home .x24-halo circle{fill:none;stroke:#f6d08a;vector-effect:non-scaling-stroke;transform-origin:200px 200px}
#edxhp-home .x24-halo .r1{stroke-width:1.2;stroke-dasharray:2 10;animation:x24spin 60s linear infinite}
#edxhp-home .x24-halo .r2{stroke-width:1;opacity:.55;stroke-dasharray:60 18 6 18;animation:x24spin 90s linear infinite reverse}
#edxhp-home .x24-halo .r3{stroke-width:.8;opacity:.35}

/* slide 3 */
#edxhp-home .x24-art-3{height:min(74%,calc(var(--h) * .77));aspect-ratio:1448/1086;right:clamp(0px,1vw,28px);bottom:clamp(64px,9vh,104px)}
#edxhp-home .x24-floor{position:absolute;left:2%;right:-2%;bottom:-3%;height:13%;border-radius:50%;background:radial-gradient(closest-side,rgba(255,206,120,.55),rgba(255,170,80,.18) 60%,transparent);filter:blur(14px);opacity:0}
#edxhp-home .x24-slide.is-active .x24-floor,#edxhp-home .x24-slide.is-leaving .x24-floor{opacity:1;transition:opacity 1.4s ease .6s}
#edxhp-home .x24-tag-wrap{inset:auto;width:0;height:0;z-index:3}
#edxhp-home .x24-tag{position:absolute;left:0;top:0;translate:-50% 0;display:flex;align-items:center;justify-content:center;padding:9px 16px;border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.05));border:1px solid rgba(255,222,160,.42);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 14px 34px rgba(0,0,0,.45),0 0 28px rgba(255,190,100,.22);opacity:0;transform:translate3d(0,16px,0) scale(.9)}
#edxhp-home .x24-tag::after{content:"";position:absolute;left:50%;top:100%;width:1px;height:var(--stem,26px);margin-left:-.5px;background:linear-gradient(180deg,rgba(255,222,160,.8),transparent)}
#edxhp-home .x24-tag img{display:block;height:24px;width:auto;max-width:none}
#edxhp-home .x24-tag-suite{padding:10px 20px;border-color:rgba(255,222,160,.7);box-shadow:0 14px 34px rgba(0,0,0,.45),0 0 40px rgba(255,190,100,.4)}
#edxhp-home .x24-tag-suite img{height:34px}
#edxhp-home .x24-slide.is-active .x24-tag,#edxhp-home .x24-slide.is-leaving .x24-tag{opacity:1;transform:none;transition:opacity .8s ease calc(1.1s + var(--k,0) * .18s),transform .9s var(--ease) calc(1.1s + var(--k,0) * .18s)}
#edxhp-home .x24-tag-1{left:27%;top:-9%;--k:0;--stem:30px}
#edxhp-home .x24-tag-2{left:50%;top:-14%;--k:1;--stem:36px}
#edxhp-home .x24-tag-3{left:73%;top:-8%;--k:2;--stem:30px}
#edxhp-home .x24-virgilio{filter:drop-shadow(0 30px 40px rgba(0,0,0,.55)) drop-shadow(0 0 40px rgba(255,200,110,.22))}
#edxhp-home .x24-slide.is-active .x24-virgilio{filter:drop-shadow(0 30px 40px rgba(0,0,0,.55)) drop-shadow(0 0 40px rgba(255,200,110,.22))}

/* slide 4 */
#edxhp-home .x24-art-4{height:min(100%,var(--h));aspect-ratio:1086/1448;right:clamp(0px,2vw,40px);bottom:0}
#edxhp-home .x24-caronte-portale{filter:drop-shadow(0 30px 44px rgba(0,0,0,.55))}
#edxhp-home .x24-slide.is-active .x24-caronte-portale{filter:drop-shadow(0 30px 44px rgba(0,0,0,.55))}
#edxhp-home .x24-slide.is-active .x24-poster{filter:drop-shadow(0 30px 44px rgba(0,0,0,.55))}
#edxhp-home .x24-success-wrap{inset:auto;left:-36%;bottom:14%;width:60%;z-index:3}
#edxhp-home .x24-success{width:100%;height:auto;border-radius:14px;border:1px solid rgba(255,255,255,.18);box-shadow:0 24px 60px rgba(0,0,0,.55),0 0 0 4px rgba(10,12,8,.55);opacity:0;transform:translate3d(0,30px,0) scale(.92)}
#edxhp-home .x24-slide.is-active .x24-success{opacity:1;transform:rotate(2deg);transition:opacity .8s ease 1.4s,transform 1s var(--ease) 1.4s}
#edxhp-home .x24-qr-wrap{inset:auto;left:-24%;top:15%;width:30%;z-index:3}
#edxhp-home .x24-qr{position:relative;display:grid;gap:8px;justify-items:center;padding:12px 12px 9px;border-radius:18px;background:#fff;box-shadow:0 24px 60px rgba(0,0,0,.5),0 0 40px rgba(255,170,100,.3);transform:rotate(5deg) scale(.8);opacity:0;overflow:hidden}
#edxhp-home .x24-slide.is-active .x24-qr{opacity:1;transform:rotate(5deg);transition:opacity .8s ease 1.7s,transform 1s var(--ease) 1.7s}
#edxhp-home .x24-qr img{width:100%;height:auto;image-rendering:pixelated}
#edxhp-home .x24-qr span{font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#1a1217}
#edxhp-home .x24-scan{position:absolute;left:8px;right:8px;top:12px;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#ff3d57,transparent);box-shadow:0 0 12px #ff3d57;animation:x24scan 2.6s ease-in-out infinite}
#edxhp-home .x24-from{position:absolute;left:-9%;top:27%;width:1px;height:1px}
#edxhp-home .x24-to{position:absolute;left:23%;top:38%;width:1px;height:1px}


/* ---------- stati finali per la slide che sta uscendo + avvio ---------- */
#edxhp-home .x24-slide.is-leaving .x24-line>span,
#edxhp-home .x24-slide.is-leaving .x24-rise,
#edxhp-home .x24-slide.is-leaving .x24-actor,
#edxhp-home .x24-slide.is-leaving .x24-chip,
#edxhp-home .x24-slide.is-leaving .x24-medal,
#edxhp-home .x24-slide.is-leaving .x24-halo,
#edxhp-home .x24-slide.is-leaving .x24-success{opacity:1;transform:none;filter:none}
#edxhp-home .x24-slide.is-leaving .x24-caronte,#edxhp-home .x24-slide.is-leaving .x24-poster{filter:drop-shadow(0 30px 50px rgba(0,0,0,.55))}
#edxhp-home .x24-slide.is-leaving .x24-beatrice{filter:drop-shadow(0 0 34px rgba(255,214,150,.32)) drop-shadow(0 34px 44px rgba(0,0,0,.5))}
#edxhp-home .x24-slide.is-leaving .x24-virgilio{filter:drop-shadow(0 30px 40px rgba(0,0,0,.55)) drop-shadow(0 0 40px rgba(255,200,110,.22))}
#edxhp-home .x24-slide.is-leaving .x24-qr{opacity:1;transform:rotate(5deg)}
#edxhp-home .x24-slide.is-leaving .x24-success{transform:rotate(2deg)}
/* la prima slide è già visibile prima che parta il JS: i contenuti entrano appena pronto */
#edxhp-home .x24-hero:not(.is-ready) .x24-slide:first-child{visibility:visible;z-index:3;clip-path:none}
#edxhp-home .x24-chip.is-zap{border-color:#d6ecff;box-shadow:0 18px 44px rgba(0,0,0,.4),0 0 54px rgba(110,180,255,.75);filter:brightness(1.25)}

/* ---------- navigation ---------- */
#edxhp-home .x24-nav{position:absolute;z-index:20;left:0;right:0;bottom:0;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:46px clamp(28px,4vw,72px) 26px clamp(28px,6.5vw,118px);background:linear-gradient(0deg,rgba(3,4,8,.82),rgba(3,4,8,.4) 60%,transparent)}
#edxhp-home .x24-nav-list{display:flex;gap:clamp(10px,1.7vw,28px);margin:0;padding:0;list-style:none}
#edxhp-home .x24-nav-list li{margin:0}
#edxhp-home .x24-nav-item{appearance:none;-webkit-appearance:none;display:block;position:relative;width:clamp(116px,13.6vw,224px);margin:0;padding:15px 0 0;border:0;border-radius:0;background:none;color:rgba(255,255,255,.52);text-align:left;font:inherit;cursor:pointer;transition:color .3s}
#edxhp-home .x24-nav-item:hover,#edxhp-home .x24-nav-item.is-active{color:#fff;background:none}
#edxhp-home .x24-nav-bar{position:absolute;left:0;right:0;top:0;height:3px;border-radius:3px;background:rgba(255,255,255,.2);overflow:hidden}
#edxhp-home .x24-nav-bar i{display:block;width:100%;height:100%;border-radius:3px;background:linear-gradient(90deg,var(--red2),#ffd49a);transform:scaleX(var(--p,0));transform-origin:left}
#edxhp-home .x24-nav-num{display:block;font-size:11px;font-weight:800;letter-spacing:.2em;color:var(--accent);opacity:.9}
#edxhp-home .x24-nav-label{display:block;margin-top:3px;font-size:14px;line-height:1.25;font-weight:700}
#edxhp-home .x24-nav-tools{display:flex;align-items:center;gap:10px}
#edxhp-home .x24-tool{appearance:none;-webkit-appearance:none;display:grid;place-items:center;width:44px;height:44px;padding:0;margin:0;border-radius:50%;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(10px);cursor:pointer;transition:background .25s,transform .25s}
#edxhp-home .x24-tool:hover{background:rgba(255,255,255,.2);color:#fff;transform:translateY(-2px)}
#edxhp-home .x24-toggle .i-play{display:none}
#edxhp-home .x24-toggle[aria-pressed="true"] .i-play{display:block}
#edxhp-home .x24-toggle[aria-pressed="true"] .i-pause{display:none}
#edxhp-home .x24-demo{white-space:nowrap;display:inline-flex;align-items:center;gap:9px;height:44px;margin-left:6px;padding:0 20px;border-radius:999px;font-size:13.5px;font-weight:800;color:#fff!important;background:linear-gradient(180deg,var(--red2),#b40022);box-shadow:0 12px 30px rgba(214,0,28,.38);transition:transform .25s}
#edxhp-home .x24-demo:hover{transform:translateY(-2px)}

/* ---------- keyframes ---------- */
@keyframes x24kb{from{transform:scale(1.14)}to{transform:scale(1.02)}}
@keyframes x24mist{from{transform:translate3d(-4%,2%,0)}to{transform:translate3d(5%,-3%,0)}}
@keyframes x24sway{from{transform:rotate(-7deg)}to{transform:rotate(7deg)}}
@keyframes x24shine{to{background-position:220% 0}}
@keyframes x24ping{0%{transform:scale(.7);opacity:.8}100%{transform:scale(2.2);opacity:0}}
@keyframes x24blink{50%{opacity:0}}
@keyframes x24float{0%,100%{translate:0 0}50%{translate:0 -10px}}
@keyframes x24bob{0%,100%{translate:0 0}50%{translate:0 -12px}}
@keyframes x24breathe{0%,100%{scale:1}50%{scale:1.06}}
@keyframes x24spin{to{transform:rotate(360deg)}}
@keyframes x24scan{0%,100%{top:12px}50%{top:calc(100% - 34px)}}

/* ---------- tablet ---------- */
@media(max-width:1100px){
  #edxhp-home .x24-copy{width:min(560px,52%)}
  #edxhp-home .x24-nav-label{display:none}
  #edxhp-home .x24-nav-item{width:clamp(56px,10vw,110px)}
  #edxhp-home .x24-chip-wrap{max-width:200px}
  #edxhp-home .x24-chip span{display:none}
  #edxhp-home .x24-demo{padding:0 16px}
}

/* ---------- reset dei pulsanti globali del tema (site-unified.css usa !important) ---------- */
#edxhp-home .x24-hero .x24-nav-item,
#edxhp-home .x24-hero .x24-nav-item:hover,
#edxhp-home .x24-hero .x24-nav-item:focus,
#edxhp-home .x24-hero .x24-nav-item:active{
  display:block;min-height:0!important;height:auto;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
  filter:none!important;transform:none!important;letter-spacing:normal;font-weight:400;text-transform:none;justify-content:flex-start;
  color:rgba(255,255,255,.52)!important;padding:15px 0 0!important;line-height:1.2;
}
#edxhp-home .x24-hero .x24-nav-item:hover,
#edxhp-home .x24-hero .x24-nav-item.is-active{color:#fff!important}
#edxhp-home .x24-hero .x24-nav-item:focus-visible,
#edxhp-home .x24-hero .x24-tool:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
#edxhp-home .x24-hero .x24-tool,
#edxhp-home .x24-hero .x24-tool:focus,
#edxhp-home .x24-hero .x24-tool:active{
  display:grid!important;min-height:44px!important;width:44px;height:44px;padding:0!important;border-radius:50%!important;
  background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.22)!important;box-shadow:none!important;
  color:#fff!important;filter:none!important;letter-spacing:normal;
}
#edxhp-home .x24-hero .x24-tool:hover{background:rgba(255,255,255,.2)!important;box-shadow:0 8px 24px rgba(0,0,0,.35)!important;transform:translateY(-2px);filter:none!important}

/* ---------- schermi bassi (portatili 13": 1280x720 / 1366x768) ---------- */
@media(min-width:821px) and (max-height:820px){
  #edxhp-home .x24-hero{--h:clamp(600px,calc(100svh - 72px),980px)}
  #edxhp-home .x24-copy{padding-top:clamp(28px,4.5vh,48px);padding-bottom:104px}
  #edxhp-home .x24-hero .x24-h{font-size:clamp(40px,4.2vw,64px)}
  #edxhp-home .x24-eyebrow{margin-bottom:12px}
  #edxhp-home .x24-logo{width:min(340px,80%)}
  #edxhp-home .x24-num{font-size:clamp(60px,7vw,104px)}
  #edxhp-home .x24-ai{font-size:clamp(28px,3.2vw,48px)}
  #edxhp-home .x24-lead{margin-top:14px;font-size:15px;line-height:1.52}
  #edxhp-home .x24-nav{padding-top:30px;padding-bottom:16px}
}

/* ---------- mobile ---------- */
@media(max-width:820px){
  #edxhp-home .x24-hero{--h:auto}
  #edxhp-home .x24-stage,#edxhp-home .x24-slide{min-height:0}
  #edxhp-home .x24-slide{flex-direction:column;align-items:stretch;padding-left:0}
  #edxhp-home .x24-copy{order:1;width:auto;padding:96px 22px 0}
  #edxhp-home .x24-art{order:2;position:relative;right:auto;bottom:auto;margin:10px auto 0;margin-top:auto;width:min(92vw,470px);height:auto;max-height:none}
  #edxhp-home .x24-art-1{aspect-ratio:1122/1224;width:min(84vw,430px)}
  #edxhp-home .x24-art-2{aspect-ratio:1122/1402;width:min(76vw,380px)}
  #edxhp-home .x24-art-3{aspect-ratio:1448/1086;width:min(96vw,520px);bottom:auto;margin-top:auto;margin-bottom:12px}
  #edxhp-home .x24-s3 .x24-copy{padding-bottom:70px}
  #edxhp-home .x24-tag{padding:6px 10px;border-radius:10px}
  #edxhp-home .x24-tag img{height:17px}
  #edxhp-home .x24-tag-suite{padding:7px 12px}
  #edxhp-home .x24-tag-suite img{height:24px}
  #edxhp-home .x24-tag-1{top:-7%}#edxhp-home .x24-tag-2{top:-11%}#edxhp-home .x24-tag-3{top:-6%}
  #edxhp-home .x24-art-2 .x24-actor{-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}
  #edxhp-home .x24-art-4{aspect-ratio:1086/1448;width:min(80vw,400px);height:auto;margin-bottom:0}
  #edxhp-home .x24-cv-front{height:100%}
  #edxhp-home .x24-hero .x24-h,#edxhp-home .x24-hero .x24-h-big{font-size:clamp(40px,12.4vw,66px)}
  #edxhp-home .x24-num{font-size:clamp(64px,20vw,110px)}
  #edxhp-home .x24-ai{font-size:clamp(28px,8.6vw,46px)}
  #edxhp-home .x24-logo{width:min(320px,78%)}
  #edxhp-home .x24-logo-p{width:min(290px,72%)}
  #edxhp-home .x24-lead{font-size:16px;margin-top:18px}
  #edxhp-home .x24-chip-c,#edxhp-home .x24-chip-d,#edxhp-home .x24-medal-wrap{display:none}
  #edxhp-home .x24-chip-a{left:-2%;top:4%}
  #edxhp-home .x24-chip-b{left:0;top:56%}
  #edxhp-home .x24-chip b{font-size:12px}
  #edxhp-home .x24-chip{padding:9px 12px}
  #edxhp-home .x24-prompt{margin-top:18px}
  #edxhp-home .x24-prompt-mic{display:none}
  #edxhp-home .x24-hero .xhome-actions .xbtn{width:100%}
  #edxhp-home .x24-equation{gap:10px;padding:10px 14px}
  #edxhp-home .x24-equation img{height:26px}
  #edxhp-home .x24-equation img.x24-eq-suite{height:32px}
  #edxhp-home .x24-equation b{font-size:22px}
  #edxhp-home .x24-shade{background:linear-gradient(180deg,rgba(3,4,8,.55),rgba(3,4,8,.2) 40%,rgba(3,4,8,.6))}
  #edxhp-home .x24-beams i{left:50%}
  #edxhp-home .x24-nav{position:relative;flex-direction:column;align-items:stretch;gap:14px;padding:18px 20px 22px;background:linear-gradient(0deg,rgba(3,4,8,.9),rgba(3,4,8,.4))}
  #edxhp-home .x24-nav-list{gap:8px}
  #edxhp-home .x24-nav-list li{flex:1}
  #edxhp-home .x24-nav-item{width:100%;padding-top:12px}
  #edxhp-home .x24-nav-num{font-size:10px}
  #edxhp-home .x24-nav-tools{justify-content:space-between}
  #edxhp-home .x24-demo{flex:1;justify-content:center;margin-left:4px}
  #edxhp-home .x24-qr-wrap{left:-9%;top:-4%;width:27%}
  #edxhp-home .x24-success-wrap{left:-6%;bottom:5%;width:64%}
  #edxhp-home .x24-qr span{font-size:9px}
}
@media(max-width:480px){
  #edxhp-home .x24-copy{padding-left:18px;padding-right:18px}
  #edxhp-home .x24-pills li{font-size:12px;padding:7px 11px}
  #edxhp-home .x24-steps li{font-size:12px}
}

/* ---------- reduced motion ---------- */
@media(prefers-reduced-motion:reduce){
  #edxhp-home .x24-hero *,#edxhp-home .x24-hero *::before,#edxhp-home .x24-hero *::after{animation:none!important;transition-duration:0s!important;transition-delay:0s!important}
  #edxhp-home .x24-slide{clip-path:none!important}
  #edxhp-home .x24-rise,#edxhp-home .x24-line>span,#edxhp-home .x24-actor,#edxhp-home .x24-chip,#edxhp-home .x24-medal,#edxhp-home .x24-halo,#edxhp-home .x24-success,#edxhp-home .x24-qr,#edxhp-home .x24-tag{opacity:1;transform:none;filter:none}
}
