/* ============================================
   ReaLink – Acquisizioni Immobiliari
   Design system & global styles
   ============================================ */

:root {
  /* Palette */
  --color-bg: #ffffff;
  --color-bg-alt: #faf9f7;
  --color-bg-dark: #0a0a0b;
  --color-ink: #0f0f10;
  --color-ink-soft: #2a2a2c;
  --color-muted: #6b6b6f;
  --color-muted-soft: #9a9a9e;
  --color-line: #e8e7e3;
  --color-line-soft: #f0efeb;
  --color-accent: #1e3a8a;
  --color-accent-bright: #2a4fc9;
  --color-accent-soft: #e0e8f7;
  --color-accent-glow: rgba(30, 58, 138, 0.18);
  --color-success: #2c6e49;
  --color-warn:    #b4651b;

  /* Book/ebook orange palette — globally available so blog & ebook share it */
  --book-orange:        #e7591f;
  --book-orange-bright: #ff7340;
  --book-orange-soft:   #ffe9dd;

  /* Type scale */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-numeric: "Bricolage Grotesque", "Space Grotesk", "Inter", system-ui, sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,15,16,.04), 0 1px 1px rgba(15,15,16,.03);
  --shadow-md: 0 4px 14px rgba(15,15,16,.06), 0 2px 4px rgba(15,15,16,.04);
  --shadow-lg: 0 20px 50px rgba(15,15,16,.08), 0 6px 14px rgba(15,15,16,.04);

  /* Transitions */
  --t-fast: 160ms cubic-bezier(.22, .61, .36, 1);
  --t-base: 280ms cubic-bezier(.22, .61, .36, 1);
  --t-slow: 480ms cubic-bezier(.22, .61, .36, 1);

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
}

/* ============================================
   Site Preloader — intro video at 2x speed
   ============================================ */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0a0b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), visibility .7s;
}
.site-loader[hidden] { display: none !important; }
.site-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0a0b;
  display: block;
}
.loader-skip {
  position: absolute;
  bottom: 32px;
  right: 32px;
  padding: 11px 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 2;
  letter-spacing: -.005em;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
  font-family: inherit;
}
.loader-skip:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.45);
  transform: translateY(-2px);
}
.loader-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,.08);
  z-index: 2;
}
.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2a4fc9, #fff);
  box-shadow: 0 0 10px rgba(255,255,255,.4);
  transition: width .15s linear;
}
@media (max-width: 720px) {
  .loader-skip { bottom: 22px; right: 22px; padding: 9px 18px; font-size: 0.78rem; }
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  width: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Every section clips its own 3D / parallax overflow horizontally */
section, .footer, .hero { overflow-x: clip; }

/* Container must never exceed viewport width */
.container, .container-narrow {
  width: 100%;
  max-width: min(var(--container, 1240px), 100%);
  box-sizing: border-box;
}
.container-narrow {
  max-width: min(var(--container-narrow, 880px), 100%);
}

/* Mobile-specific fixes for 3D scenes that could trigger horizontal scroll */
@media (max-width: 720px) {
  /* Hero 3D scene chips that use negative left/right shouldn't push outside */
  .scene-3d { max-width: 100%; }
  .scene-3d .chip-3d { display: none; } /* simplify on mobile */
  .scene-3d .mockup-3d-ghost,
  .scene-3d .mockup-3d-ghost-2 { display: none; }
  .scene-3d .mockup-3d-main {
    transform: none !important;
    animation: none !important;
  }

  /* Mindset cards: large translateX entry can overflow — disable on mobile */
  .mindset-scene {
    --m-x: 0 !important;
    --m-rx: 0 !important;
    --m-ry: 0 !important;
    --m-tz: 0 !important;
  }
  .mindset-scene .mindset-card {
    transform: none !important;
  }

  /* Cost & VS & Manifesto & Mindset cards: kill 3D transforms on mobile, no overflow */
  .cost-card, .vs-card, .manifesto-card, .mindset-card {
    transform: none !important;
    opacity: 1 !important;
  }

  /* Watermark numbers that extend beyond the right edge */
  .manifesto-card .mf-watermark { right: -4px; font-size: 8rem; }

  /* SVG iso scenes must scale down to fit */
  .iso-scene { max-width: 100%; }
  .iso-scene svg { width: 100% !important; height: auto; }

  /* Ensure all grids never overflow */
  .grid, .grid-2, .grid-3, .grid-4,
  .manifesto-scene, .cost-scene, .vs-scene { max-width: 100%; }
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--color-ink); color: #fff; }

/* ============================================
   Typography
   ============================================ */

.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  line-height: 1.05;
  margin: 0;
}

h1, .h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 700;
}
h2, .h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h3, .h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}
h4, .h4 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1em; color: var(--color-ink-soft); }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--color-ink-soft);
  line-height: 1.55;
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--color-muted);
}
.eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

em {
  font-style: normal;
  color: var(--color-accent);
  background: linear-gradient(180deg, transparent 62%, var(--color-accent-glow) 62%, var(--color-accent-glow) 92%, transparent 92%);
  padding: 0 0.08em;
}
strong.blue, .text-blue {
  color: var(--color-accent);
  font-weight: 700;
}
.text-muted { color: var(--color-muted); }
.text-soft { color: var(--color-ink-soft); }
.text-center { text-align: center; }

/* ============================================
   Layout
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3.keep-md { grid-template-columns: repeat(2, 1fr); }
}

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.nav.scrolled {
  border-bottom-color: var(--color-line);
  background: rgba(255,255,255,0.92);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 8px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
/* Nav brand: pillola bianca con shadow blu — stessa impostazione di .footer-brand
   per coerenza brand su tutto il sito (header + footer hanno la stessa "firma"). */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #fff;
  border-radius: 14px;
  line-height: 1;
  box-shadow: 0 8px 20px -8px rgba(30, 58, 138, 0.30);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}
.nav-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(30, 58, 138, 0.45);
}
.nav-brand img {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .nav-brand { padding: 8px 14px; border-radius: 12px; }
  .nav-brand img { height: 44px; }
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  font-weight: 500;
  position: relative;
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--color-ink); }
.nav-links a.active { color: var(--color-ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--color-ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}
.nav-burger svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .nav-links, .nav-cta-desktop { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-inner { padding: 14px 20px; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 90px 28px 32px;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity var(--t-base), transform var(--t-base);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu a:not(.btn):not(.mobile-social) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
  letter-spacing: -.02em;
}
.mobile-menu a:not(.btn):not(.mobile-social):hover { color: var(--color-accent); }

/* Mobile menu CTA — proper button styling (override generic a styles) */
.mobile-menu a.btn {
  margin-top: 28px;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 18px 28px;
  border-bottom: none;
  text-align: center;
  justify-content: center;
  border-radius: var(--radius-full);
  letter-spacing: -.005em;
}
.mobile-menu a.btn-primary { color: #fff; }
.mobile-menu a.btn-primary:hover { color: #fff; }

/* Mobile menu social/contact strip */
.mobile-menu-foot {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}
.mobile-menu-foot .mm-label {
  font-size: 0.74rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 14px;
}
.mobile-menu-foot .mm-phones {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.mobile-menu-foot .mm-phones a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
}
.mobile-menu-foot .mm-phones a svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }
.mobile-menu-foot .mm-phones a .mm-name {
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.mobile-menu-foot .mm-phones a .mm-num {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 0.92rem;
  margin-left: auto;
}
.mobile-menu-foot .mm-social {
  display: flex;
  gap: 10px;
}
.mobile-menu-foot .mobile-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-ink-soft);
  border-bottom: 1px solid var(--color-line);
  font-size: 0;
}
.mobile-menu-foot .mobile-social svg { width: 18px; height: 18px; }
.mobile-menu-foot .mobile-social:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius-full);
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-ink);
  color: #fff;
}
.btn-primary:hover { background: #25252a; box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}
.btn-secondary:hover { background: var(--color-bg-alt); border-color: var(--color-ink); }

.btn-ghost {
  color: var(--color-ink);
  padding: 10px 0;
}
.btn-ghost::after {
  content: "→";
  margin-left: 6px;
  transition: transform var(--t-fast);
}
.btn-ghost:hover::after { transform: translateX(4px); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 17px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: clamp(120px, 16vw, 180px) 0 clamp(64px, 9vw, 110px);
  position: relative;
  overflow: hidden;
}

/* Hero with looping video background */
.hero-video { isolation: isolate; }
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  /* Slight zoom + slow drift to feel alive */
  animation: heroVideoDrift 30s ease-in-out infinite alternate;
}
@keyframes heroVideoDrift {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}
.hero-video-mask {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.72) 40%, rgba(255,255,255,.55) 70%, rgba(255,255,255,.78) 100%),
    linear-gradient(180deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.6) 100%);
  pointer-events: none;
}
/* On the right side (where the mockup sits), let the video shine through a bit more */
@media (min-width: 980px) {
  .hero-video-mask {
    background:
      linear-gradient(95deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.85) 45%, rgba(255,255,255,.55) 70%, rgba(255,255,255,.40) 100%);
  }
}
@media (max-width: 720px) {
  .hero-video-bg { animation: none; }
  .hero-video-mask {
    background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.92) 100%);
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  margin-bottom: 24px;
}
.hero .hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--color-ink-soft);
  max-width: 56ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
}
.hero-meta .stat {
  display: flex;
  flex-direction: column;
}
.hero-meta .stat-num {
  font-family: var(--font-numeric);
  font-size: 2.8rem;
  font-weight: 700;
  font-variation-settings: "wdth" 95;
  letter-spacing: -0.035em;
  color: var(--color-ink);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-meta .stat-num sup { font-size: 0.5em; vertical-align: super; color: var(--color-accent); top: -0.4em; position: relative; font-weight: 600; }
.hero-meta .stat-lbl {
  font-size: 0.82rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* Hero visual block */
.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--color-bg-alt);
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--color-line);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(26,47,78,.07), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(15,15,16,.04) 100%);
}
.hero-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
}
.hero-card-1 { top: 8%; left: 6%; width: 60%; }
.hero-card-2 { bottom: 12%; right: 6%; width: 64%; }
.hero-card .hc-row { display: flex; justify-content: space-between; align-items: center; }
.hero-card .hc-label { color: var(--color-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.hero-card .hc-value { font-family: var(--font-numeric); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; }
.hero-card .hc-divider { border-top: 1px solid var(--color-line); margin: 10px 0; }
.hero-card .hc-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--color-accent-soft); color: var(--color-accent);
  font-size: 0.72rem; font-weight: 600;
}
.hero-card .hc-pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-success);
}

