/* =============================================
   VITA OLTRE LA MORTE – DESIGN SYSTEM "AURORA SACRA"
   Livello di design caricato dopo style.css su tutte le pagine.
   Palette: nero-indaco, oro caldo, viola etereo.
   Tipografia: Fraunces (display) + Manrope (testo).
   ============================================= */

:root,
[data-theme="dark"] {
  --xp-bg: #05060d;
  --xp-bg-2: #0a0b17;
  --xp-surface: rgba(255, 255, 255, 0.035);
  --xp-surface-2: rgba(255, 255, 255, 0.06);
  --xp-line: rgba(226, 192, 122, 0.16);
  --xp-line-strong: rgba(226, 192, 122, 0.38);
  --xp-gold: #e2c07a;
  --xp-gold-2: #f6e2b3;
  --xp-gold-3: #b8893f;
  --xp-violet: #8f7cf7;
  --xp-text: #f4efe4;
  --xp-muted: rgba(244, 239, 228, 0.64);
  --xp-ink-on-gold: #160f04;
  --xp-radius: 22px;
  --xp-radius-lg: 32px;
  --xp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --xp-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --xp-font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --xp-font-body: 'Manrope', 'Inter', system-ui, sans-serif;
  --xp-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(226, 192, 122, 0.08);
  --xp-glow: 0 0 60px -10px rgba(226, 192, 122, 0.45);

  /* mappatura sulle variabili storiche di style.css */
  --bg: var(--xp-bg);
  --text: var(--xp-text);
  --text-muted: var(--xp-muted);
  --accent: var(--xp-gold);
  --accent-glow: rgba(226, 192, 122, 0.22);
  --card-bg: var(--xp-surface);
  --card-border: var(--xp-line);
  --header-bg: rgba(5, 6, 13, 0.62);
}

[data-theme="light"] {
  --xp-bg: #f6f1e6;
  --xp-bg-2: #efe7d6;
  --xp-surface: rgba(255, 255, 255, 0.6);
  --xp-surface-2: rgba(255, 255, 255, 0.85);
  --xp-line: rgba(122, 88, 34, 0.16);
  --xp-line-strong: rgba(122, 88, 34, 0.4);
  --xp-gold: #9a6f2a;
  --xp-gold-2: #c9994a;
  --xp-gold-3: #7a5420;
  --xp-violet: #6b55d6;
  --xp-text: #17131d;
  --xp-muted: rgba(23, 19, 29, 0.66);
  --xp-ink-on-gold: #fffaf0;
  --xp-shadow: 0 30px 70px -35px rgba(80, 55, 15, 0.45), 0 0 0 1px rgba(122, 88, 34, 0.1);
  --xp-glow: 0 0 50px -12px rgba(154, 111, 42, 0.45);

  --bg: var(--xp-bg);
  --text: var(--xp-text);
  --text-muted: var(--xp-muted);
  --accent: var(--xp-gold);
  --accent-glow: rgba(154, 111, 42, 0.16);
  --card-bg: var(--xp-surface);
  --card-border: var(--xp-line);
  --header-bg: rgba(246, 241, 230, 0.7);
}

/* ---------- Base ---------- */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--xp-font-body);
  background-color: var(--xp-bg);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(143, 124, 247, 0.12), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(226, 192, 122, 0.08), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(143, 124, 247, 0.08), transparent 60%);
  background-attachment: fixed;
  color: var(--xp-text);
  letter-spacing: 0.002em;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(201, 153, 74, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(107, 85, 214, 0.07), transparent 60%);
}

/* grana cinematografica */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: xp-grain 1.2s steps(4) infinite;
}

[data-theme="light"] body::after {
  opacity: 0.035;
}

@keyframes xp-grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

::selection {
  background: var(--xp-gold);
  color: var(--xp-ink-on-gold);
}

h1,
h2 {
  font-family: var(--xp-font-display);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

body:not(.doc-page):not(.inganno-page) h1 {
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.02;
}

h2 {
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.08;
}

h3,
h4 {
  font-family: var(--xp-font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--xp-gold-2) 0%, var(--xp-gold) 45%, var(--xp-violet) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.section-pad {
  padding: clamp(80px, 11vw, 150px) 0;
}

.container {
  max-width: 1200px;
}

/* eyebrow con filo dorato */
.section-eyebrow,
.hero-eyebrow,
.hero-lead-kicker,
.ebook-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--xp-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--xp-gold);
}

.section-eyebrow::before,
.hero-eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--xp-gold));
}

/* ---------- Header in vetro ---------- */
#site-header {
  background: var(--header-bg) !important;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--xp-line) !important;
  transition: transform 0.6s var(--xp-ease), background 0.4s ease, box-shadow 0.4s ease;
}

