/* ================================================================
   IENIS FUMAGALLI — Midnight Meridian
   Premium Financial Advisory — 2026
   Versione: audit 3 — watermarks, motion, pullquote, accessibility,
             counter animation support, marker pulse
   ================================================================ */

:root {
  --navy-0:    #04070F;
  --navy-1:    #060B18;
  --navy-2:    #0A1224;
  --navy-3:    #0F1B35;
  --navy-4:    #162445;
  --navy-5:    #1E3060;
  --gold-0:    #C9A86C;
  --gold-1:    #B8943F;
  --gold-2:    #E8D5A3;
  --gold-3:    #F5EDD8;
  --gold-dim:  rgba(201,168,108,0.15);
  --gold-line: rgba(201,168,108,0.25);
  --text-0:    #F4EFE6;
  --text-1:    #C8C4BC;
  --text-2:    #8A8FA8;
  --text-3:    #4A5478;
  --glass-bg:  rgba(255,255,255,0.04);
  --glass-bd:  rgba(201,168,108,0.18);
  --surface-1: rgba(255,255,255,0.03);
  --surface-2: rgba(255,255,255,0.06);
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'DM Sans', system-ui, sans-serif;
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-pill:999px;
  --max-w:    1120px;
  --max-text:  740px;
  --sp-xs:    0.5rem;
  --sp-sm:    1rem;
  --sp-md:    2rem;
  --sp-lg:    4.5rem;
  --sp-xl:    8rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  background: var(--navy-1);
  color: var(--text-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--f-body); cursor: pointer; }

/* ── Focus visible — global ──────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold-0);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Skip link — keyboard accessibility ─────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--gold-0);
  color: var(--navy-0);
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus-visible {
  top: 1rem;
  outline: none;
}

/* ── Layout ── */
.wrap      { width:100%; max-width:var(--max-w);    margin:0 auto; padding:0 2rem; }
.wrap-text { width:100%; max-width:var(--max-text); margin:0 auto; padding:0 2rem; }
.section   { padding: var(--sp-xl) 0; }
.section-sm{ padding: var(--sp-lg) 0; }

/* ── Scroll anchor offset — fixed navbar height (72px) + 16px buffer ── */
#chi-sono,
#come-funziona,
#tfr-2026,
#faq,
#contatto {
  scroll-margin-top: 88px;
}

/* ── Typography ── */
.t-display {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-0);
}
.t-h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-0);
}
.t-h3 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--text-0); }
.t-label {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-0);
}
.t-lead {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-1);
  font-style: italic;
  font-family: var(--f-display);
}
.t-body  { font-size: 0.95rem; line-height: 1.8; color: var(--text-1); }
.t-small { font-size: 0.82rem; color: var(--text-2); }
.t-gold  { color: var(--gold-0); }

/* ── Gold dividers ── */
.gold-rule-short {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-0), var(--gold-1));
  border: none;
  margin-bottom: 1.5rem;
}

/* ── Scroll reveal ──
   PATTERN ROBUSTO: di default tutto è visibile.
   Solo quando JS carica aggiunge .js-loaded a <html>,
   attivando l animazione di reveal.
   Se JS non carica → tutto visibile, nessun testo nascosto.
── */
.reveal { opacity: 1; transform: none; }