/* ============================================
   Marquee / Trust strip
   ============================================ */

.trust-strip {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: 28px 0;
  overflow: hidden;
  background: var(--color-bg);
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-line {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.trust-line strong {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--color-accent);
  letter-spacing: -0.03em;
}

/* ============================================
   Sections / cards / generic blocks
   ============================================ */

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.1rem; color: var(--color-ink-soft); margin: 0; }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.card:hover { border-color: var(--color-ink); }
.card-num {
  font-family: var(--font-numeric);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-accent);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--color-muted); font-size: 0.96rem; margin: 0; }

/* Pillars / problem-solution grid */
.problem-block {
  background: var(--color-bg-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 64px);
}
.problem-block h2 { color: #fff; }
.problem-block p { color: rgba(255,255,255,.72); }
.problem-block .eyebrow { color: rgba(255,255,255,.6); }
.problem-block .eyebrow::before { background: rgba(255,255,255,.6); }
.problem-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 18px;
}
.problem-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  align-items: start;
}
.problem-list li:first-child { border-top: none; padding-top: 0; }
.problem-list .x {
  flex: 0 0 22px;
  height: 22px;
  width: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(255,80,80,.12);
  color: #ff7a7a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.problem-list strong { color: #fff; font-weight: 500; display: block; margin-bottom: 4px; }
.problem-list small { color: rgba(255,255,255,.6); font-size: 0.92rem; line-height: 1.5; }

/* Process / numbered steps */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-line);
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-line);
  align-items: start;
}
.step-num {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  font-size: 1.8rem;
  color: var(--color-accent);
  letter-spacing: -0.03em;
}
.step-title { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; color: var(--color-ink); }
.step-desc { color: var(--color-ink-soft); font-size: 1rem; }
@media (max-width: 720px) {
  .step { grid-template-columns: 60px 1fr; }
  .step-desc { grid-column: 2; }
}

/* ============================================
   Metrics / numbers section
   ============================================ */

.metrics {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.metric .metric-num {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-ink);
  margin-bottom: 12px;
}
.metric .metric-num sup { font-size: 0.45em; vertical-align: super; color: var(--color-accent); top: -0.6em; position: relative; font-weight: 600; }
.metric .metric-label {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.45;
  max-width: 22ch;
}
@media (max-width: 880px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 480px) { .metrics-grid { grid-template-columns: 1fr; } }

/* ============================================
   Team
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; gap: 28px; } }

.team-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: #fff;
  padding: 48px 36px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 24px 50px -22px var(--color-accent-glow), 0 8px 16px -10px rgba(15,15,16,.06);
}
.team-card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 220px;
  background: radial-gradient(ellipse at center top, var(--color-accent-soft), transparent 70%);
  z-index: 0;
  pointer-events: none;
  opacity: .8;
}

.team-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: 4px solid #fff;
  box-shadow:
    0 0 0 1px var(--color-line),
    0 16px 32px -12px var(--color-accent-glow),
    0 8px 16px -8px rgba(15,15,16,.08);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(8%) contrast(1.02);
  transition: filter var(--t-base), transform var(--t-base);
}
.team-card:hover .team-photo {
  transform: scale(1.04);
  box-shadow:
    0 0 0 1px var(--color-accent),
    0 24px 40px -16px var(--color-accent-glow),
    0 12px 20px -10px rgba(15,15,16,.10);
}
.team-card:hover .team-photo img { filter: grayscale(0%); transform: scale(1.06); }

.team-info {
  position: relative;
  z-index: 1;
}
.team-info h3 {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--color-ink);
}
.team-role {
  font-size: 0.82rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.team-role span { color: var(--color-accent); font-weight: 800; }
.team-bio {
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  margin: 0 auto;
  max-width: 36ch;
  line-height: 1.6;
}

.team-contacts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
  flex-wrap: wrap;
}
.team-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-family: var(--font-numeric);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-ink);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.team-contact svg { width: 14px; height: 14px; color: var(--color-accent); }
.team-contact:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}
.team-contact:hover svg { color: #fff; }
.team-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-ink-soft);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.team-contact-icon svg { width: 16px; height: 16px; }
.team-contact-icon:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .team-card { padding: 36px 24px 32px; }
  .team-photo { width: 150px; height: 150px; }
  .team-info h3 { font-size: 1.5rem; }
  .team-contacts { gap: 8px; }
  .team-contact { font-size: 0.8rem; padding: 8px 12px; }
}

/* ============================================
   Testimonials / quote
   ============================================ */

.quote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--color-line);
  margin-bottom: 24px;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin: 0 0 28px;
}
.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ============================================
   CTA section
   ============================================ */

.cta-block {
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 88px);
  text-align: center;
}
.cta-block h2 { color: #fff; margin-bottom: 18px; }
.cta-block p { color: rgba(255,255,255,.7); max-width: 56ch; margin: 0 auto 32px; }
.cta-block .btn-primary {
  background: #fff;
  color: var(--color-ink);
}
.cta-block .btn-primary:hover { background: #f4f3ef; }
.cta-block .btn-secondary {
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.cta-block .btn-secondary:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }

/* ============================================
   Forms
   ============================================ */

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.field label .req { color: #e7591f; font-weight: 800; }
.field-hint { font-size: 0.78rem; color: var(--color-muted); margin-top: 2px; }

/* Combobox Comune (autocomplete con CAP) */
.combo { position: relative; }
.combo-dropdown {
  display: none;
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 44px -14px rgba(15, 15, 16, 0.24);
  max-height: 286px;
  overflow-y: auto;
  padding: 6px;
}
.combo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
}
.combo-item .ci-ic { flex: 0 0 auto; font-size: 0.95rem; opacity: 0.65; }
.combo-item .ci-nome { font-weight: 600; color: var(--color-ink); }
.combo-item .ci-meta { margin-left: auto; font-size: 0.78rem; color: var(--color-muted); white-space: nowrap; }
.combo-item:hover, .combo-item.active { background: var(--color-accent-soft); }
.combo-item.active .ci-meta { color: var(--color-accent); }

.input, .select, .textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--color-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.input:hover, .select:hover, .textarea:hover {
  border-color: rgba(30, 58, 138, 0.35);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: linear-gradient(180deg, #fff 0%, rgba(224, 232, 247, 0.25) 100%);
  box-shadow: 0 0 0 4px var(--color-accent-glow);
  transform: translateY(-1px);
}
.input::placeholder { color: var(--color-muted-soft); }
.field label .req { color: #e7591f; }
.textarea { min-height: 130px; resize: vertical; }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' stroke='%236b6b6f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

/* Choice card group */
.choice-grid {
  display: grid;
  gap: 12px;
}
.choice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.choice-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.choice-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
  .choice-grid.cols-3, .choice-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
.choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 20px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: left;
  position: relative;
  overflow: hidden;
  /* Default tone (blue) — overridden per data-tone */
  --tone-from: var(--color-accent);
  --tone-to: var(--color-accent-bright);
  --tone-glow: var(--color-accent-glow);
  --tone-soft: var(--color-accent-soft);
}

/* Semantic tones */
.choice[data-tone="green"] {
  --tone-from: #2c6e49;
  --tone-to: #4ea76d;
  --tone-glow: rgba(44, 110, 73, 0.30);
  --tone-soft: #ddeee4;
}
.choice[data-tone="orange"] {
  --tone-from: #e7591f;
  --tone-to: #f59042;
  --tone-glow: rgba(231, 89, 31, 0.30);
  --tone-soft: #ffe6d4;
}
.choice[data-tone="red"] {
  --tone-from: #c4302b;
  --tone-to: #ed5a52;
  --tone-glow: rgba(196, 48, 43, 0.32);
  --tone-soft: #ffdfdd;
}
.choice[data-tone="yellow"] {
  --tone-from: #b88514;
  --tone-to: #d4a648;
  --tone-glow: rgba(184, 133, 20, 0.30);
  --tone-soft: #fff1cc;
}
.choice[data-tone="grey"] {
  --tone-from: #555;
  --tone-to: #888;
  --tone-glow: rgba(80, 80, 80, 0.22);
  --tone-soft: #eeeeee;
}
.choice[data-tone="purple"] {
  --tone-from: #5e3a9c;
  --tone-to: #8559c4;
  --tone-glow: rgba(94, 58, 156, 0.28);
  --tone-soft: #ece2f7;
}

.choice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--tone-from) 0%, var(--tone-to) 100%);
  opacity: 0;
  transition: opacity var(--t-fast);
  z-index: 0;
}
.choice > * { position: relative; z-index: 1; }
.choice:hover {
  border-color: var(--tone-from);
  background: linear-gradient(135deg, #fff 0%, var(--tone-soft) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -6px var(--tone-glow);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .choice-title { font-weight: 700; font-size: 0.98rem; color: var(--color-ink); letter-spacing: -.01em; transition: color .25s; }
.choice .choice-sub { font-size: 0.82rem; color: var(--color-muted); transition: color .25s; }
.choice.selected {
  border-color: var(--tone-from);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px var(--tone-glow);
}
.choice.selected::before { opacity: 1; }
.choice.selected .choice-title { color: #fff; }
.choice.selected .choice-sub { color: rgba(255, 255, 255, 0.88); }
.choice.selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--tone-from);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

/* ============================================
   Valuator / Multistep — VIBRANT REDESIGN
   ============================================ */

.valuator-wrap {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(30, 58, 138, 0.04),
    0 30px 80px -30px var(--color-accent-glow),
    0 12px 28px -12px rgba(15, 15, 16, 0.08);
  position: relative;
}
/* Top accent gradient strip */
.valuator-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--color-accent) 0%,
    var(--color-accent-bright) 35%,
    #ffb05c 70%,
    var(--color-success) 100%);
  z-index: 2;
}