#site-header.xp-hidden {
  transform: translateY(-110%);
}

#site-header.xp-scrolled {
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}

.nav-minimal a {
  position: relative;
  font-family: var(--xp-font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-minimal a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--xp-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--xp-ease);
}

.nav-minimal a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-minimal a:hover {
  color: var(--xp-gold-2);
}

/* ---------- Bottoni ---------- */
.btn-primary,
.nav-cta,
button[type="submit"]:not(.theme-toggle) {
  --xp-bx: 0px;
  --xp-by: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(120deg, var(--xp-gold-2), var(--xp-gold) 45%, var(--xp-gold-3)) !important;
  color: var(--xp-ink-on-gold) !important;
  font-family: var(--xp-font-body) !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 40px -14px rgba(226, 192, 122, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  transform: translate3d(var(--xp-bx), var(--xp-by), 0);
  transition: transform 0.5s var(--xp-ease), box-shadow 0.4s ease, filter 0.3s ease !important;
}

.btn-primary::after,
.nav-cta::after,
button[type="submit"]:not(.theme-toggle)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.65) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--xp-ease);
}

.btn-primary:hover::after,
.nav-cta:hover::after,
button[type="submit"]:not(.theme-toggle):hover::after {
  transform: translateX(120%);
}

.btn-primary:hover,
.nav-cta:hover,
button[type="submit"]:not(.theme-toggle):hover {
  box-shadow: 0 22px 60px -14px rgba(226, 192, 122, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  filter: brightness(1.05);
}

.btn-primary:active {
  filter: brightness(0.95);
}

.btn-secondary,
.btn-outline {
  border-radius: 999px !important;
  border: 1px solid var(--xp-line-strong) !important;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.5s var(--xp-ease);
}

.btn-secondary:hover,
.btn-outline:hover {
  border-color: var(--xp-gold) !important;
  background: rgba(226, 192, 122, 0.08) !important;
}

/* ---------- Card in vetro con riflesso che segue il mouse ---------- */
.xp-card {
  --xp-spot-x: 50%;
  --xp-spot-y: 50%;
  --xp-rx: 0deg;
  --xp-ry: 0deg;
  position: relative;
  background: linear-gradient(160deg, var(--xp-surface-2), var(--xp-surface)) !important;
  border: 1px solid var(--xp-line) !important;
  border-radius: var(--xp-radius) !important;
  box-shadow: var(--xp-shadow);
  transform: perspective(1100px) rotateX(var(--xp-rx)) rotateY(var(--xp-ry));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--xp-ease), border-color 0.4s ease, box-shadow 0.4s ease !important;
}

.xp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(420px circle at var(--xp-spot-x) var(--xp-spot-y), rgba(226, 192, 122, 0.16), transparent 45%);
  transition: opacity 0.4s ease;
}

.xp-card:hover {
  border-color: var(--xp-line-strong) !important;
  box-shadow: var(--xp-shadow), var(--xp-glow);
}

.xp-card:hover::before {
  opacity: 1;
}

.xp-card > * {
  position: relative;
  z-index: 1;
}

/* ---------- Prezzi ---------- */
.shop-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.shop-price-old {
  font-family: var(--xp-font-body);
  color: var(--xp-muted) !important;
  text-decoration: line-through;
  text-decoration-color: rgba(226, 192, 122, 0.6);
  text-decoration-thickness: 1.5px;
}

.shop-price-new {
  font-family: var(--xp-font-display) !important;
  font-weight: 600 !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--xp-gold-2), var(--xp-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.xp-discount {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--xp-ink-on-gold);
  background: linear-gradient(120deg, var(--xp-gold-2), var(--xp-gold));
  box-shadow: 0 8px 24px -10px rgba(226, 192, 122, 0.8);
  align-self: center;
}

/* ---------- Immagini ---------- */
.section-art-card img,
.ebook-library-cover img,
figure img {
  transition: transform 1.2s var(--xp-ease), filter 0.6s ease;
}

.section-art-card,
.ebook-library-cover {
  overflow: hidden;
  border-radius: var(--xp-radius);
}

/* ---------- Hero home con portale ---------- */
#hero .hero-bg {
  background-image:
    linear-gradient(180deg, rgba(5, 6, 13, 0.25) 0%, rgba(5, 6, 13, 0.55) 55%, var(--xp-bg) 100%),
    image-set(url('images/design/vdm-hero-portal.webp') type('image/webp')) !important;
  background-size: cover !important;
  background-position: center 30% !important;
  transform: translate3d(0, var(--xp-hero-shift, 0px), 0) scale(1.08);
  will-change: transform;
}