.js-loaded .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(.22,1,.36,1), transform 0.75s cubic-bezier(.22,1,.36,1);
}
.js-loaded .reveal.visible { opacity: 1; transform: none; }
.js-loaded .reveal-delay-1 { transition-delay: 0.1s; }
.js-loaded .reveal-delay-2 { transition-delay: 0.2s; }
.js-loaded .reveal-delay-3 { transition-delay: 0.3s; }
.js-loaded .reveal-delay-4 { transition-delay: 0.4s; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(4,7,15,0.9);
  backdrop-filter: blur(20px) saturate(160%);
  border-color: var(--gold-line);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-brand {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-0);
  letter-spacing: 0.01em;
}
.nav-brand span { color: var(--gold-0); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-2);
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-sm);
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--text-0); }
.nav-link[aria-current="page"] { color: var(--gold-0); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
/* Animated underline on hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0.9rem; right: 0.9rem;
  height: 1px;
  background: var(--gold-0);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--gold-0);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-left: 1rem;
  transition: all 0.25s;
}
.nav-cta:hover {
  background: var(--gold-dim);
  border-color: var(--gold-0);
  color: var(--gold-2);
}
.nav-mobile { display: none; }

/* ── Hamburger button — nascosto su desktop ─────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1010;
  flex-shrink: 0;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-0);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease, width 0.28s ease;
  transform-origin: center;
}
/* Stato aperto: le linee formano una X */
.nav-hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open .hamburger-line:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menu mobile aperto ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-mobile { display: none !important; } /* hamburger sostituisce il bottone "Contatta" */

  /* Navbar sempre opaca su mobile: l'hamburger deve essere visibile
     su qualsiasi sezione durante lo scroll, non solo dopo .scrolled */
  .navbar {
    background: var(--navy-1);
    border-color: var(--gold-line);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--nav-h, 60px);
    left: 0;
    right: 0;
    background: var(--navy-1);
    border-bottom: 1px solid var(--gold-line);
    padding: 0.5rem 0 1rem;
    gap: 0;
    z-index: 999;
    /* Slide down: parte nascosta sopra la viewport */
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links .nav-link {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    min-height: 52px;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-1);
    border-bottom: 1px solid rgba(201,168,108,0.07);
    transition: background 0.15s, color 0.15s;
  }
  .nav-links .nav-link:hover,
  .nav-links .nav-link:focus-visible { background: rgba(201,168,108,0.06); color: var(--gold-0); }
  .nav-links .nav-cta {
    margin: 0.75rem 1.5rem 0;
    text-align: center;
    justify-content: center;
  }
}

/* Scroll progress bar — oro, 2px, scaleX animata da JS */
.scroll-progress {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-0), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
  z-index: 1;
  pointer-events: none;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

/* Watermark tipografico "2026" — firma visiva dell'hero */
.hero::after {
  content: '2026';
  position: absolute;
  right: -0.08em;
  bottom: -0.2em;
  font-family: var(--f-display);
  font-size: clamp(9rem, 18vw, 15rem);
  font-weight: 700;
  color: rgba(201,168,108,0.028);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 65% 30%, rgba(22,36,69,0.9) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(15,27,53,0.6) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 80% 75%, rgba(201,168,108,0.06) 0%, transparent 50%),
    linear-gradient(160deg, #06091A 0%, #0D1830 40%, #060B18 100%);
  animation: heroShift 25s ease-in-out infinite alternate;
}

@keyframes heroShift {
  0%   { opacity: 1; filter: hue-rotate(0deg); }
  50%  { opacity: 0.92; filter: hue-rotate(2deg); }
  100% { opacity: 1; filter: hue-rotate(-1deg); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,108,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,108,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 80%);
}

.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-orb-1 {
  width: 600px; height: 600px; top: -100px; right: -50px;
  background: radial-gradient(circle, rgba(30,48,96,0.5) 0%, transparent 70%);
  animation: orbFloat1 18s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 400px; height: 400px; bottom: 0; left: 5%;
  background: radial-gradient(circle, rgba(201,168,108,0.08) 0%, transparent 70%);
  animation: orbFloat2 22s ease-in-out infinite alternate;
}
.hero-orb-3 {
  width: 300px; height: 300px; top: 30%; right: 25%;
  background: radial-gradient(circle, rgba(15,27,53,0.8) 0%, transparent 70%);
  animation: orbFloat3 15s ease-in-out infinite alternate;
}

@keyframes orbFloat1 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-40px,30px) scale(1.1)} }
@keyframes orbFloat2 { 0%{transform:translate(0,0)} 100%{transform:translate(30px,-50px)} }
@keyframes orbFloat3 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(20px,40px) scale(0.9)} }

.hero-content { position: relative; z-index: 1; isolation: isolate; width: 100%; padding: var(--sp-xl) 0; }

.hero-inner { display: grid; grid-template-columns: 1fr 460px; gap: 5rem; align-items: center; }

.hero-eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.hero-eyebrow-line { width: 32px; height: 1px; background: var(--gold-0); }

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 1.75rem;
  color: var(--text-0);
}
.hero-title em { font-style: italic; color: var(--gold-0); font-weight: 400; }

.hero-sub {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: var(--text-1);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-trust {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.04em; color: var(--text-2); }
.trust-pip { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-0); flex-shrink: 0; }

.hero-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-0), transparent);
  opacity: 0.5;
}

