/* ============================================================
   SNASTO — Design System 2026 · "Digital Artisan"
   Evoluzione premium del brand: teal #00B9C2 · arancio #F29559
   Montserrat (brand) + Fraunces (accento editoriale) + JetBrains Mono (dettagli)
   ============================================================ */

@import url('fonts.css'); /* font self-hostati: il sito funziona anche offline */

:root {
  /* Brand */
  --teal: #00B9C2;
  --teal-dark: #009BA3;
  --teal-deep: #007A80;
  --teal-ink: #062A2E;
  --orange: #F29559;
  --orange-deep: #E5762F;
  /* Neutri */
  --ink: #10262B;
  --text: #2D3B3E;
  --muted: #5D6E72;
  --line: #DEE9EA;
  --bg: #FDFEFE;
  --bg-warm: #F4F8F8;
  --bg-card: #FFFFFF;
  /* Dark sections */
  --dark-1: #041619;
  --dark-2: #07242A;
  --dark-3: #0B3138;
  --dark-line: rgba(0,185,194,.16);
  --dark-text: #C6DADD;
  --dark-muted: #7FA0A5;
  /* Type */
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  /* Layout */
  --w: 1180px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 2px 6px rgba(6,42,46,.04), 0 18px 45px -18px rgba(6,42,46,.14);
  --shadow-lift: 0 4px 10px rgba(6,42,46,.05), 0 30px 60px -20px rgba(6,42,46,.22);
  --ease: cubic-bezier(.22,.9,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; width: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal-deep); }
::selection { background: var(--teal); color: #fff; }

h1,h2,h3,h4 { line-height: 1.16; color: var(--ink); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); font-weight: 400; line-height: 1.6; }

.accent-i { font-family: var(--font-accent); font-style: italic; font-weight: 600; letter-spacing: 0; }
.grad-text {
  background: linear-gradient(92deg, var(--teal) 10%, #4FD8DE 50%, var(--teal) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.orange-text { color: var(--orange-deep); }

.container { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-warm { background: var(--bg-warm); }
.section-tight { padding: clamp(44px, 6vw, 72px) 0; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); border-radius: 2px; }
.dark .eyebrow, .on-dark .eyebrow { color: #5FD9DF; }

.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--teal); color: #fff !important; box-shadow: 0 10px 28px -10px rgba(0,185,194,.55); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(0,185,194,.6); }
.btn-orange { background: var(--orange); color: #fff !important; box-shadow: 0 10px 28px -10px rgba(242,149,89,.55); }
.btn-orange:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink) !important; background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep) !important; transform: translateY(-2px); }
.on-dark .btn-ghost, .hero .btn-ghost, .dark .btn-ghost { border-color: rgba(255,255,255,.32); color: #fff !important; }
.on-dark .btn-ghost:hover, .hero .btn-ghost:hover, .dark .btn-ghost:hover { border-color: var(--teal); color: #5FD9DF !important; }
.btn-wa { background: #25D366; color: #fff !important; box-shadow: 0 10px 28px -10px rgba(37,211,102,.5); }
.btn-wa:hover { background: #1EBE5A; transform: translateY(-2px); }

.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--teal-deep); }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(253,254,254,.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { overflow-x: clip; }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 74px; min-width: 0; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo .logo-dark { display: none; }
.nav.on-hero:not(.scrolled) .logo-light { display: none; }
.nav.on-hero:not(.scrolled) .logo-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a { font-weight: 600; font-size: .93rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--teal); border-radius:2px; transition: width .28s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav.on-hero:not(.scrolled) .nav-links a { color: #E7F4F5; }
.nav-cta { margin-left: 6px; padding: 11px 22px; font-size: .9rem; }
/* il bottone CTA non deve ereditare né la barretta-underline né il
   padding compresso dei link del menu (.nav-links a vince per specificità) */
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta { padding: 11px 24px; color: #fff; }
.nav.on-hero:not(.scrolled) .nav-links a.nav-cta { color: #fff; }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 130; }
.nav-burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s var(--ease); }
.nav.on-hero:not(.scrolled) .nav-burger span { background: #fff; }

/* dropdown
   Due accorgimenti anti-frustrazione (bug #0 del quaderno idee):
   1. "ponte" invisibile che copre il gap di 12px tra la voce e il pannello,
      così l'hover non si interrompe durante il tragitto;
   2. chiusura con periodo di grazia (~250ms): se il mouse esce per un
      istante, il pannello resta visibile e ri-entrabile prima di sparire.
   La chiusura usa visibility (ritardata), NON pointer-events: così durante
   la grazia il pannello è ancora hoverabile e l'hover si riaggancia. */
.has-drop { position: relative; }
@media (min-width: 961px) {
  .has-drop::before { content: ""; position: absolute; left: -14px; right: -14px; top: 100%; height: 16px; }
}
.drop {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lift); padding: 10px; min-width: 300px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s var(--ease) .25s, transform .22s var(--ease) .25s, visibility 0s .47s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop {
  opacity: 1; transform: translate(-50%, 0); visibility: visible;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s;
}
.drop a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 11px; color: var(--ink) !important; }
.drop a:hover { background: var(--bg-warm); }
.drop a::after { display: none; }
.drop b { font-size: .92rem; }
.drop small { color: var(--muted); font-weight: 600; font-size: .8rem; }

/* mobile menu */
@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100dvh;
    flex-direction: column; justify-content: center; gap: 8px;
    background: linear-gradient(160deg, var(--dark-1), var(--dark-3));
    visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-4%);
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
    margin: 0; z-index: 120; overflow-y: auto; padding: 40px 0;
  }
  .nav-links.open {
    visibility: visible; opacity: 1; pointer-events: auto; transform: none;
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s;
  }
  .nav-links a { color: #fff !important; font-size: 1.35rem; padding: 10px; }
  .nav-links .drop { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; background: transparent; border: 0; box-shadow: none; text-align: center; display:none; transition: none; }
  .nav-links .nav-cta { margin: 18px 0 0; }
  .nav-burger { display: block; }
  .nav-burger.open span { background:#fff; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero (dark) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(0,185,194,.28), transparent 60%),
    radial-gradient(900px 500px at 95% 8%, rgba(0,155,163,.20), transparent 55%),
    radial-gradient(700px 480px at 82% 96%, rgba(242,149,89,.13), transparent 58%),
    linear-gradient(165deg, var(--dark-1) 0%, var(--dark-2) 55%, var(--dark-1) 100%);
  color: var(--dark-text);
  padding: 170px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(126,224,229,.14) 1px, transparent 1.4px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(720px 480px at 30% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(720px 480px at 30% 30%, #000 0%, transparent 75%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: var(--dark-text); max-width: 56ch; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--dark-line); background: rgba(0,185,194,.08);
  color: #8FE6EA; border-radius: 999px; padding: 8px 16px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(0,185,194,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(0,185,194,0); } 100% { box-shadow: 0 0 0 0 rgba(0,185,194,0); } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 12px; }
.hero-note { font-size: .86rem; color: var(--dark-muted); }

/* aurora blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; will-change: transform; }
.blob-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(0,185,194,.5), transparent 65%); top: -140px; right: -80px; animation: float 14s ease-in-out infinite; }
.blob-2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(242,149,89,.35), transparent 65%); bottom: -160px; left: -60px; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-28px, 26px) scale(1.07); } }

/* KPI band */
.kpi-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.kpi {
  border: 1px solid var(--dark-line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  padding: 22px 24px; backdrop-filter: blur(6px);
}
.kpi b { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.kpi b span { font-size: inherit; color: #fff; font-weight: 800; }
.kpi b .unit { font-size: .6em; color: #5FD9DF; font-weight: 700; }
.kpi > span { font-size: .84rem; color: var(--dark-muted); font-weight: 600; }
@media (max-width: 860px) { .kpi-band { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 16px 0; }
.marquee { display: flex; gap: 46px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--mono); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 46px; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--orange); font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-wrap:hover .marquee { animation-play-state: paused; }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento-card {
  grid-column: span 6; position: relative; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 32px 30px; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column;
}
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(0,185,194,.45); }
.bento-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), #6FE3E8);
  opacity: 0; transition: opacity .35s;
}
.bento-card:hover::before { opacity: 1; }
.bento-card.wide { grid-column: span 12; }
.bento-card.third { grid-column: span 4; }
.bento-card h3 { margin-top: 14px; }
.bento-card p { color: var(--muted); font-size: .96rem; margin-bottom: 14px; }
.bento-card .link-arrow { margin-top: auto; font-size: .93rem; }
.bento-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,185,194,.14), rgba(0,185,194,.05));
  border: 1px solid rgba(0,185,194,.25); color: var(--teal-deep);
}
.bento-ico svg { width: 26px; height: 26px; }
.bento-card.accent .bento-ico { background: linear-gradient(135deg, rgba(242,149,89,.16), rgba(242,149,89,.05)); border-color: rgba(242,149,89,.3); color: var(--orange-deep); }
.bento-tag { position: absolute; top: 26px; right: 26px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); background: rgba(242,149,89,.12); padding: 5px 11px; border-radius: 999px; }
@media (max-width: 960px) { .bento-card, .bento-card.third { grid-column: span 12; } }
@media (min-width: 961px) { .bento .b-7 { grid-column: span 7; } .bento .b-5 { grid-column: span 5; } }

/* ---------- Metodo timeline ---------- */
.steps { counter-reset: step; display: grid; gap: 0; position: relative; }
.step {
  display: grid; grid-template-columns: 84px 1fr; gap: 26px; padding: 30px 0;
  border-bottom: 1px dashed var(--line); position: relative;
}
.step:last-child { border-bottom: 0; }
.step-num {
  counter-increment: step; position: relative;
}
.step-num::before {
  content: "0" counter(step);
  font-family: var(--mono); font-weight: 600; font-size: 1.5rem;
  display: grid; place-items: center; width: 68px; height: 68px;
  border-radius: 20px; color: var(--teal-deep);
  background: linear-gradient(135deg, rgba(0,185,194,.13), rgba(0,185,194,.04));
  border: 1px solid rgba(0,185,194,.3);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; max-width: 62ch; }
.step .step-what { font-size: .84rem; font-family: var(--mono); color: var(--orange-deep); letter-spacing: .06em; display: block; margin-top: 10px; }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Cards casi studio ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .cards-3 { grid-template-columns: 1fr; } }
.case-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.case-card .case-img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.case-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.case-metric { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; color: var(--teal-deep); line-height: 1; }
.case-metric small { display: block; font-size: .82rem; font-weight: 600; color: var(--orange-deep); font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
.case-body h3 { font-size: 1.12rem; margin: 14px 0 6px; }
.case-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.case-chip { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); background: rgba(0,185,194,.1); border-radius: 999px; padding: 4px 11px; margin-bottom: 12px; align-self: flex-start; }

/* ---------- Dark section ---------- */
.dark {
  background:
    radial-gradient(900px 460px at 85% 0%, rgba(0,185,194,.16), transparent 60%),
    radial-gradient(700px 400px at 8% 100%, rgba(242,149,89,.1), transparent 55%),
    linear-gradient(165deg, var(--dark-2), var(--dark-1));
  color: var(--dark-text);
}
.dark h2, .dark h3 { color: #fff; }
.dark p { color: var(--dark-text); }
.dark .muted, .dark .case-body p { color: var(--dark-muted); }

/* ---------- Diff list (perché snasto) ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .diff-grid { grid-template-columns: 1fr; } }
.diff {
  border: 1px solid var(--dark-line); border-radius: var(--r-lg); padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  transition: transform .3s var(--ease), border-color .3s;
}
.diff:hover { transform: translateY(-4px); border-color: rgba(0,185,194,.5); }
.diff h3 { font-size: 1.08rem; display: flex; gap: 12px; align-items: baseline; }
.diff h3::before { content: "✓"; color: var(--teal); font-weight: 800; }
.diff p { font-size: .93rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  margin-bottom: 14px; overflow: hidden; transition: border-color .3s;
}
.faq details[open] { border-color: rgba(0,185,194,.5); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--teal);
  transition: transform .3s var(--ease); flex: none; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 24px 22px; color: var(--muted); }
.faq .faq-a p { margin-bottom: .7em; }

/* ---------- Story / chi siamo ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.founder-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); }
.founder-card b { font-size: 1.08rem; color: var(--ink); display: block; }
.founder-card .role { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); display: block; margin: 4px 0 10px; }
.founder-card p { font-size: .9rem; color: var(--muted); margin: 0; }

.quote-block {
  border-left: 4px solid var(--teal); background: var(--bg-warm);
  border-radius: 0 var(--r) var(--r) 0; padding: 26px 30px; margin: 30px 0;
}
.quote-block p { font-family: var(--font-accent); font-style: italic; font-size: 1.25rem; color: var(--ink); margin: 0 0 10px; line-height: 1.5; }
.quote-block cite { font-style: normal; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- CTA finale ---------- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); max-width: 20ch; margin: 0 auto .4em; }
.cta-final .lead { max-width: 52ch; margin: 0 auto 1.6em; }
.cta-final .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--dark-1); color: var(--dark-muted); padding: 70px 0 34px; font-size: .92rem; }
.footer a { color: var(--dark-text); }
.footer a:hover { color: #5FD9DF; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 46px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--mono); font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer .f-logo img { height: 36px; margin-bottom: 16px; }
.footer .f-claim { font-family: var(--font-accent); font-style: italic; font-weight: 600; font-size: 1.25rem; color: #fff; margin: 0 0 10px; }
.footer .f-claim::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--orange)); margin-top: 10px; }
.footer .f-desc { max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .8rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.65);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.1) rotate(6deg); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float .wa-tip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.wa-float:hover .wa-tip { opacity: 1; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.post-card > img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .ph-logo { height: 30px !important; width: auto !important; aspect-ratio: auto; object-fit: contain; opacity: .55; }
.post-card .post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.05rem; line-height: 1.35; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--teal-deep); }
.post-meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.post-meta .cat { color: var(--teal-deep); }
.post-card p { font-size: .9rem; color: var(--muted); flex: 1; }

/* article page */
.article-hero { padding: 150px 0 40px; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 850px; }
.article-body { max-width: 780px; margin: 0 auto; font-size: 1.06rem; }
.article-body img { border-radius: var(--r); margin: 28px auto; box-shadow: var(--shadow); }
.article-body h2 { font-size: 1.65rem; margin-top: 1.8em; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.5em; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 1.2em; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote { border-left: 4px solid var(--teal); margin: 1.6em 0; padding: 4px 0 4px 22px; color: var(--muted); font-style: italic; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .92rem; }
.article-body th { background: var(--teal); color: #fff; text-align: left; padding: 10px 14px; }
.article-body td { border-bottom: 1px solid var(--line); padding: 10px 14px; }
.article-body tr:nth-child(even) td { background: var(--bg-warm); }
.article-cta {
  margin: 44px 0 0; padding: 30px; border-radius: var(--r-lg); text-align: center;
  background: linear-gradient(135deg, rgba(0,185,194,.1), rgba(0,185,194,.03));
  border: 1px solid rgba(0,185,194,.3);
}
.article-cta h3 { margin-bottom: 8px; }
.article-cta p { color: var(--muted); margin-bottom: 18px; }

/* filtri blog */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; align-items: center; }
.chip {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; font-weight: 600;
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: .25s;
}
.chip:hover { border-color: var(--teal); color: var(--teal-deep); }
.chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.search-box { margin-left: auto; position: relative; }
.search-box input {
  font-family: var(--font); font-size: .9rem; padding: 10px 16px 10px 38px;
  border: 1.5px solid var(--line); border-radius: 999px; width: 230px; outline: none;
  transition: border-color .25s;
}
.search-box input:focus { border-color: var(--teal); }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font); font-size: .95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 15px; outline: none;
  transition: border-color .25s, box-shadow .25s; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,185,194,.12); }
.info-card { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 16px; background: #fff; box-shadow: var(--shadow); display: flex; gap: 16px; align-items: flex-start; }
.info-card .bento-ico { width: 44px; height: 44px; flex: none; }
.info-card b { display: block; color: var(--ink); margin-bottom: 3px; }
.info-card p, .info-card a { font-size: .92rem; margin: 0; color: var(--muted); }
.info-card a { color: var(--teal-deep); font-weight: 600; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--teal-deep); }
.crumbs span { margin: 0 8px; color: var(--line); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* number ticker */
.tick { font-variant-numeric: tabular-nums; }

/* ---------- Pinstripe divider ---------- */
.pin-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }

/* ---------- Sector grid ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
.sector {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  padding: 20px 20px; text-align: center; font-weight: 700; color: var(--ink); font-size: .95rem;
  transition: .3s var(--ease); box-shadow: var(--shadow);
}
.sector small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; margin-top: 4px; }
.sector:hover { transform: translateY(-4px); border-color: rgba(0,185,194,.5); }

/* ---------- TLDR strip ---------- */
.tldr {
  display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 26px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 32px; box-shadow: var(--shadow); margin-top: -56px; position: relative; z-index: 5;
}
.tldr .tldr-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); writing-mode: vertical-rl; transform: rotate(180deg); border-left: 2px solid var(--orange); padding-left: 0; padding-top: 0; border-right: 0; padding-right: 10px;}
.tldr-item b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 3px; }
.tldr-item p { font-size: .86rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) {
  .tldr { grid-template-columns: 1fr; gap: 18px; margin-top: 0; }
  .tldr .tldr-label { writing-mode: horizontal-tb; transform: none; border-left: 0; border-bottom: 2px solid var(--orange); padding: 0 0 6px; }
}