@media (max-width: 760px) {
  #hero .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(5, 6, 13, 0.3) 0%, rgba(5, 6, 13, 0.6) 55%, var(--xp-bg) 100%),
      url('images/design/vdm-hero-portal-mobile.webp') !important;
  }
}

[data-theme="light"] #hero .hero-bg {
  opacity: 0.9;
}

/* ---------- Footer ---------- */
#footer {
  position: relative;
  border-top: 1px solid var(--xp-line) !important;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(226, 192, 122, 0.08), transparent 70%),
    var(--xp-bg-2) !important;
  overflow: hidden;
}



.footer-links a {
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--xp-gold) !important;
}

/* ---------- Barra di avanzamento scroll ---------- */
.xp-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 10001;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(var(--xp-progress, 0));
  background: linear-gradient(90deg, var(--xp-violet), var(--xp-gold), var(--xp-gold-2));
  box-shadow: 0 0 12px rgba(226, 192, 122, 0.7);
}

/* ---------- Cursore personalizzato ---------- */
.xp-cursor,
.xp-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10002;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.xp-cursor {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--xp-gold-2);
  box-shadow: 0 0 12px var(--xp-gold);
}

.xp-cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(226, 192, 122, 0.6);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--xp-ink-on-gold);
  transition: opacity 0.3s ease, width 0.45s var(--xp-ease), height 0.45s var(--xp-ease),
    margin 0.45s var(--xp-ease), background 0.35s ease, border-color 0.35s ease;
}

.xp-cursor-ring span {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.45s var(--xp-ease);
}

html.xp-has-cursor .xp-cursor,
html.xp-has-cursor .xp-cursor-ring {
  opacity: 1;
}

html.xp-cursor-hover .xp-cursor-ring {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-color: var(--xp-gold);
  background: rgba(226, 192, 122, 0.1);
}

html.xp-cursor-label .xp-cursor-ring {
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  background: var(--xp-gold);
  border-color: var(--xp-gold);
}

html.xp-cursor-label .xp-cursor-ring span {
  opacity: 1;
  transform: scale(1);
}

html.xp-cursor-label .xp-cursor {
  opacity: 0;
}

html.xp-cursor-down .xp-cursor-ring {
  transform: scale(0.85);
}

/* ---------- Animazioni di comparsa allo scroll ---------- */
html.xp-js [data-xp-reveal] {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  filter: blur(6px);
  transition:
    opacity 1.1s var(--xp-ease) var(--xp-delay, 0ms),
    transform 1.1s var(--xp-ease) var(--xp-delay, 0ms),
    filter 1.1s var(--xp-ease) var(--xp-delay, 0ms);
}

html.xp-js [data-xp-reveal="left"] {
  transform: translate3d(-60px, 0, 0);
}

html.xp-js [data-xp-reveal="right"] {
  transform: translate3d(60px, 0, 0);
}

html.xp-js [data-xp-reveal="rise"] {
  transform: perspective(1200px) translate3d(0, 90px, 0) rotateX(14deg) scale(0.96);
  transform-origin: 50% 100%;
}

html.xp-js [data-xp-reveal].xp-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* parole del titolo che salgono dalla maschera */
.xp-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.xp-w > span {
  display: inline-block;
  transform: translate3d(0, 108%, 0) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.15s var(--xp-ease);
  transition-delay: calc(var(--xp-i, 0) * 45ms);
}

.xp-split.xp-in .xp-w > span {
  transform: none;
}

/* rivelazione immagini con maschera */
html.xp-js [data-xp-img] {
  clip-path: inset(14% 10% 14% 10% round 28px);
  transition: clip-path 1.5s var(--xp-ease);
}

html.xp-js [data-xp-img] img {
  transform: scale(1.18);
  transition: transform 1.8s var(--xp-ease);
}

html.xp-js [data-xp-img].xp-in {
  clip-path: inset(0 0 0 0 round var(--xp-radius));
}

html.xp-js [data-xp-img].xp-in img {
  transform: translate3d(0, var(--xp-pan, 0px), 0) scale(var(--xp-zoom, 1));
  transition: transform 0.9s var(--xp-ease);
}

/* ---------- Nastro scorrevole (marquee) ---------- */
.xp-marquee {
  --xp-skew: 0deg;
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--xp-line);
  background: linear-gradient(90deg, var(--xp-bg), transparent 15%, transparent 85%, var(--xp-bg)), rgba(226, 192, 122, 0.03);
}

.xp-marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  transform: skewX(var(--xp-skew));
  will-change: transform;
}

.xp-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  font-family: var(--xp-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.6vw, 48px);
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--xp-text);
}

.xp-marquee-item::after {
  content: '✦';
  font-style: normal;
  font-size: 0.5em;
  color: var(--xp-gold);
}

.xp-marquee-item:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 192, 122, 0.55);
}

