/*
Theme Name: TermoFlow
Theme URI:
Author: TermoFlow
Description: Tema landing page per TermoFlow – acquisizione clienti per aziende di climatizzazione, riscaldamento ed energia.
Version: 1.16.0
License: Proprietary
Text Domain: termoflow
*/

/* =========================================================
   0. RESET & VARIABILI
   ========================================================= */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:var(--topbar-h); }
:root{
  --navy-darkest:#0A1A2F;
  --navy-dark:#0E2440;
  --navy-card:#13315A;
  --navy-border:rgba(255,255,255,0.09);
  --gold:#D4AF37;
  --gold-light:#E9C766;
  --gold-dark:#C9A24B;
  --white:#FFFFFF;
  --gray-light:#CBD5E3;
  --gray-mid:#8C9BB3;
  --red-soft:#E2685F;
  --green-soft:#5FD68A;
  --radius:16px;
  --radius-sm:10px;
  --shadow-gold:0 8px 30px rgba(212,175,55,0.25);
  --font-head:'Inter Tight', sans-serif;
  --font-body:'Inter', sans-serif;
  --topbar-h:58px;
  --ease-premium:cubic-bezier(.16,1,.3,1);
  --ease-magnet:cubic-bezier(.22,1.22,.36,1);
  --gold-border-grad:linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light));
}
body{
  background:var(--navy-darkest);
  color:var(--gray-light);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  overflow-x:hidden;
}
.grid-overlay{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  transform:translateZ(0);
  contain:strict;
  background-image:
    repeating-linear-gradient(to right, rgba(212,175,55,0.05) 0 1px, transparent 1px 130px),
    repeating-linear-gradient(to bottom, rgba(212,175,55,0.05) 0 1px, transparent 1px 130px);
}
img{ max-width:100%; display:block; }
h1,h2,h3,h4{
  font-family:var(--font-head); color:var(--white); font-weight:700;
  line-height:1.1; letter-spacing:-0.015em;
}
h2{ font-size:clamp(2rem, 4.2vw, 2.9rem); font-weight:800; margin-bottom:1.2rem; }
h2.reveal::after{
  content:''; display:block; width:0; height:3px; border-radius:2px; margin:0.9rem auto 0;
  background:linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  transition:width .7s var(--ease-premium) .15s;
}
h2.reveal.visible::after{ width:64px; }
@media (prefers-reduced-motion: reduce){
  h2.reveal::after{ width:64px; transition:none; }
}
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
.container{ width:100%; max-width:1180px; margin:0 auto; padding:0 1.25rem; }
section{
  padding:5.5rem 0;
  content-visibility:auto;
  contain-intrinsic-size:auto 600px;
}
.topbar, .hero, .marquee, footer{ content-visibility:visible; }
.section-alt{ background:var(--navy-dark); }
.section-light{
  background:var(--white);
  color:#3D4F66;
  position:relative; z-index:2;
}
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4{ color:var(--navy-darkest); }
.section-light p,
.section-light .problem-intro,
.section-light .lead-text{ color:#3D4F66; }
.section-light .stat-label{ color:#5A6B82; }
.section-light .chart-caption,
.section-light .chart-bar-label{ color:#6B7C93; }
.section-light .cta-micro{ color:#6B7C93; }
.section-light .faq-item{ border-bottom-color:rgba(10,26,47,0.1); }
.section-light .faq-question{ color:var(--navy-darkest); }
.section-light .faq-answer p{ color:#3D4F66; }
.section-light .faq-answer .faq-cta-lead{ color:var(--navy-darkest); }
.section-light .savings-total p{ color:#3D4F66; }
.section-light .eyebrow{ color:var(--gold-dark); }

/* Ombra testo leggerissima su sezioni chiare */
.section-light{
  --tf-light-text-shadow: 0 1px 2px rgba(10,26,47,0.035);
}
.section-light :is(
  h1, h2, h3, h4, p, li,
  .lead-text, .problem-intro, .eyebrow,
  .faq-question, .faq-answer p,
  .savings-total p, .cta-micro,
  .two-path-card p, .two-path-card strong,
  .glass-panel-eyebrow, .glass-panel-title, .glass-panel-intro,
  .steps--glass .step h3, .steps--glass .step p, .glass-panel .steps-closing,
  .included-box h3, .included-box p,
  .legal-title, .legal-prose, .legal-prose h2, .legal-prose h3, .legal-prose p, .legal-updated
){
  text-shadow: var(--tf-light-text-shadow);
}
.section-light :is(.compare-wrapper, .compare-wrapper *, .card, .card *, .role-card, .role-card *, .guarantee-box, .guarantee-box *, .not-for-item, .not-for-item *, .btn, .btn *){
  text-shadow: none;
}
.section-light.center h2,
.section-light.center .cta-micro{
  text-shadow: 0 1px 2px rgba(255,255,255,0.75), 0 1px 4px rgba(10,26,47,0.07);
}
.section-light.center .lead-text{
  text-shadow: 0 1px 2px rgba(255,255,255,0.85), 0 2px 6px rgba(10,26,47,0.085);
}
.section-light.center h2{ color:var(--navy-darkest); }
.section-light.center .lead-text{ color:#2A3F5C; }

/* Blocchi scuri / superfici chiare — contrasto testo */
.section-light .compare-wrapper,
.section-light .compare-wrapper td,
.section-light .compare-wrapper .compare-cell-text{
  color:rgba(255,255,255,0.88);
}
.section-light .compare-grid .compare-row--head .compare-cell--colhead{ color:var(--white); }
.section-light .compare-grid .compare-cell--label{ color:var(--gold); }
.section-light .card h3{ color:var(--white); }
.section-light .role-body h3{ color:var(--white); }
.section-light .included-box p{ color:#2A3F5C; }
.section-light .included-box h3{ color:var(--gold-dark); }
.section-light .problem-intro .gold,
.section-light .lead-text .gold{ color:var(--gold-dark); }

.compare-wrapper .cell-label{ color:rgba(255,255,255,0.62); }
.compare-wrapper .score-value span{ color:rgba(255,255,255,0.55); }

.guarantee-box > p:not(.claim){ color:var(--gray-light); }
.eyebrow{
  display:inline-flex; align-items:center; gap:0.55rem;
  color:var(--gold); font-weight:700; font-size:0.78rem;
  letter-spacing:0.12em; text-transform:uppercase; margin-bottom:1.2rem;
}
.eyebrow::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--gold); flex:none; }
.center{ text-align:center; }
.eyebrow.center{ display:flex; justify-content:center; }
.gold{ color:var(--gold); }

/* =========================================================
   Bottoni CTA
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; gap:0.85rem;
  font-family:var(--font-body); font-weight:700; font-size:1rem;
  padding:0.5rem 0.5rem 0.5rem 1.7rem; border-radius:999px; border:none; cursor:pointer;
  transition:transform .35s var(--ease-premium);
}
.btn-gold{
  position:relative; isolation:isolate; overflow:hidden;
  border:2px solid transparent;
  background:
    linear-gradient(135deg, var(--gold-light), var(--gold-dark)) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  color:var(--navy-darkest);
  box-shadow:
    var(--shadow-gold),
    0 0 0 1px rgba(212,175,55,0.2);
}
.btn-gold::before{
  content:''; position:absolute; inset:0; border-radius:inherit; z-index:1; pointer-events:none;
  background:linear-gradient(
    110deg,
    transparent 28%,
    rgba(255,255,255,0.55) 44%,
    rgba(255,255,255,0.18) 56%,
    transparent 72%
  );
  transform:translateX(-140%) skewX(-18deg);
  animation:btnShine 3.8s ease-in-out infinite;
}
.btn-gold > span{ position:relative; z-index:2; }
.btn-gold::after{
  content:''; position:absolute; inset:-6px; border-radius:inherit; pointer-events:none; z-index:-1;
  box-shadow:0 10px 46px rgba(212,175,55,0.55);
  opacity:0; animation:pulseGlowOpacity 3.2s ease-in-out infinite;
}
.btn-gold:hover{
  transform:translate3d(0,-2px,0) scale(1.025);
  box-shadow:
    0 12px 34px rgba(212,175,55,0.42),
    0 0 0 1px rgba(212,175,55,0.3),
    0 0 24px rgba(212,175,55,0.18);
}
.btn-gold:hover::after{ animation-play-state:paused; opacity:1; }
.btn-gold:active{ transform:translate3d(0,0,0) scale(0.97); }
.section-light .btn-gold{
  border:2px solid transparent;
  background:
    linear-gradient(135deg, #F2DE9A 0%, var(--gold-light) 42%, var(--gold-dark) 100%) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 42%, var(--gold-dark) 78%, var(--gold-light)) border-box;
  box-shadow:
    0 8px 26px rgba(212,175,55,0.32),
    0 0 0 1px rgba(212,175,55,0.22);
}
.section-light .btn-gold:hover{
  box-shadow:
    0 12px 34px rgba(212,175,55,0.4),
    0 0 0 1px rgba(212,175,55,0.3),
    0 0 22px rgba(212,175,55,0.18);
}
.btn-icon{
  flex:none; width:36px; height:36px; border-radius:50%; background:var(--navy-darkest);
  color:var(--gold); display:inline-flex; align-items:center; justify-content:center;
  transition:transform .35s var(--ease-premium);
}
.btn-icon svg{ width:16px; height:16px; }
.btn-gold:hover .btn-icon{ transform:rotate(45deg); }
.cta-block{ text-align:center; margin-top:2.4rem; }
.cta-micro{ display:block; margin-top:1rem; font-size:0.9rem; color:var(--gray-mid); }

/* =========================================================
   Animazioni scroll
   ========================================================= */
.reveal{
  opacity:0; transform:translate3d(0,32px,0); filter:blur(4px);
  transition:opacity .65s var(--ease-premium), transform .65s var(--ease-premium), filter .5s var(--ease-premium);
  backface-visibility:hidden;
}
.reveal.revealing{ will-change:transform, opacity, filter; }
.reveal.visible{ opacity:1; transform:translate3d(0,0,0); filter:blur(0); }
.cards-grid > .reveal:nth-child(1), .steps > .reveal:nth-child(1), .wa-grid > .reveal:nth-child(1),
.roles-grid > .reveal:nth-child(1), .not-for-list > .reveal:nth-child(1), .stats-grid > .reveal:nth-child(1){ transition-delay:0s; }
.cards-grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2), .wa-grid > .reveal:nth-child(2),
.roles-grid > .reveal:nth-child(2), .not-for-list > .reveal:nth-child(2), .stats-grid > .reveal:nth-child(2){ transition-delay:.09s; }
.cards-grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3), .wa-grid > .reveal:nth-child(3),
.roles-grid > .reveal:nth-child(3), .not-for-list > .reveal:nth-child(3), .stats-grid > .reveal:nth-child(3){ transition-delay:.18s; }
.cards-grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4), .wa-grid > .reveal:nth-child(4),
.roles-grid > .reveal:nth-child(4), .not-for-list > .reveal:nth-child(4), .stats-grid > .reveal:nth-child(4){ transition-delay:.27s; }
.cards-grid > .reveal:nth-child(5), .steps > .reveal:nth-child(5), .wa-grid > .reveal:nth-child(5),
.roles-grid > .reveal:nth-child(5), .not-for-list > .reveal:nth-child(5){ transition-delay:.36s; }
.cards-grid > .reveal:nth-child(6), .steps > .reveal:nth-child(6), .wa-grid > .reveal:nth-child(6),
.roles-grid > .reveal:nth-child(6), .not-for-list > .reveal:nth-child(6){ transition-delay:.45s; }
@keyframes riseUp{
  from{ opacity:0; transform:translate3d(0,32px,0); filter:blur(4px); }
  to{ opacity:1; transform:translate3d(0,0,0); filter:blur(0); }
}
@keyframes slideDownFade{
  from{ opacity:0; transform:translate3d(0,-100%,0); }
  to{ opacity:1; transform:translate3d(0,0,0); }
}
@keyframes btnShine{
  0%, 70%, 100%{ transform:translateX(-140%) skewX(-18deg); }
  35%{ transform:translateX(140%) skewX(-18deg); }
}
@keyframes pulseGlowOpacity{
  0%, 100%{ opacity:0; }
  50%{ opacity:1; }
}
@keyframes warnPulse{
  0%, 100%{ transform:scale(1); }
  50%{ transform:scale(1.22); }
}
@keyframes driftGlow{
  0%, 100%{ transform:translate3d(-50%,0,0) scale(1); }
  50%{ transform:translate3d(-47%,18px,0) scale(1.07); }
}
@keyframes driftGlowCenter{
  0%, 100%{ transform:translate3d(-50%,-50%,0) scale(1); }
  50%{ transform:translate3d(-48%,-53%,0) scale(1.06); }
}
@keyframes boxDrawIn{
  from{ box-shadow:0 0 0 0 rgba(212,175,55,0); }
  to{ box-shadow:0 0 0 2px var(--gold); }
}
@keyframes scrollCueMove{
  0%{ transform:translateY(-100%); }
  100%{ transform:translateY(100%); }
}
@keyframes marqueeScroll{
  from{ transform:translate3d(0,0,0); }
  to{ transform:translate3d(calc(-100% / var(--marquee-copies, 4)),0,0); }
}
@keyframes ringPulse{
  0%{ transform:scale(1); opacity:0.55; }
  100%{ transform:scale(1.7); opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; filter:none; transition:none; }
  html{ scroll-behavior:auto; }
  .topbar, .hero .brand-mark, .hero h1, .hero p.subtitle, .hero .cta-block{ animation:none !important; opacity:1; transform:none; filter:none; }
  .btn-gold::before, .topbar-btn::before{ animation:none !important; opacity:0; }
  .btn-gold::after{ animation:none !important; opacity:0; }
  .warn-icon{ animation:none !important; }
  .hero::before, .solution-banner::before, .scroll-cue-line::after, .marquee-track, .step-num::after{ animation:none !important; }
  .wa-grid > .reveal:nth-child(odd).visible, .wa-grid > .reveal:nth-child(even).visible{ transform:none; }
}

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar{
  position:sticky; top:0; z-index:200;
  background:linear-gradient(180deg, #dfc06a 0%, var(--gold) 100%);
  color:var(--navy-darkest);
  padding:0.5rem 0.85rem; min-height:var(--topbar-h);
  animation:slideDownFade .6s var(--ease-premium) both;
  box-shadow:0 1px 8px rgba(10,26,47,0.08);
}
.topbar-inner{
  display:flex; align-items:center; gap:0.65rem 1rem;
  width:100%; max-width:1180px; margin:0 auto;
}
.topbar-text{
  flex:1; margin:0; min-width:0;
  font-size:clamp(0.82rem, 1.95vw, 0.94rem); font-weight:700;
  line-height:1.32; letter-spacing:0.01em;
}
.topbar-btn{
  flex:none; margin-left:auto;
  position:relative; overflow:hidden; isolation:isolate;
  display:inline-flex; align-items:center; justify-content:center;
  padding:0.42rem 0.85rem; border-radius:999px;
  background:var(--navy-darkest); color:var(--white);
  font-family:var(--font-body); font-size:clamp(0.68rem, 1.45vw, 0.76rem);
  font-weight:700; line-height:1.2; white-space:nowrap;
  box-shadow:0 2px 8px rgba(10,26,47,0.18);
  transition:transform .25s var(--ease-premium), box-shadow .25s ease, color .25s ease;
}
.topbar-btn::before{
  content:''; position:absolute; inset:0; border-radius:inherit; z-index:0; pointer-events:none;
  background:linear-gradient(
    110deg,
    transparent 30%,
    rgba(255,255,255,0.28) 46%,
    rgba(255,255,255,0.08) 54%,
    transparent 70%
  );
  transform:translateX(-140%) skewX(-18deg);
  animation:btnShine 4.2s ease-in-out infinite;
}
.topbar-btn:hover{
  transform:translate3d(0,-1px,0);
  color:var(--gold-light);
  box-shadow:0 4px 12px rgba(10,26,47,0.24);
}
.topbar-btn:active{ transform:translate3d(0,0,0); }
.topbar strong{
  font-weight:800; text-decoration:underline; text-underline-offset:2px;
  text-decoration-thickness:1.5px;
}
.warn-icon{ display:inline-block; animation:warnPulse 1.8s ease-in-out infinite; }
.scroll-progress{
  position:absolute; bottom:0; left:0; width:100%; height:3px;
  background:var(--navy-darkest); overflow:hidden; z-index:1;
}
.scroll-progress-bar{
  position:relative; z-index:2;
  height:100%; width:100%;
  background:#fff;
  transform:scale3d(0,1,1); transform-origin:right center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero{ padding:4.5rem 0 7.5rem; text-align:center; position:relative; overflow:hidden; }
.hero::before{
  content:''; position:absolute; top:-150px; left:50%;
  width:900px; height:900px; border-radius:50%;
  background:radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
  pointer-events:none; will-change:transform;
  transform:translate3d(-50%,0,0);
  animation:driftGlow 11s ease-in-out infinite;
}
.hero::after{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:0;
  background:radial-gradient(560px circle at var(--mx,50%) var(--my,18%), rgba(212,175,55,0.13), transparent 60%);
  transition:opacity .35s ease;
  contain:strict;
}
.hero:hover::after{ opacity:1; }
.hero-bg-word{
  position:absolute; top:42%; left:50%; transform:translate(-50%,-50%);
  font-family:var(--font-head); font-weight:900; font-size:clamp(8rem,28vw,22rem);
  color:var(--white); opacity:0.035; white-space:nowrap; pointer-events:none;
  letter-spacing:-0.04em; z-index:0; user-select:none;
}
.hero-bg-word .flow{ color:var(--gold); }
.hero h1 .gold,
.solution-banner .solution-headline .gold{
  position:relative; z-index:1; color:var(--gold);
}
.hero h1 .gold-outline-svg,
.solution-banner .solution-headline .gold-outline-svg{
  position:absolute; top:0; left:0; overflow:visible;
  pointer-events:none; z-index:2;
}
.hero h1 .gold-outline-path,
.solution-banner .solution-headline .gold-outline-path{
  fill:none; stroke:var(--gold); stroke-width:2.5;
  stroke-linecap:round; stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
  stroke-opacity:0;
}
.scroll-cue{
  position:absolute; bottom:2rem; left:0; right:0; z-index:1;
  width:fit-content; margin-inline:auto;
  padding-top:2rem;
  display:flex; flex-direction:column; align-items:center; gap:0.6rem;
  color:var(--gray-mid); font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase;
  text-align:center;
}
section.has-scroll-cue{
  position:relative;
}
section.has-scroll-cue:not(.hero){
  padding-bottom:7.5rem;
}
section.hero.has-scroll-cue > .scroll-cue{
  animation:riseUp .9s var(--ease-premium) .7s both;
}
section.solution-banner.has-scroll-cue{
  padding-bottom:7rem;
}
section.come-funziona-section.has-scroll-cue{
  padding-bottom:7rem;
}
.scroll-cue-line{ width:1px; height:38px; background:rgba(255,255,255,0.15); position:relative; overflow:hidden; }
.scroll-cue-line::after{
  content:''; position:absolute; inset:0; background:var(--gold);
  animation:scrollCueMove 2s ease-in-out infinite;
}
.marquee{
  --marquee-copies:4;
  background:var(--navy-dark);
  overflow:hidden; padding:1rem 0; position:relative; z-index:1;
}
.marquee-track{
  display:flex; align-items:center; width:max-content;
  will-change:transform;
  animation:marqueeScroll 36s linear infinite;
}
.marquee-set{
  display:flex; align-items:center; gap:2rem; flex-shrink:0;
  padding-right:2rem;
  white-space:nowrap;
}
.marquee-track span{
  font-family:var(--font-head); font-weight:600; font-size:0.95rem; color:var(--gray-light);
  letter-spacing:0.03em; text-transform:uppercase;
}
.marquee-track .dot{ color:var(--gold); }
.brand-mark{
  display:inline-flex; align-items:center; gap:0.5rem; margin-bottom:2.2rem;
  font-family:var(--font-head); font-weight:700; font-size:1.1rem; color:var(--white);
  position:relative; z-index:1;
}
.brand-mark svg{ width:26px; height:26px; color:var(--gold); }
.brand-mark span.flow{ color:var(--gold); }
.hero .brand-mark{ animation:riseUp .9s var(--ease-premium) both; }
.hero h1{
  font-size:clamp(2.4rem, 6.4vw, 4.8rem); font-weight:800; max-width:920px; margin:0 auto 1.6rem;
  position:relative; z-index:1; isolation:isolate; letter-spacing:-0.025em;
  animation:riseUp .9s var(--ease-premium) .15s both;
}
.hero p.subtitle{
  font-size:clamp(1.05rem,2.2vw,1.25rem); max-width:680px; margin:0 auto; color:var(--gray-light);
  position:relative; z-index:1;
  animation:riseUp .9s var(--ease-premium) .32s both;
}
.hero p.subtitle .gold{
  font-weight:600;
  text-decoration:underline;
  text-decoration-color:var(--gold);
  text-underline-offset:0.22em;
  text-decoration-thickness:2px;
}
.hero p.subtitle .subtitle-line{ display:block; }
.hero p.subtitle .subtitle-line + .subtitle-line{ margin-top:0.2em; }
.hero .cta-block{ animation:riseUp .9s var(--ease-premium) .48s both; }

/* =========================================================
   NUMERI IN EVIDENZA + grafico
   ========================================================= */
.stats-grid{
  display:grid; grid-template-columns:1fr; gap:2rem; text-align:center; margin-top:1rem;
}
.stat-item{
  display:flex; flex-direction:column; align-items:center;
  min-width:0;
}
.stats-grid > .reveal{
  opacity:0; transform:translate3d(0,20px,0); filter:none;
  transition:opacity .55s var(--ease-premium), transform .55s var(--ease-premium);
}
.stats-grid > .reveal.visible{ opacity:1; transform:translate3d(0,0,0); filter:none; }
.stat-number{
  font-family:var(--font-head); font-weight:800; font-size:clamp(2rem,4.5vw,3rem); color:var(--gold);
  letter-spacing:-0.02em; line-height:1; min-height:1.15em;
  display:flex; align-items:center; justify-content:center; width:100%;
}
.stat-value{
  display:inline-grid; grid-template:1fr / 1fr; place-items:center;
  font-variant-numeric:tabular-nums;
}
.stat-value-ghost{
  visibility:hidden; grid-area:1 / 1; white-space:nowrap; pointer-events:none; user-select:none;
}
.stat-value-live{
  grid-area:1 / 1; display:inline-flex; align-items:baseline; white-space:nowrap;
}
.stat-value-count{
  display:inline-flex; align-items:baseline;
  font-variant-numeric:tabular-nums;
}
.stat-char{ flex-shrink:0; }
.stat-reel{
  display:inline-block; height:1em; overflow:hidden; line-height:1; flex-shrink:0;
}
.stat-reel-strip{
  display:flex; flex-direction:column; will-change:transform;
}
.stat-reel-digit{
  height:1em; line-height:1; display:flex; align-items:center; justify-content:center;
  min-width:1ch;
}
.stat-value-suffix{ flex-shrink:0; }
.stat-number--static span{ white-space:nowrap; }
.stat-label{
  margin:0.75rem 0 0; padding:0; max-width:13.5rem;
  font-size:0.9rem; line-height:1.45; color:var(--gray-light);
  text-wrap:balance;
}
.chart-graphic{ margin:3.5rem auto 0; max-width:680px; }
.chart-card{
  border:2px solid transparent; border-radius:var(--radius);
  background:
    linear-gradient(var(--navy-card), var(--navy-card)) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  box-shadow:
    0 14px 36px rgba(0,0,0,0.24),
    0 0 24px rgba(212,175,55,0.12);
  padding:1.8rem 1.6rem 1.5rem; text-align:left;
}
.chart-card-header{ display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:2rem; flex-wrap:wrap; }
.chart-card-title{ display:flex; align-items:center; gap:0.6rem; font-family:var(--font-head); font-weight:700; color:var(--white); font-size:1rem; }
.chart-card-title svg{ width:20px; height:20px; color:var(--gold); flex:none; }
.chart-badge{
  display:inline-flex; align-items:center; gap:0.5rem; background:rgba(95,214,138,0.12);
  color:var(--green-soft); font-size:0.78rem; font-weight:700; padding:0.4rem 0.85rem; border-radius:999px;
}
.chart-badge-dot{ width:7px; height:7px; border-radius:50%; background:var(--green-soft); animation:warnPulse 1.8s ease-in-out infinite; }
.chart-bars{ position:relative; display:flex; align-items:flex-end; justify-content:space-between; gap:0.9rem; height:150px; padding:0 0.25rem; }
.chart-grid-lines{ position:absolute; inset:0; z-index:0; display:flex; flex-direction:column; justify-content:space-between; }
.chart-grid-lines span{ display:block; height:1px; width:100%; background:var(--navy-border); }
.chart-bar-col{ position:relative; z-index:1; flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; min-width:0; }
.chart-bar-area{
  width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
}
.chart-bar{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  width:100%; border-radius:6px 6px 0 0;
  background:linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  box-shadow:0 0 18px rgba(212,175,55,0.25);
  transform:scaleY(0); transform-origin:bottom;
  transition:transform 1s var(--ease-premium);
}
.chart-graphic.visible .chart-bar{ transform:scaleY(1); }
.chart-bar-value{
  font-family:var(--font-head); font-size:clamp(0.72rem,2.2vw,0.88rem); font-weight:800;
  color:var(--navy-darkest); line-height:1; opacity:0;
  transition:opacity .45s ease;
}
.chart-graphic.visible .chart-bar-value{ opacity:0.92; }
.chart-bar-col:nth-child(2){ --bar-h:31.875%; }
.chart-bar-col:nth-child(3){ --bar-h:48.125%; }
.chart-bar-col:nth-child(4){ --bar-h:63.75%; }
.chart-bar-col:nth-child(5){ --bar-h:80%; }
.chart-bar-col:nth-child(6){ --bar-h:93.33%; }
.chart-bar-col:nth-child(2) .chart-bar{ height:var(--bar-h); transition-delay:.05s; }
.chart-bar-col:nth-child(3) .chart-bar{ height:var(--bar-h); transition-delay:.15s; }
.chart-bar-col:nth-child(4) .chart-bar{ height:var(--bar-h); transition-delay:.25s; }
.chart-bar-col:nth-child(5) .chart-bar{ height:var(--bar-h); transition-delay:.35s; }
.chart-bar-col:nth-child(6) .chart-bar{ height:var(--bar-h); transition-delay:.45s; }
.chart-bar-col:nth-child(2) .chart-bar-value{ transition-delay:.4s; }
.chart-bar-col:nth-child(3) .chart-bar-value{ transition-delay:.5s; }
.chart-bar-col:nth-child(4) .chart-bar-value{ transition-delay:.6s; }
.chart-bar-col:nth-child(5) .chart-bar-value{ transition-delay:.7s; }
.chart-bar-col:nth-child(6) .chart-bar-value{ transition-delay:.8s; }
.chart-bar-label{ margin-top:0.7rem; margin-bottom:0.5rem; font-size:0.75rem; color:var(--gray-mid); }
.chart-caption{ text-align:center; margin-top:1.4rem; font-size:0.85rem; color:var(--gray-mid); }

/* =========================================================
   SEZIONE PROBLEMA
   ========================================================= */
.problem-intro{ max-width:760px; margin:0 auto 2.8rem; text-align:center; }
.problem-intro.lead-text{ max-width:800px; margin-bottom:3rem; }
.problem-intro.lead-text .gold{ font-weight:600; font-style:italic; }
.problem-intro.lead-text .lead-text-line{ display:block; }
.problem-intro.lead-text .lead-text-line + .lead-text-line{ margin-top:0.35em; }
.lead-text{
  font-size:clamp(1.3rem, 2.6vw, 1.65rem); line-height:1.5; font-weight:500; color:var(--white);
  max-width:700px; margin:0 auto 2.8rem;
}
.section-light .lead-text,
.section-light .problem-intro.lead-text{ color:#2A3F5C; }
.cards-grid{ display:grid; grid-template-columns:1fr; gap:1.5rem; }
.card{
  position:relative; overflow:hidden;
  background:var(--navy-card); border:1px solid var(--navy-border); border-radius:var(--radius);
  padding:2rem; height:100%;
  transition:transform .35s var(--ease-premium), border-color .35s var(--ease-premium), box-shadow .35s var(--ease-premium);
  contain:layout style paint;
}
.section-light .card{
  border:2px solid transparent;
  background:
    linear-gradient(var(--navy-card), var(--navy-card)) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  box-shadow:0 10px 30px rgba(10,26,47,0.12), 0 0 20px rgba(212,175,55,0.12);
}
.card:hover{ transform:translate3d(0,-4px,0); box-shadow:0 16px 40px rgba(0,0,0,0.25); }
.section-light .card:hover{
  box-shadow:0 16px 40px rgba(10,26,47,0.18), 0 0 30px rgba(212,175,55,0.2);
}
.card-icon{
  position:relative; z-index:1; width:50px; height:50px; border-radius:50%;
  background:linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  display:flex; align-items:center; justify-content:center; margin-bottom:1.2rem;
  transition:transform .4s var(--ease-premium);
}
.card:hover .card-icon{ transform:scale(1.12) rotate(-8deg); }
.card-icon svg{ width:24px; height:24px; color:var(--navy-darkest); }
.card h3, .card p{ position:relative; z-index:1; }
.card-number{
  position:absolute; top:-0.6rem; right:0.6rem; z-index:0; pointer-events:none;
  font-family:var(--font-head); font-weight:800; font-size:4.6rem; line-height:1;
  letter-spacing:-0.03em; color:rgba(255,255,255,0.045);
}
.cards-grid-pair{ grid-template-columns:1fr; }
.cards-grid-pair .card{
  border:2px solid transparent;
  background:
    linear-gradient(var(--navy-card), var(--navy-card)) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.22),
    0 0 24px rgba(212,175,55,0.12);
}
.cards-grid-pair .card:hover{
  box-shadow:
    0 16px 40px rgba(0,0,0,0.28),
    0 0 32px rgba(212,175,55,0.18);
}
@media (min-width:560px){ .cards-grid.cards-grid-pair{ grid-template-columns:repeat(2,1fr); } }
.card h3{ font-size:1.1rem; margin-bottom:0.6rem; letter-spacing:-0.01em; }
.card p{ font-size:0.95rem; color:var(--gray-light); }
.card.reveal .card-icon,
.card.reveal h3,
.card.reveal p{
  opacity:0; transform:translate3d(0,12px,0);
  transition:opacity .6s var(--ease-premium), transform .6s var(--ease-premium);
}
.card.reveal.visible .card-icon{ opacity:1; transform:translate3d(0,0,0); transition-delay:.1s; }
.card.reveal.visible h3{ opacity:1; transform:translate3d(0,0,0); transition-delay:.22s; }
.card.reveal.visible p{ opacity:1; transform:translate3d(0,0,0); transition-delay:.34s; }
@media (prefers-reduced-motion: reduce){
  .card.reveal .card-icon, .card.reveal h3, .card.reveal p{ opacity:1; transform:none; transition:none; }
}

/* =========================================================
   ECOSISTEMA DI MARKETING
   ========================================================= */
.eco-block{
  background:var(--navy-card); border:1px solid var(--navy-border); border-radius:var(--radius);
  padding:2rem; margin-bottom:1.5rem;
}
.eco-block:not(.muted){
  position:relative;
  border:2px solid transparent;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.18), transparent 58%),
    radial-gradient(circle at 100% 100%, rgba(212,175,55,0.1), transparent 45%),
    linear-gradient(var(--navy-card), var(--navy-card)) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  box-shadow:
    0 0 28px rgba(212,175,55,0.3),
    0 0 60px rgba(212,175,55,0.12),
    0 12px 36px rgba(0,0,0,0.3);
}
.eco-block.muted h3{
  text-decoration:line-through; color:var(--gray-mid);
  font-size:clamp(1.35rem, 2.8vw, 1.65rem); font-weight:800;
  letter-spacing:-0.01em; margin-bottom:0.75rem;
}
.eco-block h3{ font-size:clamp(1.35rem, 2.8vw, 1.65rem); font-weight:800; margin-bottom:0.75rem; letter-spacing:-0.01em; }
.eco-block h3.gold{
  font-size:clamp(1.55rem, 3.4vw, 2rem); font-weight:800; color:var(--gold);
  text-shadow:0 0 24px rgba(212,175,55,0.25);
}
.eco-block p{ font-size:0.98rem; }
.eco-block em{ display:block; margin-top:0.8rem; color:var(--gray-mid); font-style:italic; font-size:0.92rem; }

/* =========================================================
   BANNER SOLUZIONE
   ========================================================= */
.solution-banner{
  background:linear-gradient(135deg, var(--navy-dark), var(--navy-darkest));
  text-align:center; padding:6rem 0; position:relative; overflow:hidden;
}
.solution-banner::before{
  content:''; position:absolute; top:50%; left:50%;
  width:1100px; height:500px; background:radial-gradient(ellipse, rgba(212,175,55,0.16) 0%, transparent 65%);
  pointer-events:none; will-change:transform;
  transform:translate3d(-50%,-50%,0);
  animation:driftGlowCenter 9s ease-in-out infinite;
}
.solution-banner h2{
  color:var(--white); max-width:980px;
  margin:0 auto; line-height:1.2; position:relative; z-index:1;
}
.solution-banner.solution-eco-merged{
  padding:clamp(3rem, 6vw, 4.5rem) 0;
}
.solution-banner.solution-eco-merged > .container > h2.center{
  margin-bottom:1.75rem;
}
.solution-banner.solution-eco-merged .eco-block{
  text-align:left;
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}
.solution-banner.solution-eco-merged .eco-block--split{
  display:grid;
  grid-template-columns:minmax(160px, 34%) minmax(0, 1fr);
  gap:clamp(1rem, 2.5vw, 1.75rem);
  align-items:stretch;
  padding:clamp(1rem, 2.5vw, 1.5rem);
}
.eco-block__media{
  border-radius:10px;
  overflow:hidden;
  height:100%;
  align-self:stretch;
  min-height:0;
  background:#0A1A2F;
}
.eco-block__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.eco-block__body{ min-width:0; }
@media (max-width:640px){
  .solution-banner.solution-eco-merged .eco-block--split{
    grid-template-columns:1fr;
  }
  .eco-block__media{
    aspect-ratio:16 / 9;
    height:auto;
  }
}
.solution-banner.solution-eco-merged .eco-block:last-of-type{
  margin-bottom:1.75rem;
}
.solution-banner.solution-eco-merged .eyebrow{
  margin-top:0.25rem;
  margin-bottom:1rem;
  text-transform:none;
  letter-spacing:0.01em;
  font-size:clamp(0.82rem, 1.6vw, 0.95rem);
}
.solution-banner.solution-eco-merged .solution-headline{
  margin-bottom:0;
}
.solution-banner.solution-eco-merged .cta-block{
  margin-top:1.75rem;
}

/* =========================================================
   PRIMA / DOPO TERMOFLOW (dentro solution-banner)
   ========================================================= */
.solution-banner .before-after-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:1.25rem;
  max-width:960px;
  margin:clamp(2rem, 4vw, 2.75rem) auto 0;
  align-items:stretch;
  position:relative;
  z-index:1;
}
.solution-banner .before-after-col h3{
  font-size:clamp(1.3rem, 2.8vw, 1.65rem);
  font-weight:800;
  color:var(--white);
  margin-top:0.85rem;
  margin-bottom:0;
  text-align:center;
  letter-spacing:-0.01em;
}
.solution-banner .before-after-col--yes h3{
  color:var(--gold);
}
.media-placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0.7rem;
  width:100%;
  aspect-ratio:16 / 9;
  min-height:0;
  padding:2rem 1.25rem;
  text-align:center;
  border-radius:var(--radius);
  border:2px dashed rgba(10,26,47,0.14);
  background:#F4F7FB;
  transition:border-color .35s var(--ease-premium), box-shadow .35s var(--ease-premium);
}
.media-placeholder svg{
  width:40px;
  height:40px;
  color:#8C9BB3;
}
.media-placeholder span{
  font-size:0.9rem;
  font-weight:600;
  color:#6B7C93;
}
.media-placeholder--filled{
  padding:0;
  border:none;
  background:#0A1A2F;
  overflow:hidden;
}
.media-placeholder--filled img,
.media-placeholder--filled video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.before-after-col--yes .media-placeholder--filled{
  border:2px solid transparent;
  background:
    linear-gradient(#0A1A2F, #0A1A2F) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  box-shadow:0 12px 36px rgba(212,175,55,0.14);
}
.before-after-col--yes .media-placeholder{
  border:2px solid transparent;
  background:
    linear-gradient(#FFFCF8, #FFF6E8) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  box-shadow:0 12px 36px rgba(212,175,55,0.14);
}
.before-after-col--yes .media-placeholder svg{
  color:var(--gold-dark);
}
.before-after-col--yes .media-placeholder span{
  color:var(--navy-darkest);
}
@media (max-width:760px){
  .solution-banner .before-after-grid{ grid-template-columns:1fr; }
}

/* =========================================================
   COME FUNZIONA — pannello vetro
   ========================================================= */
.glass-panel{
  max-width:900px; margin:0 auto;
  padding:clamp(2rem, 5vw, 3.25rem);
  border-radius:calc(var(--radius) + 4px);
  background:rgba(255,255,255,0.62);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(10,26,47,0.09);
  box-shadow:
    0 28px 72px rgba(10,26,47,0.11),
    inset 0 1px 0 rgba(255,255,255,0.95);
}
.glass-panel--wide{ max-width:min(100%, 860px); }
.glass-panel--nohover{
  background:rgba(255,255,255,0.68);
  border-color:rgba(10,26,47,0.1);
}
.come-funziona-section{
  padding-top:clamp(3rem, 7vw, 4.5rem);
  padding-bottom:clamp(3rem, 7vw, 4.5rem);
  background:linear-gradient(180deg, var(--navy-dark), var(--navy-darkest));
  border-top:1px solid var(--navy-border);
  border-bottom:1px solid var(--navy-border);
}
.come-funziona-section .glass-panel{
  background:#fff;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border:1px solid rgba(10,26,47,0.08);
  box-shadow:0 16px 48px rgba(10,26,47,0.08);
}
.come-funziona-section .glass-panel-eyebrow{
  text-align:center;
}
.come-funziona-section .glass-panel-title{
  max-width:min(100%, 36ch);
  margin-left:auto;
  margin-right:auto;
  text-align:center;
  margin-bottom:0.5rem;
}
.come-funziona-section .funnel-stack{
  --funnel-stack-peek:4rem;
  --funnel-card-h:7.25rem;
  --funnel-track:120vh;
  --funnel-pin-gap:clamp(1.25rem, 3.2vh, 2.25rem);
  position:relative;
  height:var(--funnel-track);
  margin:0;
}
.come-funziona-section .funnel-stack__pin{
  position:sticky;
  top:calc(var(--topbar-h) + var(--funnel-pin-gap));
  min-height:calc(100vh - var(--topbar-h) - var(--funnel-pin-gap) * 2);
  height:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:0;
  overflow:visible;
}
.come-funziona-section .funnel-stack__pin > .glass-panel{
  width:100%;
  min-height:100%;
  margin:0;
  position:relative;
  overflow:hidden;
  padding:clamp(2rem, 4vw, 2.75rem) clamp(2rem, 5vw, 3.25rem);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.come-funziona-section .glass-panel .steps-closing{
  color:var(--white);
  font-family:var(--font-head);
  font-size:clamp(1.65rem, 4vw, 2.35rem);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-0.02em;
  border:2px solid transparent;
  background:
    linear-gradient(var(--navy-dark), var(--navy-card)) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  box-shadow:
    0 0 28px rgba(212,175,55,0.22),
    0 12px 36px rgba(10,26,47,0.22);
  padding:1.5rem 1.75rem;
  width:min(100%, 640px);
  margin:1.25rem auto 0;
  text-align:center;
  opacity:0;
  transform:translate3d(0, 18px, 0);
  transition:
    opacity .55s ease,
    transform .6s var(--ease-magnet);
  pointer-events:none;
}
.come-funziona-section .glass-panel .steps-closing .gold{
  color:var(--gold);
}
.come-funziona-section .funnel-stack--done .glass-panel .steps-closing,
.come-funziona-section .funnel-stack--static .glass-panel .steps-closing{
  opacity:1;
  transform:none;
  pointer-events:auto;
}
.come-funziona-section .steps--funnel{
  display:block !important;
  position:relative;
  width:min(100%, 640px);
  height:var(--funnel-stack-h, var(--funnel-card-h));
  margin:1.25rem auto 0;
  padding:0;
  overflow:visible;
}
.come-funziona-section .steps--funnel .step{
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  margin:0;
  padding:0;
  border:none;
  border-radius:0;
  background:none;
  box-shadow:none;
  will-change:transform, opacity;
}
.come-funziona-section .steps--funnel .step__surface{
  min-height:var(--funnel-card-h);
  height:auto;
  padding:0.95rem 1.1rem;
  border-radius:14px;
  border:2px solid transparent;
  background-color:#FFFBF5;
  background-image:
    linear-gradient(180deg, #FFFFFF 0%, #FFF6E8 100%),
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light));
  background-origin:border-box;
  background-clip:padding-box, border-box;
  box-shadow:
    0 10px 28px rgba(212,175,55,0.18),
    inset 0 1px 0 rgba(255,255,255,0.95);
}
.come-funziona-section .steps--funnel .step__row{
  display:flex;
  align-items:flex-start;
  gap:0.8rem;
  height:100%;
}
.come-funziona-section .steps--funnel .step__body{
  flex:1;
  min-width:0;
}
.come-funziona-section .funnel-stack--static .steps--funnel .step{
  position:relative;
  inset:auto;
  margin-bottom:0.75rem;
}
.come-funziona-section .funnel-stack--static .steps--funnel .step:last-child{
  margin-bottom:0;
}
.come-funziona-section .funnel-stack--static .steps--funnel{
  height:auto;
}
.come-funziona-section .funnel-stack--static{
  height:auto;
}
.come-funziona-section .funnel-stack--static .funnel-stack__pin{
  position:relative;
  top:auto;
  height:auto;
  padding-bottom:0.5rem;
}
@media (max-width:560px){
  .come-funziona-section .funnel-stack{
    --funnel-stack-peek:3.35rem;
    --funnel-card-h:6.5rem;
    margin-left:0;
    margin-right:0;
  }
  .come-funziona-section .steps--funnel .step__surface{
    padding:0.85rem 0.9rem;
  }
  .come-funziona-section .steps--funnel .step__row{
    gap:0.65rem;
  }
}
.come-funziona-section .steps--glass{ gap:0.75rem; }
.come-funziona-section .steps--glass .step{
  padding:1.2rem 1.35rem;
  border:2px solid transparent;
  border-radius:12px;
  background:
    linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  box-shadow:0 0 22px rgba(212,175,55,0.1);
}
.come-funziona-section .steps--funnel.steps--glass .step{
  padding:0;
  border:none;
  border-radius:0;
  background:none;
  box-shadow:none;
}
.come-funziona-section .steps--funnel.steps--glass .step:first-child,
.come-funziona-section .steps--funnel.steps--glass .step:last-child{
  padding-top:0;
  padding-bottom:0;
}
.come-funziona-section .steps--funnel .step__surface h3,
.come-funziona-section .steps--funnel .step__surface p{
  position:relative;
}
.come-funziona-section .steps--glass:not(.steps--funnel) .step:last-child{ padding-bottom:1.2rem; }
.come-funziona-section .steps--glass:not(.steps--funnel) .step:first-child{ padding-top:1.2rem; }
.come-funziona-section .steps--glass .step h3{
  display:flex; align-items:flex-start; gap:0.7rem;
}
.come-funziona-section .steps--funnel .step-title{
  margin:0 0 0.3rem;
  font-size:clamp(0.98rem, 2.1vw, 1.08rem);
  font-weight:800;
  line-height:1.25;
  color:var(--navy-darkest);
  letter-spacing:-0.01em;
  text-wrap:balance;
}
.come-funziona-section .steps--funnel .step__body p{
  margin:0;
  font-size:clamp(0.84rem, 1.9vw, 0.92rem);
  line-height:1.5;
  color:#4A5F78;
  text-wrap:pretty;
}
.come-funziona-section .steps--funnel .step-index{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:2.35rem;
  height:2.35rem;
  border-radius:10px;
  font-size:0.9rem;
  font-weight:800;
  line-height:1;
  background:linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  color:var(--navy-darkest);
  box-shadow:0 4px 12px rgba(212,175,55,0.22);
}
@media (max-width:560px){
  .come-funziona-section .steps--funnel .step-index{
    width:2.05rem;
    height:2.05rem;
    font-size:0.84rem;
    border-radius:8px;
  }
}
.glass-panel-eyebrow{
  font-size:clamp(0.95rem, 2vw, 1.1rem); font-weight:600; font-style:italic;
  color:var(--gold-dark); margin-bottom:0.55rem;
}
.glass-panel-title{
  font-size:clamp(1.65rem, 4vw, 2.35rem); font-weight:800;
  color:var(--navy-darkest); line-height:1.12; letter-spacing:-0.02em;
  margin-bottom:1rem;
}
.glass-panel-intro{
  font-size:clamp(1rem, 2vw, 1.12rem); line-height:1.55;
  color:#3D4F66; margin-bottom:2rem; max-width:640px;
}
.come-funziona-section > .container > .cta-block{
  margin-top:2rem;
  text-align:center;
}
.glass-panel .cta-block{ margin-top:2rem; text-align:center; }
.steps{ display:grid; grid-template-columns:1fr; gap:2rem; margin-top:2.5rem; }
.steps--glass{ margin-top:0; gap:0; }
.steps--glass .step{
  display:block; padding:1.45rem 0;
  border-bottom:1px solid rgba(10,26,47,0.09);
}
.steps--glass .step:last-child{ border-bottom:none; padding-bottom:0; }
.steps--glass .step:first-child{ padding-top:0; }
.steps--glass .step h3{
  font-size:clamp(1.08rem, 2.3vw, 1.22rem); font-weight:800;
  color:var(--navy-darkest); margin-bottom:0.55rem; line-height:1.25;
}
.steps--glass .step-index{ color:var(--gold-dark); }
.steps--glass .step p{
  font-size:clamp(0.94rem, 1.9vw, 1rem); line-height:1.58; color:#4A5F78;
}
.step{ display:flex; gap:1.2rem; align-items:flex-start; }
.step-num{
  transition:transform .4s var(--ease-premium), box-shadow .4s var(--ease-premium);
  flex:none; width:48px; height:48px; border-radius:50%; position:relative;
  background:linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color:var(--navy-darkest); font-family:var(--font-head); font-weight:800; font-size:1.2rem;
  display:flex; align-items:center; justify-content:center;
}
.step-num::after{
  content:''; position:absolute; inset:0; border-radius:50%; border:2px solid var(--gold);
  opacity:0; animation:ringPulse 3s ease-out infinite;
}
.steps > .step:nth-child(1) .step-num::after{ animation-delay:0s; }
.steps > .step:nth-child(2) .step-num::after{ animation-delay:.6s; }
.steps > .step:nth-child(3) .step-num::after{ animation-delay:1.2s; }
.steps > .step:nth-child(4) .step-num::after{ animation-delay:1.8s; }
.step:hover .step-num{ transform:scale(1.12); box-shadow:0 8px 24px rgba(212,175,55,0.4); }
.step h3{ font-size:1.1rem; margin-bottom:0.35rem; }
.step p{ font-size:0.95rem; }
.steps-closing{
  margin-top:2rem; text-align:center; background:rgba(212,175,55,0.1);
  border:1px solid rgba(212,175,55,0.32); border-radius:var(--radius); padding:1.3rem 1.5rem;
  font-weight:700; color:var(--white); font-size:1.02rem;
}
.glass-panel .steps-closing{
  color:var(--navy-darkest);
  background:linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border:1px solid var(--gold-dark);
  box-shadow:0 8px 22px rgba(212,175,55,0.22);
}

/* Divisori dorati tra sezioni */
main > section,
main > .marquee{
  border-style:solid;
  border-color:transparent;
  border-left-width:0;
  border-right-width:0;
  border-top-width:3px;
  border-bottom-width:3px;
  border-image:var(--gold-border-grad) 1;
}
main > section.hero{ border-top-width:0; }

/* Due strade */
.two-paths-grid{
  display:grid; grid-template-columns:1.07fr 0.93fr; gap:1.25rem;
  max-width:960px; margin:0.5rem auto 0; align-items:stretch;
}
.two-path-card{
  padding:1.5rem 1.5rem; border-radius:var(--radius);
  background:#fff;
  border:1px solid rgba(10,26,47,0.09);
}
.two-path-card p{
  font-size:clamp(0.95rem, 1.9vw, 1.02rem); line-height:1.58; color:#3D4F66;
}
.two-path-card strong{ color:var(--navy-darkest); font-weight:800; }
.two-path-card--yes{
  position:relative; z-index:1;
  border:2px solid transparent;
  background:
    linear-gradient(155deg, rgba(233,199,102,0.52) 0%, rgba(255,252,245,0.98) 38%, rgba(212,175,55,0.3) 100%) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  box-shadow:
    0 22px 56px rgba(212,175,55,0.3),
    0 0 0 1px rgba(212,175,55,0.18),
    inset 0 1px 0 rgba(255,255,255,0.92);
}
.two-path-card--yes p{ color:#2A3F5C; }
.two-path-card--yes .cta-block{ margin-top:1.35rem; text-align:left; }
.two-path-card--no{
  background:rgba(10,26,47,0.02);
  border:1px dashed rgba(10,26,47,0.1);
  opacity:0.78;
  filter:saturate(0.85);
}
.two-path-card--no p{ color:#8C9BB3; }
.two-path-card--no strong{ color:#6B7C93; font-weight:700; }
.section-alt.two-paths-section .two-path-card--no{
  background:rgba(255,255,255,0.04);
  border:2px solid #fff;
  opacity:1;
  filter:none;
}
.section-alt.two-paths-section .two-path-card--no p{ color:var(--gray-mid); }
.section-alt.two-paths-section .two-path-card--no strong{ color:var(--gray-light); }
@media (max-width:760px){
  .two-paths-grid{ grid-template-columns:1fr; }
  .two-path-card--no{ opacity:0.88; }
  .two-path-card--yes .cta-block{ text-align:center; }
}
/* =========================================================
   TESTIMONIANZE
   ========================================================= */
.wa-grid{
  display:grid; grid-template-columns:1fr; gap:1.3rem; margin-top:2.5rem;
  align-items:start;
}
.wa-grid > .reveal:nth-child(odd).visible{ transform:rotate(-1.4deg); }
.wa-grid > .reveal:nth-child(even).visible{ transform:rotate(1.4deg); }
.wa-placeholder{
  border:2px solid transparent;
  border-radius:var(--radius);
  background:
    linear-gradient(var(--navy-card), var(--navy-card)) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  box-shadow:0 10px 30px rgba(0,0,0,0.18), 0 0 20px rgba(212,175,55,0.1);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.6rem;
  padding:2.5rem 1rem; min-height:220px; text-align:center;
  transition:transform .4s var(--ease-premium), box-shadow .4s var(--ease-premium);
}
.wa-placeholder:hover{
  transform:translate3d(0,-4px,0) rotate(0deg);
  box-shadow:0 16px 40px rgba(0,0,0,0.24), 0 0 28px rgba(212,175,55,0.18);
}
.wa-placeholder svg{ width:34px; height:34px; color:var(--gold); transition:transform .4s var(--ease-premium); }
.wa-placeholder:hover svg{ transform:scale(1.15); }
.wa-placeholder span{ font-size:0.85rem; color:var(--gray-mid); }
.wa-placeholder--filled{
  padding:0; min-height:0; display:block; overflow:hidden; line-height:0;
}
.wa-placeholder--filled img{
  width:100%; height:auto; display:block;
}

/* =========================================================
   TABELLA COMPARATIVA
   ========================================================= */
.compare-wrapper{
  margin-top:2.5rem; border-radius:var(--radius); overflow:hidden; position:relative;
  border:2px solid transparent;
  background:
    linear-gradient(165deg, rgba(19,49,90,0.98), rgba(10,26,47,0.99)) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  box-shadow:
    0 28px 64px rgba(0,0,0,0.38),
    0 0 28px rgba(212,175,55,0.14);
  --compare-col-radius:var(--radius);
}
.compare-col-frame{
  position:absolute; pointer-events:none; z-index:2;
  opacity:0; transition:opacity .65s var(--ease-premium);
  overflow:visible;
}
.compare-col-frame-path{
  fill:none;
  stroke:rgba(233,199,102,0.9);
  stroke-width:2;
}
.compare-wrapper.visible .compare-col-frame{ opacity:1; }
#termoflow-compare.compare-layout--mobile{
  margin-top:2.5rem;
  padding:0;
  border:none;
  background:none;
  box-shadow:none;
  overflow:visible;
}
#termoflow-compare.compare-layout--mobile .compare-desktop-layout,
#termoflow-compare.compare-layout--desktop .tf-compare{
  display:none !important;
}
.compare-grid{ width:100%; position:relative; z-index:1; }
.compare-row{
  display:grid;
  grid-template-columns:11rem 1fr 1fr 1fr;
  transition:background .25s ease;
}
.compare-cell{
  padding:1.15rem 1.25rem; text-align:left; vertical-align:top; font-size:0.92rem; line-height:1.55;
  border-bottom:1px solid rgba(212,175,55,0.32);
}
.compare-cell:not(:last-child){ border-right:1px solid rgba(212,175,55,0.32); }
.compare-row--head .compare-cell--colhead{
  font-family:var(--font-head); font-size:0.88rem; font-weight:700; color:var(--white);
  background:rgba(255,255,255,0.025);
  text-align:left; padding:1.25rem 1.25rem 1.15rem;
}
.compare-row--head .compare-cell--corner{ background:rgba(212,175,55,0.04); }
.compare-row--head .compare-cell.col-highlight{
  color:var(--gold);
  background:rgba(255,255,255,0.025);
  border-top-left-radius:var(--compare-col-radius);
  border-top-right-radius:var(--compare-col-radius);
}
.compare-cell--label{
  font-family:var(--font-head); color:var(--gold); font-size:0.78rem; font-weight:700;
  text-transform:uppercase; letter-spacing:0.06em;
  background:rgba(212,175,55,0.04);
}
.compare-body .compare-row:nth-child(even){ background:rgba(255,255,255,0.015); }
.compare-body .compare-row:hover{ background:rgba(212,175,55,0.04); }
.compare-body .compare-row:last-child .compare-cell{ border-bottom:none; }
.compare-cell.col-highlight{ background:transparent; }
.compare-body .compare-row:last-child .compare-cell.col-highlight{
  border-bottom-left-radius:var(--compare-col-radius);
  border-bottom-right-radius:var(--compare-col-radius);
}
.compare-body .compare-row.score-row{ background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)); }
.compare-body .compare-row.score-row .compare-cell--label{ border-right:none; }
.col-head-inner{
  display:inline-flex; align-items:center; flex-wrap:wrap; gap:0.55rem;
}
.col-icon{
  display:flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,0.06); margin:0 auto 0.65rem;
  border:1px solid rgba(255,255,255,0.08);
}
.col-icon svg{ width:18px; height:18px; color:var(--gray-light); }
.col-icon-gold{
  background:linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-color:rgba(212,175,55,0.45);
  box-shadow:0 8px 22px rgba(212,175,55,0.35);
}
.col-icon-gold svg{ color:var(--navy-darkest); }
.col-badge{
  display:inline-flex; align-items:center; white-space:nowrap;
  background:linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color:var(--navy-darkest);
  font-size:0.64rem; font-weight:800; text-transform:uppercase; letter-spacing:0.08em; line-height:1;
  padding:0.38rem 0.9rem; border-radius:999px;
  border:1px solid rgba(10,26,47,0.12);
  box-shadow:0 4px 14px rgba(212,175,55,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}
.compare-cell-body{
  display:flex; align-items:flex-start; gap:0.55rem;
}
.compare-cell-text{ flex:1; min-width:0; }
.mark{
  display:inline-flex; align-items:flex-start; justify-content:center;
  flex:none;
  font-size:0.85rem; font-weight:800; margin:0.12em 0 0; line-height:1;
}
.mark-x{ color:var(--red-soft); }
.mark-check{ color:var(--gold); }
.cell-label{ display:none; }
.score-bar{
  width:100%; max-width:180px; height:10px; border-radius:999px;
  background:rgba(255,255,255,0.08); overflow:hidden; margin:0.35rem 0 0.55rem;
  box-shadow:inset 0 1px 3px rgba(0,0,0,0.25);
}
.score-fill{
  display:block; height:100%; border-radius:999px; width:0;
  background:linear-gradient(90deg, var(--red-soft), #b94a42);
  transition:width 1.2s var(--ease-premium) .3s;
}
.compare-wrapper.visible .score-fill{ width:var(--score); }
.score-bar-gold .score-fill{
  background:linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  box-shadow:0 0 14px rgba(212,175,55,0.55);
}
.score-value{ font-family:var(--font-head); font-weight:800; font-size:1.25rem; color:var(--white); letter-spacing:-0.02em; }
.score-value span{ font-size:0.75rem; font-weight:500; color:var(--gray-mid); }
.score-value.gold{ color:var(--gold); text-shadow:0 0 20px rgba(212,175,55,0.35); }

.compare-mobile-group{ margin-bottom:1.35rem; }
.compare-mobile-group:last-child{ margin-bottom:0; }
.compare-mobile-title{
  font-family:var(--font-head);
  color:var(--gold);
  font-size:0.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.06em;
  margin:0 0 0.5rem;
}
.compare-mobile-card .score-bar{ max-width:none; }
.compare-mobile-card .score-value{ font-size:1.35rem; }

#termoflow-compare.compare-layout--mobile{
  padding:0;
  border-radius:0;
  overflow:visible;
}
#termoflow-compare.compare-layout--mobile .compare-col-frame{
  display:none !important;
}

@media (max-width:760px){
  #termoflow-compare.compare-layout--mobile .compare-desktop-layout{ display:none !important; }
  #termoflow-compare .tf-compare{ display:block !important; }
  #termoflow-compare.compare-layout--mobile{
    padding:0;
    border:none;
    background:none;
    box-shadow:none;
    overflow:visible;
  }
  #termoflow-compare .compare-col-frame{ display:none !important; }
  .section-light #termoflow-compare.compare-layout--mobile .tf-compare,
  .section-light #termoflow-compare.compare-layout--mobile .tf-compare__text{
    color:rgba(255,255,255,0.9);
  }
}