/* ---------- Table of prices/what you get ---------- */
.get-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.get-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.get-list li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(0,185,194,.13); color: var(--teal-deep); font-weight: 800; font-size: .8rem; margin-top: 2px; }

/* Print & reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   V2 — Firma visiva Snasto: componenti aggiunti
   ============================================================ */

/* ---------- Word rotator ("è intesa. è intuito.") ---------- */
.rotator { display: inline-grid; text-align: left; vertical-align: bottom; overflow: hidden; }
.rotator span { grid-area: 1/1; opacity: 0; transform: translateY(110%); animation: rot 12s infinite; color: var(--teal); font-family: var(--font-accent); font-style: italic; white-space: nowrap; }
.rotator span:nth-child(2) { animation-delay: 2s; }
.rotator span:nth-child(3) { animation-delay: 4s; }
.rotator span:nth-child(4) { animation-delay: 6s; }
.rotator span:nth-child(5) { animation-delay: 8s; }
.rotator span:nth-child(6) { animation-delay: 10s; }
@keyframes rot {
  0% { opacity: 0; transform: translateY(110%); }
  3%, 14% { opacity: 1; transform: translateY(0); }
  17%, 100% { opacity: 0; transform: translateY(-110%); }
}

/* ---------- Marker: sottolineatura pennellata animata ---------- */
.marker { position: relative; white-space: nowrap; }
.marker svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .38em; overflow: visible; }
.marker svg path { fill: none; stroke: var(--orange); stroke-width: 7; stroke-linecap: round; opacity: .9;
  stroke-dasharray: 320; stroke-dashoffset: 320; }
.in .marker svg path, .marker.in svg path { animation: draw 1s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Chat demo (hero + agenti) ---------- */
.chat-demo {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--dark-line); border-radius: 26px; padding: 22px;
  max-width: 430px; width: 100%; backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--dark-line); margin-bottom: 14px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--teal-deep)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .9rem; }
.chat-head b { color: #fff; font-size: .92rem; display: block; }
.chat-head small { color: #6ADB84; font-size: .72rem; font-family: var(--mono); display: flex; align-items: center; gap: 5px; }
.chat-head small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6ADB84; }
.chat-body { display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: .86rem; line-height: 1.45; opacity: 0; transform: translateY(12px) scale(.97); }
.chat-demo.play .msg { animation: msgin .5s var(--ease) forwards; }
.msg.in-msg { background: rgba(255,255,255,.09); color: #E8F4F5; border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.out-msg { background: var(--teal); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg .msg-time { display: block; font-size: .62rem; opacity: .65; margin-top: 4px; font-family: var(--mono); }
@keyframes msgin { to { opacity: 1; transform: none; } }
.typing { display: inline-flex; gap: 4px; padding: 12px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9fc3c7; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
.chat-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--dark-line); font-family: var(--mono); font-size: .68rem; color: var(--dark-muted); text-align: center; }

/* hero split layout */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
@media (max-width: 1020px) { .hero-grid { grid-template-columns: 1fr; } .hero-grid .chat-demo { margin: 10px auto 0; } }

/* ---------- Trust badges accanto alle CTA ---------- */
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 18px; }
.trust-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--dark-muted); }
.trust-chip svg, .trust-chip .star { color: var(--orange); width: 15px; height: 15px; }
.light-trust .trust-chip { color: var(--muted); }
.stars { color: var(--orange); letter-spacing: 2px; font-size: .85rem; }