/* ---------- Intro di caricamento e transizioni tra pagine ---------- */
.xp-veil {
  position: fixed;
  inset: 0;
  z-index: 10003;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 50% 50%, rgba(226, 192, 122, 0.18), transparent 70%),
    var(--xp-bg);
  opacity: 1;
  transition: opacity 0.9s var(--xp-ease-in-out);
}

.xp-veil::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 90px;
  margin: -45px 0 0;
  background: linear-gradient(180deg, transparent, var(--xp-gold), transparent);
  animation: xp-veil-line 1.2s var(--xp-ease-in-out) infinite;
}

@keyframes xp-veil-line {
  0% { transform: scaleY(0); opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; }
}

html.xp-ready .xp-veil {
  opacity: 0;
}

html.xp-leaving .xp-veil {
  opacity: 1;
  transition-duration: 0.45s;
}

/* ---------- Varie ---------- */
.fade-in {
  transition-timing-function: var(--xp-ease) !important;
  transition-duration: 1s !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  border-radius: 14px !important;
  border: 1px solid var(--xp-line) !important;
  background: var(--xp-surface) !important;
  color: var(--xp-text) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--xp-gold) !important;
  box-shadow: 0 0 0 4px rgba(226, 192, 122, 0.15) !important;
}

details,
.faq-item {
  border-color: var(--xp-line) !important;
}

/* =============================================
   BIBLIOTECA EBOOK (ebooks.html)
   ============================================= */
.xl-hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  overflow: hidden;
}

.xl-hero-bg {
  position: absolute;
  inset: -8% 0 -8% 0;
  z-index: 0;
  background:
    linear-gradient(90deg, var(--xp-bg) 0%, rgba(5, 6, 13, 0.85) 34%, rgba(5, 6, 13, 0.15) 70%, rgba(5, 6, 13, 0.4) 100%),
    linear-gradient(180deg, transparent 60%, var(--xp-bg) 100%),
    url('images/design/vdm-library-hero.webp') right center / cover no-repeat;
  transform: translate3d(0, var(--xp-hero-shift, 0px), 0);
  will-change: transform;
}

[data-theme="light"] .xl-hero-bg {
  background:
    linear-gradient(90deg, var(--xp-bg) 0%, rgba(246, 241, 230, 0.9) 38%, rgba(246, 241, 230, 0.1) 75%),
    linear-gradient(180deg, transparent 60%, var(--xp-bg) 100%),
    url('images/design/vdm-library-hero.webp') right center / cover no-repeat;
}

@media (max-width: 760px) {
  .xl-hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 6, 13, 0.4) 0%, rgba(5, 6, 13, 0.85) 55%, var(--xp-bg) 100%),
      url('images/design/vdm-library-hero-mobile.webp') 70% center / cover no-repeat;
  }
}

.xl-hero .container {
  position: relative;
  z-index: 1;
}

.xl-hero-copy {
  max-width: 640px;
}

.xl-hero h1 {
  margin: 22px 0 26px;
}

.xl-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--xp-muted);
  max-width: 540px;
}

.xl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.xl-hero-actions .btn-primary {
  padding: 18px 30px;
}

.xl-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--xp-text);
  border-bottom: 1px solid var(--xp-line-strong);
  padding-bottom: 4px;
}

.xl-link:hover {
  color: var(--xp-gold);
  border-color: var(--xp-gold);
}

.xl-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(22px, 5vw, 56px);
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--xp-line);
}

.xl-stat strong {
  display: block;
  font-family: var(--xp-font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  color: var(--xp-gold-2);
}

[data-theme="light"] .xl-stat strong {
  color: var(--xp-gold);
}

.xl-stat span {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xp-muted);
}

.xl-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 1;
  width: 1px;
  height: 64px;
  overflow: hidden;
  background: var(--xp-line);
}

.xl-scroll-cue::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--xp-gold));
  animation: xl-cue 2s var(--xp-ease-in-out) infinite;
}

@keyframes xl-cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* in evidenza */
.xl-featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}

.xl-featured-visual {
  position: relative;
}

.xl-featured-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.xl-featured-visual::before {
  content: '';
  position: absolute;
  inset: 12% 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 192, 122, 0.4), transparent 65%);
  filter: blur(40px);
}

.xl-featured-copy h2 {
  margin: 18px 0 20px;
}

.xl-featured-copy p {
  color: var(--xp-muted);
}

.xl-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 28px 0 30px;
  padding: 22px 26px;
  border-radius: var(--xp-radius);
  border: 1px solid var(--xp-line);
  background: var(--xp-surface);
}

.xl-price-block .shop-price-new {
  font-size: clamp(38px, 4.4vw, 56px) !important;
  line-height: 1;
}

