/* PROXIMA px-home.css — versione: HOME-2026-11-30-A */
/* ══════════════════════════════════════════════════════════════════════════
   PROXIMA · La home (ridisegnata il 25 novembre 2026, seconda versione)

   Vale SOLO per index.html e va caricato DOPO px-site.css: è l'unica pagina
   in cui px-site.css non è l'ultimo foglio di stile, perché qui l'header
   cambia colore sopra le sezioni scure (.pxs-head.on-dark).

   È un incrocio tra la home di prima (apertura chiara e luminosa, pannello
   scuro con i dati, testi in Newsreader, pulsanti viola) e la struttura
   nuova (servizi in alto, analisi compresse, sezioni a fogli).

   Indice
     0. Base, token, pezzi comuni     5. Analisi (#analisi)
     1. Header sulla home             6. In corso (#speciali)
     2. Apertura (.pxh-hero)          7. Chi siamo
     3. Servizi (#consulting)         8. Contatto e newsletter
     4. Metodo (#metodo)              9. Banner dei cookie
                                     10. Schermi piccoli, movimento ridotto
                                     11. Proxima Report (#report, in fondo al file)

   Regole tenute: si animano solo transform e opacity; il mono (Space Mono)
   non scende sotto i 12px; un solo colore d'accento, il viola, più l'ambra
   per il dato in evidenza, come negli articoli.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 0 · Base e token ─────────────────────────────────────────────────── */