/* ---------- Logo wall clienti (testuale, elegante) ---------- */
.client-wall { display: flex; flex-wrap: wrap; gap: 12px 34px; align-items: center; justify-content: center; }
.client-wall span { font-family: var(--mono); font-size: .86rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9DB4B8; transition: color .3s; white-space: nowrap; }
.client-wall span:hover { color: var(--teal); }
.client-wall span b { color: var(--teal); font-weight: 600; }

/* ---------- Tools marquee (loghi reali) ---------- */
.tools-marquee { overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tools-track { display: flex; gap: 64px; width: max-content; align-items: center; animation: marquee 45s linear infinite; }
.tools-track img { height: 44px; width: auto; opacity: .8; transition: opacity .3s, transform .3s; }
.tools-track img:hover { opacity: 1; transform: scale(1.08); }
.tools-marquee:hover .tools-track { animation-play-state: paused; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card.team-wide { grid-column: span 2; }
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.team-photo { position: relative; aspect-ratio: 4/4.6; overflow: hidden; }
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-photo .ph-color { opacity: 0; transition: opacity .5s var(--ease); }
.team-card:hover .ph-color { opacity: 1; }
.team-body { padding: 16px 18px 18px; }
.team-body b { display: block; color: var(--ink); font-size: .98rem; }
.team-body .role { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); display: block; margin: 3px 0 7px; }
.team-body p { font-size: .8rem; color: var(--muted); margin: 0; }

/* ---------- Risultati verificati (proof cards) ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .proof-grid { grid-template-columns: 1fr; } }
.proof {
  border-left: 4px solid var(--teal); background: #fff; border-radius: 0 var(--r) var(--r) 0;
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.proof .p-metric { font-size: 1.7rem; font-weight: 800; color: var(--teal-deep); letter-spacing: -.02em; }
.proof p { font-size: .92rem; color: var(--muted); margin: 8px 0 12px; }
.proof cite { font-style: normal; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.proof cite small { display: block; color: var(--muted); }
.dark .proof, .on-dark .proof { background: rgba(255,255,255,.05); border-color: var(--dark-line); border-left-color: var(--teal); }
.dark .proof cite { color: #fff; }

/* ---------- Urgenza / ribbon bando ---------- */
.ribbon {
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center;
  background: linear-gradient(90deg, var(--orange), var(--orange-deep));
  color: #fff; border-radius: var(--r); padding: 16px 26px; box-shadow: 0 16px 36px -14px rgba(230,126,47,.55);
}
.ribbon b { font-size: 1.02rem; }
.ribbon .rb-count { font-family: var(--mono); font-weight: 600; background: rgba(255,255,255,.18); border-radius: 10px; padding: 6px 12px; font-size: .85rem; }
.ribbon a { color: #fff !important; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Offer stack ---------- */
.stack { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); overflow: hidden; }
.stack-head { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; padding: 26px 30px; }
.stack-head h3 { color: #fff; margin: 0 0 4px; }
.stack-head p { margin: 0; opacity: .92; font-size: .93rem; }
.stack ul { list-style: none; margin: 0; padding: 12px 30px; }
.stack li { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.stack li:last-child { border-bottom: 0; }
.stack li b { color: var(--ink); font-weight: 700; }
.stack li small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.stack li .val { font-family: var(--mono); color: var(--teal-deep); font-weight: 600; white-space: nowrap; }
.stack-foot { background: var(--bg-warm); border-top: 1px solid var(--line); padding: 22px 30px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.stack-foot .price { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.stack-foot .price small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); font-family: var(--mono); }

/* ---------- Garanzia box ---------- */
.guarantee {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  border: 2px solid var(--teal); border-radius: var(--r-lg); padding: 26px 30px;
  background: linear-gradient(135deg, rgba(0,185,194,.07), transparent);
}
.guarantee .g-seal {
  width: 84px; height: 84px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-family: var(--mono); font-size: .6rem; font-weight: 600;
  text-align: center; line-height: 1.3; letter-spacing: .06em; flex: none;
  box-shadow: 0 12px 30px -10px rgba(0,185,194,.6); animation: sealspin 14s linear infinite;
}
@keyframes sealspin { 0%,100% { transform: rotate(-6deg);} 50% { transform: rotate(6deg);} }
.guarantee h3 { margin-bottom: 6px; }
.guarantee p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .guarantee { grid-template-columns: 1fr; } }
.dark .guarantee, .on-dark .guarantee { background: rgba(0,185,194,.08); }
.dark .guarantee p { color: var(--dark-text); }

/* ---------- Mock ChatGPT (prova GEO) ---------- */
.gpt-mock { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lift); padding: 26px 28px; font-size: .92rem; }
.gpt-mock .gm-q { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; font-weight: 700; color: var(--ink); }
.gpt-mock .gm-q::before { content: "TU"; font-family: var(--mono); font-size: .62rem; background: var(--bg-warm); border: 1px solid var(--line); border-radius: 8px; padding: 4px 7px; color: var(--muted); flex: none; margin-top: 2px; }
.gpt-mock .gm-a { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.gpt-mock .gm-a::before { content: "AI"; font-family: var(--mono); font-size: .62rem; background: var(--teal); border-radius: 8px; padding: 4px 8px; color: #fff; flex: none; margin-top: 2px; }
.gpt-mock .gm-a mark { background: rgba(0,185,194,.16); color: var(--teal-deep); font-weight: 700; padding: 1px 5px; border-radius: 5px; }
.gpt-mock .gm-note { font-family: var(--mono); font-size: .66rem; color: var(--muted); text-align: right; margin-top: 14px; letter-spacing: .05em; }

/* ---------- Sezione foto team gruppo ---------- */
.photo-band { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lift); position: relative; }
.photo-band img { width: 100%; display: block; }
.photo-band .pb-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 28px 20px; background: linear-gradient(transparent, rgba(4,22,25,.85)); color: #fff; font-weight: 600; font-size: .95rem; }

/* ---------- Correlati ---------- */
.related { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 30px; }
.related h3 { font-size: 1.15rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid a { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: block; color: var(--ink); font-weight: 700; font-size: .88rem; line-height: 1.4; background: #fff; transition: .3s var(--ease); }
.related-grid a:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow); }
.related-grid a small { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 6px; font-weight: 600; }

/* ---------- Caso studio: blocco sfida/soluzione/impatto ---------- */
.csi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 34px; }
@media (max-width: 760px) { .csi { grid-template-columns: 1fr; } }
.csi > div { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; background: var(--bg-warm); }
.csi b { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); display: block; margin-bottom: 8px; }
.csi p { font-size: .92rem; margin: 0; color: var(--text); }
.csi .csi-impact { background: linear-gradient(135deg, rgba(0,185,194,.1), rgba(0,185,194,.03)); border-color: rgba(0,185,194,.35); }