.xl-price-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 14px;
  color: var(--xp-muted);
}

.xl-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 10px;
}

.xl-checks li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.xl-checks li::before {
  content: '✦';
  color: var(--xp-gold);
  font-size: 12px;
}

/* griglia biblioteca */
.xl-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 70px);
}

.xl-section-head h2 {
  margin: 14px 0 0;
  max-width: 720px;
}

.xl-section-head p {
  max-width: 380px;
  color: var(--xp-muted);
  margin: 0;
}

.xl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.xl-book {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 26px;
  color: inherit;
}

.xl-book-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--xp-radius) - 6px);
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(226, 192, 122, 0.14), transparent 70%), var(--xp-bg-2);
}

.xl-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--xp-ease);
}

.xl-book:hover .xl-book-cover img {
  transform: scale(1.06) translateZ(0);
}

.xl-book-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.xl-book-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 8px 0;
}

.xl-book-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--xp-gold);
  margin-bottom: 10px;
}

.xl-book-title {
  font-family: var(--xp-font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.xl-book-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--xp-muted);
  margin-bottom: 22px;
}

.xl-book-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--xp-line);
}

.xl-book-foot .shop-price-new {
  font-size: 30px !important;
}

.xl-book-foot .shop-price-row {
  gap: 10px;
}

.xl-arrow {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--xp-line-strong);
  color: var(--xp-gold);
  transition: background 0.4s ease, color 0.4s ease, transform 0.6s var(--xp-ease);
}

.xl-book:hover .xl-arrow {
  background: var(--xp-gold);
  color: var(--xp-ink-on-gold);
  transform: rotate(-45deg);
}

/* manifesto a scorrimento */
.xl-manifesto {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.xl-manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('images/design/vdm-light-ribbon.webp') center / cover no-repeat;
  opacity: 0.55;
  transform: translate3d(0, var(--xp-ribbon-shift, 0px), 0) scale(1.15);
}

[data-theme="light"] .xl-manifesto::before {
  opacity: 0.18;
  filter: invert(1) hue-rotate(180deg);
}

.xl-manifesto-text {
  font-family: var(--xp-font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 1000px;
  margin: 0 auto;
}

.xl-manifesto-text .xp-word-fade {
  opacity: 0.16;
  transition: opacity 0.4s ease;
}

.xl-manifesto-text .xp-word-fade.xp-lit {
  opacity: 1;
}

/* vantaggi */
.xl-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.xl-perk {
  padding: 30px 26px;
}

.xl-perk-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 22px;
  color: var(--xp-gold);
  border: 1px solid var(--xp-line-strong);
  background: rgba(226, 192, 122, 0.06);
}

.xl-perk h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.xl-perk p {
  font-size: 15px;
  color: var(--xp-muted);
  margin: 0;
}

/* CTA finale */
.xl-cta {
  position: relative;
  text-align: center;
  padding: clamp(60px, 9vw, 110px) clamp(24px, 6vw, 80px);
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--xp-line-strong);
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(226, 192, 122, 0.2), transparent 70%),
    radial-gradient(600px 300px at 50% 120%, rgba(143, 124, 247, 0.22), transparent 70%),
    var(--xp-bg-2);
}

.xl-cta h2 {
  max-width: 760px;
  margin: 16px auto 18px;
}

.xl-cta p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--xp-muted);
}

.xl-cta .btn-primary {
  padding: 18px 32px;
}

@media (max-width: 1000px) {
  .xl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xl-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xl-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .xl-grid,
  .xl-perks {
    grid-template-columns: 1fr;
  }

  .xl-hero {
    min-height: auto;
    padding: 130px 0 70px;
  }

  .xl-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .xl-price-block {
    padding: 18px;
  }
}

/* =============================================
   VETRINA EBOOK IN HOME
   ============================================= */
.xp-shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 300px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--xp-gold) transparent;
}

.xp-shelf > * {
  scroll-snap-align: start;
}

/* ---------- Accessibilità: niente movimento se richiesto ---------- */
/* =============================================
   v2 – STRATI INTERATTIVI
   ============================================= */

/* smooth scroll (Lenis) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* polvere di stelle dietro ai contenuti */
.xp-stars {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* alone di luce che insegue il mouse */
.xp-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 760px;
  height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(226, 192, 122, 0.16), transparent 42%),
    radial-gradient(circle at 60% 40%, rgba(143, 124, 247, 0.14), transparent 60%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.8s ease;
}

html.xp-has-cursor .xp-glow {
  opacity: 1;
}

[data-theme="light"] .xp-glow {
  background:
    radial-gradient(circle at 50% 50%, rgba(201, 153, 74, 0.2), transparent 45%),
    radial-gradient(circle at 60% 40%, rgba(107, 85, 214, 0.08), transparent 60%);
}