.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.panel-entry { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.panel-entry:last-child { border-bottom: none; padding-bottom: 0; }
.entry-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 0.4rem; }
.dot-gold   { background: var(--gold-0); box-shadow: 0 0 8px rgba(201,168,108,0.5); }
.dot-blue   { background: #4A90D9; box-shadow: 0 0 8px rgba(74,144,217,0.4); }
.dot-dimmed { background: var(--text-3); }
.entry-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 0.2rem; }
.entry-value { font-size: 0.88rem; font-weight: 400; color: var(--text-1); line-height: 1.5; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Gold button + shimmer sweep effect */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-0) 0%, var(--gold-1) 100%);
  color: var(--navy-0);
  box-shadow: 0 4px 20px rgba(201,168,108,0.2);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,108,0.35);
  filter: brightness(1.08);
}
/* Shimmer: sweep di luce da sinistra a destra ogni 5s */
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -110%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg);
  animation: btnShimmer 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btnShimmer {
  0%, 28%  { left: -110%; opacity: 0; }
  30%      { opacity: 1; }
  58%      { left: 160%; opacity: 1; }
  60%, 100% { left: 160%; opacity: 0; }
}

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover {
  border-color: var(--gold-line);
  color: var(--gold-0);
  background: var(--gold-dim);
}


/* ================================================================
   STAT INTERMEZZO
   ================================================================ */
.stat-intermezzo {
  background: var(--navy-0);
  border-top: 1px solid rgba(201,168,108,0.14);
  border-bottom: 1px solid rgba(201,168,108,0.14);
  padding: 4rem 0;
}
.stat-row { display: flex; align-items: center; justify-content: center; }
.stat-item {
  flex: 1;
  text-align: center;
  padding: 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1);
}
.stat-item:hover { transform: translateY(-3px); }
.stat-number {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 600;
  color: var(--gold-0);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 0.15rem;
}
.stat-unit {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.6rem;
}
.stat-label { font-size: 0.82rem; color: var(--text-3); line-height: 1.55; max-width: 200px; font-family: var(--f-body); }
.stat-divider {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--gold-line), transparent);
  flex-shrink: 0;
}

/* ================================================================
   CHI SONO
   ================================================================ */
.bio-section { background: var(--navy-2); position: relative; }
.bio-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--gold-line) 50%, transparent 90%);
}
.bio-grid { display: grid; grid-template-columns: 300px 1fr; gap: 5rem; align-items: center; }
.bio-photo-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.bio-photo-wrap picture { display: block; width: 100%; }
.bio-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--navy-3), var(--navy-4));
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-bd);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-3);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* When real photo is added, this class handles the image */
.bio-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-bd);
  display: block;
}
.bio-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,108,0.08), transparent 60%);
}
.bio-badge {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  color: var(--text-2);
  width: 100%;
  justify-content: center;
}
.bio-badge span { color: var(--text-3); font-size: 0.65rem; }
.bio-content { padding-top: 0.5rem; }
.bullet-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.bullet-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.93rem; color: var(--text-1); line-height: 1.65; }
.bullet-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-0); flex-shrink: 0; margin-top: 0.6rem; }
.info-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }
.info-chip { display: inline-flex; align-items: center; background: var(--surface-1); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--r-sm); padding: 0.4rem 0.8rem; font-size: 0.75rem; color: var(--text-2); }

/* ================================================================
   PULLQUOTE — break editoriale tra bio e processo
   ================================================================ */