/* ---------- Statement gigante (stile IG) ---------- */
.statement { font-size: clamp(1.9rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; text-transform: uppercase; color: var(--ink); }
.statement .st-hl { color: var(--orange-deep); }
.statement .st-box { background: var(--teal); color: #fff; padding: 0 .18em; border-radius: .12em; display: inline-block; transform: rotate(-1.2deg); }
.dark .statement { color: #fff; }

/* ---------- Download / lead magnet ---------- */
.magnet { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: linear-gradient(135deg, var(--dark-2), var(--dark-3)); border: 1px solid var(--dark-line); border-radius: var(--r-lg); padding: 28px 32px; color: var(--dark-text); }
.magnet .m-ico { width: 66px; height: 66px; border-radius: 18px; background: rgba(242,149,89,.15); border: 1px solid rgba(242,149,89,.4); display: grid; place-items: center; color: var(--orange); }
.magnet .m-ico svg { width: 32px; height: 32px; }
.magnet h3 { color: #fff; margin: 0 0 4px; font-size: 1.15rem; }
.magnet p { margin: 0; font-size: .9rem; color: var(--dark-muted); }
@media (max-width: 860px) { .magnet { grid-template-columns: 1fr; text-align: center; } .magnet .m-ico { margin: 0 auto; } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--orange)); width: 0; z-index: 200; transition: width .1s linear; }

/* ---------- SVG line draw method ---------- */
.step-line { position: absolute; left: 33px; top: 90px; bottom: 40px; width: 2px; background: linear-gradient(180deg, var(--teal), transparent); opacity: 0; transition: opacity 1s; }
@media (max-width: 640px) { .step-line { display: none; } }

/* footer 5 col */
@media (min-width: 901px) { .footer-grid.cols-5 { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; } }

/* ============ Sistema Snasto a 3 pannelli (hero V3) ============ */
.sys-demo { position: relative; }
.sys-demo .chat-body { min-height: 236px; }
.sys-panels { position: relative; min-height: 268px; }
.sys-panel { position: absolute; inset: 0; opacity: 0; transform: translateX(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.sys-panel.active { opacity: 1; transform: none; pointer-events: auto; }
.sys-tabs { display: flex; gap: 8px; margin-left: auto; }
.sys-tabs i { width: 22px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); transition: background .4s; }
.sys-tabs i.on { background: var(--teal); }
.sys-title { transition: opacity .4s; }

/* pannello assessment */
.scan-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 9px 0; border-bottom: 1px dashed var(--dark-line); opacity: 0; transform: translateY(8px); }
.sys-panel.active .scan-row { animation: msgin .5s var(--ease) forwards; }
.sys-panel.active .scan-row:nth-child(2) { animation-delay: .7s; }
.sys-panel.active .scan-row:nth-child(3) { animation-delay: 1.4s; }
.sys-panel.active .scan-row:nth-child(4) { animation-delay: 2.1s; }
.scan-row b { color: #E8F4F5; font-size: .84rem; font-weight: 600; }
.scan-row .scan-out { font-family: var(--mono); font-size: .74rem; color: #6ADB84; white-space: nowrap; }
.scan-row .scan-was { display: block; font-family: var(--mono); font-size: .68rem; color: var(--dark-muted); }
.scan-bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.scan-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--orange), var(--teal)); }
.sys-panel.active .scan-bar i { animation: scanfill 1.1s .3s var(--ease) forwards; }
.sys-panel.active .scan-row:nth-child(2) .scan-bar i { animation-delay: 1s; }
.sys-panel.active .scan-row:nth-child(3) .scan-bar i { animation-delay: 1.7s; }
.sys-panel.active .scan-row:nth-child(4) .scan-bar i { animation-delay: 2.4s; }
@keyframes scanfill { to { width: var(--w-bar, 70%); } }

/* pannello automazione */
.flow { display: flex; flex-direction: column; gap: 0; padding-top: 6px; }
.flow-node { display: flex; gap: 12px; align-items: flex-start; opacity: 0; transform: translateY(8px); }
.sys-panel.active .flow-node { animation: msgin .5s var(--ease) forwards; }
.sys-panel.active .flow-node:nth-child(2) { animation-delay: .9s; }
.sys-panel.active .flow-node:nth-child(3) { animation-delay: 1.8s; }
.sys-panel.active .flow-node:nth-child(4) { animation-delay: 2.7s; }
.flow-dot { width: 34px; display: flex; flex-direction: column; align-items: center; flex: none; }
.flow-dot span { width: 30px; height: 30px; border-radius: 10px; background: rgba(0,185,194,.13); border: 1px solid rgba(0,185,194,.4); color: #5FD9DF; display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.flow-dot::after { content: ""; width: 2px; flex: 1; min-height: 16px; background: linear-gradient(180deg, rgba(0,185,194,.5), rgba(0,185,194,.1)); }
.flow-node:last-child .flow-dot::after { display: none; }
.flow-node b { color: #E8F4F5; font-size: .85rem; display: block; }
.flow-node small { color: var(--dark-muted); font-size: .74rem; display: block; padding-bottom: 14px; }
.flow-node .ok { color: #6ADB84; font-family: var(--mono); font-size: .7rem; }

/* ============ Cookie banner ============ */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; display: flex; justify-content: center; }
.cookie-inner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); padding: 20px 26px; max-width: 780px; width: 100%;
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
}
.cookie-inner p { margin: 0; flex: 1; min-width: 260px; font-size: .88rem; color: var(--muted); }
.cookie-inner p a { font-weight: 700; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: .88rem; }

/* ============ Guardia responsive per griglie con stile inline ============ */
@media (max-width: 960px) {
  [style*="grid-template-columns:repeat(3"], [style*="grid-template-columns:repeat(5"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 700px) {
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ============ Card percorsi formazione ============ */
.path-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.path-meta span { font-family: var(--mono); font-size: .67rem; letter-spacing: .05em; text-transform: uppercase; background: rgba(0,185,194,.1); color: var(--teal-deep); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.path-card .bento-ico { margin-bottom: 4px; }
.path-card .p-tagline { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); display: block; margin-bottom: 6px; }

/* ============ Assessment explorer (accordion interattivo) ============ */
.ax { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.ax-item { border-bottom: 1px solid var(--line); }
.ax-item:last-child { border-bottom: 0; }
.ax-head { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 16px 20px; font-family: var(--font); transition: background .25s; }
.ax-head:hover { background: rgba(0,185,194,.05); }
.ax-head b { flex: 1; font-size: 1.02rem; color: var(--ink); }
.ax-num { font-family: var(--mono); font-size: .7rem; font-weight: 700; color: var(--orange-deep); }
.ax-ico { width: 38px; height: 38px; border-radius: 12px; background: rgba(0,185,194,.1); border: 1px solid rgba(0,185,194,.3); color: var(--teal-deep); display: flex; align-items: center; justify-content: center; flex: none; transition: background .3s, color .3s; }
.ax-ico svg { width: 19px; height: 19px; }
.ax-item.open .ax-ico { background: var(--teal); color: #fff; }
.ax-plus { position: relative; width: 16px; height: 16px; flex: none; }
.ax-plus::before, .ax-plus::after { content: ""; position: absolute; background: var(--teal-deep); border-radius: 2px; transition: transform .35s var(--ease); }
.ax-plus::before { left: 0; right: 0; top: 7px; height: 2.5px; }
.ax-plus::after { top: 0; bottom: 0; left: 7px; width: 2.5px; }
.ax-item.open .ax-plus::after { transform: scaleY(0); }
.ax-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.ax-item.open .ax-body { grid-template-rows: 1fr; }
.ax-inner { overflow: hidden; padding: 0 20px 0 72px; }
.ax-item.open .ax-inner { padding-bottom: 18px; }
.ax-inner p { font-size: .93rem; color: var(--muted); margin: 0 0 12px; }
.ax-out { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--teal-deep); background: rgba(0,185,194,.08); border: 1px dashed rgba(0,185,194,.4); border-radius: 999px; padding: 7px 14px; }
.ax-out svg { width: 13px; height: 13px; flex: none; }
@media (max-width: 700px) { .ax-inner { padding-left: 20px; } }

/* card caso reale (mini) */
.case-mini { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.case-mini::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--orange)); }
.cm-chip { display: inline-block; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); background: rgba(242,149,89,.12); border-radius: 999px; padding: 5px 12px; }
.cm-chip.alt { color: var(--teal-deep); background: rgba(0,185,194,.1); }
.cm-metric { font-size: 2.4rem; font-weight: 800; color: var(--teal-deep); letter-spacing: -.02em; line-height: 1; margin: 14px 0 4px; }
.cm-metric small { display: block; font-size: .72rem; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-deep); margin-top: 6px; }
.case-mini h3 { font-size: 1.1rem; margin: 10px 0 8px; }
.case-mini p { font-size: .92rem; color: var(--muted); margin: 0 0 12px; }
.cm-foot { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; color: var(--muted); border-top: 1px dashed var(--line); display: block; padding-top: 12px; }

/* "Cosa serve da te" (Q3: lo sforzo del cliente, dichiarato) */
.need-you { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px 28px; }
.need-you .ny-title { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); font-weight: 700; margin: 0 0 14px; }
.need-you .ny-title svg { width: 16px; height: 16px; }
.ny-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .ny-grid { grid-template-columns: 1fr; } }
.ny-grid b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 3px; }
.ny-grid p { margin: 0; font-size: .88rem; color: var(--muted); }

/* "Tra sei mesi" (Q4: la scena del dopo, dentro la CTA finale) */
.as-eyebrow { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #5FD9DF; margin: 22px 0 12px; }
.as-list { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 660px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.as-list li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.05); border: 1px solid var(--dark-line); border-radius: 14px; padding: 13px 18px; font-size: .98rem; color: #C6DADD; line-height: 1.5; }
.as-list li svg { width: 16px; height: 16px; color: #6ADB84; flex: none; margin-top: 4px; }
.as-list b { color: #fff; }

/* riga di vita nei casi in evidenza (Q4) */
.case-life { font-family: var(--font-accent); font-style: italic; font-size: .93rem; color: var(--teal-deep); margin: -4px 0 12px; }

/* track record assessment */
.tr-band { display: flex; align-items: center; gap: 26px; background: linear-gradient(120deg, var(--dark-2), var(--dark-3)); border: 1px solid var(--dark-line); border-radius: var(--r-lg); padding: 24px 32px; margin-bottom: 26px; }
.tr-band b { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(90deg, var(--teal), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; flex: none; }
.tr-band p { margin: 0; color: #C6DADD; font-size: 1.02rem; max-width: 62ch; }
.tr-band strong { color: #fff; }
@media (max-width: 700px) { .tr-band { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 24px; } }
.tr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 960px) { .tr-grid { grid-template-columns: 1fr; } }
.tr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tr-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.tr-card h3 { font-size: 1.16rem; margin: 12px 0 2px; }
.tr-lab { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); margin: 12px 0 3px !important; }
.tr-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.tr-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; color: var(--teal-deep); border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 13px; }
.tr-status svg { width: 14px; height: 14px; flex: none; }
.tr-status.link { color: var(--orange-deep); font-weight: 700; text-decoration: none; }
.tr-status.link:hover { text-decoration: underline; }

/* nota bandi (sostituisce il ribbon fuori posto) */
.grant-note { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); margin-top: 18px; }
.grant-note .gn-ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(242,149,89,.13); color: var(--orange-deep); display: flex; align-items: center; justify-content: center; flex: none; }
.grant-note .gn-ico svg { width: 20px; height: 20px; }
.grant-note b { color: var(--ink); display: block; margin-bottom: 4px; }
.grant-note p { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.grant-note .link-arrow { font-size: .88rem; }

/* ============ Scena di profondità (sfondo parallasse) ============ */
.bg-scene { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; background: var(--bg); }
.bg-scene .grid-layer { position: absolute; inset: -60px; background-image: radial-gradient(rgba(6,42,46,.09) 1px, transparent 1.4px); background-size: 34px 34px; }
.bg-scene .orb { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.bg-scene .orb-1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(0,185,194,.38), transparent 62%); top: -160px; left: -140px; }
.bg-scene .orb-2 { width: 680px; height: 680px; background: radial-gradient(circle, rgba(242,149,89,.30), transparent 62%); top: 30%; right: -260px; }
.bg-scene .orb-3 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,122,128,.32), transparent 62%); bottom: -180px; left: 20%; }
.bg-scene .ring { position: absolute; width: 740px; height: 740px; border-radius: 50%; border: 1.5px dashed rgba(0,122,128,.16); top: 16%; left: -280px; }
.bg-scene .ring.r2 { width: 520px; height: 520px; top: auto; bottom: -190px; left: auto; right: -170px; border-color: rgba(229,118,47,.16); }
/* le sezioni chiare diventano veli traslucidi: la scena respira dietro */
body { background: transparent; }
.section-warm { background: rgba(244,248,248,.82); backdrop-filter: blur(2px); }
.dark.section, section.dark { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .bg-scene .orb, .bg-scene .ring, .bg-scene .grid-layer { transform: none !important; } }