@media (min-width:761px){
  #termoflow-compare .tf-compare{ display:none !important; }
  #termoflow-compare .compare-desktop-layout{ display:block !important; }
}

/* =========================================================
   GARANZIA
   ========================================================= */
.guarantee-box{
  position:relative;
  border:2px solid transparent;
  border-radius:var(--radius);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.16), transparent 58%),
    radial-gradient(circle at 100% 100%, rgba(212,175,55,0.08), transparent 45%),
    linear-gradient(var(--navy-dark), var(--navy-dark)) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  box-shadow:
    0 0 32px rgba(212,175,55,0.32),
    0 0 72px rgba(212,175,55,0.14),
    0 16px 48px rgba(0,0,0,0.38);
  padding:2.5rem; text-align:center; max-width:780px; margin:0 auto;
}
.guarantee-box .icon-shield{ width:54px; height:54px; color:var(--gold); margin:0 auto 1rem; }
.guarantee-box h2{ color:var(--gold); margin-bottom:1rem; }
.guarantee-box .claim{ font-weight:700; color:var(--white); font-size:1.15rem; margin-bottom:0.8rem; }

/* =========================================================
   QUANTO RISPARMI
   ========================================================= */
.roles-grid{ display:grid; grid-template-columns:1fr; gap:1.5rem; margin-top:2.5rem; }
.savings-section .role-card{ border:2px solid var(--red-soft); }
.savings-section .role-card:hover{ border-color:var(--red-soft); }
.role-card{
  background:var(--navy-card); border:1px solid var(--navy-border); border-radius:var(--radius);
  overflow:hidden; text-align:center;
  transition:transform .35s var(--ease-premium), border-color .35s var(--ease-premium), box-shadow .35s var(--ease-premium);
  contain:layout style;
}
.role-card.reveal{
  transition:
    opacity .65s var(--ease-premium),
    transform .65s var(--ease-premium),
    filter .5s var(--ease-premium),
    border-color .35s var(--ease-premium),
    box-shadow .35s var(--ease-premium);
}
.role-card:hover{ transform:translate3d(0,-6px,0); border-color:rgba(212,175,55,0.4); box-shadow:0 16px 40px rgba(0,0,0,0.25); }
.role-photo{
  background:var(--navy-dark);
  aspect-ratio:5 / 4;
  width:100%;
  height:auto;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid var(--navy-border);
  overflow:hidden;
}
.role-photo svg{ width:40px; height:40px; color:var(--gray-mid); transition:transform .4s var(--ease-premium); }
.role-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 20%;
  display:block;
  transition:transform .4s var(--ease-premium);
}
.role-card:hover .role-photo svg{ transform:scale(1.15); }
.role-card:hover .role-photo img{ transform:scale(1.05); }
.role-body{ padding:1.3rem; }
.role-body h3{ font-size:0.95rem; text-transform:uppercase; letter-spacing:0.04em; margin-bottom:0.5rem; }
.role-price{ font-family:var(--font-head); font-size:1.3rem; font-weight:700; }
.role-price .price-strike{ color:var(--red-soft); text-decoration:line-through; }
.role-price .price-suffix{ font-size:0.85rem; color:var(--gray-mid); font-family:var(--font-body); font-weight:400; }
.role-body p{ margin-top:0.6rem; font-size:0.88rem; color:var(--gray-light); }
.savings-total{ text-align:center; margin-top:3rem; }
.savings-total p{ font-size:1.05rem; margin-bottom:0.5rem; }
.savings-total .big-strike{
  font-family:var(--font-head); font-weight:800; font-size:clamp(2.4rem,6vw,3.4rem);
  color:var(--red-soft); text-decoration:line-through; display:block;
}
.included-box{
  margin-top:2.5rem;
  border:2px solid transparent;
  border-radius:var(--radius);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, var(--gold-light), var(--gold) 38%, var(--gold-dark) 72%, var(--gold-light)) border-box;
  box-shadow:
    0 0 36px rgba(212,175,55,0.3),
    0 14px 40px rgba(0,0,0,0.18);
  padding:2rem; text-align:center;
}
.included-box h3{
  color:var(--gold); font-size:clamp(2rem, 4.2vw, 2.9rem); font-weight:800;
  margin-bottom:1rem; line-height:1.1; letter-spacing:-0.015em;
}
.included-box h3 .included-brand{
  text-decoration:underline;
  text-decoration-color:var(--gold-dark);
  text-underline-offset:0.14em;
  text-decoration-thickness:3px;
}
.included-box p{
  font-size:clamp(1.2rem, 2.4vw, 1.5rem); line-height:1.5; font-weight:500;
  color:var(--navy-darkest); max-width:640px; margin:0 auto;
}
.included-box p strong{
  font-weight:800;
  color:var(--navy-darkest);
}