.pullquote-section {
  background: var(--navy-1);
  border-top: 1px solid rgba(201,168,108,0.1);
  border-bottom: 1px solid rgba(201,168,108,0.1);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Grande virgolette decorativa in sfondo.
   Opacity calibrata per essere percepibile su monitor standard (non OLED).
   0.055 è il punto di equilibrio tra "firma visiva presente" e "non invade il testo". */
.pullquote-section::before {
  content: '\201C';
  position: absolute;
  top: -0.15em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-size: clamp(14rem, 28vw, 22rem);
  color: rgba(201,168,108,0.055);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pullquote {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.pullquote-text {
  font-family: var(--f-display);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text-0);
  line-height: 1.5;
  margin-bottom: 2rem;
}
.pullquote-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.pullquote-cite {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-0);
  font-style: normal;
}
.pullquote-placeholder {
  /* Nota interna dev — non contenuto pubblico.
     Nascosta di default: visibile solo se si aggiunge la classe .dev-mode a <html>.
     AZIONE: rimuovere questo elemento dall'HTML quando si inserisce la citazione reale. */
  display: none;
  font-size: 0.68rem;
  color: var(--text-3);
  font-style: italic;
  letter-spacing: 0.02em;
}
html.dev-mode .pullquote-placeholder { display: block; }

/* ================================================================
   COME FUNZIONA — dot-grid texture + gradient step numbers
   ================================================================ */
.process-section {
  background-color: var(--navy-1);
  background-image: radial-gradient(circle, rgba(201,168,108,0.065) 1px, transparent 1px);
  background-size: 28px 28px;
  position: relative;
}
.process-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--gold-line) 50%, transparent 90%);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2px;
  margin-top: 4rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.process-step {
  background: var(--navy-1);
  padding: 2.5rem 1.75rem;
  transition: background 0.3s, border-left-color 0.3s;
  position: relative;
  border-left: 3px solid transparent;
}
.process-step:hover { background: var(--navy-2); border-left-color: rgba(201,168,108,0.35); }
.process-step::after {
  content: '';
  position: absolute;
  top: 2.5rem; right: 0;
  height: 40px; width: 1px;
  background: rgba(255,255,255,0.06);
}
.process-step:last-child::after { display: none; }
/* Step numbers: crescendo visivo direzionale.
   Valori calibrati per essere leggibili su schermo: delta ~0.12 per step.
   01 → quasi assente (partenza neutra), 04 → oro percepito (traguardo) */
.process-step:nth-child(1) .step-num { color: rgba(201,168,108,0.14); }
.process-step:nth-child(2) .step-num { color: rgba(201,168,108,0.24); }
.process-step:nth-child(3) .step-num { color: rgba(201,168,108,0.36); }
.process-step:nth-child(4) .step-num { color: rgba(201,168,108,0.52); }
.step-num {
  font-family: var(--f-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
}
.step-title { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; color: var(--text-0); margin-bottom: 0.6rem; }
.step-desc { font-size: 0.83rem; color: var(--text-2); line-height: 1.65; }

/* ================================================================
   TFR 2026
   ================================================================ */
.tfr-section {
  background: radial-gradient(ellipse 80% 50% at 80% 50%, rgba(14,22,45,0.8), transparent), var(--navy-2);
  position: relative;
}
.tfr-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--gold-line) 50%, transparent 90%);
}
/* ================================================================
   TIMELINE ORIZZONTALE — TFR 2026
   ================================================================ */
.timeline-h {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  padding-bottom: 0.5rem;
}

/* Linea orizzontale di connessione */
.tl-h-track {
  position: absolute;
  top: 18px;
  left: calc(12.5% + 9px);
  right: calc(12.5% + 9px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold-0), rgba(201,168,108,0.2));
  z-index: 0;
}

/* Singolo step orizzontale */
.tl-h-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

/* Dot */
.tl-h-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy-2);
  border: 2px solid var(--text-3);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  position: relative;
}
.tl-h-dot-active {
  border-color: var(--gold-0);
  background: var(--navy-2);
  box-shadow: 0 0 12px rgba(201,168,108,0.35);
}
.tl-h-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--gold-0);
  animation: markerPulse 2.5s ease-in-out infinite;
}
@keyframes markerPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0; transform: scale(1.9); }
}

/* Card contenuto */
.tl-h-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-md);
  padding: 1.5rem 1.25rem;
  width: 100%;
  transition: border-color 0.3s, background 0.3s;
  text-align: left;
}
.tl-h-item:hover .tl-h-card {
  border-color: var(--glass-bd);
  background: rgba(255,255,255,0.05);
}
.tl-h-date {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-0);
  margin-bottom: 0.5rem;
}
.tl-h-body {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-top: 0.5rem;
}