/* ============ Rail: scorrimento orizzontale ============ */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(330px, 80vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 64px), transparent); }
.rail.at-start { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 64px), transparent); }
.rail.at-end { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 100%); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; transition: transform .45s var(--ease), opacity .45s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.rail > .rail-dim { transform: scale(.94); opacity: .45; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging > * { pointer-events: none; }
.rail.rail-lg { grid-auto-columns: min(380px, 85vw); }

/* frecce flottanti a metà altezza */
.rail-nav button { position: absolute; top: 50%; margin-top: -37px; z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--teal-deep); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; transition: background .25s, color .25s, border-color .25s, opacity .25s; box-shadow: var(--shadow-lift); }
.rail-nav .rail-prev { left: -14px; }
.rail-nav .rail-next { right: -14px; }
.rail-nav button:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.rail-nav button:disabled { opacity: 0; pointer-events: none; }
.rail-wrap.fresh .rail-next:not(:disabled) { animation: railpulse 1.8s ease-in-out infinite; }
@keyframes railpulse { 0%,100% { box-shadow: var(--shadow-lift), 0 0 0 0 rgba(0,185,194,.45); } 55% { box-shadow: var(--shadow-lift), 0 0 0 14px rgba(0,185,194,0); } }

/* chip "Scorri" + barra di progresso */
.rail-hint { position: absolute; right: 4px; top: -44px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--teal-deep); background: rgba(0,185,194,.1); border: 1px solid rgba(0,185,194,.35); border-radius: 999px; padding: 7px 14px; pointer-events: none; transition: opacity .45s; }
.rail-hint i { font-style: normal; animation: hintarrow 1.1s ease-in-out infinite; }
@keyframes hintarrow { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.rail-wrap.touched .rail-hint { opacity: 0; }
.rail-progress { height: 4px; border-radius: 2px; background: rgba(6,42,46,.09); margin: 4px 4px 0; position: relative; overflow: hidden; }
.rail-progress i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--orange)); width: 30%; will-change: transform; }

.rail .sector { min-height: 128px; display: flex; flex-direction: column; justify-content: center; }
.rail .case-card, .rail .b-card { height: 100%; }
@media (max-width: 700px) {
  .rail-nav { display: none; }
  .rail-hint { top: -40px; right: 0; }
  /* full-bleed: la corsia arriva ai bordi dello schermo, la card dopo fa capolino */
  .rail { grid-auto-columns: 76vw; margin: 0 calc(50% - 50vw); padding-left: max(22px, calc(50vw - 50%)); padding-right: 22px; scroll-padding-left: max(22px, calc(50vw - 50%)); }
}