.valuator-progress {
  display: flex;
  padding: 22px clamp(20px, 4vw, 36px);
  gap: 14px;
  border-bottom: 1px solid var(--color-line);
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #f0f4fb 100%);
  align-items: center;
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 500;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(15, 15, 16, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,
    var(--color-accent) 0%,
    var(--color-accent-bright) 50%,
    var(--color-accent) 100%);
  background-size: 200% 100%;
  border-radius: 999px;
  transition: width var(--t-base);
  box-shadow: 0 0 12px var(--color-accent-glow);
  animation: progressShimmer 2.6s linear infinite;
  position: relative;
}
.progress-bar-fill::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-accent-bright);
  box-shadow: 0 0 8px var(--color-accent);
}
@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.progress-count {
  font-family: var(--font-numeric);
  font-weight: 700;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
  min-width: 50px;
  text-align: right;
  font-size: 0.92rem;
  letter-spacing: -.02em;
}
.progress-count span {
  color: var(--color-accent);
}

.valuator-body {
  padding: clamp(32px, 4vw, 48px);
  min-height: 320px;
  position: relative;
}
/* Subtle radial background decoration */
.valuator-body::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}
.valuator-body > * { position: relative; z-index: 1; }

.valuator-step { display: none; }
.valuator-step.active { display: block; animation: fadeUp 0.5s cubic-bezier(.22,.61,.36,1); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Etichetta del passo nella barra di avanzamento */
.progress-label { color: var(--color-ink); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 540px) { .progress-label { display: none; } }
/* Entrata a cascata delle card di scelta quando lo step diventa attivo */
.valuator-step.active .choice { animation: choicePop .44s cubic-bezier(.22,.61,.36,1) backwards; }
.valuator-step.active .choice-grid .choice:nth-child(1) { animation-delay: .03s; }
.valuator-step.active .choice-grid .choice:nth-child(2) { animation-delay: .07s; }
.valuator-step.active .choice-grid .choice:nth-child(3) { animation-delay: .11s; }
.valuator-step.active .choice-grid .choice:nth-child(4) { animation-delay: .15s; }
.valuator-step.active .choice-grid .choice:nth-child(5) { animation-delay: .19s; }
.valuator-step.active .choice-grid .choice:nth-child(6) { animation-delay: .23s; }
.valuator-step.active .choice-grid .choice:nth-child(7) { animation-delay: .27s; }
.valuator-step.active .choice-grid .choice:nth-child(8) { animation-delay: .31s; }
@keyframes choicePop {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .valuator-step.active .choice { animation: none; }
}
.valuator-step .step-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--color-accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(30, 58, 138, 0.15);
}
.valuator-step .step-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent);
  animation: pulse 2s ease-out infinite;
}
.valuator-step h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.valuator-step h2 .num {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 8px;
  font-family: var(--font-numeric);
  font-weight: 700;
}
.valuator-step .step-desc {
  color: var(--color-muted);
  margin-bottom: 30px;
  font-size: 0.96rem;
  max-width: 56ch;
  line-height: 1.55;
}

.valuator-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(20px, 4vw, 36px);
  border-top: 1px solid var(--color-line);
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f9 100%);
  gap: 12px;
}

/* ============================================
   Valuator — mobile optimizations
   ============================================ */
@media (max-width: 720px) {
  .valuator-wrap {
    border-radius: var(--radius-lg);
    margin-inline: -8px;
  }
  .valuator-progress {
    padding: 14px 18px;
    gap: 10px;
    font-size: 0.78rem;
  }
  .valuator-progress > span:first-child { flex-shrink: 0; }
  .progress-count { min-width: 38px; }
  .progress-bar { height: 5px; }

  .valuator-body {
    padding: 24px 20px 16px;
    min-height: auto;
  }
  .valuator-step h2 {
    font-size: 1.5rem;
    line-height: 1.15;
    margin-bottom: 6px;
  }
  .valuator-step .step-eyebrow { font-size: 0.72rem; margin-bottom: 10px; }
  .valuator-step .step-desc {
    font-size: 0.92rem;
    margin-bottom: 22px;
    line-height: 1.5;
  }

  /* Form fields — bigger touch targets, no zoom on iOS */
  .input, .select, .textarea {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
  }
  .field label {
    font-size: 0.88rem;
    margin-bottom: 6px;
  }
  .field-hint { font-size: 0.78rem; }

  /* Form grid stacks fully */
  .form-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  /* Choice cards — single column with bigger tap area */
  .choice-grid {
    gap: 10px;
  }
  .choice-grid.cols-3,
  .choice-grid.cols-4,
  .choice-grid.cols-2 {
    grid-template-columns: 1fr !important;
  }
  .choice {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 12px;
    min-height: 60px;
    gap: 12px;
  }
  .choice .choice-title {
    font-size: 1rem;
    order: 1;
    flex: 1;
  }
  .choice .choice-sub {
    font-size: 0.78rem;
    color: var(--color-muted);
    order: 2;
    text-align: right;
    flex-shrink: 0;
  }
  .choice.selected {
    box-shadow: 0 0 0 2px var(--color-accent);
    border-color: var(--color-accent);
  }
  .choice.selected::after {
    content: "✓";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-accent);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
  }
  .choice.selected .choice-sub { padding-right: 32px; }
  .choice { position: relative; }

  /* Action bar — sticky bottom on mobile for easy thumb reach */
  .valuator-actions {
    padding: 14px 16px;
    gap: 10px;
    position: sticky;
    bottom: 0;
    z-index: 5;
    flex-wrap: wrap;
    box-shadow: 0 -4px 12px rgba(15,15,16,.06);
  }
  .valuator-actions .btn {
    padding: 13px 18px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 44%;
  }
  .valuator-actions .btn-sm { padding: 11px 14px; }
  .valuator-actions #hintText {
    width: 100%;
    text-align: center;
    order: -1;
    font-size: 0.74rem;
  }

  /* Result step — stack everything */
  .result-range {
    font-size: 2rem;
  }
  .result-range .sep { margin: 0 6px; }
  .result-mid { font-size: 0.88rem; }
  .result-summary {
    gap: 10px;
  }
  .summary-item { padding: 14px; }
  .summary-item .si-label { font-size: 0.7rem; }
  .summary-item .si-value { font-size: 0.95rem; }
  .confidence-bar { height: 8px; }
}

@media (max-width: 480px) {
  .valuator-body { padding: 20px 16px 12px; }
  .valuator-step h2 { font-size: 1.35rem; }
  .result-range { font-size: 1.7rem; }
}

/* Valuator result — DRAMATIC GRADIENT */
.result-card {
  text-align: center;
  position: relative;
}
.result-card::before {
  content: "";
  position: absolute;
  top: -50px; left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  max-width: 90%;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 60%);
  z-index: 0;
  pointer-events: none;
  filter: blur(40px);
  opacity: .8;
}
.result-card > * { position: relative; z-index: 1; }
.result-range {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-bright) 50%, var(--color-accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin: 28px 0 10px;
  line-height: 1.05;
  animation: gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.result-range .sep {
  color: var(--color-muted-soft);
  -webkit-text-fill-color: var(--color-muted-soft);
  margin: 0 12px;
  font-weight: 400;
}
.result-mid {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 36px;
}
.result-mid strong {
  color: var(--color-accent);
  font-family: var(--font-numeric);
  font-weight: 700;
  letter-spacing: -.02em;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
  margin-bottom: 28px;
  text-align: left;
}
.summary-item.si-wide { grid-column: span 2; }
@media (max-width: 760px) {
  .result-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .result-summary { grid-template-columns: 1fr; }
  .summary-item.si-wide { grid-column: auto; }
}
.summary-item {
  padding: 18px 20px;
  background: linear-gradient(135deg, #fff 0%, var(--color-accent-soft) 100%);
  border: 1.5px solid rgba(30, 58, 138, 0.12);
  border-radius: var(--radius-md);
  text-align: left;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.summary-item:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 18px -6px var(--color-accent-glow);
}
.summary-item .si-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.summary-item .si-value {
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.confidence-bar {
  height: 6px;
  background: var(--color-line);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 6px;
}
.confidence-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-warn) 0%, var(--color-accent) 100%);
  border-radius: 999px;
  transition: width 2.7s cubic-bezier(.22, .61, .36, 1);
  position: relative;
  box-shadow: 0 0 8px rgba(30, 58, 138, 0.4);
}
.confidence-bar-fill::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent), 0 0 4px #fff;
  opacity: 0;
  transition: opacity .4s 1.6s;
}
.confidence-bar-fill[style*="width:"]:not([style*="width: 0"])::after,
.confidence-bar-fill[style*="width: "]:not([style*="0%"])::after {
  opacity: 1;
}

/* ============================================
   FAQ — modern card-based accordion
   ============================================ */

.faq {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  position: relative;
}
.faq-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.faq-item:hover {
  border-color: var(--color-line);
  box-shadow: 0 6px 20px -10px rgba(15,15,16,.08);
}
.faq-item.open {
  border-color: var(--color-accent);
  box-shadow: 0 16px 36px -18px var(--color-accent-glow), 0 4px 12px -6px rgba(15,15,16,.06);
}
.faq-item.open::before {
  transform: scaleY(1);
}

.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  text-align: left;
  cursor: pointer;
}
.faq-q-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.faq-question {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  line-height: 1.3;
  transition: color var(--t-fast);
}
.faq-q:hover .faq-question { color: var(--color-accent); }