@media (hover: none), (pointer: coarse) {
  .xp-glow {
    display: none;
  }
}

/* cursore con fusione "difference" sopra le immagini */
.xp-cursor-ring {
  backdrop-filter: invert(0.08);
}

/* parallax guidato da data-xp-speed e dal mouse */
[data-xp-speed] {
  transform: translate3d(0, var(--xp-par, 0px), 0);
  will-change: transform;
}

[data-xp-mouse] {
  translate: var(--xp-mx, 0px) var(--xp-my, 0px);
  transition: translate 0.2s linear;
}

/* =============================================
   TITOLO CINETICO (lettere a peso variabile)
   ============================================= */
.xk {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 64px;
  overflow: hidden;
  isolation: isolate;
}

.xk-bg {
  position: absolute;
  inset: -10% -5%;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 6, 13, 0.55) 0%, rgba(5, 6, 13, 0.2) 40%, rgba(5, 6, 13, 0.75) 78%, var(--xp-bg) 100%),
    url('images/design/vdm-library-hero.webp') center 30% / cover no-repeat;
  transform: translate3d(0, var(--xp-hero-shift, 0px), 0) scale(1.06);
}

[data-theme="light"] .xk-bg {
  opacity: 0.35;
}

@media (max-width: 760px) {
  .xk-bg {
    background:
      linear-gradient(180deg, rgba(5, 6, 13, 0.5) 0%, rgba(5, 6, 13, 0.75) 60%, var(--xp-bg) 100%),
      url('images/design/vdm-library-hero-mobile.webp') 70% 30% / cover no-repeat;
  }
}

.xk-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(18px, 3vw, 34px);
}

.xk-top .xl-lead {
  max-width: 460px;
  margin: 0;
}

.xk-title {
  display: block;
  margin: 0;
  font-family: var(--xp-font-display);
  font-weight: 300;
  font-size: clamp(64px, 17.5vw, 290px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: var(--xp-text);
  text-wrap: nowrap;
}

.xk-l {
  --xk-y: 0px;
  --xk-glow: 0;
  display: inline-block;
  font-variation-settings: 'wght' 300, 'SOFT' 100;
  transform: translate3d(0, var(--xk-y), 0);
  text-shadow: 0 0 calc(var(--xk-glow) * 40px) rgba(226, 192, 122, calc(var(--xk-glow) * 0.9));
  color: color-mix(in srgb, var(--xp-gold-2) calc(var(--xk-glow) * 100%), var(--xp-text));
  opacity: 0;
  translate: 0 0.5em;
  transition: opacity 1s var(--xp-ease), translate 1.2s var(--xp-ease);
  transition-delay: calc(var(--xk-i) * 55ms + 150ms);
}

.xk-in .xk-l {
  opacity: 1;
  translate: 0 0;
}

.xk-italic {
  font-style: italic;
}

.xk-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: clamp(22px, 3vw, 40px);
  padding-top: 26px;
  border-top: 1px solid var(--xp-line);
}

.xk-bottom .xl-stats {
  margin: 0;
  padding: 0;
  border: 0;
}

.xk-hint {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--xp-muted);
}

/* =============================================
   CAROSELLO 3D GUIDATO DALLO SCROLL
   ============================================= */
.xo {
  --xo-n: 7;
  --xo-r: clamp(250px, 25vw, 420px);
  --xo-w: clamp(210px, 19vw, 310px);
  position: relative;
  height: calc(var(--xo-n) * 55vh + 100vh);
}

.xo-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.4fr;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}

.xo-info {
  position: relative;
  z-index: 2;
  padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
}

.xo-info-body.xo-swap > * {
  animation: xo-swap 0.75s var(--xp-ease) both;
}

.xo-info-body.xo-swap > *:nth-child(2) { animation-delay: 0.05s; }
.xo-info-body.xo-swap > *:nth-child(3) { animation-delay: 0.1s; }
.xo-info-body.xo-swap > *:nth-child(4) { animation-delay: 0.15s; }

@keyframes xo-swap {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.xo-count {
  font-family: var(--xp-font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--xp-gold);
}

.xo-title {
  font-family: var(--xp-font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
}

.xo-desc {
  color: var(--xp-muted);
  max-width: 400px;
  min-height: 3.2em;
}

.xo-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 26px;
}

.xo-bar {
  position: relative;
  width: min(320px, 70%);
  height: 2px;
  margin-top: 38px;
  background: var(--xp-line);
  overflow: hidden;
}

.xo-bar span {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--xp-violet), var(--xp-gold));
}

.xo-stage {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  perspective: 1700px;
  perspective-origin: 50% 45%;
}