/* =========================================================
   PER CHI NON È TERMOFLOW
   ========================================================= */
.not-for-section .eyebrow{ color:var(--red-soft); }
.not-for-section .eyebrow::before{ background:var(--red-soft); }
.not-for-list{
  display:grid;
  grid-template-columns:1fr;
  gap:1.25rem;
  margin-top:2.5rem;
}
.not-for-item{
  display:flex; gap:0.9rem; align-items:flex-start;
  background:#fff;
  border:2px solid rgba(226,104,95,0.55);
  border-radius:var(--radius-sm);
  padding:1.1rem 1.3rem;
  box-shadow:0 4px 16px rgba(226,104,95,0.1);
  transition:transform .35s var(--ease-premium), border-color .35s var(--ease-premium), box-shadow .35s var(--ease-premium);
}
.not-for-item:hover{
  transform:translateX(4px);
  border-color:var(--red-soft);
  box-shadow:0 8px 24px rgba(226,104,95,0.2);
}
.not-for-item svg{ width:22px; height:22px; flex:none; color:var(--red-soft); margin-top:0.15rem; }
.not-for-item p{ font-size:0.95rem; color:var(--navy-darkest); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list{ margin-top:2.5rem; max-width:820px; margin-left:auto; margin-right:auto; }
.faq-item{ border-bottom:1px solid var(--navy-border); }
.faq-question{
  width:100%; background:none; border:none; cursor:pointer; color:var(--white);
  font-family:var(--font-head); font-size:1.02rem; font-weight:600; text-align:left;
  padding:1.3rem 0.5rem; display:flex; justify-content:space-between; align-items:center; gap:1rem;
  transition:color .3s ease, padding-left .3s ease;
}
.faq-question:hover{ color:var(--gold); padding-left:0.9rem; }
.faq-question .chevron{ flex:none; width:20px; height:20px; color:var(--gold); transition:transform .3s ease; }
.faq-item.open .faq-question .chevron{ transform:rotate(180deg); }
.faq-answer{ max-height:0; overflow:hidden; transition:max-height .35s ease; }
.faq-answer p{ padding:0 0 1.3rem; font-size:0.95rem; color:var(--gray-light); }
.faq-answer .faq-cta-lead{ padding:0 0 0.65rem; font-weight:600; }
.faq-answer .topbar-btn{ margin:0 0 1.3rem; margin-left:0; }

/* =========================================================
   CTA FINALE
   ========================================================= */
.cta-final{ text-align:center; padding:5rem 0; }
.cta-final h2{ max-width:840px; margin:0 auto 1.2rem; }
.cta-final p.lead{ max-width:620px; margin:0 auto 1.8rem; color:var(--gray-light); }

/* =========================================================
   FOOTER
   ========================================================= */
footer{ background:var(--navy-dark); border-top:1px solid var(--navy-border); padding:4rem 0 2.5rem; text-align:center; }
footer .footer-word{
  font-family:var(--font-head); font-weight:800; font-size:clamp(2.4rem,8vw,5rem);
  letter-spacing:-0.03em; color:var(--white); margin-bottom:0.3rem;
}
footer .footer-word .flow{ color:var(--gold); }
footer .tagline{ font-size:0.95rem; color:var(--gray-mid); margin:0 0 2rem; }
footer .footer-links{ display:flex; justify-content:center; gap:1.5rem; font-size:0.85rem; margin-bottom:1rem; }
footer .footer-links a{ transition:color .3s ease; }
footer .footer-links a:hover{ color:var(--gold); }
footer .copyright{ font-size:0.8rem; color:var(--gray-mid); }

/* =========================================================
   BREAKPOINTS — tablet / desktop
   ========================================================= */
@media (min-width:700px){
  .stats-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem 1.5rem; align-items:start; }
  .cards-grid{ grid-template-columns:repeat(2,1fr); }
  .wa-grid{ grid-template-columns:repeat(3,1fr); }
  .roles-grid{ grid-template-columns:repeat(2,1fr); }
  .not-for-list{ grid-template-columns:repeat(2,1fr); gap:1.5rem 1.25rem; }
  .hero h1 .gold,
  .solution-banner .solution-headline .gold{
    box-decoration-break:clone; -webkit-box-decoration-break:clone;
    padding:0.05em 0.32em; border-radius:6px;
  }
}
@media (min-width:700px) and (prefers-reduced-motion: reduce){
  .hero h1 .gold-outline-path,
  .solution-banner .solution-headline .gold-outline-path{ stroke-dashoffset:0 !important; stroke-opacity:1 !important; }
}
@media (min-width:900px){
  .roles-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (min-width:1000px){
  .cards-grid{ grid-template-columns:repeat(3,1fr); }
  .steps{ grid-template-columns:repeat(2,1fr); gap:2.5rem 2rem; }
  .stats-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.5rem 1.25rem; }
  .stat-label{ max-width:11.5rem; font-size:0.85rem; }
}
@media (max-width:820px){
  .topbar-inner{ flex-wrap:wrap; justify-content:center; }
  .topbar-text{ flex:1 1 100%; text-align:center; }
  .topbar-btn{ margin-left:0; }
}
@media (max-width:760px){
  /* Mobile: reveal leggeri, niente effetti pesanti */
  section{
    content-visibility:visible;
    contain-intrinsic-size:auto;
  }
  .reveal{
    transform:translate3d(0,12px,0);
    filter:none;
    transition:opacity .4s ease, transform .4s ease;
  }
  .reveal.revealing,
  .reveal.visible{ filter:none; }
  .reveal.revealing{ will-change:auto; }
  .cards-grid > .reveal:nth-child(1), .steps > .reveal:nth-child(1), .wa-grid > .reveal:nth-child(1),
  .roles-grid > .reveal:nth-child(1), .not-for-list > .reveal:nth-child(1), .stats-grid > .reveal:nth-child(1){ transition-delay:0s; }
  .cards-grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2), .wa-grid > .reveal:nth-child(2),
  .roles-grid > .reveal:nth-child(2), .not-for-list > .reveal:nth-child(2), .stats-grid > .reveal:nth-child(2){ transition-delay:.05s; }
  .cards-grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3), .wa-grid > .reveal:nth-child(3),
  .roles-grid > .reveal:nth-child(3), .not-for-list > .reveal:nth-child(3), .stats-grid > .reveal:nth-child(3){ transition-delay:.1s; }
  .cards-grid > .reveal:nth-child(n+4), .steps > .reveal:nth-child(n+4), .wa-grid > .reveal:nth-child(n+4),
  .roles-grid > .reveal:nth-child(n+4), .not-for-list > .reveal:nth-child(n+4), .stats-grid > .reveal:nth-child(n+4){ transition-delay:.1s; }
  .card.reveal .card-icon,
  .card.reveal h3,
  .card.reveal p{
    opacity:1;
    transform:none;
    transition:none;
  }
  .role-card.reveal{
    filter:none;
    transition:opacity .4s ease, transform .4s ease, border-color .35s ease, box-shadow .35s ease;
  }
  .hero::before,
  .solution-banner::before{ animation:none; will-change:auto; }
  .topbar{ animation:slideDownFade .4s var(--ease-premium) both; }
  .btn-gold::before,
  .btn-gold::after,
  .topbar-btn::before{ animation:none !important; opacity:0; }
  .scroll-cue-line::after{ animation:scrollCueMove 2.4s ease-in-out infinite; }
  .marquee-track{ animation:marqueeScroll 42s linear infinite; }
  .step-num::after,
  .chart-badge-dot,
  .warn-icon{ animation:none; }
  @keyframes riseUpMobile{
    from{ opacity:0; transform:translate3d(0,10px,0); }
    to{ opacity:1; transform:none; }
  }
  .hero .brand-mark,
  .hero h1,
  .hero p.subtitle,
  .hero .cta-block{
    filter:none;
    animation:riseUpMobile .5s var(--ease-premium) both;
  }
  .hero h1{ animation-delay:.08s; }
  .hero p.subtitle{ animation-delay:.16s; }
  .hero .cta-block{ animation-delay:.24s; }
  .glass-panel,
  .candidatura-modal__overlay{
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  h2.reveal::after{ transition-duration:.45s; }

  .compare-col-frame{ display:none; }
  .compare-wrapper{
    border-radius:var(--radius-sm);
    --compare-col-radius:var(--radius-sm);
    overflow:visible;
    padding:0.85rem;
  }
}