/* ── Timeline click-reveal detail ── */
.tl-h-teaser {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 0.4rem;
}
.tl-h-card {
  cursor: pointer;
}
.tl-h-card:focus-visible {
  outline: 2px solid var(--gold-0);
  outline-offset: 3px;
}
.tl-h-card[aria-expanded="true"] {
  border-color: var(--gold-line);
  background: rgba(201,168,108,0.06);
}
.tl-h-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.3s ease;
}
.tl-h-card[aria-expanded="true"] .tl-h-detail {
  max-height: 450px;
  opacity: 1;
  padding-bottom: 0.5rem;
}
.tl-h-implication {
  font-size: 0.8rem;
  color: var(--gold-0);
  font-weight: 500;
  border-top: 1px solid var(--gold-line);
  padding-top: 0.6rem;
  margin-top: 0.75rem;
  line-height: 1.5;
}
.tl-expand-hint {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gold-0);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.75rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.tl-h-card[aria-expanded="true"] .tl-expand-hint {
  opacity: 0;
  pointer-events: none;
}

/* ── Blocco conseguenza del silenzio ── */
.silence-warning {
  margin: 2.5rem 0 2rem;
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--gold-0);
  background: rgba(201,168,108,0.05);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.silence-warning-headline {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: var(--text-0);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.silence-warning-headline strong {
  color: var(--gold-0);
}
.silence-warning-body {
  font-size: 0.9rem;
  color: var(--text-1);
  line-height: 1.75;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .silence-warning { padding: 1.5rem 1.5rem; }
  .silence-warning-headline { font-size: 1.15rem; }
}

/* Responsive: 2 colonne su tablet */
@media (max-width: 900px) {
  .timeline-h {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .tl-h-track { display: none; }
  .tl-h-dot { margin-bottom: 1rem; }
  .tl-h-item { align-items: flex-start; padding: 0; }
  .tl-h-dot { margin-left: 1rem; }
  /* bio-grid: colonna foto più stretta a larghezze intermedie */
  .bio-grid { grid-template-columns: 240px 1fr; gap: 3rem; }
}

/* Responsive: colonna singola su mobile */
@media (max-width: 500px) {
  .timeline-h { grid-template-columns: 1fr; gap: 1.25rem; }
  .tl-h-item { flex-direction: row; gap: 1rem; align-items: flex-start; padding: 0; }
  .tl-h-dot { margin: 0.2rem 0 0; flex-shrink: 0; }
  .tl-h-card { padding: 1.25rem 1rem; }
}
.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  margin-bottom: 0.75rem;
}
.badge-live   { background: rgba(45,106,79,0.25); color: #6EE7B7; border: 1px solid rgba(110,231,183,0.2); }
.badge-coming { background: rgba(201,168,108,0.12); color: var(--gold-0); border: 1px solid var(--gold-dim); }
.badge-note   { background: rgba(255,255,255,0.05); color: var(--text-2); border: 1px solid rgba(255,255,255,0.08); }
.tl-title { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; color: var(--text-0); margin-bottom: 0.6rem; }
.disclaimer-box {
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.7;
}
.disclaimer-box strong { color: var(--text-1); }

/* ================================================================
   CONFRONTO — compare cards
   Background distinto da navy-1 per rompere la continuità con FAQ.
   Watermark "vs" centrato — firma editoriale della sezione.
   isolation: isolate garantisce che z-index: -1 del watermark
   rimanga interno alla sezione senza interferire con altri layer.
   ================================================================ */
.compare-section {
  background:
    radial-gradient(ellipse 65% 70% at 50% 45%, rgba(201,168,108,0.045) 0%, transparent 68%),
    var(--navy-3);
  position: relative;
  isolation: isolate;
}
.compare-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--gold-line) 50%, transparent 90%);
}
/* Watermark tipografico "vs" — firma editoriale della sezione confronto */
.compare-section::after {
  content: 'vs';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-size: clamp(9rem, 18vw, 16rem);
  font-weight: 700;
  color: rgba(201,168,108,0.026);
  pointer-events: none;
  user-select: none;
  z-index: -1;
  line-height: 1;
  letter-spacing: -0.04em;
  font-style: italic;
}
.compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3rem; }
.compare-card {
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s;
}
.compare-card-informed {
  background: linear-gradient(145deg, rgba(22,36,69,0.65) 0%, rgba(12,20,40,0.85) 100%);
  border: 1px solid var(--glass-bd);
}
.compare-card-informed:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 48px rgba(201,168,108,0.12);
}
.compare-card-informed::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-0), transparent);
  opacity: 0.45;
}
.compare-card-uninformed {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}
.compare-card-uninformed:hover { transform: translateY(-2px); }
.compare-card-badge {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-0);
  padding: 0.25rem 0.75rem;
  background: rgba(201,168,108,0.1);
  border: 1px solid rgba(201,168,108,0.2);
  border-radius: var(--r-pill);
  margin-bottom: 1.25rem;
}
.compare-card-badge-muted { color: var(--text-3); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.07); }
.compare-card-title { font-family: var(--f-display); font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; color: var(--text-0); margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.07); line-height: 1.25; }
.compare-card-title-muted { color: var(--text-2); }
.compare-item { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.88rem; line-height: 1.6; color: var(--text-1); }
.compare-item:last-child { border-bottom: none; padding-bottom: 0; }
.compare-item strong { display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-0); margin-bottom: 0.15rem; }
.compare-icon { flex-shrink: 0; font-size: 0.9rem; font-weight: 700; margin-top: 0.15rem; width: 20px; text-align: center; }
.c-check { color: #6EE7B7; }
.c-cross  { color: #FCA5A5; }

/* ================================================================
   FAQ — button accessibile con aria-expanded
   ================================================================ */
.faq-section { background: var(--navy-1); position: relative; }
.faq-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--gold-line) 50%, transparent 90%);
}
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; align-items: start; margin-top: 3rem; }
.faq-intro { position: sticky; top: 90px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.06); }