.xo-stage::before {
  content: '';
  position: absolute;
  width: calc(var(--xo-r) * 1.5);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 192, 122, 0.28), rgba(143, 124, 247, 0.12) 40%, transparent 68%);
  filter: blur(30px);
  animation: xo-breathe 6s ease-in-out infinite;
}

.xo-stage::after {
  content: '';
  position: absolute;
  bottom: 12%;
  width: calc(var(--xo-r) * 2.1);
  height: 90px;
  border-radius: 50%;
  border: 1px solid rgba(226, 192, 122, 0.25);
  transform: rotateX(78deg);
  box-shadow: 0 0 60px rgba(226, 192, 122, 0.18), inset 0 0 40px rgba(226, 192, 122, 0.12);
}

@keyframes xo-breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

.xo-ring {
  position: relative;
  width: var(--xo-w);
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  will-change: transform;
}

.xo-item {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  transform: rotateY(calc(var(--xo-i) * 360deg / var(--xo-n))) translateZ(var(--xo-r));
  background: var(--xp-bg-2);
  border: 1px solid var(--xp-line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  filter: brightness(0.45) saturate(0.7);
  transition: filter 0.7s var(--xp-ease), border-color 0.7s ease, box-shadow 0.7s ease;
  -webkit-box-reflect: below 10px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.18));
}

.xo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xo-item.is-active {
  filter: none;
  border-color: var(--xp-line-strong);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.9), 0 0 70px -10px rgba(226, 192, 122, 0.55);
}

.xo-scroll-hint {
  position: absolute;
  right: 28px;
  bottom: 28px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--xp-muted);
  writing-mode: vertical-rl;
}

@media (max-width: 900px) {
  .xo {
    --xo-r: clamp(150px, 40vw, 260px);
    --xo-w: clamp(120px, 34vw, 190px);
    height: calc(var(--xo-n) * 45vh + 100vh);
  }

  .xo-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    align-content: center;
    padding-bottom: 28px;
  }

  .xo-stage {
    order: -1;
    height: 52vh;
  }

  .xo-info {
    padding: 0 20px;
  }

  .xo-title {
    font-size: clamp(30px, 8vw, 42px);
    margin: 8px 0 8px;
  }

  .xo-desc {
    display: none;
  }

  .xo-buy {
    margin-top: 12px;
  }

  .xo-bar {
    margin-top: 18px;
  }

  .xo-scroll-hint {
    display: none;
  }
}

/* =============================================
   MODALITÀ LEGGERA ("riduci movimento" attivo):
   animazioni morbide in dissolvenza, senza grandi spostamenti
   ============================================= */
html.xp-lite body::after {
  animation: none;
}

html.xp-lite.xp-js [data-xp-reveal],
html.xp-lite.xp-js [data-xp-reveal="rise"] {
  transform: none;
  filter: none;
}

html.xp-lite .xp-w > span {
  transform: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}

html.xp-lite .xp-split.xp-in .xp-w > span {
  opacity: 1;
}

html.xp-lite.xp-js [data-xp-img] {
  clip-path: none;
  opacity: 0;
  transition: opacity 1s ease;
}

html.xp-lite.xp-js [data-xp-img].xp-in {
  opacity: 1;
}

html.xp-lite.xp-js [data-xp-img] img {
  transform: none !important;
}

html.xp-lite .xk-l {
  translate: 0 0;
}

@media (hover: none), (pointer: coarse) {
  .xp-cursor,
  .xp-cursor-ring {
    display: none;
  }

  .xp-card {
    transform: none !important;
  }
}

/* =============================================
   v3 – EFFETTI FIRMA SU TUTTE LE PAGINE
   ============================================= */

/* lettere dei titoli H1/H2 che reagiscono al mouse */
.xk-c {
  --xk-y: 0px;
  --xk-glow: 0;
  display: inline-block;
  transform: translate3d(0, var(--xk-y), 0);
  text-shadow: 0 0 calc(var(--xk-glow) * 28px) rgba(226, 192, 122, calc(var(--xk-glow) * 0.85));
}

h1 em .xk-c,
h2 em .xk-c,
h3 em .xk-c {
  text-shadow: none;
  filter: drop-shadow(0 0 calc(var(--xk-glow) * 14px) rgba(226, 192, 122, calc(var(--xk-glow) * 0.8)));
}

/* il gradiente dorato del corsivo resta visibile anche sulle singole lettere */
h1 em .xk-c,
h2 em .xk-c {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}