/* =========================================================
   MODAL CANDIDATURA + THANK YOU
   ========================================================= */
body.modal-open{ overflow:hidden; }

.candidatura-modal{
  position:fixed; inset:0; z-index:2000;
  display:flex; align-items:center; justify-content:center;
  padding:1.25rem;
}
.candidatura-modal[hidden]{ display:none !important; }

.candidatura-modal__overlay{
  position:absolute; inset:0;
  background:rgba(10,26,47,0.82);
  backdrop-filter:blur(6px);
}

.candidatura-modal__dialog{
  position:relative; z-index:1;
  width:min(100%, 560px);
  max-height:min(92vh, 860px);
  overflow:auto;
  padding:1.75rem 1.5rem 1.5rem;
  border-radius:var(--radius);
  background:linear-gradient(160deg, rgba(255,255,255,0.98), rgba(245,248,252,0.96));
  border:1px solid rgba(212,175,55,0.35);
  box-shadow:0 24px 80px rgba(10,26,47,0.45), 0 0 0 1px rgba(255,255,255,0.5) inset;
  color:#2A3F5C;
}
.candidatura-modal__dialog h2{
  color:var(--navy-darkest);
  font-family:var(--font-head);
}

.candidatura-modal__close{
  position:absolute; top:0.85rem; right:0.85rem;
  width:40px; height:40px; border:0; border-radius:50%;
  background:rgba(10,26,47,0.06); color:var(--navy-darkest);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:background 0.2s ease;
}
.candidatura-modal__close svg{ width:20px; height:20px; }
.candidatura-modal__close:hover{ background:rgba(10,26,47,0.12); }