/* Reset button defaults per .faq-q */
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-0);
  user-select: none;
  transition: color 0.2s;
  /* Button reset */
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-q:hover { color: var(--gold-2); }

.faq-icon {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-0);
  flex-shrink: 0;
  transition: transform 0.3s, border-color 0.2s;
}
.faq-icon svg { display: block; }
.faq-icon-v { transition: transform 0.3s; transform-origin: center; }
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--gold-0); }

.faq-a {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-bottom: 0;
  font-size: 0.88rem;
  color: var(--text-1);
  line-height: 1.8;
  transition: max-height 0.38s cubic-bezier(.22,1,.36,1), opacity 0.3s ease, padding-bottom 0.3s ease;
}
.faq-item.open .faq-a { max-height: 800px; opacity: 1; padding-bottom: 1.35rem; }

/* ================================================================
   CONTATTO
   ================================================================ */
.contact-section {
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(14,22,48,0.9), transparent),
    var(--navy-2);
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--gold-line) 50%, transparent 90%);
}
.contact-grid { display: grid; grid-template-columns: 1fr 480px; gap: 5rem; align-items: start; }
.contact-intro { padding-top: 0.5rem; }
.contact-detail { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.88rem; color: var(--text-1); }
.contact-detail:last-of-type { border-bottom: none; }
.contact-detail strong { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-family: var(--f-body); }
.form-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-xl);
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-0), transparent);
  opacity: 0.4;
}
.form-row { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 0.5rem; }
.form-input, .form-select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  font-family: var(--f-body);
  font-size: 0.9rem;
  color: var(--text-0);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus, .form-select:focus {
  border-color: var(--gold-line);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(201,168,108,0.08);
}
.form-select { cursor: pointer; }
.form-select option { background: var(--navy-2); color: var(--text-0); }
.form-hint { font-size: 0.75rem; color: var(--text-3); margin-top: 0.35rem; }
.form-select-wrap { position: relative; }
.form-select-wrap::after { content: '▾'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; font-size: 0.75rem; }
.form-privacy { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.8rem; color: var(--text-2); line-height: 1.55; margin-bottom: 1.5rem; }
.form-privacy input { accent-color: var(--gold-0); margin-top: 0.15rem; flex-shrink: 0; }
.form-privacy a { color: var(--gold-0); text-decoration: underline; }
.btn-submit {
  width: 100%;
  padding: 1.05rem;
  background: linear-gradient(135deg, var(--gold-0) 0%, var(--gold-1) 100%);
  color: var(--navy-0);
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(201,168,108,0.2);
  position: relative;
  overflow: hidden;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,168,108,0.35); filter: brightness(1.06); }
/* Shimmer on submit button too */
.btn-submit::after {
  content: '';
  position: absolute;
  top: 0; left: -110%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-18deg);
  animation: btnShimmer 6s ease-in-out infinite 1.5s;
  pointer-events: none;
}
.form-note { text-align: center; font-size: 0.74rem; color: var(--text-3); margin-top: 0.85rem; letter-spacing: 0.03em; }

/* ================================================================
   FOOTER — watermark tipografico
   ================================================================ */