/* Plus → X icon (clean morph) */
.faq-q .plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: background var(--t-base), border-color var(--t-base), transform .4s cubic-bezier(.22,.61,.36,1);
}
.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.faq-q .plus::before { width: 2px; height: 12px; }
.faq-q .plus::after { width: 12px; height: 2px; }
.faq-q:hover .plus { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-accent); }
.faq-item.open .plus {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.22,.61,.36,1);
}
.faq-a-inner {
  padding: 0 28px 28px 28px;
  color: var(--color-ink-soft);
  font-size: 1rem;
  max-width: 80ch;
  line-height: 1.65;
}
.faq-a-inner p { margin: 0 0 1em; }
.faq-a-inner p:last-child { margin-bottom: 0; }
.faq-a-inner .faq-bullet {
  display: flex;
  gap: 10px;
  padding: 8px 0;
}
.faq-a-inner .faq-bullet::before {
  content: "→";
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .faq-q { padding: 18px 20px; gap: 16px; }
  .faq-a-inner { padding: 0 20px 22px 20px; }
  .faq-q .plus { width: 32px; height: 32px; }
}

/* CTA at end of FAQ */
.faq-help {
  margin-top: 40px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-accent-soft) 100%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.faq-help::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
  pointer-events: none;
}
.faq-help-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: 0 8px 16px -6px var(--color-accent-glow);
}
.faq-help-icon svg { width: 26px; height: 26px; }
.faq-help-content {
  flex: 1;
  min-width: 200px;
}
.faq-help h3 {
  font-size: 1.3rem;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.faq-help p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}
@media (max-width: 640px) {
  .faq-help { padding: 24px; flex-direction: column; align-items: flex-start; }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.7);
  padding: clamp(64px, 8vw, 96px) 0 32px;
}
.footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin: 0 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  display: inline-block;
  margin-bottom: 22px;
  padding: 14px 22px;
  background: #fff;
  border-radius: 14px;
  line-height: 1;
  box-shadow: 0 8px 20px -8px rgba(30, 58, 138, 0.30);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.footer-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(30, 58, 138, 0.45);
}
.footer-brand img {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .footer-brand { padding: 12px 18px; }
  .footer-brand img { height: 46px; }
}
.footer-tag {
  font-size: 0.95rem;
  color: rgba(255,255,255,.65);
  max-width: 36ch;
  margin-bottom: 24px;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-list a {
  color: rgba(255,255,255,.7);
  font-size: 0.92rem;
  transition: color var(--t-fast);
}
.footer-list a:hover { color: #fff; }
.footer-list a strong {
  color: #fff;
  font-weight: 600;
  margin-right: 4px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: rgba(255,255,255,.75);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Direct contacts box (contatti page) */
.direct-contacts {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.direct-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  transition: all var(--t-fast);
}
.direct-contact svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.direct-contact .dc-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
.direct-contact .dc-name {
  font-size: 0.74rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.direct-contact .dc-val {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
.direct-contact:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
  transform: translateX(4px);
}
.direct-contact.dc-cta {
  background: var(--color-ink);
  border-color: var(--color-ink);
}
.direct-contact.dc-cta svg,
.direct-contact.dc-cta .dc-val { color: #fff; }
.direct-contact.dc-cta .dc-name { color: rgba(255,255,255,.6); }
.direct-contact.dc-cta:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.direct-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}
.direct-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  transition: all var(--t-fast);
}
.direct-social a svg { width: 16px; height: 16px; color: var(--color-accent); }
.direct-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.direct-social a:hover svg { color: #fff; }
/* Interlinking site-wide verso le grandi città (footer) */
.footer-cities {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding-top: 24px;
}
.footer-cities .fc-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .02em;
  margin-bottom: 13px;
}
.footer-cities .fc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
}
.footer-cities .fc-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color .18s;
}
.footer-cities .fc-links a:hover { color: #fff; text-decoration: underline; }
.footer-cities .fc-links a.fc-all { color: var(--book-orange, #e7591f); font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
}

/* ============================================
   Page header (interior pages)
   ============================================ */

.page-header {
  padding: clamp(120px, 14vw, 180px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--color-line);
}
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 { margin-bottom: 20px; max-width: 18ch; }
.page-header p { font-size: 1.15rem; max-width: 56ch; color: var(--color-ink-soft); }

/* ============================================
   Admin
   ============================================ */

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}
@media (max-width: 880px) { .admin-shell { grid-template-columns: 1fr; } }

.admin-side {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-side .brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.admin-side a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.admin-side a:hover, .admin-side a.active {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.admin-side .spacer { flex: 1; }
.admin-side .logout {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  margin-top: 8px;
  color: rgba(255,255,255,.5);
  font-size: 0.85rem;
}

.admin-main {
  padding: 36px clamp(20px, 3vw, 40px);
  background: var(--color-bg-alt);
  min-height: 100vh;
}
.admin-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.admin-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 880px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .admin-stats { grid-template-columns: 1fr; } }
.admin-stat {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.admin-stat .as-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.admin-stat .as-value {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  line-height: 1;
}

.admin-toolbar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}
.admin-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}
.admin-search input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 0.9rem;
}
.admin-search svg {
  position: absolute;
  top: 50%; left: 12px;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--color-muted);
}

.table-wrap {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.lead-table {
  width: 100%;
  border-collapse: collapse;
}
.lead-table th, .lead-table td {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-line);
  vertical-align: middle;
}
.lead-table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}
.lead-table tr:last-child td { border-bottom: none; }
.lead-table tr:hover td { background: var(--color-bg-alt); }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag.new { background: #eaf3ff; color: #1a4e8f; }
.tag.urgent { background: #ffeae2; color: #a3471a; }
.tag.medium { background: #f4f1e1; color: #7a661a; }
.tag.cold { background: #efefee; color: #555; }

.empty-state {
  padding: 80px 32px;
  text-align: center;
  color: var(--color-muted);
}
.empty-state h3 { font-family: var(--font-display); color: var(--color-ink); margin-bottom: 10px; }
.empty-state p { color: var(--color-muted); max-width: 36ch; margin: 0 auto; }

/* Login */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--color-bg-alt);
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.login-card .brand { text-align: center; margin-bottom: 28px; }
.login-card .brand img { height: 32px; margin: 0 auto; }
.login-card h1 { font-size: 1.8rem; margin-bottom: 6px; text-align: center; }
.login-card .sub { text-align: center; color: var(--color-muted); margin-bottom: 28px; font-size: 0.95rem; }
.login-error {
  background: #fee; color: #b22; padding: 12px 16px;
  border-radius: var(--radius-md); font-size: 0.88rem;
  margin-bottom: 16px; display: none;
}
.login-error.show { display: block; }

/* ============================================
   Utility / animation
   ============================================ */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--t-slow), transform 0.8s var(--t-slow); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Staggered reveal — cards/items inside a stagger-group reveal in sequence */
.stagger > * {
  opacity: 0;
  transform: translateY(28px) scale(.96);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.stagger.in > * { opacity: 1; transform: translateY(0) scale(1); }
.stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

/* "Pop from inside" — cards emerging out of each other */
.pop-in > * {
  opacity: 0;
  transform: scale(.85) translateY(20px);
  transition: opacity .7s cubic-bezier(.34,1.56,.64,1), transform .7s cubic-bezier(.34,1.56,.64,1);
}
.pop-in.in > * { opacity: 1; transform: scale(1) translateY(0); }
.pop-in.in > *:nth-child(1) { transition-delay: 0.08s; }
.pop-in.in > *:nth-child(2) { transition-delay: 0.18s; }
.pop-in.in > *:nth-child(3) { transition-delay: 0.28s; }
.pop-in.in > *:nth-child(4) { transition-delay: 0.38s; }
.pop-in.in > *:nth-child(5) { transition-delay: 0.48s; }
.pop-in.in > *:nth-child(6) { transition-delay: 0.58s; }

/* Mockup dashboard visual */
.mockup {
  position: relative;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 16px;
}
.mockup-header .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-line);
}
.mockup-header .dot.r { background: #f57676; }
.mockup-header .dot.y { background: #f5c557; }
.mockup-header .dot.g { background: #6abf6a; }
.mockup-header .url {
  margin-left: 16px;
  flex: 1;
  background: var(--color-bg-alt);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: .72rem;
  color: var(--color-muted);
  font-family: var(--font-numeric);
}
.mockup-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.mockup-stat {
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 10px;
}
.mockup-stat .ms-lbl {
  font-size: .62rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.mockup-stat .ms-val {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.mockup-stat .ms-val.accent { color: var(--color-accent); }
.mockup-stat .ms-val.success { color: var(--color-success); }
.mockup-chart {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 80px;
  padding: 8px 0;
}
.mockup-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-soft));
  border-radius: 4px 4px 0 0;
  position: relative;
  opacity: .85;
}
.mockup-chart .bar::after {
  content: "";
  position: absolute;
  top: -3px; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}
.mockup-list {
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 6px;
  display: grid;
  gap: 4px;
}
.mockup-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #fff;
  border-radius: 6px;
  font-size: .75rem;
}
.mockup-list-item .lead-name { font-weight: 600; }
.mockup-list-item .lead-meta {
  font-family: var(--font-numeric);
  font-size: .7rem;
  color: var(--color-muted);
}
.mockup-list-item .lead-tag {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
}
.mockup-list-item .lead-tag.hot { background: #ffe8d9; color: #a3471a; }

/* Floating mockup decoration */
.mockup-deco {
  position: absolute;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-numeric);
  font-weight: 600;
  font-size: .8rem;
}

/* ============================================
   3D Scene — hero showcase
   ============================================ */

.scene-3d {
  position: relative;
  perspective: 1400px;
  perspective-origin: center;
  transform-style: preserve-3d;
  min-height: 480px;
  width: 100%;
}
.scene-3d .scene-floor {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, var(--color-accent-glow), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.scene-3d .scene-stack {
  position: relative;
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}

.mockup-3d {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  box-shadow:
    0 30px 60px -20px rgba(15,15,16,.25),
    0 18px 36px -18px rgba(30,58,138,.20),
    0 1px 2px rgba(0,0,0,.04);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.mockup-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.6) 0%, transparent 30%, transparent 70%, rgba(30,58,138,.04) 100%);
  pointer-events: none;
  z-index: 1;
}
.mockup-3d .mockup-header {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
  background: linear-gradient(180deg, #fafafa, #fff);
}

.mockup-3d-main {
  position: relative;
  transform: rotateY(-14deg) rotateX(8deg) translateZ(0);
  transform-origin: center center;
  z-index: 3;
  animation: float3d 8s ease-in-out infinite;
}
@keyframes float3d {
  0%, 100% { transform: rotateY(-14deg) rotateX(8deg) translateY(0); }
  50% { transform: rotateY(-14deg) rotateX(8deg) translateY(-12px); }
}

/* Layered ghost mockup behind main */
.mockup-3d-ghost {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent-soft), #fff);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-line);
  transform: rotateY(-14deg) rotateX(8deg) translate3d(40px, 40px, -80px);
  opacity: .55;
  z-index: 1;
  animation: float3dGhost 8s ease-in-out infinite;
}
@keyframes float3dGhost {
  0%, 100% { transform: rotateY(-14deg) rotateX(8deg) translate3d(40px, 40px, -80px); }
  50% { transform: rotateY(-14deg) rotateX(8deg) translate3d(40px, 28px, -80px); }
}
.mockup-3d-ghost-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff, var(--color-bg-alt));
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-line);
  transform: rotateY(-14deg) rotateX(8deg) translate3d(20px, 20px, -40px);
  opacity: .75;
  z-index: 2;
  animation: float3dGhost2 8s ease-in-out infinite;
}
@keyframes float3dGhost2 {
  0%, 100% { transform: rotateY(-14deg) rotateX(8deg) translate3d(20px, 20px, -40px); }
  50% { transform: rotateY(-14deg) rotateX(8deg) translate3d(20px, 8px, -40px); }
}