.candidatura-modal__eyebrow{
  font-size:0.72rem; font-weight:700; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--gold-dark); margin-bottom:0.5rem;
}
.candidatura-modal__header h2{
  font-size:clamp(1.45rem, 3vw, 1.85rem);
  line-height:1.15; margin-bottom:0.65rem;
}
.candidatura-modal__lead{
  color:#3D4F66; font-size:0.95rem; line-height:1.55;
  margin-bottom:1.35rem;
}

.candidatura-form__grid{
  display:grid; grid-template-columns:1fr 1fr; gap:0.85rem;
}
.candidatura-field--full{ grid-column:1 / -1; }

.candidatura-field > span:not(.candidatura-field__error){
  display:block; font-size:0.82rem; font-weight:600;
  margin-bottom:0.35rem; color:#2A3F5C;
}
.candidatura-field em,
.candidatura-check em{ color:var(--gold-dark); font-style:normal; }

.candidatura-field input,
.candidatura-field select,
.candidatura-field textarea{
  width:100%; border:1px solid rgba(10,26,47,0.18);
  border-radius:10px; padding:0.72rem 0.85rem;
  font:inherit; color:var(--navy-darkest);
  background:#fff; transition:border-color 0.2s ease, box-shadow 0.2s ease;
}
.candidatura-field select{
  appearance:none;
  padding-right:2.25rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230A1A2F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 0.85rem center;
  cursor:pointer;
}
.candidatura-field select:invalid{ color:#8C9BB3; }
.candidatura-field input::placeholder,
.candidatura-field textarea::placeholder{ color:#8C9BB3; opacity:1; }
.candidatura-field input:focus,
.candidatura-field select:focus,
.candidatura-field textarea:focus{
  outline:none; border-color:rgba(212,175,55,0.75);
  box-shadow:0 0 0 3px rgba(212,175,55,0.18);
}
.candidatura-field textarea{ resize:vertical; min-height:88px; }

.candidatura-field__error{
  display:block; margin-top:0.35rem;
  font-size:0.78rem; font-weight:600; line-height:1.35;
  color:#c62828;
}
.candidatura-field .candidatura-field__error,
.candidatura-check .candidatura-field__error{
  color:#c62828;
}
.candidatura-field__error[hidden]{ display:none; }

.candidatura-field.is-invalid input,
.candidatura-field.is-invalid select,
.candidatura-field.is-invalid textarea,
.candidatura-check.is-invalid input{
  border-color:rgba(180,40,40,0.55);
  box-shadow:0 0 0 3px rgba(180,40,40,0.1);
}

.candidatura-check{
  display:flex; gap:0.65rem; align-items:flex-start; flex-wrap:wrap;
  margin:1rem 0 0.25rem; font-size:0.82rem; line-height:1.45;
}
.candidatura-check > span:not(.candidatura-field__error){
  flex:1; min-width:0;
  margin:0; font-size:0.82rem; font-weight:500; line-height:1.45;
  color:#2A3F5C;
}
.candidatura-check .candidatura-field__error{
  flex:1 1 100%;
  margin:0.15rem 0 0;
  padding-left:calc(13px + 0.65rem);
}
.candidatura-check input{ margin-top:0.2rem; flex:none; }
.candidatura-check a{
  color:var(--navy-dark); font-weight:600; text-decoration:underline;
}
.candidatura-check a:hover{ color:var(--gold-dark); }

.candidatura-hp{
  position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;
}

.candidatura-form__error{
  margin:0.75rem 0 0; padding:0.65rem 0.8rem;
  border-radius:8px; font-size:0.85rem; font-weight:600;
  color:#8b1e1e; background:rgba(180,40,40,0.08);
  border:1px solid rgba(180,40,40,0.2);
}
.candidatura-form__error[hidden]{ display:none; }

.candidatura-submit{
  width:100%; margin-top:1rem; justify-content:center;
}
.candidatura-form__micro{
  margin-top:0.75rem; text-align:center;
  font-size:0.78rem; color:#5A6B82;
}

.thanks-hero{
  padding:clamp(4rem, 12vw, 7rem) 0; min-height:60vh;
  display:flex; align-items:center;
}
.thanks-wrap{ max-width:720px; }
.thanks-card{
  text-align:center; padding:clamp(2rem, 5vw, 3rem);
  border-radius:var(--radius);
  background:linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border:1px solid rgba(212,175,55,0.35);
  box-shadow:0 0 40px rgba(212,175,55,0.08);
  color:var(--gray-light);
}
.thanks-eyebrow{
  font-size:0.75rem; font-weight:700; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--gold); margin-bottom:0.75rem;
}
.thanks-card h1{
  font-family:var(--font-head);
  color:var(--white);
  font-size:clamp(1.75rem, 4vw, 2.35rem);
  line-height:1.15; margin-bottom:1rem;
}
.thanks-lead{
  font-size:1.05rem; line-height:1.6;
  color:rgba(255,255,255,0.9); margin-bottom:0.75rem;
}
.thanks-note{
  font-size:0.88rem; color:rgba(255,255,255,0.65); margin-bottom:1.75rem;
}
.thanks-card .btn-gold{ margin:0 auto; }

body.page-grazie{ --topbar-h:0px; }

.thanks-notice{
  display:flex; align-items:flex-start; gap:1rem;
  margin-top:clamp(1.25rem, 3vw, 1.75rem);
  padding:clamp(1.15rem, 2.5vw, 1.5rem);
  border-radius:var(--radius);
  background:linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.04));
  border:1px solid rgba(212,175,55,0.4);
  box-shadow:0 8px 28px rgba(0,0,0,0.12);
  text-align:left;
}
.thanks-notice-icon{
  flex:none; width:2.5rem; height:2.5rem;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:rgba(212,175,55,0.18);
  color:var(--gold);
}
.thanks-notice-icon svg{ width:1.35rem; height:1.35rem; }
.thanks-notice-body{ min-width:0; flex:1; }
.thanks-notice-kicker{
  margin:0 0 0.35rem;
  font-size:0.72rem; font-weight:800;
  letter-spacing:0.14em; text-transform:uppercase;
  color:var(--gold);
}
.thanks-notice-text{
  margin:0 0 0.55rem;
  font-size:clamp(0.95rem, 2vw, 1.05rem);
  font-weight:600; line-height:1.5;
  color:var(--white);
}
.thanks-notice-text strong{ color:var(--gold-light); font-weight:800; }
.thanks-notice-sub{
  margin:0 0 1rem;
  font-size:0.92rem; line-height:1.55;
  color:rgba(255,255,255,0.78);
}
.thanks-notice-sub strong{ color:var(--white); font-weight:700; }
.thanks-notice-status{
  display:inline-flex; align-items:center; gap:0.45rem;
  padding:0.45rem 0.9rem; border-radius:999px;
  background:var(--navy-darkest); color:var(--white);
  font-size:0.78rem; font-weight:700; line-height:1.2;
  box-shadow:0 2px 8px rgba(10,26,47,0.22);
}
.thanks-notice-status svg{ width:0.95rem; height:0.95rem; color:var(--gold-light); flex:none; }
@media (max-width:520px){
  .thanks-notice{ flex-direction:column; align-items:center; text-align:center; }
  .thanks-notice-status{ margin:0 auto; }
}