.footer {
  background: var(--navy-0);
  border-top: 1px solid rgba(201,168,108,0.12);
  padding: 4rem 0 2.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Watermark "Fumagalli" in grande serif trasparente */
.footer::before {
  content: 'Fumagalli';
  position: absolute;
  bottom: -0.18em;
  right: -0.04em;
  font-family: var(--f-display);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 700;
  color: rgba(201,168,108,0.038);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 2rem; position: relative; z-index: 1; }
.footer-brand { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--text-0); margin-bottom: 0.75rem; }
.footer-brand span { color: var(--gold-0); }
.footer-tagline { font-size: 0.82rem; color: var(--text-2); line-height: 1.7; max-width: 280px; }
.footer-col-title { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-0); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.82rem; color: var(--text-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-0); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; position: relative; z-index: 1; }
.footer-legal { font-size: 0.74rem; color: var(--text-3); line-height: 1.65; max-width: 600px; }
.footer-copy { font-size: 0.74rem; color: var(--text-3); white-space: nowrap; }

/* ================================================================
   PREFERS-REDUCED-MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .js-loaded .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg::before, .hero-orb-1, .hero-orb-2, .hero-orb-3 { animation: none; }
  .tl-h-pulse { animation: none; opacity: 0.4; }
  .btn-gold::after, .btn-submit::after { animation: none; display: none; }
  .faq-a { transition: max-height 0.15s ease, opacity 0.15s ease, padding-bottom 0.15s ease; }
  .btn, .btn-submit, .nav-cta, .navbar, .compare-card { transition: none; }
  .stat-item { transition: none; }
  .scroll-progress { transition: none; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .hero-inner     { grid-template-columns: 1fr; gap: 3rem; }
  .hero-panel     { display: none; }
  .faq-grid       { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-intro      { position: static; }
  .contact-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --sp-xl: 5rem; --sp-lg: 3rem; }
  .stat-row       { flex-direction: column; }
  .stat-item      { padding: 1.5rem 1rem; border-bottom: 1px solid rgba(201,168,108,0.08); width: 100%; }
  .stat-item:last-child { border-bottom: none; }
  .stat-divider   { display: none; }
  .stat-label     { max-width: 280px; }
  .compare-cards  { grid-template-columns: 1fr; gap: 1rem; }
  .pullquote-section { padding: 4rem 0; }
  .pullquote-section::before { font-size: clamp(8rem, 22vw, 14rem); }
  .bio-grid       { grid-template-columns: 1fr; gap: 2.5rem; }
  .bio-content    { padding-top: 0; }
  .bio-photo-wrap { align-items: center; }
  .bio-photo-img  { max-width: 260px; height: auto; margin: 0 auto; }
  .process-grid   { grid-template-columns: 1fr 1fr; border-radius: var(--r-md); }
  .process-step::after { display: none; }
  .footer-grid    { grid-template-columns: 1fr; }
  /* Nasconde orbs su mobile per performance */
  .hero-orb-1, .hero-orb-3 { display: none; }
  /* Form card: padding ridotto per schermi stretti */
  .form-card      { padding: 1.75rem 1.5rem; }
}

@media (max-width: 500px) {
  :root { --sp-xl: 4rem; }
  .process-grid   { grid-template-columns: 1fr; }
  .process-step   { border-left: none; }
  .hero-ctas      { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
  .footer-bottom  { flex-direction: column; }
  .stat-intermezzo { padding: 3rem 0; }
  .hero::after    { font-size: clamp(6rem, 22vw, 9rem); }
  /* Trust items: disposizione a colonna su schermi molto stretti */
  .hero-trust     { flex-direction: column; gap: 0.75rem; }
  /* Padding laterale ridotto per viewport ≤ 500px */
  .wrap, .wrap-text { padding: 0 1.25rem; }
}

/* ================================================================
   SELECTION & SCROLLBAR — dettagli premium
   ================================================================ */
::selection {
  background: rgba(201,168,108,0.28);
  color: var(--text-0);
}
::-moz-selection {
  background: rgba(201,168,108,0.28);
  color: var(--text-0);
}
/* Webkit scrollbar — sottile, gold accent */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-0); }
::-webkit-scrollbar-thumb {
  background: rgba(201,168,108,0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,108,0.45); }

/* ================================================================
   HERO — countdown badge
   ================================================================ */