/* Floating 3D chip — small data piece */
.chip-3d {
  position: absolute;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 16px 32px -12px rgba(15,15,16,.28), 0 4px 8px rgba(15,15,16,.05);
  font-family: var(--font-numeric);
  z-index: 5;
  transform-style: preserve-3d;
  animation: floatChip 5s ease-in-out infinite;
}
.chip-3d.delay-1 { animation-delay: 1.2s; }
.chip-3d.delay-2 { animation-delay: 2.4s; }
@keyframes floatChip {
  0%, 100% { transform: translateZ(80px) translateY(0); }
  50% { transform: translateZ(80px) translateY(-10px); }
}
.chip-3d .chip-num {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--color-ink);
}
.chip-3d .chip-num.accent { color: var(--color-accent); }
.chip-3d .chip-num.success { color: var(--color-success); }
.chip-3d .chip-lbl {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
}

/* Card 3D tilt — interactive */
.card-tilt {
  transform-style: preserve-3d;
  transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease;
  will-change: transform;
}
.card-tilt > * {
  transform: translateZ(20px);
  transition: transform .3s;
}
.card-tilt:hover {
  box-shadow:
    0 20px 50px -16px rgba(15,15,16,.18),
    0 14px 28px -14px var(--color-accent-glow);
}

/* Counter — keep value VISIBLE during the count animation */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transform-origin: left center;
}
/* No more opacity/scale animation that was hiding the growth */

/* Gradient text — for headline accent */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Isometric SVG illustration container */
.iso-scene {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.iso-scene svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 40px rgba(30, 58, 138, 0.18));
}
.iso-scene .iso-float {
  animation: isoFloat 6s ease-in-out infinite;
}
@keyframes isoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Phone mockup — realistic device */
.phone-mockup {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9/19;
  margin: 0 auto;
  background: linear-gradient(180deg, #0f0f10 0%, #1c1c20 100%);
  border-radius: 38px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -20px rgba(15, 15, 16, 0.4),
    0 12px 24px -12px rgba(30, 58, 138, 0.25);
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.phone-mockup:hover { transform: translateY(-8px); }
.phone-mockup::before {
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #0f0f10;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px 8px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--color-ink);
  font-family: var(--font-numeric);
}
.phone-status .time { letter-spacing: -.02em; }
.phone-status .icons { display: flex; gap: 4px; align-items: center; }
.phone-status .icons::after { content: "▮▮▮"; font-size: .55rem; letter-spacing: -1px; }
.phone-content {
  flex: 1;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.phone-content .ph-eyebrow {
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--color-muted);
  font-weight: 700;
  margin-top: 4px;
}
.phone-content .ph-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--color-ink);
  line-height: 1.15;
  margin-bottom: 4px;
}
.phone-input {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: .7rem;
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.phone-input .pi-lbl { font-size: .56rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.phone-input .pi-val { font-weight: 600; font-size: .78rem; }
.phone-input.active { border-color: var(--color-accent); background: var(--color-accent-soft); }
.phone-loading-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--color-accent-soft);
  border-top-color: var(--color-accent);
  margin: 22px auto;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.phone-result {
  text-align: center;
  padding: 8px 0;
}
.phone-result .pr-range {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.03em;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 4px;
}
.phone-result .pr-lbl {
  font-size: .58rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}
.phone-cta {
  margin-top: auto;
  background: var(--color-ink);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 11px;
  border-radius: 10px;
  text-align: center;
  letter-spacing: -.005em;
}
.phone-cta.accent { background: var(--color-accent); }
.phone-cta.success { background: var(--color-success); }

/* Phone scroll-driven horizontal reveal */
.phone-scroll-reveal { overflow: hidden; }
.phone-scroll-reveal .phone-row { position: relative; }
.phone-scroll-reveal .phone-step {
  will-change: transform, opacity;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity .25s ease;
}
.phone-scroll-reveal .phone-step.is-active .phone-mockup {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 70px -20px rgba(30, 58, 138, 0.35),
    0 16px 30px -12px rgba(15, 15, 16, 0.18);
}

/* On mobile the phones stack vertically — keep them animated but with vertical reveal */
@media (max-width: 720px) {
  .phone-scroll-reveal .phone-row {
    grid-template-columns: 1fr !important;
    gap: 56px !important;
  }
}

/* Manifesto — three principles as bold cards */
.manifesto-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.manifesto-intro h2 { margin-bottom: 18px; }
.manifesto-intro p { font-size: 1.1rem; color: var(--color-ink-soft); margin: 0; }

.manifesto-scene {
  perspective: 1800px;
  perspective-origin: 50% 30%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  transform-style: preserve-3d;
}
@media (max-width: 960px) {
  .manifesto-scene { grid-template-columns: 1fr; gap: 32px; perspective-origin: 50% 50%; }
}

.manifesto-card {
  position: relative;
  overflow: visible;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  isolation: isolate;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: box-shadow .6s cubic-bezier(.22,.61,.36,1), border-color .6s, background .6s;
  /* Scroll-driven entrance: cards start far away & rotated */
  --mf-x: 0;
  --mf-y: 0;
  --mf-rx: 0;
  --mf-ry: 0;
  --mf-rz: 0;
  --mf-tz: 0;
  --mf-opacity: 1;
  transform: translate3d(var(--mf-x), var(--mf-y), var(--mf-tz)) rotateX(var(--mf-rx)) rotateY(var(--mf-ry)) rotateZ(var(--mf-rz));
  opacity: var(--mf-opacity);
}

/* Inner parallax layers: different translateZ for 3D depth */
.manifesto-card .mf-watermark { transform: translateZ(-30px); }
.manifesto-card .manifesto-head { transform: translateZ(50px); position: relative; z-index: 2; }
.manifesto-card .mf-title { transform: translateZ(40px); position: relative; z-index: 2; }
.manifesto-card .mf-body { transform: translateZ(28px); position: relative; z-index: 2; }
.manifesto-card .mf-implication { transform: translateZ(16px); position: relative; z-index: 2; }

/* Card shadow that intensifies with hover tilt */
.manifesto-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    0 30px 60px -30px rgba(15, 15, 16, .25),
    0 10px 24px -12px var(--color-accent-glow);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
  z-index: -1;
}
.manifesto-card.is-hovered::after { opacity: 1; }
.manifesto-card.is-hovered {
  border-color: var(--color-accent);
}

/* Spotlight that follows mouse */
.manifesto-card .mf-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(30, 58, 138, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  z-index: 1;
}
.manifesto-card.is-hovered .mf-spotlight { opacity: 1; }

/* Big watermark number behind */
.manifesto-card .mf-watermark {
  position: absolute;
  top: -28px;
  right: -16px;
  font-family: var(--font-numeric);
  font-weight: 800;
  font-variation-settings: "wdth" 88;
  font-size: 13rem;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--color-bg-alt);
  z-index: -1;
  pointer-events: none;
  user-select: none;
  transition: color .5s, transform .5s;
}
.manifesto-card:hover .mf-watermark {
  color: var(--color-accent-soft);
  transform: translate(-4px, 4px) scale(1.04);
}

/* Top row: badge num + icon */
.manifesto-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.mf-num-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -.02em;
  color: var(--color-accent);
  text-transform: uppercase;
}
.mf-num-badge::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}
.mf-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s, background .5s, color .5s;
  flex-shrink: 0;
}
.mf-icon svg { width: 28px; height: 28px; }
.manifesto-card:hover .mf-icon {
  background: var(--color-accent);
  color: #fff;
  transform: rotate(-6deg) scale(1.08);
}

.mf-title {
  font-size: clamp(1.35rem, 2.2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 700;
}
.mf-body {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-ink-soft);
  line-height: 1.6;
}