html, body{ background: #fbfafd; }
:root{
  --h-night: #13111a;
  --h-night-2: #1d1929;
  --h-ink: #2a2733;
  --h-paper: #fbfafd;
  --h-mist: #f3f1f8;
  --h-card: #ffffff;
  --h-violet: #6a45ff;
  --h-violet-600: #5533e6;                 /* il bianco sopra sta a 7:1 */
  --h-violet-700: #3f23bd;
  --h-violet-400: #8a6dff;
  --h-violet-300: #b3a0ff;
  --h-violet-200: #d9ccff;
  --h-violet-100: #ece6ff;
  --h-amber: #f5a524;
  --h-text: #4a4558;                       /* 8.9:1 su paper */
  --h-muted: #625d72;                      /* 6.1:1 su paper */
  --h-line: rgba(42,39,51,.11);
  --h-on-dark-2: rgba(251,250,253,.76);
  --h-on-dark-3: rgba(251,250,253,.64);    /* 7:1 su night */
  --h-line-dark: rgba(255,255,255,.13);
  --h-sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --h-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --h-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --h-max: 1180px;                         /* come header e footer */
  --h-pad: clamp(20px, 4vw, 40px);
  --h-sheet: clamp(24px, 3.2vw, 44px);     /* raggio dei «fogli» tra una sezione e l'altra */
  --h-ease: cubic-bezier(.22, 1, .36, 1);
  --h-ease-ui: cubic-bezier(.4, 0, .2, 1);
}
body.pxh-body{
  margin: 0; color: var(--h-ink); font-family: var(--h-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
.pxh *, .pxh *::before, .pxh *::after{ box-sizing: border-box; }
.pxh{ display: block; }
.pxh ::selection{ background: rgba(106,69,255,.28); }
/* Azzeramenti a specificità bassa: una classe scritta più sotto vince sempre. */
.pxh :where(img, svg){ display: block; max-width: 100%; }
.pxh :where(a){ color: inherit; text-decoration: none; }
.pxh :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure){ margin: 0; padding: 0; }
.pxh :where(ul, ol){ list-style: none; }
.pxh :where(button, input, textarea){ font-family: inherit; }
@media (prefers-reduced-motion: no-preference){ html{ scroll-behavior: smooth; } }

.pxh-in{ max-width: var(--h-max); margin: 0 auto; width: 100%; }

/* Sezioni: ogni sezione è un foglio con gli angoli alti arrotondati che
   sale sopra la precedente. */
.pxh-sec{
  position: relative; z-index: 1;
  padding: clamp(84px, 9vw, 132px) var(--h-pad) calc(clamp(84px, 9vw, 132px) + var(--h-sheet));
  margin-top: calc(-1 * var(--h-sheet));
  border-radius: var(--h-sheet) var(--h-sheet) 0 0;
  background: var(--h-paper);
}
.pxh-sec.is-mist{ background: var(--h-mist); }
.pxh-sec.is-dark{ background: var(--h-night); color: #fff; }
.pxh-sec.is-last{ padding-bottom: clamp(72px, 8vw, 112px); }

/* Etichetta con il filetto, come nella home di prima */
.pxh-eyebrow{
  display: inline-flex; align-items: center; gap: 12px;
  font: 400 13px/1.2 var(--h-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--h-violet-700);
}
.pxh-eyebrow::before{ content: ""; width: 28px; height: 1px; background: currentColor; opacity: .65; }
.is-dark .pxh-eyebrow{ color: var(--h-violet-300); }
.pxh-h2{
  margin-top: 20px;
  font: 600 clamp(34px, 4.6vw, 62px)/1.02 var(--h-sans); letter-spacing: -.04em; text-wrap: balance;
}
.pxh-h2 em{ font: italic 400 1.05em/1 var(--h-serif); letter-spacing: -.025em; color: var(--h-violet-600); }
.is-dark .pxh-h2 em{ color: var(--h-violet-300); }
.pxh-lead{
  margin-top: 20px; max-width: 50ch; text-wrap: pretty;
  font: 400 clamp(19px, 1.55vw, 21.5px)/1.55 var(--h-serif); color: var(--h-text);
}
.is-dark .pxh-lead{ color: var(--h-on-dark-2); }
.pxh-head{ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.pxh-head-act{ padding-bottom: 6px; }
.pxh-btns{ display: flex; flex-wrap: wrap; gap: 10px; }

/* Pulsanti: viola pieno, angoli da 14px, un riflesso che passa al tocco */
.pxh-btn{
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
  padding: 0 24px; border-radius: 14px; border: 0; cursor: pointer; white-space: nowrap;
  font: 600 16.5px/1 var(--h-sans); letter-spacing: -.01em;
  background: var(--h-violet); color: #fff;
  box-shadow: 0 14px 28px -16px rgba(106,69,255,.9), inset 0 1px 0 rgba(255,255,255,.22);
  transition: background-color .2s var(--h-ease-ui), transform .2s var(--h-ease-ui);
}
.pxh-btn::after{
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.34) 50%, rgba(255,255,255,0) 70%);
  transform: translateX(-120%); transition: transform .7s var(--h-ease);
}
.pxh-btn:hover::after{ transform: translateX(120%); }
.pxh-btn:hover{ background: var(--h-violet-600); }
.pxh-btn:active{ transform: scale(.975); }
.pxh-btn svg{ flex: none; transition: transform .3s var(--h-ease); }
.pxh-btn:hover svg{ transform: translateX(4px); }
.pxh-btn.is-dark{ background: var(--h-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.pxh-btn.is-dark:hover{ background: var(--h-night); }
.pxh-btn.is-light{ background: #fff; color: var(--h-night); box-shadow: 0 14px 30px -18px rgba(0,0,0,.8); }
.pxh-btn.is-light:hover{ background: var(--h-violet-100); }
.pxh-btn.is-line{ background: transparent; color: var(--h-ink); box-shadow: inset 0 0 0 1.5px rgba(42,39,51,.24); }
.pxh-btn.is-line:hover{ background: rgba(106,69,255,.08); box-shadow: inset 0 0 0 1.5px rgba(106,69,255,.6); }
.is-dark .pxh-btn.is-line{ color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.is-dark .pxh-btn.is-line:hover{ background: rgba(255,255,255,.08); }
.pxh-link{
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 600 16px/1.2 var(--h-sans); color: var(--h-violet-700);
}
.pxh-link svg{ transition: transform .3s var(--h-ease); }
a:hover > .pxh-link svg, .pxh-link:hover svg{ transform: translateX(4px); }

/* Luce che segue il puntatore sulle superfici scure (js/px-home.js scrive --mx e --my) */
.pxh-spot{ position: relative; }
.pxh-spot::after{
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(179,160,255,.17), rgba(179,160,255,0) 62%);
  opacity: 0; transition: opacity .4s;
}
.pxh-spot:hover::after{ opacity: 1; }

/* Anello di focus leggibile anche sulle sezioni scure e viola. */
.pxh-sec.is-dark :focus-visible, .pxh-console :focus-visible, .pxh-feat:focus-visible{ outline-color: var(--h-violet-300); }
.pxh-method :focus-visible, .pxh-news :focus-visible{ outline-color: #fff; }

/* Comparsa allo scorrimento. Lo stato di riposo è visibile: l'opacità 0
   vale solo se lo script ha messo .pxh-anim su <html>. */
.pxh-anim .pxh-rv{ opacity: 0; transform: translate3d(0, 28px, 0); }
.pxh-anim .pxh-rv.is-in{
  opacity: 1; transform: none;
  transition: opacity .8s var(--h-ease) var(--rv-d, 0s), transform .9s var(--h-ease) var(--rv-d, 0s);
}


/* ── 1 · Header sulla home ────────────────────────────────────────────── */
/* Lo script mette .on-dark quando sotto l'header passa una sezione scura. */
html:not(.pxs-lock) body.pxh-body .pxs-head.on-dark{
  background: rgba(19,17,26,.66); border-bottom-color: rgba(255,255,255,.08);
}
html:not(.pxs-lock) body.pxh-body .pxs-head.on-dark .pxs-logo{ color: #fff !important; }
html:not(.pxs-lock) body.pxh-body .pxs-head.on-dark .pxs-logo svg circle:first-child{ fill: #fbfafd; }
html:not(.pxs-lock) body.pxh-body .pxs-head.on-dark .pxs-nav a{ color: rgba(255,255,255,.82); }
html:not(.pxs-lock) body.pxh-body .pxs-head.on-dark .pxs-nav a:hover{ color: #fff; background: rgba(255,255,255,.09); }
html:not(.pxs-lock) body.pxh-body .pxs-head.on-dark .pxs-nav a.pxs-hot::before{ background: var(--h-violet-300); box-shadow: 0 0 0 3px rgba(179,160,255,.2); }
html:not(.pxs-lock) body.pxh-body .pxs-head.on-dark .pxs-cta{ background: #fff; color: var(--h-night) !important; }
html:not(.pxs-lock) body.pxh-body .pxs-head.on-dark .pxs-cta:hover{ background: var(--h-violet-100); }
html:not(.pxs-lock) body.pxh-body .pxs-head.on-dark .pxs-menu-btn{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
body.pxh-body .pxs-head{ transition: transform .38s cubic-bezier(.22,.7,.2,1), box-shadow .3s, background-color .3s; }
body.pxh-body .pxs-head .pxs-logo, body.pxh-body .pxs-head .pxs-nav a{ transition: color .3s, background-color .15s; }


/* ── 2 · Apertura ─────────────────────────────────────────────────────── */
.pxh-hero{
  position: relative; overflow: clip; background: var(--h-paper); color: var(--h-ink);
  min-height: 100vh; min-height: min(100svh, 980px);
  display: grid; align-items: center;
  padding: calc(var(--pxs-head-h, 68px) + clamp(28px, 4vw, 60px)) var(--h-pad) calc(var(--h-sheet) + clamp(44px, 6vw, 88px));
}
/* La luce: tre aloni lavanda che si spostano piano, sopra una carta a puntini. */
.pxh-aura{ position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pxh-aura::before{
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(63,35,189,.26) 1px, rgba(63,35,189,0) 1.5px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(64% 72% at 72% 44%, #000 0%, rgba(0,0,0,0) 78%);
          mask-image: radial-gradient(64% 72% at 72% 44%, #000 0%, rgba(0,0,0,0) 78%);
}
.pxh-aura i{ position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.pxh-aura i:nth-child(1){ width: 600px; height: 600px; right: -6%; top: -16%; background: #b3a0ff; opacity: .62; animation: pxh-aura-a 24s ease-in-out infinite alternate; }
.pxh-aura i:nth-child(2){ width: 480px; height: 480px; right: 24%; bottom: -26%; background: #d9ccff; opacity: .8; animation: pxh-aura-b 30s ease-in-out infinite alternate; }
.pxh-aura i:nth-child(3){ width: 420px; height: 420px; left: -10%; top: 6%; background: #ece6ff; opacity: .95; animation: pxh-aura-c 34s ease-in-out infinite alternate; }
@keyframes pxh-aura-a{ to{ transform: translate3d(-70px, 60px, 0) scale(1.12); } }
@keyframes pxh-aura-b{ to{ transform: translate3d(90px, -50px, 0) scale(.9); } }
@keyframes pxh-aura-c{ to{ transform: translate3d(60px, 70px, 0) scale(1.1); } }

.pxh-hero-in{
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.pxh-h1{
  margin-top: clamp(20px, 2.4vw, 30px);
  font: 600 clamp(50px, 6.5vw, 98px)/.94 var(--h-sans); letter-spacing: -.05em; color: var(--h-ink);
}
.pxh-h1 .l{ display: block; overflow: hidden; padding: .04em .06em .1em 0; margin-bottom: -.1em; }
.pxh-h1 .l > span{ display: block; }
.pxh-h1 em{
  display: block; margin-top: .34em;
  font: italic 400 .47em/1.1 var(--h-serif); letter-spacing: -.02em; color: var(--h-violet-600); white-space: nowrap;
}
.pxh-sub{
  margin-top: clamp(22px, 2.4vw, 30px); max-width: 30em; text-wrap: pretty;
  font: 400 clamp(19px, 1.55vw, 22px)/1.55 var(--h-serif); color: var(--h-text);
}
.pxh-cta{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 38px); }

/* Parlano di noi: loghi in grigio, a colori al passaggio */
.pxh-press{ margin-top: clamp(32px, 4vw, 52px); padding-top: 22px; border-top: 1px solid var(--h-line); max-width: 560px; }
.pxh-press p{ font: 400 12.5px/1.2 var(--h-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--h-muted); }
.pxh-press ul{ display: flex; align-items: center; flex-wrap: wrap; gap: 8px clamp(22px, 2.8vw, 40px); margin-top: 10px; }
.pxh-press a{ display: flex; align-items: center; min-height: 44px; }
.pxh-press img{ width: auto; filter: grayscale(1); opacity: .74; transition: filter .25s, opacity .25s; }
.pxh-press a:hover img, .pxh-press a:focus-visible img{ filter: none; opacity: 1; }

/* Il pannello scuro con il campo di punti */
.pxh-stage{ position: relative; justify-self: end; width: 100%; max-width: 560px; margin-bottom: 60px; }
.pxh-console{
  position: relative; border-radius: 32px; padding: 22px 26px 118px; color: #fff;
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(106,69,255,.42), rgba(106,69,255,0) 62%),
    linear-gradient(180deg, #1f1a2c 0%, #13111a 100%);
  box-shadow: 0 60px 120px -44px rgba(63,35,189,.75), 0 28px 54px -30px rgba(19,17,26,.7), inset 0 1px 0 rgba(255,255,255,.1);
  transform: perspective(1300px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--h-ease); will-change: transform;
}
.pxh-console.is-tilting{ transition: transform .12s linear; }
/* bordo sfumato */
.pxh-console::before, .pxh-form::before{
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(179,160,255,.8), rgba(179,160,255,0) 36%, rgba(179,160,255,0) 64%, rgba(179,160,255,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.pxh-console-top{
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 400 12.5px/1.2 var(--h-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--h-on-dark-2);
}
.pxh-now{ display: inline-flex; align-items: center; gap: 8px; color: var(--h-violet-300); }
.pxh-now::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--h-violet-300); box-shadow: 0 0 0 4px rgba(179,160,255,.18); }
.pxh-field-cv{ position: relative; aspect-ratio: 1 / .68; margin-top: 6px; }
.pxh-field-cv canvas{ position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pxh-steps{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.pxh-step{
  position: relative; display: block; width: 100%; min-height: 44px; padding: 14px 0 6px; border: 0; background: none;
  text-align: left; cursor: pointer; color: rgba(255,255,255,.64);
  font: 500 15.5px/1.2 var(--h-sans); letter-spacing: -.01em; transition: color .3s;
}
.pxh-step::before, .pxh-step::after{ content: ""; position: absolute; left: 0; top: 0; height: 2px; border-radius: 2px; }
.pxh-step::before{ right: 0; background: rgba(255,255,255,.16); }
.pxh-step::after{ width: 100%; background: var(--h-violet-300); transform: scaleX(0); transform-origin: left; }
.pxh-step:hover{ color: #fff; }
.pxh-step[aria-pressed="true"]{ color: #fff; }
.pxh-step[aria-pressed="true"]::after{ transform: scaleX(1); }
.pxh-console.is-auto .pxh-step[aria-pressed="true"]::after{ animation: pxh-fill var(--step-ms, 4200ms) linear both; }
@keyframes pxh-fill{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }
.pxh-step-txt{
  margin-top: 8px; height: 3.1em;   /* due righe fisse: il testo cambia, l'altezza no */
  font: 400 16.5px/1.5 var(--h-serif); color: var(--h-on-dark-2);
}
/* La card «Ultima analisi», chiara, a cavallo dell'angolo del pannello */
.pxh-kpi{
  position: absolute; left: clamp(-72px, -5vw, -24px); bottom: -60px; z-index: 2; width: min(330px, 78%);
  display: block; padding: 18px 20px 18px; border-radius: 22px; color: var(--h-ink);
  background: rgba(255,255,255,.84); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 0 0 1px rgba(42,39,51,.07), 0 34px 60px -30px rgba(42,39,51,.55);
  transition: transform .5s var(--h-ease), box-shadow .3s;
}
.pxh-kpi:hover{ transform: translate3d(0, -5px, 0); box-shadow: 0 0 0 1px rgba(106,69,255,.5), 0 40px 70px -30px rgba(63,35,189,.6); }
.pxh-kpi .k{ display: block; font: 400 12px/1.3 var(--h-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--h-violet-700); }
.pxh-kpi .t{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; font: 600 20px/1.15 var(--h-sans); letter-spacing: -.03em; }
.pxh-kpi .t svg{ flex: none; color: var(--h-violet-700); transition: transform .3s var(--h-ease); }
.pxh-kpi:hover .t svg{ transform: translateX(4px); }
.pxh-kpi .f{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--h-line); }
.pxh-kpi .f b{ display: block; font: 700 22px/1 var(--h-mono); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.pxh-kpi .f span span{ display: block; margin-top: 6px; font: 400 13.5px/1.3 var(--h-sans); color: var(--h-muted); }

/* Entrata dell'apertura */
.pxh-anim .pxh-e{ animation: pxh-up 1s var(--h-ease) var(--d, .1s) both; }
.pxh-anim .pxh-h1 .l > span{ animation: pxh-rise 1.1s var(--h-ease) var(--d, .2s) both; }
@keyframes pxh-up{ from{ opacity: 0; transform: translate3d(0, 24px, 0); } to{ opacity: 1; transform: none; } }
@keyframes pxh-rise{ from{ transform: translate3d(0, 108%, 0); } to{ transform: none; } }


/* ── 3 · Servizi ──────────────────────────────────────────────────────── */
.pxh-sv-sec{
  background:
    radial-gradient(52% 38% at 100% 0%, rgba(106,69,255,.26), rgba(106,69,255,0) 70%),
    radial-gradient(44% 40% at 0% 100%, rgba(63,35,189,.24), rgba(63,35,189,0) 70%),
    var(--h-night) !important;
}
.pxh-sv{
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); column-gap: clamp(32px, 4.6vw, 72px);
  margin-top: clamp(44px, 5.4vw, 72px);
}
.pxh-sv-item{ display: contents; }
.pxh-sv-tab{
  position: relative; grid-column: 1; display: block; width: 100%; padding: 22px 0 24px; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--h-line-dark); color: inherit; cursor: pointer;
}
.pxh-sv-item:last-child .pxh-sv-tab{ border-bottom: 1px solid var(--h-line-dark); }
.pxh-sv-tab::before{
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px;
  background: var(--h-violet-300); transform: scaleX(0); transform-origin: left;
}
.is-on > .pxh-sv-tab::before{ transform: scaleX(1); }
.pxh-sv.is-auto .is-on > .pxh-sv-tab::before{ animation: pxh-fill var(--sv-ms, 7000ms) linear both; }
.pxh-sv.is-paused .is-on > .pxh-sv-tab::before{ animation-play-state: paused; }
.pxh-sv-tab .t{
  display: flex; align-items: center; gap: 12px;
  font: 500 clamp(23px, 2.2vw, 30px)/1.12 var(--h-sans); letter-spacing: -.035em; color: rgba(255,255,255,.66);
  transition: color .3s, transform .5s var(--h-ease);
}
.pxh-sv-tab .t::before{
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--h-violet-300);
  transform: scale(0); margin-left: -21px; transition: transform .4s var(--h-ease);
}
.pxh-sv-tab .d{ display: block; margin-top: 9px; max-width: 38ch; font: 400 17.5px/1.5 var(--h-serif); color: var(--h-on-dark-3); transition: color .3s; }
.pxh-sv-tab:hover .t{ color: #fff; }
.is-on > .pxh-sv-tab .t{ color: #fff; transform: translate3d(21px, 0, 0); }
.is-on > .pxh-sv-tab .t::before{ transform: scale(1); }
.is-on > .pxh-sv-tab .d{ color: rgba(251,250,253,.86); }

/* Il riquadro che cambia */
.pxh-sv-panel{
  grid-column: 2; grid-row: 1 / span 5; display: flex; flex-direction: column; min-height: 540px;
  padding: 24px 28px 26px; border-radius: 32px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.03));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.11), 0 50px 90px -60px rgba(106,69,255,.7);
  opacity: 0; visibility: hidden; transform: translate3d(0, 16px, 0) scale(.985);
  transition: opacity .4s, transform .6s var(--h-ease), visibility 0s .4s;
}
.is-on > .pxh-sv-panel{ opacity: 1; visibility: visible; transform: none; transition: opacity .5s .06s, transform .7s var(--h-ease) .06s, visibility 0s; }
.pxh-sv-cap{
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; min-height: 44px;
  font: 400 12.5px/1.4 var(--h-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--h-on-dark-3);
}
.pxh-sv-cap a{
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font: 600 15.5px/1 var(--h-sans); letter-spacing: 0; text-transform: none; color: #fff;
}
.pxh-sv-cap a svg{ transition: transform .3s var(--h-ease); }
.pxh-sv-cap a:hover svg{ transform: translateX(4px); }
.pxh-sv-demo{ position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding-top: 12px; }
.d-fine{ position: relative; z-index: 1; margin-top: 12px; font: 400 14.5px/1.45 var(--h-sans); color: var(--h-on-dark-3); }

/* 3a · Strategia: tre lastre che si separano */
.d-strat{ gap: clamp(12px, 3vw, 44px); flex-wrap: wrap; }
.d-stack-wrap{ flex: none; width: 360px; height: 430px; display: grid; place-items: center; }
.d-stack{
  position: relative; width: 270px; height: 270px; transform-style: preserve-3d; --gap: 64px;
  transform: rotateX(57deg) rotateZ(-42deg) translateZ(-64px); transition: transform .9s var(--h-ease);
}
.d-plate{
  position: absolute; inset: 0; border-radius: 30px; background: rgba(32,27,48,.9);
  box-shadow: inset 0 0 0 1.5px rgba(179,160,255,.5), 0 0 44px rgba(106,69,255,.3);
  transform: translateZ(calc(var(--z) * var(--gap))); transition: transform .9s var(--h-ease), box-shadow .3s, opacity .3s;
}
.d-plate[data-p="0"]{ --z: 0; } .d-plate[data-p="1"]{ --z: 1; } .d-plate[data-p="2"]{ --z: 2; }
.d-plate svg{ width: 100%; height: 100%; }
.d-strat:hover .d-stack, .d-strat.is-open .d-stack{ --gap: 104px; }
.d-stack.has-hot .d-plate{ opacity: .4; }
.d-stack.has-hot .d-plate.is-hot{ opacity: 1; box-shadow: inset 0 0 0 2px #b3a0ff, 0 0 70px rgba(138,109,255,.7); }
.d-layers{ display: grid; gap: 10px; min-width: 0; }
.d-layers button{
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 18px; border: 0; border-radius: 14px;
  text-align: left; cursor: pointer; color: #fff; font: 500 16.5px/1.2 var(--h-sans); letter-spacing: -.01em;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  transition: background-color .25s, box-shadow .25s;
}
.d-layers button::before{ content: ""; flex: none; width: 14px; height: 9px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--h-violet-300); transform: skewX(-28deg); }
.d-layers button:hover, .d-layers button.is-hot{ background: rgba(179,160,255,.2); box-shadow: inset 0 0 0 1px rgba(179,160,255,.8); }
.d-layers button.is-hot::before{ background: var(--h-violet-300); }

/* 3b · Dati elettorali: il gradino del 42% */
.d-sim{ flex-direction: column; align-items: stretch; justify-content: center; }
.d-sim svg{ width: 100%; height: auto; max-height: 268px; }
.d-sim circle{ fill: rgba(255,255,255,.2); transition: fill .25s; }
.d-sim circle.on{ fill: var(--h-violet-400); }
.d-sim circle.pr{ fill: var(--h-amber); }
.d-sim-row{ display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: end; margin-top: 4px; }
.d-sim-out{ display: flex; align-items: flex-end; gap: 12px; }
.d-sim-out b{ font: 500 64px/.9 var(--h-sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; min-width: 2.9ch; }
.d-sim-out span{ font: 400 14.5px/1.3 var(--h-sans); color: var(--h-on-dark-2); padding-bottom: 4px; }
.d-sim-ctl label{ display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font: 500 15.5px/1.3 var(--h-sans); color: rgba(255,255,255,.9); }
.d-sim-ctl output{ font: 700 17px/1 var(--h-mono); letter-spacing: -.03em; color: var(--h-violet-300); }
.d-sim-ctl input{
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 2px 0 0; background: none; cursor: pointer;
  /* la tacca della soglia: 42% su una scala che va da 30 a 52 */
  background-image: linear-gradient(var(--h-amber), var(--h-amber)); background-size: 2px 16px; background-position: 54.5% 50%; background-repeat: no-repeat;
}
.d-sim-ctl input::-webkit-slider-runnable-track{ height: 4px; border-radius: 4px; background: rgba(255,255,255,.26); }
.d-sim-ctl input::-moz-range-track{ height: 4px; border-radius: 4px; background: rgba(255,255,255,.26); }
.d-sim-ctl input::-webkit-slider-thumb{ -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(138,109,255,.4), 0 6px 14px rgba(0,0,0,.5); }
.d-sim-ctl input::-moz-range-thumb{ width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(138,109,255,.4), 0 6px 14px rgba(0,0,0,.5); }
.d-sim-msg{ margin-top: 12px; min-height: 3.1em; font: 400 17px/1.5 var(--h-serif); color: rgba(251,250,253,.9); }
.d-sim-msg b{ font-weight: 500; color: #fff; }

/* 3c · Comunicazione: le card social a ventaglio */
.d-fan{ display: block; height: 100%; min-height: 360px; }
.d-card{
  position: absolute; left: 50%; top: 50%; width: min(84%, 540px); aspect-ratio: 1200 / 630; padding: 0; border: 0; cursor: pointer;
  border-radius: 18px; overflow: hidden; background: var(--h-night-2);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .7s var(--h-ease), opacity .4s;
}
.d-card img{ width: 100%; height: 100%; object-fit: cover; }
.d-card[data-pos="0"]{ z-index: 1; opacity: .9; transform: translate(-50%, -50%) translate3d(-11%, -22%, 0) rotate(-8deg) scale(.88); }
.d-card[data-pos="1"]{ z-index: 2; opacity: .96; transform: translate(-50%, -50%) translate3d(11%, -6%, 0) rotate(5deg) scale(.94); }
.d-card[data-pos="2"]{ z-index: 3; transform: translate(-50%, -50%) translate3d(-2%, 16%, 0) rotate(-2deg); }
.d-fan:hover .d-card[data-pos="0"]{ transform: translate(-50%, -50%) translate3d(-16%, -34%, 0) rotate(-11deg) scale(.88); }
.d-fan:hover .d-card[data-pos="1"]{ transform: translate(-50%, -50%) translate3d(17%, -10%, 0) rotate(8deg) scale(.94); }
.d-fan:hover .d-card[data-pos="2"]{ transform: translate(-50%, -50%) translate3d(-3%, 22%, 0) rotate(-1deg) scale(1.02); }

/* 3d · Monitoraggio: il radar e le segnalazioni */
.d-mon{ display: grid; grid-template-columns: clamp(160px, 19vw, 250px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.d-radar{
  position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(179,160,255,0) 0 23%, rgba(179,160,255,.3) 23% calc(23% + 1px), rgba(179,160,255,0) calc(23% + 1px) 24%), rgba(138,109,255,.08);
  box-shadow: inset 0 0 0 1px rgba(179,160,255,.45);
}
.d-radar .sweep{ position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(138,109,255,0) 0deg, rgba(138,109,255,0) 280deg, rgba(138,109,255,.6) 359deg, rgba(138,109,255,0) 360deg); }
.is-live .d-radar .sweep{ animation: pxh-spin 5.5s linear infinite; }
@keyframes pxh-spin{ to{ transform: rotate(360deg); } }
.d-radar b{ position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); transition: transform .35s var(--h-ease), background-color .25s; }
.d-radar b.is-hot{ transform: scale(1.9); background: var(--h-amber); }
.d-feed li + li{ border-top: 1px solid var(--h-line-dark); }
.d-feed a{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 15px 14px; margin: 0 -14px; border-radius: 14px; transition: background-color .25s; }
.d-feed a:hover, .d-feed a:focus-visible{ background: rgba(255,255,255,.07); }
.d-feed time{ font: 400 12.5px/1.3 var(--h-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--h-violet-300); }
.d-feed b{ font: 500 clamp(28px, 3vw, 38px)/1.05 var(--h-sans); letter-spacing: -.045em; }
.d-feed span{ font: 400 16.5px/1.4 var(--h-serif); color: var(--h-on-dark-2); }

/* 3e · Report: un foglio con un grafico vero */
.d-sheet{
  width: min(540px, 100%); padding: 30px 32px 28px; border-radius: 16px; background: var(--h-paper); color: var(--h-ink);
  transform: rotate(-2.4deg); box-shadow: 0 46px 80px -34px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.4);
  transition: transform .7s var(--h-ease);
}
.d-report:hover .d-sheet{ transform: rotate(0deg) scale(1.02); }
.d-sheet .k{ font: 400 12px/1.3 var(--h-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--h-violet-700); }
.d-sheet h4{ margin: 8px 0 0; font: 600 24px/1.15 var(--h-sans); letter-spacing: -.035em; }
.d-bars{ display: grid; gap: 14px; margin-top: 22px; }
.d-bars li{ display: grid; grid-template-columns: 70px minmax(0, 1fr) 50px; gap: 12px; align-items: center; font: 500 15.5px/1 var(--h-sans); }
.d-bars i{ display: block; height: 16px; border-radius: 5px; width: calc(var(--v) * 100%); background: var(--h-violet); transform-origin: left; }
.d-bars .is-hi i{ background: var(--h-amber); }
.d-bars b{ text-align: right; font: 700 16px/1 var(--h-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pxh-anim .pxh-sv:not(.is-flat) .pxh-sv-item:not(.is-on) .d-bars i{ transform: scaleX(0); }
.pxh-anim .is-on .d-bars i{ transition: transform 1s var(--h-ease) .25s; }
.pxh-anim .is-on .d-bars li:nth-child(2) i{ transition-delay: .35s; }
.pxh-anim .is-on .d-bars li:nth-child(3) i{ transition-delay: .45s; }
.pxh-anim .is-on .d-bars li:nth-child(4) i{ transition-delay: .55s; }
.d-sheet .src{ margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--h-line); font: 400 14px/1.45 var(--h-sans); color: var(--h-muted); }

/* Senza JavaScript il riquadro non può cambiare: i cinque esempi si mettono in colonna. */
html:not(.pxh-anim) .pxh-sv{ display: block; }
html:not(.pxh-anim) .pxh-sv-item{ display: block; }
html:not(.pxh-anim) .pxh-sv-tab{ border-bottom: 0; padding-bottom: 16px; cursor: default; }
html:not(.pxh-anim) .pxh-sv-tab::before, html:not(.pxh-anim) .pxh-sv-tab .t::before{ display: none; }
html:not(.pxh-anim) .pxh-sv-tab .t{ color: #fff; transform: none; }
html:not(.pxh-anim) .pxh-sv-panel{ opacity: 1; visibility: visible; transform: none; min-height: 0; max-width: 760px; margin-bottom: 34px; }
html:not(.pxh-anim) .d-sim-ctl, html:not(.pxh-anim) #pxh-hemi{ display: none; }

/* Lavoriamo con: un elenco in riga, da leggere come una frase */
.pxh-with{ display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px 32px; margin-top: clamp(52px, 6.4vw, 88px); }
.pxh-with h3{ padding-top: 9px; font: 400 13px/1.3 var(--h-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--h-violet-300); }
.pxh-with li{ display: inline; font: 400 clamp(21px, 2.2vw, 29px)/1.4 var(--h-serif); color: rgba(251,250,253,.92); }
.pxh-with li + li::before{ content: "·"; margin: 0 .42em; color: var(--h-violet-300); }


/* ── 4 · Metodo ───────────────────────────────────────────────────────── */
.pxh-method{
  color: #fff; background:
    radial-gradient(60% 70% at 100% 0%, rgba(179,160,255,.3), rgba(179,160,255,0) 66%),
    radial-gradient(46% 60% at 0% 100%, rgba(19,17,26,.4), rgba(19,17,26,0) 70%),
    linear-gradient(135deg, #5533e6 0%, #3f23bd 100%) !important;
}
.pxh-method .pxh-eyebrow{ color: #fff; }
.pxh-statement{
  margin-top: 28px; max-width: 21em; text-wrap: pretty;
  font: 500 clamp(30px, 4.4vw, 62px)/1.12 var(--h-sans); letter-spacing: -.04em; color: #fff;
}
.pxh-statement .w{ transition: opacity .35s linear; }
.pxh-formats-h{ margin-top: clamp(56px, 7vw, 104px); }
.pxh-formats-h h3{ font: 600 clamp(24px, 2.4vw, 32px)/1.1 var(--h-sans); letter-spacing: -.03em; }
.pxh-formats-h p{ margin-top: 10px; max-width: 52ch; font: 400 19px/1.55 var(--h-serif); color: rgba(255,255,255,.94); }
.pxh-formats{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pxh-format{
  display: flex; flex-direction: column; align-items: flex-start; min-height: 262px; padding: 26px; border-radius: 26px; overflow: hidden;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
  transition: background-color .3s var(--h-ease-ui), transform .5s var(--h-ease);
}
a.pxh-format:hover{ background: rgba(255,255,255,.16); transform: translate3d(0, -4px, 0); }
.pxh-format.pxh-spot::after{ background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.2), rgba(255,255,255,0) 62%); }
.pxh-phase{
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 8px;
  font: 400 12px/1 var(--h-mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.pxh-format h4{ margin: 22px 0 0; font: 600 clamp(26px, 2.5vw, 32px)/1.1 var(--h-sans); letter-spacing: -.035em; }
.pxh-format p{ margin-top: 10px; font: 400 17.5px/1.5 var(--h-serif); color: rgba(255,255,255,.94); }
.pxh-format .pxh-link{ margin-top: auto; padding-top: 16px; color: #fff; }


/* ── 5 · Analisi ──────────────────────────────────────────────────────── */
/* L'ultima uscita, a tutta larghezza */
.pxh-feat{
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 44px);
  min-height: clamp(440px, 41vw, 560px); margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 40px);
  border-radius: 32px; color: #fff; background: var(--h-night);
  box-shadow: 0 40px 80px -50px rgba(63,35,189,.7);
}
.pxh-feat > img{ position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 72% 28%; transition: transform 1.2s var(--h-ease); }
.pxh-feat:hover > img{ transform: scale(1.045); }
.pxh-feat::before{
  content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(90deg, rgba(19,17,26,.96) 0%, rgba(19,17,26,.88) 36%, rgba(19,17,26,.4) 70%, rgba(19,17,26,.22) 100%),
    linear-gradient(0deg, rgba(19,17,26,.78) 0%, rgba(19,17,26,0) 50%);
}
.pxh-tag{ display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font: 400 12.5px/1.4 var(--h-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--h-violet-300); }
.pxh-tag span{ color: rgba(255,255,255,.86); }
.pxh-feat h3{ margin-top: 14px; font: 600 clamp(34px, 4.4vw, 60px)/1 var(--h-sans); letter-spacing: -.045em; text-wrap: balance; }
.pxh-deck{ margin-top: 16px; max-width: 54ch; font: 400 clamp(17.5px, 1.4vw, 19.5px)/1.5 var(--h-serif); color: rgba(251,250,253,.92); }
.pxh-figs{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pxh-figs > div{
  padding: 16px 16px 15px; border-radius: 18px; background: rgba(19,17,26,.66);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.pxh-figs dd{ font: 700 clamp(21px, 2vw, 27px)/1 var(--h-mono); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.pxh-figs dt{ margin-top: 8px; font: 400 14px/1.3 var(--h-sans); color: rgba(251,250,253,.9); }
.pxh-go{
  position: absolute; right: clamp(20px, 2.4vw, 32px); top: clamp(20px, 2.4vw, 32px); width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--h-ink); transition: transform .5s var(--h-ease), background-color .25s, color .25s;
}
.pxh-feat:hover .pxh-go{ transform: rotate(-45deg); background: var(--h-violet); color: #fff; }

/* L'indice delle uscite: righe, con l'immagine che compare accanto al puntatore */
.pxh-index{ position: relative; isolation: isolate; margin-top: 12px; }
.pxh-index li{ border-bottom: 1px solid var(--h-line); }
.pxh-row{
  position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr) 214px 24px; gap: clamp(16px, 2.4vw, 32px);
  align-items: center; padding: 22px 0; color: var(--h-ink);
}
.pxh-row::before{ content: ""; position: absolute; inset: 4px -18px; z-index: -1; border-radius: 18px; background: var(--h-mist); opacity: 0; transition: opacity .25s; }
.pxh-row:hover::before, .pxh-row:focus-visible::before{ opacity: 1; }
.pxh-row > img{ display: none; width: 68px; height: 68px; border-radius: 14px; object-fit: cover; background: var(--h-mist); }
.pxh-row-k{ font: 400 12.5px/1.35 var(--h-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--h-violet-700); }
.pxh-row-k span{ display: block; margin-top: 4px; font: 400 14px/1.3 var(--h-sans); letter-spacing: 0; text-transform: none; color: var(--h-muted); }
.pxh-row h3{ font: 500 clamp(20px, 1.95vw, 26px)/1.18 var(--h-sans); letter-spacing: -.03em; transition: transform .5s var(--h-ease); text-wrap: balance; }
.pxh-row:hover h3{ transform: translate3d(8px, 0, 0); }
.pxh-row-f b{ display: block; font: 700 20px/1 var(--h-mono); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.pxh-row-f span{ display: block; margin-top: 6px; font: 400 14px/1.3 var(--h-sans); color: var(--h-muted); }
.pxh-row > svg{ color: var(--h-muted); transition: transform .4s var(--h-ease), color .2s; }
.pxh-row:hover > svg{ transform: translate3d(5px, 0, 0); color: var(--h-violet-700); }
.pxh-peek{
  position: fixed; left: 0; top: 0; z-index: 900; width: 280px; aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; pointer-events: none;
  background: var(--h-night-2); box-shadow: 0 34px 70px -26px rgba(19,17,26,.7), 0 0 0 1px rgba(255,255,255,.5);
  opacity: 0; transition: opacity .25s; will-change: transform;
}
.pxh-peek.is-show{ opacity: 1; }
.pxh-peek img{ width: 100%; height: 100%; object-fit: cover; }

/* I numeri del lavoro */
.pxh-nums{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(44px, 5.4vw, 72px); border-top: 2px solid var(--h-ink); }
.pxh-nums > div{ padding: 24px 24px 0 0; }
.pxh-nums > div + div{ padding-left: 24px; border-left: 1px solid var(--h-line); }
.pxh-nums dd{ font: 500 clamp(40px, 4.8vw, 70px)/1 var(--h-sans); letter-spacing: -.055em; font-variant-numeric: tabular-nums; color: var(--h-ink); }
.pxh-nums dt{ margin-top: 12px; max-width: 20ch; font: 400 17.5px/1.4 var(--h-serif); color: var(--h-text); }
.pxh-arch{ display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin-top: 30px; font: 400 15.5px/1.4 var(--h-sans); color: var(--h-muted); }
.pxh-arch a{ display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-weight: 600; color: var(--h-violet-700); text-decoration: underline; text-decoration-color: rgba(63,35,189,.3); text-underline-offset: 5px; }
.pxh-arch a:hover{ text-decoration-color: currentColor; }
.pxh-arch a span{ font: 400 13px/1 var(--h-mono); }


/* ── 6 · In corso ─────────────────────────────────────────────────────── */
.pxh-live{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.pxh-card-dark{
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
  min-height: clamp(470px, 40vw, 540px); padding: 26px; border-radius: 30px; overflow: hidden;
  color: #fff; background: var(--h-night);
  transition: transform .6s var(--h-ease), box-shadow .3s;
}
.pxh-card-dark:hover{ transform: translate3d(0, -6px, 0); box-shadow: 0 36px 70px -36px rgba(63,35,189,.75); }
/* Card con copertina: l'immagine sta in alto con la sua proporzione, il testo sotto. */
.pxh-card-dark.is-cover{ padding: 0; justify-content: flex-start; }
.pxh-card-m{ position: relative; display: block; aspect-ratio: 1 / .86; overflow: hidden; }
.pxh-card-m img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1s var(--h-ease); }
.pxh-card-dark:hover .pxh-card-m img{ transform: scale(1.04); }
.pxh-card-m::after{ content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 36%; background: linear-gradient(180deg, rgba(19,17,26,0), var(--h-night) 68%); }
.is-map .pxh-card-m img{ object-position: 100% 50%; }
.pxh-card-b{ display: flex; flex-direction: column; flex: 1; padding: 4px 26px 26px; }
.pxh-card-b .pxh-link{ margin-top: auto; padding-top: 16px; }
/* Il viola parte da #5533e6: il bianco ci sta sopra a 7:1 (su #6a45ff sarebbe 5,4:1). */
.pxh-card-dark.is-manovra{ background: linear-gradient(140deg, #5533e6 0%, #3f23bd 100%); justify-content: flex-start; }
.pxh-card-dark.is-manovra::after{
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 100% 0%, rgba(179,160,255,.26), rgba(179,160,255,0) 70%);
}
.pxh-card-dark .pxh-link{ color: #fff; }
.pxh-card-k{ font: 400 12.5px/1.3 var(--h-mono); letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.92); }
.pxh-card-dark h3{ margin-top: 10px; font: 600 clamp(26px, 2.4vw, 33px)/1.06 var(--h-sans); letter-spacing: -.04em; text-wrap: balance; }
.pxh-card-dark p{ margin-top: 10px; font: 400 17.5px/1.45 var(--h-serif); color: rgba(255,255,255,.94); }
.pxh-card-dark > .pxh-link{ margin-top: 16px; }
.pxh-card-stat{ display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.pxh-card-stat b{ font: 700 26px/1 var(--h-mono); letter-spacing: -.04em; }
.pxh-card-stat span{ font: 400 14.5px/1.3 var(--h-sans); color: rgba(255,255,255,.9); }
/* Il percorso della manovra */
.pxh-path{ margin-top: auto; padding-top: 26px; display: grid; gap: 0; }
.pxh-path li{ position: relative; padding: 0 0 16px 26px; font: 400 15.5px/1.35 var(--h-sans); color: rgba(255,255,255,.9); }
.pxh-path li::before{ content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.pxh-path li::after{ content: ""; position: absolute; left: 8px; top: 19px; bottom: -3px; width: 1px; background: rgba(255,255,255,.35); }
.pxh-path li:last-child{ padding-bottom: 0; }
.pxh-path li:last-child::after{ display: none; }
.pxh-path li.is-done::before{ background: rgba(255,255,255,.7); }
.pxh-path li b{ display: block; font: 400 12px/1.3 var(--h-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.92); margin-bottom: 3px; }
.pxh-path li.is-now{ color: #fff; }
.pxh-path li.is-now::before{ background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.pxh-path li.is-now span{ font-weight: 600; }


/* ── 7 · Chi siamo ────────────────────────────────────────────────────── */
.pxh-team{ display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.pxh-team img{ width: 100%; height: auto; aspect-ratio: 1; border-radius: 22px; object-fit: cover; background: var(--h-violet-100); transition: transform .6s var(--h-ease), box-shadow .3s; }
.pxh-team li:hover img{ transform: translate3d(0, -6px, 0) rotate(-1.5deg); box-shadow: 0 24px 40px -22px rgba(63,35,189,.7); }
.pxh-team b{ display: block; margin-top: 14px; font: 600 16.5px/1.2 var(--h-sans); letter-spacing: -.02em; color: var(--h-ink); }
.pxh-team span{ display: block; margin-top: 5px; font: 400 14px/1.35 var(--h-sans); color: var(--h-muted); }


/* ── 8 · Contatto e newsletter ────────────────────────────────────────── */
.pxh-end{
  background:
    radial-gradient(50% 36% at 0% 0%, rgba(106,69,255,.24), rgba(106,69,255,0) 70%),
    var(--h-night) !important;
}
.pxh-contact{ display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.pxh-contact .pxh-h2{ font-size: clamp(36px, 4.8vw, 66px); }
.pxh-facts{ margin-top: clamp(32px, 4vw, 52px); display: grid; gap: 0; }
.pxh-facts li{ display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--h-line-dark); font: 400 17px/1.45 var(--h-sans); color: #fff; }
.pxh-facts li:last-child{ border-bottom: 1px solid var(--h-line-dark); }
.pxh-facts span{ font: 400 12.5px/1.6 var(--h-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--h-on-dark-3); }
.pxh-facts a{ text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; }
.pxh-facts a:hover{ text-decoration-color: #fff; }
.pxh-form{
  padding: clamp(22px, 2.6vw, 34px); border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.03));
  box-shadow: 0 50px 90px -60px rgba(106,69,255,.8);
}
.pxh-form > *{ position: relative; z-index: 1; }
.pxh-form fieldset{ border: 0; margin: 0; padding: 0; min-width: 0; }
.pxh-form legend, .pxh-lab{ display: block; padding: 0; margin: 0 0 9px; font: 400 12.5px/1.3 var(--h-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--h-on-dark-2); }
.pxh-chips{ display: flex; flex-wrap: wrap; gap: 8px; }
.pxh-chips label{ position: relative; cursor: pointer; }
.pxh-chips input{ position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pxh-chips span{
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px;
  font: 500 15.5px/1 var(--h-sans); color: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.pxh-chips label:hover span{ box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.pxh-chips input:checked + span{ background: #fff; color: var(--h-night); box-shadow: none; }
.pxh-chips input:focus-visible + span{ outline: 3px solid var(--h-violet-300); outline-offset: 3px; }
.pxh-grid2{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.pxh-f{ display: block; margin-top: 18px; }
.pxh-grid2 .pxh-f{ margin-top: 0; }
.pxh-f input, .pxh-f textarea{
  display: block; width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05); color: #fff; font: 400 16.5px/1.4 var(--h-sans); outline: none;
  transition: border-color .2s, background-color .2s;
}
.pxh-f textarea{ resize: vertical; min-height: 104px; }
.pxh-f input::placeholder, .pxh-f textarea::placeholder{ color: rgba(251,250,253,.6); }
.pxh-f input:focus, .pxh-f textarea:focus{ border-color: var(--h-violet-300); background: rgba(255,255,255,.08); }
.pxh-f [aria-invalid="true"]{ border-color: #ff8f84; }
.pxh-check{
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 18px;
  font: 400 14.5px/1.5 var(--h-sans); color: var(--h-on-dark-2); cursor: pointer;
}
.pxh-check input{ width: 22px; height: 22px; margin: 0; accent-color: var(--h-violet-400); }
.pxh-check a{ text-decoration: underline; text-underline-offset: 3px; }
.pxh-send{ display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.pxh-send small{ font: 400 14.5px/1.4 var(--h-sans); color: var(--h-on-dark-3); }
.pxh-msg{ margin-top: 14px; min-height: 1.5em; font: 500 15.5px/1.5 var(--h-sans); }
.pxh-msg.is-err{ color: #ffb3aa; }
.pxh-msg a{ text-decoration: underline; text-underline-offset: 3px; }
.pxh-hp{ position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pxh-done{ padding: 20px 6px; }
.pxh-done b{ display: block; font: 600 30px/1.2 var(--h-sans); letter-spacing: -.03em; }
.pxh-done p{ margin-top: 8px; font: 400 18px/1.5 var(--h-serif); color: var(--h-on-dark-2); }
.pxh-done button{ margin-top: 22px; }

/* La newsletter: una fascia viola dentro la sezione scura */
.pxh-news{
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  margin-top: clamp(56px, 7vw, 100px); padding: clamp(28px, 4vw, 52px); border-radius: 32px; color: #fff; scroll-margin-top: 110px;
  background: radial-gradient(70% 120% at 100% 0%, rgba(179,160,255,.32), rgba(179,160,255,0) 62%), linear-gradient(135deg, #5533e6 0%, #3f23bd 100%);
  box-shadow: 0 50px 90px -56px rgba(106,69,255,.9);
}
.pxh-news h2{ font: 600 clamp(30px, 3.4vw, 46px)/1.04 var(--h-sans); letter-spacing: -.04em; text-wrap: balance; }
.pxh-news p{ margin-top: 14px; max-width: 44ch; font: 400 19px/1.5 var(--h-serif); color: rgba(255,255,255,.95); }
.pxh-news .pxh-msg, .pxh-news .pxh-done p{ max-width: none; margin-top: 12px; font: 500 15.5px/1.5 var(--h-sans); color: #fff; }
.pxh-news .pxh-msg.is-err{ color: #ffe3df; }
.pxh-news .pxh-done{ padding: 0; }
.pxh-news .pxh-done b{ font-size: 26px; }
.pxh-pill{ display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 22px; border-radius: 18px; background: #fff; box-shadow: 0 22px 44px -24px rgba(19,17,26,.8); }
.pxh-pill:focus-within{ outline: 3px solid #fff; outline-offset: 3px; }
.pxh-pill input{ flex: 1; min-width: 0; height: 48px; border: 0; background: none; outline: none; font: 400 17px/1 var(--h-sans); color: var(--h-ink); }
.pxh-pill input::placeholder{ color: #625d72; }
.pxh-pill .pxh-btn{ min-height: 50px; border-radius: 12px; }
.pxh-news .pxh-check{ color: rgba(255,255,255,.95); font-family: var(--h-sans); }
.pxh-news .pxh-check span{ font: 400 14.5px/1.5 var(--h-sans); }
.pxh-news .pxh-check input{ accent-color: var(--h-night); }

/* Il footer del sito resta quello di px-site.css. */
body.pxh-body .pxs-foot{ position: relative; z-index: 2; }


/* ── 9 · Banner dei cookie (stessi valori di px-launch.css) ───────────── */
.px-cc{
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100001; max-width: 560px; margin: 0 auto;
  background: rgba(251,250,253,.94); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(42,39,51,.10); border-radius: 16px; box-shadow: 0 24px 70px -24px rgba(42,39,51,.45);
  padding: 24px 24px 20px; transform: translate3d(0, 130%, 0); opacity: 0;
  transition: transform 620ms cubic-bezier(.22,1,.36,1), opacity 420ms linear;
}
.px-cc.in{ transform: translate3d(0,0,0); opacity: 1; }
.px-cc h2{ font: 600 17px/1.3 var(--h-sans); letter-spacing: -.01em; color: var(--h-ink); margin: 0 0 8px; }
.px-cc p{ font: 400 14.5px/1.55 var(--h-sans); color: #423e50; margin: 0 0 16px; }
.px-cc p a{ color: var(--h-violet-700); text-decoration: underline; text-underline-offset: 2px; }
.px-cc-row{ display: flex; gap: 9px; flex-wrap: wrap; }
.px-cc button{
  font: 600 15px/1 var(--h-sans); padding: 13px 18px; border-radius: 999px; cursor: pointer; flex: 1 1 auto; min-height: 46px;
  transition: background-color .15s, border-color .15s;
}
.px-cc-yes{ background: var(--h-violet); color: #fff; border: 1px solid var(--h-violet); }
.px-cc-yes:hover{ background: var(--h-violet-700); border-color: var(--h-violet-700); }
.px-cc-no{ background: transparent; color: #423e50; border: 1px solid #c8c5d4; }
.px-cc-no:hover{ border-color: var(--h-ink); color: var(--h-ink); }
.px-cc-min{ flex: 0 0 100%; background: none; border: none; color: #625d72; font-size: 13px; padding: 4px 0 0; text-align: center; }


/* ── 10 · Schermi medi e piccoli ──────────────────────────────────────── */
@media (max-width: 1100px){
  .pxh-team{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px; }
  .pxh-row{ grid-template-columns: 170px minmax(0, 1fr) 180px 24px; }
  .d-stack-wrap{ width: 290px; height: 380px; }
  .d-stack{ width: 216px; height: 216px; }
}
@media (max-width: 980px){
  .pxh-hero{ min-height: 0; }
  .pxh-hero-in{ grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .pxh-stage{ justify-self: stretch; max-width: 600px; }
  .pxh-kpi{ left: 18px; }
  .pxh-head{ grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pxh-head-act{ padding-bottom: 0; }
  /* Servizi: niente riquadro a lato, ogni servizio porta il suo esempio sotto */
  .pxh-sv{ display: block; }
  .pxh-sv-item{ display: block; }
  .pxh-sv-tab, .pxh-sv-item:last-child .pxh-sv-tab{ border-bottom: 0; padding-bottom: 16px; cursor: default; }
  .pxh-sv-tab::before{ display: none; }
  .pxh-sv-tab .t, .is-on > .pxh-sv-tab .t{ color: #fff; transform: none; }
  .pxh-sv-tab .t::before{ display: none; }
  .pxh-sv-tab .d{ color: rgba(251,250,253,.86); max-width: 52ch; }
  .pxh-sv-panel, .is-on > .pxh-sv-panel{ opacity: 1; visibility: visible; transform: none; min-height: 0; margin-bottom: 34px; padding: 20px 22px 24px; border-radius: 26px; }
  .pxh-sv-demo{ padding: 14px 0 4px; }
  .d-fan{ min-height: 0; height: auto; aspect-ratio: 1 / .7; }
  .pxh-with{ grid-template-columns: minmax(0, 1fr); }
  .pxh-formats{ grid-template-columns: minmax(0, 1fr); }
  .pxh-format{ min-height: 0; }
  .pxh-feat{ grid-template-columns: minmax(0, 1fr); padding-top: clamp(200px, 40vw, 300px); }
  .pxh-feat > img{ object-position: 60% 20%; }
  .pxh-feat::before{ background: linear-gradient(0deg, rgba(19,17,26,.97) 0%, rgba(19,17,26,.9) 46%, rgba(19,17,26,.2) 82%); }
  .pxh-row{ grid-template-columns: 150px minmax(0, 1fr) 24px; }
  .pxh-row-f{ display: none; }
  .pxh-nums{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pxh-nums > div:nth-child(3){ padding-left: 0; border-left: 0; }
  .pxh-nums > div:nth-child(n+3){ margin-top: 24px; border-top: 1px solid var(--h-line); }
  /* In corso: tre card da scorrere di lato */
  .pxh-live{
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82vw, 400px); overflow-x: auto;
    scroll-snap-type: x mandatory; margin-left: calc(-1 * var(--h-pad)); margin-right: calc(-1 * var(--h-pad));
    padding: 4px var(--h-pad) 18px; scroll-padding-left: var(--h-pad); -webkit-overflow-scrolling: touch;
  }
  .pxh-live > *{ scroll-snap-align: start; min-width: 0; }
  .pxh-card-dark{ min-height: 0; }
  .pxh-contact, .pxh-news{ grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px){
  .pxh-sec{ padding-top: 68px; padding-bottom: calc(68px + var(--h-sheet)); }
  .pxh-sec.is-last{ padding-bottom: 64px; }
  .pxh-h1{ font-size: clamp(44px, 13.2vw, 64px); }
  .pxh-cta .pxh-btn{ flex: 1 1 100%; }
  .pxh-aura i{ animation: none; }
  .pxh-aura i:nth-child(1){ width: 380px; height: 380px; }
  .pxh-console{ padding: 18px 18px 40px; border-radius: 26px; }
  .pxh-h1 em{ white-space: normal; }
  .pxh-step{ font-size: 14.5px; }
  .pxh-step-txt{ height: 4.6em; }
  .pxh-stage{ margin-bottom: 0; }
  .pxh-kpi{ position: relative; left: auto; bottom: auto; width: auto; margin: -22px 14px 0; }
  .pxh-press img{ transform: scale(.88); transform-origin: left center; }
  .d-strat{ flex-direction: column; }
  .d-stack-wrap{ width: 100%; height: 320px; }
  .d-layers{ width: 100%; }
  .d-sim-row{ grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .d-sim-out b{ font-size: 54px; }
  .d-card{ width: 86%; }
  .d-mon{ grid-template-columns: minmax(0, 1fr); }
  .d-radar{ width: 150px; margin: 0 auto; }
  .d-sheet{ padding: 22px 20px; transform: rotate(-1.2deg); }
  .d-fan{ aspect-ratio: 1 / .74; }
  .d-bars li{ grid-template-columns: 62px minmax(0, 1fr) 46px; gap: 10px; }
  .pxh-figs{ grid-template-columns: minmax(0, 1fr); }
  .pxh-figs > div{ display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 14px; }
  .pxh-figs dt{ margin-top: 0; }
  .pxh-go{ width: 44px; height: 44px; }
  .pxh-row{ grid-template-columns: 68px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .pxh-row > img{ display: block; grid-row: 1 / span 2; }
  .pxh-row > svg{ display: none; }
  .pxh-row-k span{ display: inline; margin: 0 0 0 8px; }
  .pxh-row h3{ grid-column: 2; font-size: 19px; }
  .pxh-index li:nth-child(n+5){ display: none; }
  .pxh-deck{ display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .pxh-nums > div{ padding-right: 12px; }
  .pxh-nums > div + div{ padding-left: 14px; }
  .pxh-nums > div:nth-child(3){ padding-left: 0; }
  .pxh-team{ grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pxh-team li{ display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--h-line); }
  .pxh-team li:last-child{ border-bottom: 1px solid var(--h-line); }
  .pxh-team img{ grid-row: 1 / span 2; border-radius: 16px; }
  .pxh-team b{ margin-top: 0; align-self: end; }
  .pxh-team span{ margin-top: 3px; align-self: start; }
  .pxh-pill{ flex-wrap: wrap; padding: 8px; border-radius: 20px; }
  .pxh-pill input{ flex: 1 1 100%; padding: 0 14px; }
  .pxh-pill .pxh-btn{ flex: 1 1 100%; }
  .pxh-grid2{ grid-template-columns: minmax(0, 1fr); }
  .pxh-facts li{ grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pxh-send .pxh-btn{ flex: 1 1 100%; }
  .pxh-news{ border-radius: 26px; }
}

/* ── Movimento ridotto ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  .pxh *, .pxh *::before, .pxh *::after{ animation: none !important; transition: none !important; }
  .pxh-anim .pxh-rv{ opacity: 1; transform: none; }
  .pxh-step[aria-pressed="true"]::after{ transform: scaleX(1); }
  .pxh-anim .pxh-sv .pxh-sv-item .d-bars i{ transform: none !important; }
}

/* ── 11 · Proxima Report (#report) · 26 novembre 2026 ─────────────────── */
/* Un pannello scuro dentro una sezione chiara, come quello dell'apertura.
   A sinistra titolo, indice e pulsante; a destra il libro che si sfoglia,
   costruito da js/px-report.js. Finché lo script non parte (o se manca)
   si vede la copertina ferma, .pxr-static. */
.pxr{
  --pxr-ease: cubic-bezier(.34, .04, .16, 1);
  --pxr-k: 1.22;                             /* quanto è più grande il libro quando è chiuso */
  padding: clamp(20px, 3vw, 48px) clamp(12px, 2.4vw, 40px) calc(clamp(60px, 7vw, 104px) + var(--h-sheet));
}
/* Il libro, chiuso e in prospettiva, sporge dai lati sugli schermi stretti:
   la sezione lo taglia, altrimenti la pagina si allargherebbe. */
.pxr{ overflow-x: clip; }
@supports not (overflow: clip){ .pxr{ overflow: hidden; } }
.pxr-stage{
  position: relative; isolation: isolate; max-width: 1320px; margin: 0 auto;
  padding: clamp(30px, 4.6vw, 68px) clamp(22px, 4.4vw, 64px);
  border-radius: clamp(26px, 3vw, 40px); color: #fff;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-areas: "head view" "index view" "act view";
  grid-template-rows: auto auto 1fr; column-gap: clamp(28px, 4.4vw, 72px); row-gap: 26px;
  box-shadow: 0 60px 90px -60px rgba(40,22,120,.7);
}
.pxr-bg{
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden;
  background:
    radial-gradient(44% 62% at 72% 44%, rgba(106,69,255,.46), rgba(106,69,255,0) 72%),
    radial-gradient(38% 46% at 0% 100%, rgba(63,35,189,.42), rgba(63,35,189,0) 70%),
    linear-gradient(158deg, #211c30 0%, var(--h-night) 58%);
}
.pxr-bg::before{
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, rgba(255,255,255,0) 1.5px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(58% 72% at 72% 46%, #000 0%, rgba(0,0,0,0) 78%);
          mask-image: radial-gradient(58% 72% at 72% 46%, #000 0%, rgba(0,0,0,0) 78%);
}
.pxr-bg::after{ content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), inset 0 1px 0 rgba(255,255,255,.14); }
.pxr-stage :focus-visible{ outline-color: var(--h-violet-300); }

.pxr-head{ grid-area: head; }
.pxr-head .pxh-h2{ font-size: clamp(36px, 4.2vw, 58px); }
.pxr-head .pxh-lead{ font-size: clamp(18.5px, 1.45vw, 20.5px); max-width: 40ch; }
.pxr-meta{
  display: flex; flex-wrap: wrap; margin-top: 20px;
  font: 400 12.5px/1.7 var(--h-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--h-on-dark-3);
}
.pxr-meta span + span::before{ content: "·"; margin: 0 10px; color: var(--h-violet-300); }
.pxr-meta span:last-child{ flex-basis: 100%; }
.pxr-meta span:last-child::before{ content: none; }

/* L'indice: ogni voce porta il libro al suo capitolo */
.pxr-index{ grid-area: index; }
.pxr-index-h{
  padding-bottom: 12px; border-bottom: 1px solid var(--h-line-dark);
  font: 400 12.5px/1.2 var(--h-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--h-on-dark-3);
}
.pxr-index li{ border-bottom: 1px solid rgba(255,255,255,.08); }
.pxr-index a{
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; align-items: center; gap: 12px;
  min-height: 44px; margin: 0 -12px; padding: 5px 12px; border-radius: 12px;
  font: 500 16.5px/1.25 var(--h-sans); letter-spacing: -.01em; color: var(--h-on-dark-2);
  transition: background-color .2s var(--h-ease-ui), color .2s var(--h-ease-ui);
}
.pxr-index a b{ font: 400 13px/1 var(--h-mono); color: var(--h-violet-300); }
.pxr-index a svg{ opacity: 0; transform: translateX(-8px); color: var(--h-violet-300); transition: opacity .2s, transform .3s var(--h-ease); }
.pxr-index a::before{
  content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 3px;
  background: var(--h-violet-300); transform: scaleY(0); transition: transform .3s var(--h-ease);
}
.pxr-index a:hover, .pxr-index a.is-on{ background: rgba(255,255,255,.07); color: #fff; }
.pxr-index a:hover svg, .pxr-index a.is-on svg{ opacity: 1; transform: none; }
.pxr-index a.is-on::before{ transform: scaleY(1); }

.pxr-act{ grid-area: act; align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }
.pxr-note{ font: 400 12.5px/1.3 var(--h-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--h-on-dark-3); }

/* Il libro */
.pxr-view{ grid-area: view; align-self: center; position: relative; min-width: 0; }
.pxr-glow{
  position: absolute; left: 8%; right: 8%; top: 6%; bottom: 22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(138,109,255,.6), rgba(138,109,255,0)); filter: blur(34px); opacity: .6;
}
.pxr-book{
  position: relative; width: 100%; aspect-ratio: 1190 / 842; margin: 9% 0 14%;
  perspective: 2400px; perspective-origin: 50% 34%;
  outline-offset: 6px; border-radius: 6px; -webkit-tap-highlight-color: transparent;
  touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.pxr-book.is-live{ cursor: pointer; }
.pxr-static{
  position: absolute; top: 0; bottom: 0; left: 25%; width: 50%; overflow: hidden; border-radius: 3px 8px 8px 3px;
  box-shadow: 0 46px 60px -34px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1);
}
.pxr-static img{ width: 100%; height: 100%; object-fit: cover; }

.pxr-pose, .pxr-shift, .pxr-sheets{ position: absolute; inset: 0; transform-style: preserve-3d; }
/* --px/--py/--pz: la posa (chiuso, aperto, chiuso sul retro);
   --rx/--ry: quanto il libro segue il puntatore (li scrive lo script). */
.pxr-pose{
  --px: 13deg; --py: 0deg; --pz: 0deg; --rx: 0deg; --ry: 0deg;
  transform: rotateX(calc(var(--px) + var(--rx))) rotateY(calc(var(--py) + var(--ry))) rotateZ(var(--pz));
  transition: transform 1.1s var(--pxr-ease);
}
.pxr-pose.is-tilting{ transition-duration: .22s; transition-timing-function: ease-out; }
.pxr-book.is-closed .pxr-pose{ --px: 9deg; --py: -21deg; --pz: 1.6deg; }
.pxr-book.is-end .pxr-pose{ --px: 9deg; --py: 21deg; --pz: -1.6deg; }
.pxr-shift{ transition: transform 1.1s var(--pxr-ease); }
/* -25% per --pxr-k: la copertina resta al centro anche ingrandita */
.pxr-book.is-closed .pxr-shift{ transform: translate3d(calc(-25% * var(--pxr-k)), 0, 0) scale(var(--pxr-k)); }
.pxr-book.is-end .pxr-shift{ transform: translate3d(calc(25% * var(--pxr-k)), 0, 0) scale(var(--pxr-k)); }

/* Entrata: il libro sale e si raddrizza quando la sezione arriva a schermo */
.pxh-anim .pxr-book.is-live{ opacity: 0; transform: translate3d(0, 64px, 0) scale(.9); transition: opacity .9s var(--h-ease), transform 1.3s var(--h-ease); }
.pxh-anim .pxr-book.is-live.is-in{ opacity: 1; transform: none; }
.pxh-anim .pxr-book.is-live:not(.is-in) .pxr-pose{ --px: 44deg; --pz: -10deg; }

.pxr-sheet{
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
  transform-origin: 0 50%; transform-style: preserve-3d;
  transition: transform var(--dur, 900ms) var(--pxr-ease);
}
.pxr-face{
  position: absolute; inset: 0; overflow: hidden; background: #f1eff6; border-radius: 2px 7px 7px 2px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.pxr-face.is-b{ transform: rotateY(180deg); border-radius: 7px 2px 2px 7px; }
.pxr-face img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .35s; }
.pxr-face img.is-on{ opacity: 1; }
/* l'ombra della costa: sempre verso il centro del libro */
.pxr-face::after{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(19,17,26,.36) 0%, rgba(19,17,26,.1) 4.5%, rgba(19,17,26,0) 15%);
  box-shadow: inset 0 0 0 1px rgba(19,17,26,.07);
}
.pxr-face.is-b::after{ background: linear-gradient(270deg, rgba(19,17,26,.36) 0%, rgba(19,17,26,.1) 4.5%, rgba(19,17,26,0) 15%); }
/* la luce che passa sulla pagina mentre gira */
.pxr-face::before{
  content: ""; position: absolute; inset: -2px -30%; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, rgba(19,17,26,.5) 0%, rgba(19,17,26,0) 36%, rgba(255,255,255,.26) 54%, rgba(255,255,255,0) 70%);
}
.pxr-sheet.is-turning .pxr-face::before{ animation: pxr-shade var(--dur, 900ms) ease-in-out both; }
@keyframes pxr-shade{
  0%{ opacity: 0; transform: translateX(-22%); }
  46%{ opacity: 1; }
  100%{ opacity: 0; transform: translateX(22%); }
}
/* lo spessore delle due pile e l'ombra sul piano; --l e --r (da 0 a 1) dicono
   quante pagine ci sono a sinistra e a destra */
.pxr-stack{
  --l: 0; --r: 1;
  position: absolute; top: 0; width: 50%; height: 100%; opacity: 0;
  transition: transform .9s var(--pxr-ease), opacity .15s;
}
.pxr-stack::before{ content: ""; position: absolute; inset: 0; border-radius: inherit; background: #cfc9e2; transition: box-shadow .9s var(--pxr-ease); }
.pxr-stack.has{ opacity: 1; transition: transform .9s var(--pxr-ease), opacity .25s; }
.pxr-stack.is-r{
  left: 50%; border-radius: 3px 8px 8px 3px;
  transform: translate3d(calc(var(--r) * 9px), calc(var(--r) * 8px), 0);
}
.pxr-stack.is-r::before{ box-shadow: calc(var(--r) * -3px) calc(var(--r) * -2.7px) 0 #ebe8f4, calc(var(--r) * -6px) calc(var(--r) * -5.3px) 0 #ddd8ec; }
.pxr-stack.is-l{
  left: 0; border-radius: 8px 3px 3px 8px;
  transform: translate3d(calc(var(--l) * -9px), calc(var(--l) * 8px), 0);
}
.pxr-stack.is-l::before{ box-shadow: calc(var(--l) * 3px) calc(var(--l) * -2.7px) 0 #ebe8f4, calc(var(--l) * 6px) calc(var(--l) * -5.3px) 0 #ddd8ec; }
.pxr-stack::after{
  content: ""; position: absolute; z-index: -1; left: 4%; right: 4%; top: 12%; bottom: -9%; border-radius: 30%;
  background: rgba(5,3,12,.8); filter: blur(30px); transform: translate3d(0, 26px, 0);
}

/* l'etichetta che segue il puntatore */
.pxr-cursor{
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px;
  background: rgba(255,255,255,.95); color: var(--h-night); font: 600 14.5px/1 var(--h-sans); white-space: nowrap;
  box-shadow: 0 16px 30px -14px rgba(0,0,0,.7);
  opacity: 0; transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0);
  transition: opacity .2s var(--h-ease-ui), transform .12s ease-out;
}
.pxr-cursor svg{ transition: transform .25s var(--h-ease); }
.pxr-cursor.is-back svg{ transform: rotate(180deg); }
.pxr-book.is-hover .pxr-cursor{ opacity: 1; }

/* sotto il libro: frecce, pagina, capitolo, avanzamento */
.pxr-ctl{ position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 12px 14px; max-width: 500px; margin: 0 auto; }
.pxr-ctl[hidden]{ display: none; }
.pxr-nav{
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 13px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.06); color: #fff;
  transition: background-color .2s var(--h-ease-ui), transform .2s var(--h-ease-ui), opacity .2s;
}
.pxr-nav:hover{ background: rgba(255,255,255,.15); }
.pxr-nav:active{ transform: scale(.93); }
.pxr-nav:disabled{ opacity: .34; cursor: default; background: rgba(255,255,255,.06); }
.pxr-status{ min-width: 0; text-align: center; }
.pxr-status b{ display: block; font: 400 12.5px/1.3 var(--h-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--h-on-dark-2); }
.pxr-status span{ display: block; min-height: 24px; margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: italic 400 19px/1.25 var(--h-serif); color: #fff; }
.pxr-bar{ grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.14); }
.pxr-bar i{ display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--h-violet-400), var(--h-violet-300)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .7s var(--h-ease); }
.pxr-hint{ display: none; }
.pxr-sr{ position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: none){
  .pxr-hint:not([hidden]){ display: block; margin-top: 16px; text-align: center; font: 400 12.5px/1.3 var(--h-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--h-on-dark-3); }
}

@media (max-width: 980px){
  .pxr{ --pxr-k: 1.24; }
  .pxr-stage{ grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "view" "index" "act"; grid-template-rows: none; row-gap: 22px; }
  .pxr-head .pxh-lead{ max-width: 52ch; }
  .pxr-view{ width: 100%; max-width: 720px; margin: 0 auto; }
  .pxr-book{ margin: 10% 0 15%; }
  .pxr-book.is-closed .pxr-pose{ --py: -16deg; }
  .pxr-book.is-end .pxr-pose{ --py: 16deg; }
  .pxr-act{ margin-top: 4px; }
}
@media (max-width: 640px){
  .pxr{ --pxr-k: 1.4; padding-top: 14px; padding-bottom: calc(52px + var(--h-sheet)); }
  .pxr-stage{ padding: 30px 20px 28px; }
  .pxr-view{ width: auto; margin: 0 -10px; }
  .pxr-book{ margin: 16% 0 22%; perspective: 1500px; }
  .pxr-book.is-closed .pxr-pose{ --py: -13deg; }
  .pxr-book.is-end .pxr-pose{ --py: 13deg; }
  .pxr-pose{ --px: 10deg; }
  .pxr-act .pxh-btn{ flex: 1 1 100%; }
}
/* PXR-FINE */

/* ── 12 · In apertura: l'ultima uscita del Punto degli Esteri ─────────────
   Card scura sotto i pulsanti dell'apertura. Per un nuovo numero cambiano
   href, miniatura, numero, titolo e firma; il link sotto porta all'archivio
   (/punto-degli-esteri). */
.pxh-new-w{ margin-top: clamp(22px, 2.6vw, 30px); max-width: 560px; }
.pxh-new{
  position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 12px 18px 12px 12px; border-radius: 20px; text-decoration: none; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(106,69,255,.38) 0%, rgba(106,69,255,0) 55%), var(--h-night);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 26px 50px -30px rgba(19,17,26,.9);
  transition: transform .45s var(--h-ease), box-shadow .3s;
}
.pxh-new:hover{ transform: translate3d(0, -4px, 0); box-shadow: 0 0 0 1px rgba(179,160,255,.45) inset, 0 34px 60px -30px rgba(63,35,189,.7); }
.pxh-new:focus-visible{ outline: 3px solid var(--h-violet); outline-offset: 3px; }
.pxh-new-m{ display: block; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: #0e0c14; }
.pxh-new-m img{ display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--h-ease); }
.pxh-new:hover .pxh-new-m img{ transform: scale(1.06); }
.pxh-new-b{ display: block; min-width: 0; }
.pxh-new-k{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 400 12px/1.3 var(--h-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--h-violet-200); }
.pxh-new-k b{ display: inline-block; padding: 3px 8px; border-radius: 999px; background: #ff6a5c; color: #1a0f0d; font-weight: 700; letter-spacing: .06em; }
.pxh-new-t{ display: block; margin-top: 7px; font: 600 19px/1.18 var(--h-sans); letter-spacing: -.025em; text-wrap: balance; }
.pxh-new-a{ display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 400 13.5px/1.3 var(--h-sans); color: var(--h-on-dark-2); }
.pxh-new-a img{ width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,255,255,.2); }
.pxh-new-go{ color: var(--h-violet-300); transition: transform .3s var(--h-ease); }
.pxh-new:hover .pxh-new-go{ transform: translateX(4px); }
.pxh-new-all{ display: inline-block; margin: 12px 0 0 4px; font: 600 14px/1.3 var(--h-sans); color: var(--h-violet-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pxh-new-all::after{ content: " →"; }
.pxh-new-all:hover{ color: var(--h-violet); }
@media (min-width: 981px) and (max-width: 1180px){ .pxh-new-w{ max-width: calc(100% - 56px); } }
@media (max-width: 640px){
  .pxh-new{ grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 10px 14px 10px 10px; border-radius: 18px; }
  .pxh-new-m{ width: 76px; height: 76px; border-radius: 12px; }
  .pxh-new-t{ font-size: 17px; }
  .pxh-new-go{ display: none; }
  .pxh-new-k{ font-size: 11.5px; letter-spacing: .06em; }
  .pxh-new-d{ display: none; }
}
@media (prefers-reduced-motion: reduce){ .pxh-new, .pxh-new-m img, .pxh-new-go{ transition: none; } }