.hero-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(201,168,108,0.1);
  border: 1px solid rgba(201,168,108,0.22);
  border-radius: var(--r-pill);
  padding: 0.22rem 0.7rem;
  font-family: var(--f-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-0);
  margin-left: 0.6rem;
  vertical-align: middle;
  white-space: nowrap;
}
.countdown-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #6EE7B7;
  box-shadow: 0 0 6px rgba(110,231,183,0.6);
  flex-shrink: 0;
  animation: countdownPulse 2s ease-in-out infinite;
}
@keyframes countdownPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ================================================================
   HERO — mobile data strip
   Visibile solo su tablet/mobile (≤1024px) dove il panel sparisce
   ================================================================ */
.hero-mobile-strip {
  display: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-lg);
  padding: 1.25rem 1rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}
.hero-mobile-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,108,0.35), transparent);
}
.hero-strip-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.hero-strip-item { text-align: center; padding: 0.4rem 0.5rem; }
.hero-strip-num {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-0);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-strip-label {
  font-size: 0.62rem;
  color: var(--text-2);
  display: block;
  margin-top: 0.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--f-body);
}
.hero-strip-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,108,0.2), transparent);
  flex-shrink: 0;
}
@media (max-width: 1024px) {
  .hero-mobile-strip { display: block; }
}
@media (max-width: 500px) {
  .hero-strip-num { font-size: 1.35rem; }
}

/* ================================================================
   BIO — monogramma "IF" placeholder foto
   ================================================================ */
.bio-monogram {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(201,168,108,0.06), transparent),
    linear-gradient(145deg, var(--navy-3), var(--navy-4));
  flex-direction: column;
  gap: 0;
}
.monogram-letters {
  font-family: var(--f-display);
  font-size: 5.5rem;
  font-weight: 600;
  color: rgba(201,168,108,0.22);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.monogram-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(201,168,108,0.2);
  margin: 1rem auto;
}
/* ================================================================
   TESTIMONIAL — sezione social proof
   Nascosta di default quando data-state="placeholder".
   AZIONE: rimuovere l'attributo data-state dalla <section> e
   sostituire i testi placeholder nelle .testimonial-card.
   ================================================================ */
.testimonial-section[data-state="placeholder"] { display: none; }

.testimonial-section {
  background: var(--navy-0);
  border-top: 1px solid rgba(201,168,108,0.1);
  position: relative;
  overflow: hidden;
}
.testimonial-section::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(201,168,108,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.testimonial-card:hover {
  border-color: var(--glass-bd);
  transform: translateY(-3px);
}
.testimonial-quote-mark {
  font-family: var(--f-display);
  font-size: 3.5rem;
  color: rgba(201,168,108,0.2);
  line-height: 0.8;
  margin-bottom: 1rem;
  display: block;
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-1);
  line-height: 1.8;
  font-family: var(--f-display);
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-4));
  border: 1px solid var(--glass-bd);
  flex-shrink: 0;
}
.testimonial-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-0);
  letter-spacing: 0.02em;
}
.testimonial-role {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 0.1rem;
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .testimonial-grid { grid-template-columns: 1fr; gap: 1rem; }
  .tfr-fact-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 500px) {
  .testimonial-card { padding: 1.5rem 1.25rem; }
}

/* ================================================================
   TIMELINE — DESKTOP BREAKOUT
   La .timeline-h è dentro .wrap-text (max 740px → ~185px/colonna).
   Su desktop la facciamo espandere fino a --max-w (1120px → ~280px/
   colonna) con la tecnica left:50% + translateX(-50%).
   Il .tl-h-track usa left/right calcolati sul centro dei dot (12.5%
   di container, dot 20px → offset 10px per partire dal bordo).
   ================================================================ */
@media (min-width: 1024px) {
  .tfr-section .timeline-h {
    width: min(var(--max-w), calc(100vw - 4rem));
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4.5rem;
  }
  .tfr-section .tl-h-card {
    padding: 2rem 1.75rem;
  }
  .tfr-section .tl-h-teaser,
  .tfr-section .tl-h-body {
    line-height: 1.75;
  }
  /* Ricalibra la linea orizzontale al centro dei dot nella griglia più larga */
  .tfr-section .tl-h-track {
    left: calc(12.5% + 10px);
    right: calc(12.5% + 10px);
  }
}