.mf-implication {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mf-imp-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-ink-soft);
}
.mf-imp-row .mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 1px;
}
.mf-imp-row.bad .mark { background: #fde2e2; color: #b22; }
.mf-imp-row.good .mark { background: var(--color-accent-soft); color: var(--color-accent); }
.mf-imp-row.good { color: var(--color-ink); font-weight: 500; }

@media (max-width: 720px) {
  .manifesto-card { padding: 32px 24px 24px; }
  .manifesto-card .mf-watermark { font-size: 10rem; top: -16px; right: -10px; }
  .mf-icon { width: 48px; height: 48px; }
  .mf-icon svg { width: 22px; height: 22px; }
}

/* ============================================
   Mindset Scene — "Sei un agente. Pensa da imprenditore" 3D
   ============================================ */
.mindset-scene {
  perspective: 1600px;
  perspective-origin: 30% 50%;
  display: grid;
  gap: 20px;
  transform-style: preserve-3d;
}

.mindset-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.018) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 28px 28px 24px 32px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  isolation: isolate;
  --m-rx: 0;
  --m-ry: 0;
  --m-x: 0;
  --m-y: 0;
  --m-tz: 0;
  --m-opacity: 1;
  transform: translate3d(var(--m-x), var(--m-y), var(--m-tz)) rotateX(var(--m-rx)) rotateY(var(--m-ry));
  opacity: var(--m-opacity);
  transition: border-color .5s, box-shadow .5s, background .5s;
}

/* Accent vertical bar on the left */
.mindset-card::before {
  content: "";
  position: absolute;
  top: 18%; left: 0; bottom: 18%;
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-bright));
  border-radius: 0 3px 3px 0;
  opacity: .7;
  transition: opacity .4s, top .4s, bottom .4s;
}
.mindset-card.is-hovered::before {
  opacity: 1;
  top: 6%; bottom: 6%;
  box-shadow: 0 0 12px var(--color-accent);
}

/* Big watermark number top-right */
.mindset-card .m-watermark {
  position: absolute;
  top: 12px;
  right: 22px;
  font-family: var(--font-numeric);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  font-size: 4.2rem;
  letter-spacing: -.06em;
  color: rgba(255, 255, 255, 0.05);
  z-index: 0;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transform: translateZ(-20px);
  transition: color .5s, transform .5s;
}
.mindset-card.is-hovered .m-watermark {
  color: rgba(30, 58, 138, 0.30);
  transform: translateZ(-20px) translate(-3px, 3px) scale(1.05);
}

/* Spotlight that follows mouse */
.mindset-card .m-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 280px at var(--mx,50%) var(--my,50%), rgba(30,58,138,0.22), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  z-index: 1;
}
.mindset-card.is-hovered .m-spotlight { opacity: 1; }

/* Layered content with translateZ depth */
.mindset-card .m-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  transform: translateZ(40px);
}
.mindset-card .m-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: var(--color-accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .4s, color .4s;
}
.mindset-card .m-icon svg { width: 22px; height: 22px; }
.mindset-card.is-hovered .m-icon {
  background: var(--color-accent);
  color: #fff;
  transform: rotate(-6deg) scale(1.10);
}

.mindset-card h3 {
  font-size: 1.4rem;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0;
  font-weight: 700;
  position: relative;
  z-index: 2;
  transform: translateZ(35px);
}

.mindset-card p {
  margin: 0 0 18px;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  position: relative;
  z-index: 2;
  transform: translateZ(25px);
}

.mindset-card .m-roi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  position: relative;
  z-index: 2;
  transform: translateZ(20px);
}
.mindset-card .m-roi-meta {
  display: flex;
  flex-direction: column;
}
.mindset-card .m-roi-lbl {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.mindset-card .m-roi-val {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  font-size: 1.6rem;
  letter-spacing: -.03em;
  color: var(--color-accent-bright);
  margin-top: 2px;
  line-height: 1;
}
.mindset-card .m-roi-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(44, 110, 73, 0.18);
  color: #6fd49a;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-numeric);
  letter-spacing: -.01em;
}
.mindset-card .m-roi-trend::before {
  content: "↑";
  font-size: .9rem;
}

.mindset-card.is-hovered {
  border-color: rgba(30, 58, 138, 0.55);
  background: linear-gradient(135deg, rgba(30,58,138,0.12) 0%, rgba(255,255,255,0.025) 100%);
  box-shadow:
    0 28px 60px -22px var(--color-accent-glow),
    0 10px 24px -10px rgba(15, 15, 16, 0.5);
}

/* ============================================
   VS Scene — comparison "Modo vecchio vs Sistema ReaLink vs Il tuo risultato"
   ============================================ */
.vs-scene {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 28px;
  perspective: 1800px;
  perspective-origin: 50% 35%;
  transform-style: preserve-3d;
  position: relative;
}
@media (max-width: 900px) {
  .vs-scene { grid-template-columns: 1fr; gap: 24px; perspective-origin: 50% 50%; }
}

.vs-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  isolation: isolate;
  overflow: hidden;
  --vs-rx: 0;
  --vs-ry: 0;
  --vs-x: 0;
  --vs-y: 0;
  --vs-tz: 0;
  --vs-opacity: 1;
  transform: translate3d(var(--vs-x), var(--vs-y), var(--vs-tz)) rotateX(var(--vs-rx)) rotateY(var(--vs-ry));
  opacity: var(--vs-opacity);
  transition: box-shadow .6s cubic-bezier(.22,.61,.36,1), border-color .6s, background .6s;
  min-height: 380px;
}

/* Card 01 — Modo vecchio (inclined right) */
.vs-card-old {
  background: #fff;
  border: 1px solid var(--color-line);
  --vs-base-ry: -12;
  --vs-base-tz: -60;
}
.vs-card-old::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #d44, transparent);
  opacity: .6;
}

/* Card 02 — Sistema ReaLink (centered, raised forward) */
.vs-card-us {
  background: linear-gradient(155deg, #0f0f10 0%, #1a1a25 60%, #15296b 100%);
  border: 1px solid rgba(30, 58, 138, 0.5);
  color: #fff;
  --vs-base-ry: 0;
  --vs-base-tz: 80;
  box-shadow:
    0 40px 80px -20px var(--color-accent-glow),
    0 12px 28px -12px rgba(15, 15, 16, 0.4);
}
.vs-card-us::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(30, 58, 138, 0.4), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.vs-card-us::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--color-accent-bright), transparent 50%, var(--color-accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* Card 03 — Il tuo risultato (inclined left) */
.vs-card-you {
  background: #fff;
  border: 1px solid var(--color-line);
  --vs-base-ry: 12;
  --vs-base-tz: -60;
}
.vs-card-you::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-success), transparent);
  opacity: .8;
}

/* Inner layers for 3D parallax depth */
.vs-card .vs-badge,
.vs-card h3,
.vs-card .vs-list,
.vs-card .vs-cost,
.vs-card .vs-result,
.vs-card .vs-stamp {
  position: relative;
  z-index: 2;
}
.vs-card .vs-badge { transform: translateZ(40px); }
.vs-card h3 { transform: translateZ(32px); }
.vs-card .vs-list { transform: translateZ(20px); }
.vs-card .vs-result { transform: translateZ(28px); }
.vs-card .vs-stamp { transform: translateZ(45px) rotate(-8deg); }