/* ============ Router: smistamento in home ============ */
.route-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1020px) { .route-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .route-grid { grid-template-columns: 1fr; } }
.route-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--text); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.route-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--orange)); opacity: 0; transition: opacity .3s; }
.route-card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: var(--shadow-lift); border-color: rgba(0,185,194,.5); }
.route-card:hover::before { opacity: 1; }
.route-card .rq { font-family: var(--font-accent); font-style: italic; font-size: 1.22rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.route-card p { font-size: .88rem; color: var(--muted); margin: 0; flex: 1; }
.route-card .rgo { font-weight: 800; font-size: .92rem; color: var(--teal-deep); display: flex; align-items: center; gap: 7px; }
.route-card:hover .rgo { color: var(--orange-deep); }
.route-card .rgo svg { width: 15px; height: 15px; flex: 0 0 auto; transition: transform .3s; }
.route-card:hover .rgo svg { transform: translateX(5px); }
.route-more { text-align: center; margin-top: 22px; font-size: .92rem; color: var(--muted); }
.route-more a { font-weight: 700; }

/* ============ Fascia CTA tra le sezioni ============ */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; background: linear-gradient(120deg, var(--dark-2), var(--dark-3)); border: 1px solid var(--dark-line); border-radius: var(--r-lg); padding: 26px 32px; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(0,185,194,.25), transparent 65%); top: -140px; right: -60px; }
.cta-band p { margin: 0; color: #fff; font-weight: 700; font-size: 1.12rem; max-width: 560px; line-height: 1.4; }
.cta-band .cb-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff !important; }
.cta-band .btn-ghost:hover { border-color: var(--teal); color: #5FD9DF !important; }
@media (max-width: 700px) { .cta-band { padding: 24px 22px; } .cta-band .cb-actions { width: 100%; } .cta-band .cb-actions .btn { flex: 1; justify-content: center; } }

/* ============ Reveal: varianti direzionali ============ */
.reveal.rv-l { transform: translateX(-42px); }
.reveal.rv-r { transform: translateX(42px); }
.reveal.rv-zoom { transform: scale(.92); }
.reveal.in.rv-l, .reveal.in.rv-r, .reveal.in.rv-zoom { transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0s; }
.stagger.in > *:nth-child(2) { transition-delay: .12s; }
.stagger.in > *:nth-child(3) { transition-delay: .24s; }
.stagger.in > *:nth-child(4) { transition-delay: .36s; }
.stagger.in > *:nth-child(5) { transition-delay: .48s; }
.stagger.in > *:nth-child(6) { transition-delay: .6s; }

/* ============ Grafici d'impatto (visual storytelling) ============ */
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1020px) { .impact-grid { grid-template-columns: 1fr; } }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.chart-card .ck { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }
.chart-card h3 { font-size: 1.12rem; margin: 0 0 6px; }
.chart-card .takeaway { font-size: .88rem; color: var(--muted); margin: 10px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.chart-card .takeaway b { color: var(--ink); }
.chart-card .c-src { font-family: var(--mono); font-size: .64rem; color: var(--muted); margin-top: 6px; }
.chart-card .c-src a { color: var(--muted); }
/* barre orizzontali animate */
.hbar { margin: 8px 0; }
.hbar .hb-label { display: flex; justify-content: space-between; align-items: baseline; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.hbar .hb-label .hb-val { font-family: var(--mono); font-weight: 700; color: var(--teal-deep); }
.hbar.warn .hb-label .hb-val { color: var(--orange-deep); }
.hbar .hb-track { height: 14px; border-radius: 7px; background: var(--bg-warm); overflow: hidden; }
.hbar .hb-fill { display: block; height: 100%; width: 0; border-radius: 7px 4px 4px 7px; background: var(--teal-deep); transition: width 1.4s var(--ease) .3s; }
.hbar.warn .hb-fill { background: var(--orange-deep); transition-delay: .55s; }
.reveal.in .hb-fill { width: var(--w-fill, 60%); }
/* linea di crescita SVG */
.growth-svg { width: 100%; height: auto; display: block; margin: 4px 0; }
.growth-svg .gline { fill: none; stroke: var(--teal-deep); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.reveal.in .growth-svg .gline { animation: gdraw 1.8s var(--ease) .3s forwards; }
@keyframes gdraw { to { stroke-dashoffset: 0; } }
.growth-svg .garea { fill: url(#gfill); opacity: 0; transition: opacity .8s 1.6s; }
.reveal.in .growth-svg .garea { opacity: 1; }
.growth-svg .gdot { fill: var(--orange-deep); stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity .4s 1.9s; }
.reveal.in .growth-svg .gdot { opacity: 1; }
.growth-svg text { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.growth-svg .gbig { font-family: var(--font); font-size: 20px; font-weight: 800; fill: var(--orange-deep); opacity: 0; transition: opacity .5s 2s; }
.reveal.in .growth-svg .gbig { opacity: 1; }

/* ---------- Hero proof: "show, don't tell" ---------- */
.hero-proof .scan-row { animation: msgin .5s var(--ease) forwards; }
.hero-proof .scan-row:nth-child(2) { animation-delay: .5s; }
.hero-proof .scan-row:nth-child(3) { animation-delay: 1s; }
.hero-proof .scan-row:nth-child(4) { animation-delay: 1.5s; }
.hero-proof .scan-bar i { animation: scanfill 1.1s .4s var(--ease) forwards; }
.hero-proof .scan-row:nth-child(2) .scan-bar i { animation-delay: .9s; }
.hero-proof .scan-row:nth-child(3) .scan-bar i { animation-delay: 1.4s; }
.hero-proof .scan-row:nth-child(4) .scan-bar i { animation-delay: 1.9s; }
.hero-proof .flow-node { animation: msgin .5s var(--ease) forwards; }
.hero-proof .flow-node:nth-child(2) { animation-delay: .7s; }
.hero-proof .flow-node:nth-child(3) { animation-delay: 1.4s; }
.hero-proof .flow-node:nth-child(4) { animation-delay: 2.1s; }
.ba-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 4px 10px; padding: 12px 0; border-bottom: 1px dashed var(--dark-line); }
.ba-row:last-child { border-bottom: 0; }
.ba-row b { color: #E8F4F5; font-size: .85rem; font-weight: 600; }
.ba-was { font-family: var(--mono); font-size: .76rem; color: var(--dark-muted); text-decoration: line-through; white-space: nowrap; }
.ba-arr { color: var(--orange); font-weight: 800; }
.ba-now { font-family: var(--mono); font-size: .82rem; color: #6ADB84; font-weight: 700; white-space: nowrap; }
.conto-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--dark-line); font-size: .9rem; color: #C6DADD; }
.conto-row span:last-child { font-family: var(--mono); white-space: nowrap; }
.conto-row.neg span:last-child { color: var(--orange); }
.conto-row.tot { border-bottom: 0; font-weight: 800; color: #fff; font-size: 1.06rem; }
.conto-row.tot span:last-child { color: #6ADB84; font-size: 1.15rem; }
@media (max-width: 760px) { .m-hide { display: none !important; } }
@media (max-width: 1020px) { .hero-grid .hero-proof, .hero-grid .chat-demo { margin: 18px auto 0; } }

/* ---------- Mini griglia statistiche (home) ---------- */
.stat-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-mini .bento-card { grid-column: auto; padding: 28px 26px 24px; }
.stat-mini .bento-card.full { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .stat-mini { grid-template-columns: 1fr; }
  .stat-mini .bento-card.full { grid-column: auto; }
}

/* ---------- Metodo-graf: il ciclo misura→correggi→ripeti (grafica animata,
   pagina metodo — sostituisce una foto ripetuta, vedi quaderno idee #2).
   La curva si disegna al reveal, i nodi spuntano in sequenza, il punto
   finale "pinga" all'infinito. Stile visivo della journey in home. ---------- */
.metodo-graf {
  background: linear-gradient(160deg, var(--dark-1), var(--dark-3));
  border: 1px solid rgba(95, 217, 223, .2); border-radius: var(--r-lg);
  padding: 20px 20px 16px; box-shadow: var(--shadow-lift); overflow: hidden;
}
.metodo-graf svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.metodo-graf .mg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.metodo-graf .mg-eyebrow { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #5FD9DF; }
.metodo-graf .mg-legend { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .6rem; letter-spacing: .05em; text-transform: uppercase; color: #8FA6AA; }
.metodo-graf .mg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.metodo-graf .mg-dot-t { background: #00B9C2; }
.metodo-graf .mg-dot-o { background: #F29559; }
.metodo-graf .mg-target { stroke: #F29559; stroke-width: 2; stroke-dasharray: 6 7; opacity: .8; animation: mgdash 26s linear infinite; }
@keyframes mgdash { to { stroke-dashoffset: -520; } }
.metodo-graf .mg-lab { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; fill: #F2B489; }
.metodo-graf .mg-line { stroke: url(#mggrad); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.reveal.in .metodo-graf .mg-line { animation: mgdraw 2.6s var(--ease) .3s forwards; }
@keyframes mgdraw { to { stroke-dashoffset: 0; } }
.metodo-graf .mg-node { opacity: 0; transform-box: fill-box; transform-origin: center; }
.metodo-graf .mg-node circle { fill: #07242A; stroke: #5FD9DF; stroke-width: 2.5; }
.metodo-graf .mg-node text { font-family: var(--mono); font-size: 10px; letter-spacing: .09em; fill: #8FE6EA; font-weight: 700; }
.reveal.in .metodo-graf .mg-node { animation: mgnode .5s cubic-bezier(.2, 1.5, .4, 1) forwards; }
.reveal.in .metodo-graf .mg-n1 { animation-delay: .9s; }
.reveal.in .metodo-graf .mg-n2 { animation-delay: 1.7s; }
.reveal.in .metodo-graf .mg-n3 { animation-delay: 2.5s; }
@keyframes mgnode { 0% { opacity: 0; transform: scale(.5); } 100% { opacity: 1; transform: none; } }
.metodo-graf .mg-end { opacity: 0; }
.reveal.in .metodo-graf .mg-end { animation: mgnode .4s var(--ease) 2.9s forwards; }
.metodo-graf .mg-final { fill: #fff; filter: drop-shadow(0 0 6px #5FD9DF); }
.metodo-graf .mg-ping { fill: none; stroke: #5FD9DF; stroke-width: 2; opacity: 0; }
.reveal.in .metodo-graf .mg-ping { animation: mgping 1.8s 3.2s ease-out infinite; }
@keyframes mgping { 0% { r: 6; opacity: .9; } 100% { r: 26; opacity: 0; } }
.metodo-graf .mg-caption { font-size: .88rem; color: #C6DADD; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(95, 217, 223, .25); }
@media (prefers-reduced-motion: reduce) {
  .metodo-graf .mg-line { stroke-dashoffset: 0; animation: none !important; }
  .metodo-graf .mg-node, .metodo-graf .mg-end { opacity: 1; animation: none !important; }
  .metodo-graf .mg-target { animation: none; }
  .metodo-graf .mg-ping { animation: none !important; }
}

/* ---------- Semaforo disponibilità servizi (badge nell'hero) ----------
   Il markup lo genera main.js §11 leggendo config.js → DISPONIBILITA.
   Lo slot [data-semaforo] resta vuoto (zero ingombro) se config manca. */
.dispo {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
  color: #DDEEF0; animation: dispoin .6s var(--ease) both;
}
@keyframes dispoin { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.dispo small { font-size: .58rem; color: var(--dark-muted); font-weight: 600; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .16); letter-spacing: .04em; }
.dispo-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; --pc: transparent; }
.dispo-verde  { border-color: rgba(52, 209, 123, .38); }
.dispo-giallo { border-color: rgba(242, 193, 78, .42); }
.dispo-rosso  { border-color: rgba(237, 106, 90, .42); }
.dispo-verde  .dispo-dot { background: #34D17B; --pc: rgba(52, 209, 123, .55); }
.dispo-giallo .dispo-dot { background: #F2C14E; --pc: rgba(242, 193, 78, .55); }
.dispo-rosso  .dispo-dot { background: #ED6A5A; }
.dispo-verde .dispo-dot, .dispo-giallo .dispo-dot { animation: dispopulse 2.2s ease-out infinite; }
@keyframes dispopulse {
  0% { box-shadow: 0 0 0 0 var(--pc); }
  70% { box-shadow: 0 0 0 9px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .dispo, .dispo-dot { animation: none !important; }
}

/* ============ Timeline eventi ============ */
.ev-year { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); opacity: .14; line-height: 1; margin: 40px 0 -6px; }
.ev-card {
  display: grid; grid-template-columns: 108px 1fr auto; gap: 24px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 28px; box-shadow: var(--shadow); margin-bottom: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.ev-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: rgba(0,185,194,.4); }
.ev-date { text-align: center; background: var(--bg-warm); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; }
.ev-date b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--teal-deep); line-height: 1.1; }
.ev-date span { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ev-body h3 { margin-bottom: 4px; font-size: 1.15rem; }
.ev-body .ev-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.ev-role { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 11px; font-weight: 600; }
.ev-role.org { background: rgba(0,185,194,.14); color: var(--teal-deep); }
.ev-role.cohost { background: rgba(242,149,89,.15); color: var(--orange-deep); }
.ev-role.guest { background: rgba(93,110,114,.12); color: var(--muted); }
.ev-loc { font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 0; display: inline-flex; align-items: center; gap: 5px; }
.ev-loc svg { width: 12px; height: 12px; flex: 0 0 auto; }
.ev-body p { font-size: .92rem; color: var(--muted); margin: 0; }
.ev-body .ev-partner { font-size: .8rem; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ev-body .ev-partner b { color: var(--ink); }
.ev-logo { align-self: center; }
.ev-logo img { max-width: 110px; max-height: 54px; width: auto; height: auto; object-fit: contain; }
.ev-logo .ev-logo-text { font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; text-align: center; border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; }
@media (max-width: 760px) {
  .ev-card { grid-template-columns: 84px 1fr; }
  .ev-logo { grid-column: 1 / -1; justify-self: start; }
}

/* home: strip eventi */
.ev-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ev-strip > .bento-card { grid-column: auto; }
@media (max-width: 960px) { .ev-strip { grid-template-columns: 1fr; } }

/* ---------- Caso studio: layout dedicato ---------- */
.cs-hero { padding: 150px 0 84px; }
.cs-hero h1 { max-width: 24ch; font-size: clamp(1.95rem, 4.4vw, 3.2rem); }
.cs-hero .lead { margin-top: 16px; }
.cs-hero .crumbs { color: var(--dark-muted); margin-bottom: 28px; }
.cs-hero .crumbs a { color: #8FE6EA; }
.cs-hero .crumbs span { color: rgba(255,255,255,.22); }
.kpi-band.k3 { grid-template-columns: repeat(3, 1fr); margin-top: 46px; }
@media (max-width: 860px) {
  .kpi-band.k3 { grid-template-columns: 1fr 1fr; }
  .kpi-band.k3 .kpi:last-child { grid-column: span 2; }
}
.cs-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 5vw, 76px); align-items: start; }
.cs-prob { position: sticky; top: 96px; }
.cs-prob h2 { margin: 6px 0 16px; }
.cs-prob p { color: var(--muted); max-width: 52ch; }
.cs-steps { margin-top: 10px; }
.cs-steps .step { padding: 24px 0; grid-template-columns: 68px 1fr; gap: 20px; }
.cs-steps .step-num::before { width: 54px; height: 54px; font-size: 1.15rem; border-radius: 16px; }
.cs-steps .step h3 { font-size: 1.12rem; }
@media (max-width: 900px) {
  .cs-split { grid-template-columns: 1fr; }
  .cs-prob { position: static; }
}
.cs-vita { text-align: center; max-width: 800px; margin: 0 auto; padding: 8px 18px; }
.cs-vita small { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); font-weight: 600; }
.cs-vita p { font-family: var(--font-accent); font-style: italic; font-weight: 600; font-size: clamp(1.35rem, 2.7vw, 1.9rem); color: var(--teal-deep); line-height: 1.45; margin: 14px 0 0; }
.cs-vita p::before { content: "«\00a0"; color: var(--orange); }
.cs-vita p::after { content: "\00a0»"; color: var(--orange); }

/* hub casi studio */
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1020px) { .cs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .cs-grid { grid-template-columns: 1fr; } }
.cs-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 24px 20px; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.cs-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: rgba(0,185,194,.45); }
.cs-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cs-top .cat { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); background: rgba(0,185,194,.09); border: 1px solid rgba(0,185,194,.25); border-radius: 999px; padding: 4px 11px; font-weight: 600; }
.cs-anno { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.cs-stat { border-bottom: 1px dashed var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.cs-stat b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(92deg, var(--teal-deep), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cs-stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.cs-card h3 { font-size: 1.08rem; line-height: 1.35; margin: 0 0 8px; }
.cs-card h3 a { color: var(--ink); }
.cs-card h3 a:hover { color: var(--teal-deep); }
.cs-card > p { font-size: .9rem; color: var(--muted); margin: 0 0 14px; flex: 1; }
.cs-card .link-arrow { margin-top: auto; }

/* ---------- Caso studio v2: percorso animato, numeri, pager ---------- */
.cs-prob-txt p { color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.cs-prob-txt p:first-child { color: var(--ink); font-size: 1.14rem; }

/* percorso scroll-animato */
.cs-journey { overflow: hidden; }
.cs-journey, .cs-journey * { overflow-anchor: none; }
.csj-hint { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); margin-top: 10px; animation: csjbob 2.6s ease-in-out infinite; display: inline-block; }
@keyframes csjbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.csj-wrap { position: relative; display: grid; grid-template-columns: 130px 1fr; margin-top: 44px; }
.csj-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 130px; pointer-events: none; }
.csj-rail svg { position: absolute; inset: 0; overflow: visible; }
.csj-track { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 7; }
.csj-draw { fill: none; stroke: url(#csjgrad); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(0,185,194,.35)); }
.csj-dotp { fill: #fff; stroke: var(--line); stroke-width: 2; transition: stroke .4s, fill .4s; }
.csj-dotp.lit { fill: var(--teal); stroke: var(--teal); filter: drop-shadow(0 0 7px rgba(0,185,194,.55)); }
.csj-comet { fill: var(--orange); filter: drop-shadow(0 0 8px rgba(242,149,89,.8)); }
.csj-steps { grid-column: 2; display: flex; flex-direction: column; gap: clamp(48px, 8vh, 90px); padding: 10px 0 10px clamp(4px, 2vw, 26px); }
.csj-step { max-width: 62ch; }
.csj-step .csj-num { font-family: var(--mono); font-weight: 700; font-size: .82rem; color: var(--teal-deep); background: rgba(0,185,194,.1); border: 1px solid rgba(0,185,194,.3); border-radius: 10px; padding: 5px 11px; display: inline-block; margin-bottom: 12px; }
.csj-step h3 { font-size: 1.28rem; margin: 0 0 8px; }
.csj-step p { color: var(--muted); margin: 0; line-height: 1.7; }
.csj-final { position: relative; background: linear-gradient(150deg, var(--dark-1), var(--dark-2)); border-radius: var(--r-lg); padding: 40px 42px; color: #fff; max-width: 520px; box-shadow: var(--shadow-lift); overflow: hidden; }
.csj-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at 85% 10%, rgba(0,185,194,.3), transparent 65%); }
.csj-flag { position: relative; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #F7B98B; display: block; margin-bottom: 8px; }
.csj-final b { position: relative; display: block; font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; background: linear-gradient(92deg, #7EE0E5, var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.csj-final .csj-fl { position: relative; color: var(--dark-muted); font-weight: 600; font-size: .95rem; }
/* stati (attivati da JS; senza JS resta tutto visibile) */
.csj-on .csj-step { opacity: .22; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.csj-on .csj-step.on { opacity: 1; transform: none; }
.csj-on .csj-final { opacity: .18; transform: scale(.94); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.csj-on .csj-final.on { opacity: 1; transform: scale(1); animation: csjpop .6s var(--ease); }
@keyframes csjpop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@media (max-width: 760px) {
  .csj-wrap { grid-template-columns: 58px 1fr; }
  .csj-rail { width: 58px; }
  .csj-final { padding: 30px 26px; }
}

/* numeri spiegati */
.cs-nums-sec { background: linear-gradient(180deg, rgba(0,185,194,.05), transparent 70%); }
.cs-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
@media (max-width: 900px) { .cs-nums { grid-template-columns: 1fr; } }
.cs-num { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cs-num::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--teal), var(--orange)); }
.cs-num b { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--teal-deep); line-height: 1.1; }
.cs-num > span { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-deep); font-weight: 600; margin: 4px 0 12px; }
.cs-num p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.65; }

/* pager tra casi */
.cs-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; margin-bottom: 40px; }
.csp { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.csp:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(0,185,194,.5); }
.csp small { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 8px; }
.csp .csp-k { display: block; font-family: var(--mono); font-size: .66rem; color: var(--muted); margin-bottom: 4px; }
.csp b { color: var(--ink); font-size: .96rem; line-height: 1.35; display: block; }
.csp-next { text-align: right; }
.csp-all { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: rgba(0,185,194,.07); border: 1px dashed rgba(0,185,194,.45); border-radius: var(--r-lg); padding: 14px 20px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--teal-deep); font-weight: 700; transition: background .3s; }
.csp-all:hover { background: rgba(0,185,194,.14); }
.csp-all svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .cs-pager { grid-template-columns: 1fr 1fr; }
  .csp-all { grid-column: 1 / -1; order: 3; flex-direction: row; }
  .csp b { font-size: .86rem; }
}

/* ---------- Video embed (facade: niente cookie finché non clicchi) ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-lift); background: #06181A; outline: none; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease), opacity .4s; }
.yt:hover img, .yt:focus-visible img { transform: scale(1.04); }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4,26,28,.55)); pointer-events: none; }
.yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 74px; height: 74px; border-radius: 50%; background: rgba(0,185,194,.92); display: grid; place-items: center; z-index: 2; transition: transform .35s var(--ease), background .3s; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.yt:hover .yt-play, .yt:focus-visible .yt-play { transform: translate(-50%,-50%) scale(1.1); background: var(--orange); }
.yt-play svg { width: 26px; height: 26px; color: #fff; margin-left: 4px; }
.yt-dur { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(4,26,28,.72); border-radius: 8px; padding: 5px 10px; pointer-events: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.loaded { cursor: default; }
.yt.loaded::after, .yt.loaded .yt-play, .yt.loaded .yt-dur { display: none; }
.yt-cap { font-size: .9rem; color: var(--muted); margin: 12px 4px 0; }
.yt-cap b { color: var(--ink); }
/* griglia video in home */
.video-duo { display: grid; grid-template-columns: 7fr 5fr; gap: 26px; align-items: start; margin-top: 38px; }
@media (max-width: 900px) { .video-duo { grid-template-columns: 1fr; } }
/* sezione video nel caso studio */
.cs-video { max-width: 860px; margin: 0 auto; }

/* CTA finale con video */
.cta-split { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(30px, 4vw, 56px); align-items: center; }
.cta-split h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0 0 .4em; }
.cta-split .lead { margin: 0 0 1.4em; }
@media (max-width: 900px) { .cta-split { grid-template-columns: 1fr; } }
.yt-cap-dark { color: var(--dark-muted); }
.yt-cap-dark b { color: #fff; }

/* ---------- Muro strumenti: 3 file, velocità diverse ---------- */
.tools-wall { display: flex; flex-direction: column; gap: 20px; margin-top: 34px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.tw-row { overflow: hidden; }
.tw-track { display: flex; width: max-content; animation: twm var(--d, 45s) linear infinite; will-change: transform; }
.tw-track.tw-rev { animation-name: twmr; }
@keyframes twm { to { transform: translateX(-50%); } }
@keyframes twmr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.tw-set { display: flex; gap: 20px; padding-right: 20px; }
.tw-chip { flex: none; background: #fff; border-radius: 18px; padding: 14px 30px; display: flex; align-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .3s var(--ease); }
.tw-chip:hover { transform: translateY(-3px) scale(1.03); }
.tw-chip img { height: 48px; width: auto; display: block; }
.tools-wall:hover .tw-track { animation-play-state: paused; }
@media (max-width: 700px) {
  .tools-wall { gap: 12px; margin-top: 26px; }
  .tw-set { gap: 12px; padding-right: 12px; }
  .tw-chip { padding: 10px 18px; border-radius: 13px; }
  .tw-chip img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .tw-track { animation: none; } }


/* ---------- Mosaico fotografico (foto reali Snasto — regola: mai stock) ---------- */
.foto-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 215px; gap: 14px; margin-top: 36px; }
.fm-item { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); grid-column: span 4; }
.fm-item.fm-big { grid-column: span 8; grid-row: span 2; }
.fm-item.fm-tall { grid-row: span 2; }
.fm-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.fm-item:hover img { transform: scale(1.05); }
.fm-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(4,26,28,.78));
  color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .01em;
}
@media (max-width: 820px) {
  /* niente righe fisse su mobile: ogni card alta quanto la sua aspect-ratio */
  .foto-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 10px; }
  .fm-item, .fm-item.fm-big, .fm-item.fm-tall { grid-column: span 1; grid-row: auto; aspect-ratio: 3 / 2; }
  .fm-item.fm-big { grid-column: span 2; }
  .fm-item figcaption { font-size: .7rem; padding: 18px 10px 8px; }
}
/* foto singola con cornice, per sezioni di testo */
.foto-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lift); position: relative; }
.foto-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-card figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 18px 14px; background: linear-gradient(180deg, transparent, rgba(4,26,28,.8)); color: #fff; font-size: .8rem; font-weight: 600; }

/* ---------- Moduli globali: honeypot, consenso, stati invio ---------- */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }
.fcheck { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: .82rem; color: var(--muted); cursor: pointer; }
.fcheck input { margin-top: 3px; accent-color: var(--teal); width: 16px; height: 16px; flex: none; }
.fcheck a { color: var(--teal-deep); text-decoration: underline; }
.form-status { display: none; margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; font-size: .9rem; font-weight: 600; }
form.f-invio .fs-invio { display: block; background: rgba(0,185,194,.08); color: var(--teal-deep); }
form.f-ok .fs-ok { display: block; background: rgba(106,219,132,.14); color: #1E7A38; }
form.f-err .fs-err { display: block; background: rgba(242,149,89,.14); color: #A04C12; }
form.f-ok .f-submit, form.f-invio .f-submit { opacity: .55; pointer-events: none; }
form.f-err .fs-err a { color: #A04C12; text-decoration: underline; }

/* ---------- Autori blog: byline e pagine bio ---------- */
.byline { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.byline img { width: 44px; height: 50px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.byline a { font-weight: 800; color: var(--ink); font-size: .95rem; }
.byline a:hover { color: var(--teal-deep); }
.byline span { display: block; font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-top: 2px; }

/* ---------- Lavora con noi: schede annuncio ---------- */
.job-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 34px 34px 30px; margin-bottom: 26px; position: relative; overflow: hidden; }
.job-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--orange)); }
.job-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 12px 0 10px; }
.job-claim { color: var(--muted); max-width: 72ch; margin: 0 0 22px; font-size: 1.02rem; }
.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
@media (max-width: 860px) { .job-grid { grid-template-columns: 1fr; } }
.job-grid b { display: block; color: var(--teal-deep); margin-bottom: 5px; }
.job-grid p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Fatturazione: lista dati ---------- */
.fatt-list { list-style: none; margin: 0; padding: 0; }
.fatt-list li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.fatt-list li:last-child { border-bottom: 0; }
.fatt-list span { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fatt-list b { font-size: .98rem; }
.fatt-list a { color: var(--teal-deep); }

/* ---------- Thank-you page ---------- */
.ty-check { width: 74px; height: 74px; border-radius: 50%; background: rgba(0,185,194,.15); border: 2px solid var(--teal); color: #7EE0E5; display: grid; place-items: center; margin: 0 auto 22px; }
.ty-check svg { width: 34px; height: 34px; }

/* ============================================================
   MODALE GLOBALE (.sn-modal) — popup CTA, magnet, lightbox
   Un solo componente per A6/A7/A11/A13: overlay, dialog,
   focus, chiusura. Aperto/chiuso da main.js (modulo 12).
   ============================================================ */
.sn-modal { position: fixed; inset: 0; z-index: 420; display: none; overflow-y: auto; padding: 24px 16px; -webkit-overflow-scrolling: touch; }
.sn-modal.open { display: grid; place-items: center; }
.sn-overlay { position: fixed; inset: 0; background: rgba(4,22,25,.66); backdrop-filter: blur(5px); opacity: 0; transition: opacity .28s ease; cursor: pointer; }
.sn-modal.open .sn-overlay { opacity: 1; }
.sn-dialog { position: relative; z-index: 1; background: #fff; border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(4,22,25,.5); width: min(560px, 100%); max-height: min(88svh, 780px); overflow-y: auto; padding: 34px 34px 28px; opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .28s ease, transform .32s cubic-bezier(.22,.9,.3,1); outline: none; }
.sn-modal.open .sn-dialog { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sn-overlay, .sn-dialog { transition: none; } }
@media (max-width: 560px) { .sn-dialog { padding: 26px 20px 22px; border-radius: 22px; } }
body.sn-modal-open { overflow: hidden; }
.sn-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); font-size: 1.35rem; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s, transform .2s; }
.sn-close:hover { color: var(--ink); border-color: var(--teal); transform: rotate(90deg); }
.sn-title { font-size: 1.45rem; margin: 6px 0 6px; letter-spacing: -.01em; }
.sn-sub { color: var(--muted); font-size: .92rem; margin: 0 0 18px; line-height: 1.6; }
.sn-hint { font-size: .78rem; color: var(--muted); margin: -6px 0 14px; }
.sn-lab { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 7px; color: var(--ink); }
.sn-radio-row { display: flex; gap: 22px; flex-wrap: wrap; }
.sn-radio-row .fcheck { margin: 0; align-items: center; font-size: .88rem; color: var(--text); }
.sn-alt { border-top: 1px dashed var(--line); margin-top: 20px; padding-top: 16px; text-align: center; }
.sn-alt-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.sn-alt .btn-wa { width: 100%; justify-content: center; }
.sn-gaia { font-size: .78rem; color: var(--muted); line-height: 1.55; margin: 10px 0 0; }
/* Lightbox foto (A11) */
.sn-modal-media .sn-dialog { background: transparent; box-shadow: none; padding: 0; width: auto; max-width: min(1240px, 100%); max-height: none; overflow: visible; }
.sn-modal-media .sn-close { top: -46px; right: 0; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.sn-modal-media .sn-close:hover { border-color: var(--teal); color: #fff; }
.sn-fig { margin: 0; }
.sn-fig img { display: block; max-width: 100%; max-height: 82svh; width: auto; height: auto; margin: 0 auto; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.sn-fig figcaption { color: #C6DADD; font-size: .82rem; text-align: center; padding: 12px 8px 0; }
.sn-fig figcaption:empty { display: none; }
img[data-zoom] { cursor: zoom-in; }

/* ============================================================
   ARTICOLO v2 (A13/A14/A15): layout con sidebar sticky, indice,
   tag di beneficio, condivisione, interrupt mobile
   ============================================================ */
.tag-band { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; line-height: 2.1; }
.tag-band b { color: var(--teal-deep); font-weight: 700; margin-right: 4px; }
.tag-band span { display: inline-block; background: rgba(0,185,194,.08); border: 1px solid rgba(0,185,194,.25); color: var(--teal-deep); border-radius: 8px; padding: 1px 9px; margin: 0 6px 4px 0; white-space: nowrap; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.article-layout.no-aside { grid-template-columns: minmax(0, 1fr); }
.article-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.aside-lab { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 10px; }
.toc-box ol { list-style: none; margin: 0; padding: 0; max-height: 44vh; overflow-y: auto; }
.toc-box li { margin: 0; }
.toc-box a { display: block; font-size: .82rem; line-height: 1.45; color: var(--muted); text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); transition: color .2s, border-color .2s; }
.toc-box a:hover { color: var(--teal-deep); }
.toc-box a.active { color: var(--ink); font-weight: 700; border-left-color: var(--teal); }
.author-box .ab-row { display: flex; gap: 12px; align-items: center; }
.author-box .ab-row img { border-radius: 12px; object-fit: cover; flex: none; }
.author-box .ab-row a { font-weight: 800; color: var(--ink); text-decoration: none; display: block; }
.author-box .ab-row a:hover { color: var(--teal-deep); }
.author-box .ab-row span { font-size: .74rem; color: var(--muted); display: block; margin-top: 2px; }
.author-box .ab-meta { font-size: .76rem; color: var(--muted); margin: 10px 0 0; border-top: 1px dashed var(--line); padding-top: 10px; }
.aside-cta b { display: block; font-size: .95rem; margin-bottom: 6px; }
.aside-cta p { font-size: .82rem; color: var(--muted); line-height: 1.55; margin: 0 0 12px; }
.aside-cta .btn { width: 100%; justify-content: center; padding: 12px 16px; font-size: .88rem; }
/* condivisione (A14) */
.share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.article-body > .share { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 16px 0; margin: 34px 0 6px; }
.share-lab { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.share-btns { display: flex; gap: 8px; }
.share-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, transform .2s; }
.share-btn:hover { color: var(--teal-deep); border-color: var(--teal); transform: translateY(-2px); }
.share-btn svg { width: 19px; height: 19px; }
.share-ok { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; padding: 4px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s; }
.share-btn.copied .share-ok { opacity: 1; }
/* indice mobile + interrupt (solo sotto i 1080px) */
.toc-mobile { display: none; }
.mob-interrupt { display: none; }
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { display: none; }
  .toc-mobile { display: block; max-width: 780px; margin: 0 auto 22px; background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px; }
  .toc-mobile summary { font-weight: 800; font-size: .9rem; padding: 12px 0; cursor: pointer; color: var(--ink); }
  .toc-mobile ol { list-style: none; margin: 0 0 12px; padding: 0; }
  .toc-mobile a { display: block; font-size: .86rem; color: var(--muted); text-decoration: none; padding: 7px 0 7px 12px; border-left: 2px solid var(--line); }
  .mob-interrupt { display: block; background: linear-gradient(135deg, rgba(0,185,194,.07), rgba(242,149,89,.06)); border: 1px solid rgba(0,185,194,.25); border-radius: var(--r); padding: 20px; margin: 30px 0; }
  .mob-interrupt b { display: block; font-size: .98rem; margin-bottom: 4px; }
  .mob-interrupt p { font-size: .84rem; color: var(--muted); margin: 0 0 12px; }
  .mob-interrupt .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   PAGINE EVENTO (A10/B8): resoconti storici + landing viva
   ============================================================ */
.ev-place { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--dark-text); margin: 6px 0 0; }
.ev-place svg { width: 16px; height: 16px; color: var(--teal); }
.ev-rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 26px; }
.ev-rel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.ev-rel b { display: block; font-size: 1.02rem; }
.ev-rel span { font-size: .8rem; color: var(--muted); display: block; margin-top: 3px; line-height: 1.5; }
.evp { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.evp li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.evp .evp-num { font-family: var(--mono); font-weight: 700; font-size: .8rem; color: var(--teal-deep); background: rgba(0,185,194,.1); border: 1px solid rgba(0,185,194,.3); border-radius: 10px; padding: 4px 10px; flex: none; }
.evp p { margin: 0; line-height: 1.65; }
.evg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
@media (max-width: 860px) { .evg { grid-template-columns: repeat(2, 1fr); } }
.evg-item { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--bg-warm); border: 1px solid var(--line); box-shadow: var(--shadow); }
.evg-item img { display: block; width: 100%; height: 220px; object-fit: cover; transition: transform .4s var(--ease); }
.evg-item:hover img { transform: scale(1.04); }
.evg-item figcaption { font-size: .76rem; color: var(--muted); padding: 9px 12px; }
.ev-bonus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
@media (max-width: 760px) { .ev-bonus { grid-template-columns: 1fr; } }
/* scheda "prossimo evento" in cima al calendario */
.ev-card.ev-next { border: 2px solid var(--teal); background: linear-gradient(135deg, rgba(0,185,194,.06), rgba(242,149,89,.05)); position: relative; }
.ev-next .ev-next-tag { position: absolute; top: -12px; left: 22px; background: var(--orange); color: #fff; font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-radius: 9px; padding: 4px 12px; box-shadow: 0 8px 20px -8px rgba(242,149,89,.6); }

/* ============================================================
   A5 — Journey della home in verticale (05/08/2026).
   Riusa il percorso animato dei casi studio ([data-cs-journey],
   .csj-*) sul fondo scuro della home: scroll e scena si muovono
   nella stessa direzione, su desktop e mobile. Sostituisce lo
   scrollytelling orizzontale (rimosso, insieme alla mano swipe).
   ============================================================ */
.journey-v { background: linear-gradient(180deg, var(--dark-1), var(--dark-2) 55%, var(--dark-1)); }
.jv-probs { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.jv-probs span { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: #8FA6AA; border: 1px dashed rgba(143,166,170,.4); border-radius: 10px; padding: 5px 12px; transform: rotate(-.6deg); }
.jv-probs span:nth-child(2n) { transform: rotate(.8deg); }
.journey-v .csj-track { stroke: rgba(198,218,221,.22); }
.journey-v .csj-dotp { fill: var(--dark-2); stroke: rgba(198,218,221,.35); }
.journey-v .csj-dotp.lit { fill: var(--teal); stroke: var(--teal); }
.journey-v .csj-step h3 { color: #fff; }
.journey-v .csj-step p { color: var(--dark-text); }
.journey-v .csj-step .csj-num { color: #5FD9DF; background: rgba(0,185,194,.14); border-color: rgba(0,185,194,.4); }
.csj-ob { font-family: var(--font-accent); font-style: italic; font-size: .95rem; color: #8FA6AA; margin: 0 0 4px; }
.journey-v .csj-final { border: 1px solid var(--dark-line); }
.jv-gar { position: relative; display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #7FA0A5; margin-top: 14px; }