/* Pagina legal / privacy */
.legal-page{ padding:clamp(3.5rem, 8vw, 5rem) 0; }
.legal-wrap{ max-width:760px; }
.legal-title{
  font-family:var(--font-head);
  font-size:clamp(1.85rem, 4vw, 2.5rem);
  font-weight:800;
  color:var(--navy-darkest);
  text-align:center;
  line-height:1.15;
  margin-bottom:2rem;
}
.legal-prose{
  color:#3D4F66;
  font-size:0.95rem;
  line-height:1.65;
}
.legal-prose h2{
  font-family:var(--font-head);
  font-size:clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight:800;
  color:var(--navy-darkest);
  margin:2rem 0 0.75rem;
  line-height:1.25;
}
.legal-prose h3{
  font-family:var(--font-head);
  font-size:1rem;
  font-weight:700;
  color:var(--navy-darkest);
  margin:1.25rem 0 0.5rem;
}
.legal-prose p{ margin-bottom:0.85rem; }
.legal-prose ul{
  margin:0 0 1rem 1.1rem;
  list-style:disc;
}
.legal-prose li{ margin-bottom:0.45rem; }
.legal-prose a{
  color:var(--navy-dark);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:2px;
}
.legal-prose a:hover{ color:var(--gold-dark); }
.legal-prose strong{ color:var(--navy-darkest); font-weight:700; }
.legal-updated{
  font-size:0.85rem;
  color:#5A6B82;
  margin-bottom:1.25rem;
}
.legal-back{ margin-top:2.5rem; text-align:center; }
.legal-back .btn-gold{ margin:0 auto; }

@media (max-width:600px){
  .candidatura-form__grid{ grid-template-columns:1fr; }
  .candidatura-modal__dialog{ padding:1.35rem 1.1rem 1.1rem; }
}