.vs-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.vs-badge.old   { background: rgba(196, 68, 68, 0.10); color: #c44; border: 1px solid rgba(196, 68, 68, 0.25); }
.vs-badge.new   { background: var(--color-accent); color: #fff; border: 1px solid transparent; }
.vs-badge.result{ background: rgba(44, 110, 73, 0.12); color: var(--color-success); border: 1px solid rgba(44, 110, 73, 0.25); }
.vs-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.vs-badge.new .dot { background: #fff; }

.vs-card h3 {
  font-size: 1.35rem;
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
}
.vs-card-us h3 { color: #fff; }

.vs-card .vs-tagline {
  font-size: .82rem;
  color: var(--color-muted);
  margin: 0;
}
.vs-card-us .vs-tagline { color: rgba(255,255,255,.55); }

.vs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.vs-list li {
  display: flex;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  align-items: flex-start;
  color: var(--color-ink-soft);
}
.vs-card-us .vs-list li { color: rgba(255,255,255,.78); }
.vs-list .icn {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 1px;
}
.vs-list .icn.bad  { background: rgba(196, 68, 68, 0.12); color: #c44; }
.vs-list .icn.good { background: var(--color-accent-soft); color: var(--color-accent); }
.vs-list .icn.win  { background: rgba(44, 110, 73, 0.12); color: var(--color-success); }
.vs-card-us .vs-list .icn.good { background: rgba(255,255,255,.18); color: #fff; }

.vs-result {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.vs-result strong {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  font-size: 2rem;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1;
}
.vs-result strong em { color: var(--color-accent-bright); font-style: normal; background: none; padding: 0; }
.vs-result span {
  font-size: 0.72rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.vs-stamp {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  border-radius: 6px;
  border: 2px solid currentColor;
  opacity: 0.85;
}
.vs-stamp.fail    { color: #c44; }
.vs-stamp.success { color: var(--color-success); }

/* VS connectors between cards (desktop only) — high-contrast */
.vs-scene .vs-vs {
  position: absolute;
  top: 50%;
  transform: translate3d(0, -50%, 90px);
  font-family: var(--font-numeric);
  font-weight: 800;
  font-variation-settings: "wdth" 92;
  font-size: 1rem;
  letter-spacing: 0;
  color: #fff;
  background: var(--color-ink);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  box-shadow:
    0 0 0 1px var(--color-ink),
    0 16px 32px -10px rgba(15, 15, 16, 0.45),
    0 6px 14px -6px var(--color-accent-glow);
  animation: vsPulse 2.4s ease-in-out infinite;
}
.vs-scene .vs-vs::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-bright));
  z-index: -1;
  opacity: 0;
  transition: opacity .4s;
}
.vs-scene .vs-vs.vs-1 { left: calc(33.33% - 28px); }
.vs-scene .vs-vs.vs-2 { right: calc(33.33% - 28px); }

/* The "=" looks better a touch larger and with accent color */
.vs-scene .vs-vs.vs-2 {
  background: var(--color-accent);
  color: #fff;
  border-color: #fff;
  font-size: 1.4rem;
  letter-spacing: -.04em;
}

@keyframes vsPulse {
  0%, 100% { transform: translate3d(0, -50%, 90px) scale(1); }
  50% { transform: translate3d(0, -50%, 90px) scale(1.08); }
}

@media (max-width: 900px) {
  .vs-scene .vs-vs { display: none; }
}

/* Spotlight that follows mouse on the central card */
.vs-card .vs-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 260px at var(--mx,50%) var(--my,50%), rgba(30,58,138,.20), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  z-index: 1;
}
.vs-card.is-hovered .vs-spotlight { opacity: 1; }
.vs-card.is-hovered {
  box-shadow:
    0 40px 80px -20px var(--color-accent-glow),
    0 14px 32px -14px rgba(15, 15, 16, 0.18);
}

/* ============================================
   Cost Scene — "Cosa ti sta costando davvero" 3D
   ============================================ */
.cost-scene-wrap {
  margin-top: 80px;
  background: linear-gradient(160deg, #0a0a0b 0%, #15151a 60%, #0f0f10 100%);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 64px);
  position: relative;
  overflow: hidden;
}
.cost-scene-wrap::before {
  content: "";
  position: absolute;
  top: -30%; left: 50%;
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(255, 80, 80, 0.10), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(40px);
}
.cost-head {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
.cost-head .eyebrow {
  color: rgba(255, 100, 100, 0.85);
  justify-content: center;
}
.cost-head .eyebrow::before { background: rgba(255, 100, 100, 0.85); }
.cost-head h3 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -.02em;
  margin: 14px 0 0;
  font-weight: 700;
}
.cost-head h3 em {
  color: #ff7a7a;
  background: linear-gradient(180deg, transparent 62%, rgba(255, 100, 100, 0.20) 62%, rgba(255, 100, 100, 0.20) 92%, transparent 92%);
  padding: 0 0.08em;
}

.cost-scene {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  perspective: 1800px;
  perspective-origin: 50% 30%;
  transform-style: preserve-3d;
  position: relative;
  z-index: 1;
}
@media (max-width: 980px) {
  .cost-scene { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .cost-scene { grid-template-columns: 1fr; }
}

.cost-card {
  position: relative;
  background: linear-gradient(155deg, #15151a 0%, #1c1c22 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 32px 26px 26px;
  color: #fff;
  overflow: hidden;
  transform-style: preserve-3d;
  isolation: isolate;
  will-change: transform, opacity;
  --cc-rx: 0;
  --cc-ry: 0;
  --cc-x: 0;
  --cc-y: 0;
  --cc-tz: 0;
  --cc-opacity: 1;
  transform: translate3d(var(--cc-x), var(--cc-y), var(--cc-tz)) rotateX(var(--cc-rx)) rotateY(var(--cc-ry));
  opacity: var(--cc-opacity);
  transition: border-color .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s, background .5s;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.cost-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(255, 100, 100, 0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.cost-card .cc-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(255, 100, 100, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  z-index: 1;
}

.cost-card .cc-mark {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 100, 100, 0.15);
  color: #ff7a7a;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 100, 100, 0.25);
  transform: translateZ(50px);
  z-index: 2;
}

.cost-card .cc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 100, 100, 0.12);
  color: #ff9a9a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transform: translateZ(60px);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .4s, color .4s;
  position: relative;
  z-index: 2;
}
.cost-card .cc-icon svg { width: 26px; height: 26px; }

.cost-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -.02em;
  transform: translateZ(40px);
  position: relative;
  z-index: 2;
}

.cost-card p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
  transform: translateZ(28px);
  position: relative;
  z-index: 2;
}

.cost-card .cc-cost {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: auto;
  transform: translateZ(20px);
  position: relative;
  z-index: 2;
}
.cost-card .cc-cost-num {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  font-size: 1.7rem;
  letter-spacing: -.04em;
  color: #ff8a8a;
  line-height: 1;
}
.cost-card .cc-cost-lbl {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.cost-card:hover,
.cost-card.is-hovered {
  border-color: rgba(255, 100, 100, 0.40);
  background: linear-gradient(155deg, #18181d 0%, #1f1a22 100%);
  box-shadow:
    0 28px 60px -22px rgba(220, 60, 60, 0.30),
    0 10px 20px -10px rgba(15, 15, 16, 0.5);
}
.cost-card.is-hovered .cc-spotlight { opacity: 1; }
.cost-card.is-hovered .cc-icon {
  background: rgba(255, 100, 100, 0.25);
  color: #ffb0b0;
  transform: translateZ(60px) rotate(-6deg) scale(1.08);
}

/* Process flow — 4 value cards with arrows */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
@media (max-width: 980px) {
  .process-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .process-flow { grid-template-columns: 1fr; }
}
.process-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s, border-color .5s;
  min-height: 280px;
}
.process-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 24px 50px -22px var(--color-accent-glow);
}
.process-card.highlight {
  background: linear-gradient(160deg, var(--color-accent) 0%, #15296b 100%);
  color: #fff;
  border-color: var(--color-accent);
}
.process-card.highlight h3,
.process-card.highlight .pk-num { color: #fff; }
.process-card.highlight p,
.process-card.highlight .pk-lbl { color: rgba(255,255,255,.72); }
.process-card.highlight .process-icon { background: rgba(255,255,255,.12); color: #fff; }
.process-card.highlight .process-num { color: rgba(255,255,255,.4); }
.process-card.highlight .process-kpi { border-top-color: rgba(255,255,255,.15); }

.process-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.process-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s, background .4s;
}
.process-icon svg { width: 22px; height: 22px; }
.process-card:hover .process-icon { transform: rotate(-6deg) scale(1.08); }
.process-num {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.03em;
  color: var(--color-muted-soft);
}
.process-card h3 {
  font-size: 1.35rem;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
}
.process-card p {
  font-size: .92rem;
  color: var(--color-ink-soft);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.process-kpi {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}
.pk-num {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  font-size: 2rem;
  letter-spacing: -.04em;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 4px;
}
.pk-lbl {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--color-muted);
}
.process-arrow {
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-accent);
  font-weight: 700;
  z-index: 5;
  font-family: var(--font-sans);
}
@media (max-width: 980px) {
  .process-arrow { display: none; }
}

/* Asset cards — bento style with icons */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s, border-color .5s;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
}
.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-4 { grid-column: span 4; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-3, .bento-card.span-2, .bento-card.span-4 { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-3, .bento-card.span-2, .bento-card.span-4 { grid-column: span 1; }
}
.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 24px 50px -22px var(--color-accent-glow), 0 8px 16px -8px rgba(15,15,16,.08);
}
.bento-card::after {
  content: "→";
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-size: 1.3rem;
  color: var(--color-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s, transform .3s, color .3s;
}
.bento-card:hover::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-accent);
}
.bento-card .bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: background .4s, transform .4s;
  flex-shrink: 0;
}
.bento-card .bento-icon svg { width: 26px; height: 26px; }
.bento-card:hover .bento-icon {
  background: var(--color-accent);
  color: #fff;
  transform: rotate(-4deg) scale(1.05);
}
.bento-card .bento-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.03em;
  color: var(--color-muted-soft);
  opacity: .7;
}
.bento-card h3 {
  font-size: 1.25rem;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0;
}
.bento-card p {
  margin: 0;
  font-size: .94rem;
  color: var(--color-ink-soft);
  line-height: 1.55;
}
.bento-card .bento-kpi {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.bento-card .bento-kpi strong {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -.04em;
  color: var(--color-accent);
}
.bento-card .bento-kpi span {
  font-size: .82rem;
  color: var(--color-muted);
}

/* Bento mini-visuals */
.bento-mini-mockup {
  margin-top: auto;
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 12px;
  font-family: var(--font-numeric);
  font-size: .72rem;
}
.bento-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 4px;
}
.bento-mini-row:last-child { margin-bottom: 0; }
.bento-mini-row .nm { font-weight: 600; color: var(--color-ink); }
.bento-mini-row .vl { color: var(--color-accent); font-weight: 700; }
.bento-mini-row .tg {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 700;
}

.bento-mini-chart {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
  padding: 8px 4px 0;
}
.bento-mini-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-soft));
  border-radius: 3px 3px 0 0;
  position: relative;
}

/* Step timeline — scroll-driven progressive focus */
.step-timeline {
  position: relative;
  --line-left: 26px;
}
/* Track (full-height neutral line) */
.step-timeline::before {
  content: "";
  position: absolute;
  left: var(--line-left);
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: var(--color-line);
  z-index: 0;
  border-radius: 999px;
}
/* Progress fill — scroll-driven height (set inline by JS) */
.step-timeline-progress {
  position: absolute;
  left: var(--line-left);
  top: 36px;
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-bright) 100%);
  border-radius: 999px;
  z-index: 0;
  box-shadow: 0 0 12px var(--color-accent-glow);
  transition: height .22s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
/* Glowing head dot at end of progress */
.step-timeline-progress::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(30,58,138,.18), 0 0 16px var(--color-accent);
  opacity: 0;
  transition: opacity .3s;
}
.step-timeline-progress.has-fill::after { opacity: 1; }

.step-tl-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  padding: 28px 0;
  position: relative;
  align-items: start;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}