/* titoli principali più grandi e più editoriali */
body:not(.doc-page):not(.inganno-page) main h1,
body:not(.doc-page):not(.inganno-page) section h1 {
  font-size: clamp(42px, 6.8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

main h2,
section h2 {
  letter-spacing: -0.03em;
}

/* immagini con zoom allo scroll */
[data-xp-zoom] {
  transform: translate3d(0, var(--xp-pan, 0px), 0) scale(var(--xp-zoom, 1.06));
  transition: transform 0.9s var(--xp-ease);
  will-change: transform;
}

/* aura nel primo blocco di ogni pagina */
.xp-has-aura {
  isolation: isolate;
}

.xp-aura {
  position: absolute;
  inset: -12% -6% -12% -6%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.xp-aura-ribbon {
  position: absolute;
  inset: 0;
  background: url('images/design/vdm-light-ribbon.webp') center 35% / cover no-repeat;
  opacity: 0.42;
  mix-blend-mode: screen;
  transform: translate3d(0, var(--xp-hero-shift, 0px), 0);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.xp-aura-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: xp-orb-float 14s ease-in-out infinite;
}

.xp-aura-orb--a {
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  top: -10%;
  right: -8%;
  background: radial-gradient(circle, rgba(143, 124, 247, 0.32), transparent 65%);
}

.xp-aura-orb--b {
  width: 38vw;
  height: 38vw;
  max-width: 520px;
  max-height: 520px;
  bottom: 0;
  left: -10%;
  background: radial-gradient(circle, rgba(226, 192, 122, 0.24), transparent 65%);
  animation-delay: -7s;
}

@keyframes xp-orb-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(4%, 6%, 0) scale(1.08); }
  66% { transform: translate3d(-5%, -3%, 0) scale(0.95); }
}

[data-theme="light"] .xp-aura-ribbon {
  opacity: 0.16;
  mix-blend-mode: multiply;
  filter: invert(1) hue-rotate(180deg);
}

/* logo gigante cinetico nel footer */
.xp-footer {
  padding-top: 0 !important;
}

.xp-wordmark {
  display: block;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 16px clamp(16px, 3vw, 30px);
  text-align: center;
  white-space: nowrap;
  font-family: var(--xp-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 10.5vw, 168px);
  line-height: 1;
  letter-spacing: -0.045em;
  color: rgba(226, 192, 122, 0.55);
  cursor: default;
  user-select: none;
}

.xp-wordmark .xk-l {
  transition-delay: 0s;
  opacity: 1;
  translate: 0 0;
}

[data-theme="light"] .xp-wordmark {
  color: rgba(122, 88, 34, 0.5);
}

/* nastro automatico prima del footer */
.xp-marquee--auto {
  margin-top: clamp(40px, 6vw, 90px);
}

/* =============================================
   RIFINITURA DELLE PAGINE ESISTENTI
   ============================================= */

/* hero delle landing eBook e delle pagine servizio */
/* pillole e badge in stile vetro dorato */
.ebook-proof-pill,
.shop-proof-pill,
.art-chip,
.ebook-trust-badge,
.ebook-visual-badge,
.ebook-bonus-badge {
  border: 1px solid var(--xp-line-strong) !important;
  background: rgba(226, 192, 122, 0.07) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--xp-gold-2) !important;
  border-radius: 999px !important;
  font-family: var(--xp-font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
}

[data-theme="light"] .ebook-proof-pill,
[data-theme="light"] .shop-proof-pill {
  color: var(--xp-gold-3) !important;
}

/* box prezzo delle landing */
.shop-offer-box,
.ebook-investment-card,
.numerology-price-box {
  border-radius: var(--xp-radius-lg) !important;
  border: 1px solid var(--xp-line-strong) !important;
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(226, 192, 122, 0.14), transparent 70%),
    linear-gradient(160deg, var(--xp-surface-2), var(--xp-surface)) !important;
  box-shadow: var(--xp-shadow), 0 0 80px -30px rgba(226, 192, 122, 0.5) !important;
}

/* FAQ */
details,
.faq-item,
.ebook-faq-item {
  border-radius: 18px !important;
  border: 1px solid var(--xp-line) !important;
  background: var(--xp-surface) !important;
  transition: border-color 0.4s ease, background 0.4s ease;
}

details[open],
.faq-item.active,
.faq-item.open,
.ebook-faq-item.open {
  border-color: var(--xp-line-strong) !important;
  background: rgba(226, 192, 122, 0.05) !important;
}

summary {
  cursor: pointer;
}

/* separatori di sezione luminosi */
section + section {
  position: relative;
}

section.section-pad + section.section-pad::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1100px, 86vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--xp-line-strong), transparent);
  pointer-events: none;
}

/* liste con stellina dorata */
main ul:not([class]) li::marker,
section ul:not([class]) li::marker {
  color: var(--xp-gold);
}

/* pagine legali: più leggibili */
.legal-content,
[class*="legal"] main,
[class*="policy"] main {
  max-width: 820px;
  margin-inline: auto;
}