.step-tl-marker {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-muted-soft);
  position: relative;
  z-index: 1;
  letter-spacing: -.04em;
  box-shadow: 0 0 0 4px #fff;
  transition:
    transform .55s cubic-bezier(.34, 1.56, .64, 1),
    background .5s,
    border-color .5s,
    color .5s,
    box-shadow .5s,
    font-size .5s;
}
/* Reached state — passed step (marker is blue but not enlarged) */
.step-tl-item.is-reached .step-tl-marker {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: #fff;
  box-shadow: 0 0 0 4px #fff, 0 4px 12px -4px var(--color-accent-glow);
}
/* Active state — focused step (drammaticamente ingrandito) */
.step-tl-item.is-active .step-tl-marker {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  font-size: 1.7rem;
  transform: scale(1.28);
  box-shadow:
    0 0 0 6px rgba(30, 58, 138, 0.10),
    0 0 0 12px #fff,
    0 18px 36px -10px var(--color-accent-glow),
    0 6px 12px -6px rgba(15, 15, 16, 0.12);
}

.step-tl-content {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition:
    transform .6s cubic-bezier(.22,.61,.36,1),
    box-shadow .5s,
    border-color .5s,
    padding .5s,
    background .5s;
}
.step-tl-item.is-reached .step-tl-content {
  border-color: var(--color-line);
}
.step-tl-item.is-active .step-tl-content {
  border-color: var(--color-accent);
  padding: 32px 34px;
  transform: translateX(8px) scale(1.025);
  background: linear-gradient(135deg, #fff 0%, rgba(224, 232, 247, 0.4) 100%);
  box-shadow:
    0 28px 56px -22px var(--color-accent-glow),
    0 8px 20px -10px rgba(15, 15, 16, 0.08);
}
.step-tl-content .step-tl-eyebrow {
  transition: color .4s;
}
.step-tl-item.is-active .step-tl-content .step-tl-eyebrow {
  color: var(--color-accent-bright);
}
.step-tl-item.is-active .step-tl-content h3 {
  color: var(--color-ink);
}
.step-tl-item.is-active .step-tl-kpi strong {
  color: var(--color-accent);
}
.step-tl-content .step-tl-eyebrow {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-tl-content .step-tl-eyebrow svg { width: 14px; height: 14px; }
.step-tl-content h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.step-tl-content p {
  font-size: .98rem;
  color: var(--color-ink-soft);
  margin: 0;
  line-height: 1.55;
}
.step-tl-content .step-tl-kpi {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}
.step-tl-kpi-item {
  font-size: .8rem;
  color: var(--color-muted);
}
.step-tl-kpi-item strong {
  display: block;
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-ink);
  letter-spacing: -.03em;
  margin-bottom: 2px;
}
@media (max-width: 720px) {
  .step-tl-item { grid-template-columns: 44px 1fr; gap: 18px; }
  .step-tl-marker { width: 44px; height: 44px; font-size: 1.1rem; }
  .step-timeline::before { left: 21px; }
  .step-tl-content { padding: 18px 20px; }
}

/* Stat showcase card — big bold number with label */
.stat-showcase {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s, border-color .5s;
}
.stat-showcase::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--color-accent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.stat-showcase:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px var(--color-accent-glow); }
.stat-showcase:hover::before { opacity: 1; }
.stat-showcase .ss-num {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  /* fallback prudente: i numeri lunghi (es. 720.000) devono stare dentro la card */
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--color-ink);
  margin-bottom: 12px;
  display: block;
  max-width: 100%;
  white-space: nowrap;
}
/* Con le container query il numero si dimensiona sulla larghezza reale della card:
   resta grande dove c'e spazio, si riduce da solo sui numeri lunghi. */
@supports (container-type: inline-size) {
  .stat-showcase { container-type: inline-size; }
  .stat-showcase .ss-num { font-size: clamp(2.2rem, 19cqi, 4.4rem); }
}

/* ---- La card del ritorno economico e la conclusione del ragionamento: va vista per prima ---- */
.stat-showcase.ss-roi {
  background: linear-gradient(165deg, var(--color-accent) 0%, #15234d 100%);
  border-color: transparent;
  box-shadow: 0 28px 60px -26px var(--color-accent-glow);
}
.stat-showcase.ss-roi .ss-num { color: #fff; }
.stat-showcase.ss-roi .ss-num sup { color: var(--book-orange-bright); }
.stat-showcase.ss-roi .ss-lbl { color: var(--book-orange-bright); }
.stat-showcase.ss-roi .ss-desc { color: rgba(255, 255, 255, .82); }
.stat-showcase.ss-roi:hover { box-shadow: 0 34px 70px -24px var(--color-accent-glow); }

/* ---- Le due garanzie: devono leggersi come impegni firmati, non come note a margine ---- */
#garanzia .grid > .card {
  border: 1px solid rgba(231, 89, 31, .32);
  background:
    linear-gradient(180deg, var(--book-orange-soft) 0%, transparent 42%),
    var(--color-bg);
  position: relative;
}
#garanzia .grid > .card .card-num {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--book-orange);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
#garanzia .grid > .card .card-num::before { content: "\2713"; font-size: .82rem; }
#garanzia .grid > .card h3 { color: var(--color-ink); }
.stat-showcase .ss-num sup { font-size: .42em; color: var(--color-accent); top: -.65em; position: relative; font-weight: 600; }
.stat-showcase .ss-lbl {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--color-muted);
}
.stat-showcase .ss-desc {
  margin-top: 14px;
  font-size: .92rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.divider { height: 1px; background: var(--color-line); margin: 64px 0; }
.spacer-sm { height: 24px; }
.spacer-md { height: 48px; }
.spacer-lg { height: 96px; }

/* Hide on mobile */
@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 721px) {
  .show-mobile { display: none !important; }
}

/* Print */
@media print {
  .nav, .footer, .cta-block { display: none !important; }
}

/* ============================================
   Background images / hero visuals
   ============================================ */

.bg-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.85) 60%, rgba(255,255,255,.95) 100%);
  z-index: -1;
}
.bg-image.dark::after {
  background: linear-gradient(180deg, rgba(10,10,11,.78) 0%, rgba(10,10,11,.85) 100%);
}
.bg-image.tint::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.88) 100%),
    linear-gradient(135deg, rgba(26,47,78,.06), transparent 60%);
}
.bg-image:hover::before { transform: scale(1.08); }

/* Hero with photo */
.hero-visual.photo {
  background-color: var(--color-bg-alt);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-visual.photo::before {
  background: linear-gradient(135deg, rgba(15,15,16,.18) 0%, transparent 40%, rgba(26,47,78,.12) 100%);
  z-index: 1;
}
.hero-visual.photo .hero-card { z-index: 2; }

/* Image card (themed visual element) */
.img-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}
.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease-out;
}
.img-card:hover img { transform: scale(1.05); }
.img-card .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,11,.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}
.img-card .img-overlay h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.img-card .img-overlay p { color: rgba(255,255,255,.85); margin: 0; font-size: 0.92rem; }

/* Section with photo background — dark text on lightly tinted image */
.section-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section-photo .photo-bg {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  will-change: transform;
}
.section-photo .photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.section-photo .photo-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.80) 50%, rgba(255,255,255,.88) 100%);
  backdrop-filter: blur(2px) saturate(1.05);
  -webkit-backdrop-filter: blur(2px) saturate(1.05);
  z-index: -1;
}
.section-photo > .container,
.section-photo > .container-narrow { position: relative; z-index: 1; }

/* Lighter mask — more image visible (use sparingly) */
.section-photo.light-mask .photo-mask {
  background:
    linear-gradient(180deg, rgba(255,255,255,.70) 0%, rgba(255,255,255,.65) 50%, rgba(255,255,255,.78) 100%);
}

/* Colored / tinted mask — more atmosphere */
.section-photo.section-color .photo-mask {
  background:
    linear-gradient(180deg, rgba(250,249,247,.86) 0%, rgba(241,243,247,.82) 100%);
}
.section-photo.section-color-blue .photo-mask {
  background:
    linear-gradient(180deg, rgba(241,243,247,.90) 0%, rgba(232,237,245,.88) 100%);
}

/* Dark photo section */
.section-photo-dark .photo-mask {
  background: linear-gradient(180deg, rgba(10,10,11,.84) 0%, rgba(10,10,11,.92) 100%);
}
.section-photo-dark h2,
.section-photo-dark h3,
.section-photo-dark .display { color: #fff; }
.section-photo-dark p { color: rgba(255,255,255,.75); }
.section-photo-dark .eyebrow { color: rgba(255,255,255,.6); }
.section-photo-dark .eyebrow::before { background: rgba(255,255,255,.6); }

/* Floating numeric badges */
.float-badge {
  position: absolute;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-numeric);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-badge .fb-num {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  line-height: 1;
}
.float-badge .fb-lbl {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
  max-width: 14ch;
}

/* ============================================
   Gameful micro-interactions
   ============================================ */

/* Stat numbers count-up animation */
.stat-num, .metric-num, .as-value {
  font-feature-settings: "tnum" 1, "ss01" 1;
}

/* Card hover lift */
.card { position: relative; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(26,47,78,.05), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.card:hover { transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

/* Floating badge / pill (gameful) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* Subtle marquee tickers */
.ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-full);
  padding: 4px 10px 4px 6px;
  font-size: 0.72rem;
  font-weight: 600;
}
.ticker .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}
.ticker.up   .arrow::before { content: "↑"; color: var(--color-success); margin-right: 2px; }
.ticker.down .arrow::before { content: "↓"; color: #c44; margin-right: 2px; }

/* Highlight scroll-snap */
.snap-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 18px;
  scrollbar-width: thin;
}
.snap-row > * { scroll-snap-align: start; flex-shrink: 0; }

/* Hover scale for visual elements */
.team-card, .hero-card { transition: transform var(--t-base); }
.team-card:hover { transform: translateY(-6px); }
.hero-card { animation: floaty 6s ease-in-out infinite; }
.hero-card-2 { animation-delay: 1.4s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Cursor button shimmer */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
  z-index: -1;
}
.btn-primary:hover::after { transform: translateX(100%); }

/* Counter chip */
.counter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f0f10;
  color: #fff;
  border-radius: var(--radius-full);
  padding: 6px 12px 6px 6px;
  font-size: 0.82rem;
  font-weight: 600;
}
.counter-chip .n {
  background: var(--color-accent);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
