/* Tema "Tech Innovation" di REAssist, identico alla home di Segreteria Digitale (static/home.css del repo reassist).
   Tutto è sotto body.sd. Colori principali: --sd-accent (blu) e --sd-highlight (ciano). */

body.sd {
  --sd-accent: #0066ff;
  --sd-highlight: #00ffff;
  --sd-bg: #141414;
  --sd-surface: #1d1d1d;
  --sd-text: #ffffff;
  --sd-muted: #c9ced6;
  --sd-soft: #e6e9ee;
  --sd-faint: #aab1bb;
  --sd-line: #ffffff1a;
  /* Chat e messaggi flash (style.css) prendono i colori della home. */
  --bg: #141414;
  --surface: #1d1d1d;
  --surface-2: #262626;
  --line: #ffffff1a;
  --brand: #0066ff;
  --brand-hover: #3385ff;
  --brand-ink: #ffffff;
  --brand-soft: #0f2a55;
  --brand-line: #0066ff66;
  background: var(--sd-bg);
  color: var(--sd-text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.sd h1, body.sd h2, body.sd h3 { font-family: inherit; color: inherit; margin: 0; }
body.sd p { margin: 0; }
body.sd a { color: var(--sd-highlight); }
body.sd a:hover { color: #ffffff; }
body.sd a:focus-visible, body.sd summary:focus-visible, .sd-tone:focus-visible {
  outline: 3px solid var(--sd-highlight); outline-offset: 3px;
}
.sd-page { overflow: hidden; }
.sd-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* --- pulsanti ---------------------------------------------------------- */
body.sd .sd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  color: #ffffff; text-decoration: none; border-radius: 999px; font-weight: 700;
}
body.sd .sd-btn:hover { color: #ffffff; }
.sd-btn-primary { background: var(--sd-accent); box-shadow: 0 8px 24px -8px #0066ff; transition: background .2s ease; }
body.sd .sd-btn-primary:hover { background: #1f7aff; }
.sd-btn-ghost { border: 1px solid #ffffff2e; font-weight: 600 !important; transition: border-color .2s ease; }
.sd-btn-ghost:hover { border-color: #ffffff80; }
.sd-btn-sm { padding: 11px 20px; font-size: 15px; }
.sd-btn-lg { padding: 17px 30px; font-size: 17px; box-shadow: 0 14px 36px -12px #0066ff; }
.sd-btn-lg.sd-btn-ghost { padding: 16px 28px; box-shadow: none; border-color: #ffffff33; }

/* --- header ------------------------------------------------------------- */
/* Header sempre visibile in alto mentre si scorre; le ancore si fermano sotto di lui. */
html:has(body.sd) { scroll-padding-top: 96px; }
.sd-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #ffffff14; background: #141414cc; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sd-header .sd-wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.sd-logo { display: flex; align-items: center; }
.sd-logo img { display: block; height: 44px; width: auto; }
.sd-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 15px; }
body.sd .sd-nav a { color: var(--sd-muted); text-decoration: none; padding: 10px 0; }
body.sd .sd-nav a:hover { color: #ffffff; }
.sd-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- testi ricorrenti --------------------------------------------------- */
.sd-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sd-highlight); }
body.sd .sd-h2 { font-size: 46px; line-height: 1.06; font-weight: 900; letter-spacing: -.03em; }
.sd-lead { font-size: 18px; color: var(--sd-muted); }
.sd-muted { color: var(--sd-muted); }
.sd-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.sd-head.wide { max-width: 780px; }
.sd-head.center { align-items: center; text-align: center; max-width: none; }
.sd-section { padding-top: 104px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 48px; }
.sd-card {
  background: var(--sd-surface); border: 1px solid var(--sd-line); border-radius: 18px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.sd-card:hover { transform: translateY(-6px); border-color: #0066ff; box-shadow: 0 18px 40px -18px rgba(0, 102, 255, .6); }
.sd-ico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--sd-accent); }

/* --- hero --------------------------------------------------------------- */
.sd-hero { position: relative; }
.sd-hero-inner { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.sd-hero-text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sd-pill {
  align-self: flex-start; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sd-highlight);
  background: #00ffff12; border: 1px solid #00ffff40; border-radius: 999px; padding: 7px 16px;
}
.sd-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #00ffff; box-shadow: 0 0 12px #00ffff; }
body.sd .sd-hero h1 { font-size: 64px; line-height: 1.02; font-weight: 900; letter-spacing: -.035em; }
.sd-hero h1 em { font-style: normal; color: var(--sd-highlight); padding-bottom: 4px; }
.sd-hero-lead { font-size: 19px; color: var(--sd-muted); max-width: 560px; }
.sd-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.sd-assure { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; color: var(--sd-soft); }
.sd-assure li { display: flex; align-items: center; gap: 8px; }

.sd-hero-scene { flex: 1 1 480px; min-width: 0; position: relative; height: 560px; }
.sd-hero-scene > svg { position: absolute; right: 0; top: 0; width: 82%; height: auto; }
.sd-bubble {
  position: absolute; display: flex; gap: 12px; border-radius: 16px; padding: 16px 18px;
  backdrop-filter: blur(8px);
}
.sd-bubble-in { left: 0; top: 150px; width: 330px; background: #232323ee; border: 1px solid #ffffff1f; box-shadow: 0 24px 50px -20px #000000; }
.sd-bubble-draft { left: 30px; top: 300px; width: 350px; background: #0f2a55f0; border: 1px solid #0066ff; box-shadow: 0 24px 60px -18px #0066ff; }
.sd-bubble .sd-avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #3a3a3a; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.sd-bubble .sd-ico { width: 40px; height: 40px; border-radius: 12px; }
.sd-bubble-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sd-bubble-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.sd-bubble-meta span { color: var(--sd-faint); }
.sd-bubble-draft .sd-bubble-meta strong { color: var(--sd-highlight); }
.sd-bubble-draft .sd-bubble-meta span { color: var(--sd-muted); }
.sd-bubble-body p { font-size: 14px; color: var(--sd-soft); }
.sd-bubble-draft .sd-bubble-body p { color: #ffffff; }
.sd-tag { align-self: flex-start; font-size: 11px; font-weight: 700; color: #141414; background: var(--sd-soft); border-radius: 4px; padding: 1px 7px; }
.sd-typing {
  position: absolute; left: 40px; top: 300px; display: flex; align-items: center; gap: 10px;
  background: #0066ff; border-radius: 999px; padding: 12px 18px; font-size: 13px; font-weight: 600;
}
.sd-typing span:last-child { margin-left: 4px; }

/* --- scorrimento portali ------------------------------------------------ */
.sd-marquee-band { border-top: 1px solid #ffffff14; border-bottom: 1px solid #ffffff14; background: #1a1a1a; padding: 22px 0; overflow: hidden; }
.sd-marquee { display: flex; gap: 56px; width: max-content; font-size: 20px; font-weight: 800; color: #6f7782; letter-spacing: -.01em; white-space: nowrap; animation: v2scroll 30s linear infinite; }
.sd-marquee .sep { color: #0066ff; }
@keyframes v2scroll { to { transform: translateX(-50%); } }

/* --- numeri ------------------------------------------------------------- */
.sd-stats { padding-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sd-stat { border: 1px solid var(--sd-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.sd-stat b { font-size: 44px; font-weight: 900; letter-spacing: -.03em; line-height: 1.4; }
.sd-stat b.hl { color: var(--sd-highlight); }
.sd-stat span { color: var(--sd-muted); }

/* --- come funziona ------------------------------------------------------ */
.sd-steps-wrap { position: relative; }
.sd-steps-line { position: absolute; left: 6%; top: 46px; width: 88%; height: 20px; }
.sd-steps { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.sd-steps li { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.sd-steps .sd-ico { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 30px -8px #0066ff; }
.sd-step-n { font-size: 13px; font-weight: 800; color: var(--sd-highlight); letter-spacing: .1em; }
body.sd .sd-steps h3 { font-size: 22px; font-weight: 800; }

/* --- cosa gestisce ------------------------------------------------------ */
.sd-section.tight { gap: 40px; }
.sd-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.sd-bento .sd-card { border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.sd-bento-art { height: 180px; background: #0066ff1f; display: flex; align-items: center; justify-content: center; }
.sd-bento .sd-card:nth-child(even) .sd-bento-art { background: #00ffff14; }
.sd-bento-text { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
body.sd .sd-bento h3 { font-size: 20px; font-weight: 800; }
.sd-bento p { color: var(--sd-muted); font-size: 15px; }

/* --- tono di voce ------------------------------------------------------- */
.sd-section.tone { gap: 28px; }
#esempio { position: absolute; } /* vecchia ancora: fuori dal flusso, niente spazio in più */
.sd-tone-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.sd-tone-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sd-incoming { background: var(--sd-surface); border: 1px solid var(--sd-line); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.sd-incoming small { font-size: 13px; color: var(--sd-faint); }
.sd-tones { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-tone {
  font: inherit; font-size: 15px; border-radius: 999px; padding: 10px 20px; min-height: 44px; cursor: pointer;
  transition: all .2s ease; font-weight: 600; color: var(--sd-muted); background: transparent; border: 1px solid #ffffff2e;
}
.sd-tone:hover { border-color: #ffffff80; color: #ffffff; }
.sd-tone[aria-pressed="true"] { font-weight: 800; color: #fff; background: var(--sd-accent); border-color: var(--sd-accent); box-shadow: 0 8px 24px -8px var(--sd-accent); }
.sd-tones-more { font-size: 14px; color: var(--sd-faint); }
.sd-reply { flex: 1 1 480px; min-width: 0; position: relative; border-radius: 18px; }
.sd-reply-inner { position: relative; z-index: 1; margin: 2px; background: #1a1a1a; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.sd-reply-title { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sd-reply-title .sd-ico { width: 32px; height: 32px; border-radius: 10px; }
.sd-reply-text { color: var(--sd-soft); white-space: pre-line; }
.sd-ring { position: absolute; inset: -2px; border-radius: 18px; background: conic-gradient(from var(--a, 0deg), #0066ff, #00ffff, #0066ff); animation: v2spin 6s linear infinite; z-index: 0; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes v2spin { to { --a: 360deg; } }

/* --- bozze -> automatico, sicurezza ------------------------------------ */
.sd-split { padding-top: 104px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.sd-split-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sd-split-text strong { color: #ffffff; }
.sd-phases { display: flex; flex-direction: column; gap: 14px; }
.sd-guard { display: flex; gap: 14px; align-items: flex-start; background: #00ffff0f; border: 1px solid #00ffff3d; border-radius: 14px; padding: 18px 20px; }
.sd-guard svg { flex: 0 0 auto; margin-top: 2px; }
.sd-guard p { color: var(--sd-soft); }
.sd-mock { flex: 1 1 420px; min-width: 0; background: var(--sd-surface); border: 1px solid #ffffff1f; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 40px 80px -40px #0066ff; }
.sd-mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-switch-label { position: relative; font-weight: 700; min-width: 170px; height: 24px; }
.sd-switch-label span { position: absolute; left: 0; }
.sd-switch-label .v2-lbl-b { color: var(--sd-highlight); }
.sd-switch { width: 56px; height: 30px; border-radius: 999px; padding: 3px; display: flex; background: #444444; }
.sd-switch span { width: 24px; height: 24px; border-radius: 50%; background: #ffffff; }
.sd-rows { display: flex; flex-direction: column; gap: 10px; }
.sd-row { display: flex; align-items: center; gap: 12px; background: #262626; border-radius: 12px; padding: 12px 14px; }
.sd-row.warn { border: 1px solid #ff7a1a66; }
.sd-row > b { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #3a3a3a; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.sd-row > span:nth-child(2) { flex: 1; min-width: 0; font-size: 14px; }
.sd-status { position: relative; width: 74px; height: 22px; font-size: 11px; font-weight: 800; }
.sd-status span, .sd-row > .sd-label { border-radius: 4px; padding: 2px 8px; color: #141414; font-size: 11px; font-weight: 800; }
.sd-status span { position: absolute; right: 0; background: var(--sd-soft); }
.sd-status .v2-lbl-b { background: #00ffff; }
.sd-row > .sd-label { background: #ff7a1a; }

.sd-shield { flex: 0 1 320px; min-width: 0; display: flex; justify-content: center; }
.sd-trust-text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sd-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sd-trust .sd-card { border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
body.sd .sd-trust h3 { font-size: 18px; font-weight: 800; }
.sd-trust p { color: var(--sd-muted); font-size: 15px; }

/* --- prezzi ------------------------------------------------------------- */
.sd-section.prices { align-items: center; gap: 36px; }
.sd-plans { width: 100%; max-width: 920px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.sd-plan { position: relative; border-radius: 20px; }
.sd-plan .sd-ring { border-radius: 22px; }
.sd-plan-inner { padding: 32px; display: flex; flex-direction: column; gap: 18px; border-radius: 20px; height: 100%; box-sizing: border-box; }
.sd-plan.featured .sd-plan-inner { position: relative; z-index: 1; margin: 2px; background: #161c26; border-radius: 18px; height: calc(100% - 4px); }
.sd-plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
body.sd .sd-plan h3 { font-size: 20px; font-weight: 800; }
.sd-ribbon { font-size: 13px; font-weight: 800; color: #141414; background: var(--sd-highlight); border-radius: 999px; padding: 5px 12px; }
.sd-price { display: flex; align-items: baseline; gap: 6px; }
.sd-price b { font-size: 52px; font-weight: 900; letter-spacing: -.03em; line-height: 1.2; }
.sd-price span, .sd-plan-note { color: var(--sd-faint); }
.sd-plan-note { font-size: 14px; }
.sd-features { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--sd-soft); font-size: 15px; flex: 1; }
.sd-features li::before { content: "✓ "; }
body.sd .sd-plan .sd-btn { padding: 15px 20px; }
.sd-plan.featured .sd-btn { box-shadow: 0 12px 30px -10px #0066ff; }
.sd-plan .sd-btn-ghost { border-color: #ffffff33; }
.sd-price-note { color: var(--sd-muted); font-size: 15px; max-width: 760px; text-align: center; }
.sd-price-note strong { color: #ffffff; }

/* --- domande ------------------------------------------------------------ */
.sd-faq-wrap { max-width: 900px; gap: 24px; }
.sd-faq { display: flex; flex-direction: column; gap: 10px; }
.sd-faq details { background: var(--sd-surface); border: 1px solid var(--sd-line); border-radius: 14px; padding: 18px 22px; }
.sd-faq summary { cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq summary::after { content: "+"; color: var(--sd-highlight); }
.sd-faq details[open] summary::after { content: "−"; }
.sd-faq details p { margin: 12px 0 0; color: var(--sd-muted); }

/* --- invito finale ------------------------------------------------------ */
.sd-final-wrap { padding-top: 104px; padding-bottom: 96px; }
.sd-final { position: relative; overflow: hidden; background-color: #0057db; border-radius: 28px; padding: 64px 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.sd-final-text { position: relative; flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sd-final .sd-eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .14em; color: #ffffff; }
.sd-final p { font-size: 18px; color: #ffffff; }
body.sd .sd-final .sd-btn { align-self: flex-start; margin-top: 8px; color: #0047b3; background: #ffffff; padding: 18px 32px; font-weight: 800; font-size: 18px; }
body.sd .sd-final .sd-btn:hover { background: #e6efff; }
.sd-final-mark { position: relative; flex: 0 0 auto; width: 220px; height: auto; filter: drop-shadow(0 20px 40px #00000055); }

/* --- piè di pagina ------------------------------------------------------ */
.sd-footer { border-top: 1px solid #ffffff14; background: #101010; font-size: 14px; color: var(--sd-faint); }
.sd-footer .sd-wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.sd-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.sd-footer strong { color: #ffffff; }
.sd-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
body.sd .sd-footer a { color: var(--sd-faint); text-decoration: none; }
body.sd .sd-footer a:hover { color: var(--sd-highlight); text-decoration: underline; }
.sd-legal { font-size: 13px; color: #8a919b; }

/* --- messaggi flash ----------------------------------------------------- */
.sd-flashes { padding-top: 20px; }

/* --- animazioni --------------------------------------------------------- */
.v2-grid { background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; }
.v2-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; pointer-events: none; animation: v2drift 14s ease-in-out infinite alternate; }
.v2-glow.g1 { width: 520px; height: 520px; background: #0066ff; top: -120px; left: -160px; }
.v2-glow.g2 { width: 420px; height: 420px; background: #00ffff; bottom: -160px; right: -80px; animation-delay: -6s; opacity: .2; }
.v2-glow.g3 { width: 360px; height: 360px; background: #00ffff; right: -80px; top: -120px; opacity: .3; }
@keyframes v2drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, -30px) scale(1.15); } }
.v2-float { animation: v2float 6s ease-in-out infinite; }
.v2-float-slow { animation: v2float 9s ease-in-out infinite; }
.v2-float.dl1 { animation-delay: -1s; } .v2-float.dl2 { animation-delay: -2s; } .v2-float.dl4 { animation-delay: -4s; }
@keyframes v2float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.v2-twinkle { animation: v2twinkle 4s ease-in-out infinite; }
.v2-twinkle.d1 { animation-delay: .7s; } .v2-twinkle.d2 { animation-delay: 1.6s; } .v2-twinkle.d3 { animation-delay: 2.4s; } .v2-twinkle.d4 { animation-delay: 3.1s; }
@keyframes v2twinkle { 0%, 100% { fill: #2b2b2b; } 45%, 60% { fill: #00ffff; } }
.v2-seq-in { animation: v2in 10s ease-out infinite; }
.v2-seq-typing { animation: v2typing 10s ease-out infinite; }
.v2-seq-draft { animation: v2draft 10s ease-out infinite; }
@keyframes v2in { 0% { opacity: 0; transform: translateY(16px); } 6%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes v2typing { 0%, 14% { opacity: 0; transform: scale(.9); } 18%, 34% { opacity: 1; transform: none; } 38%, 100% { opacity: 0; } }
@keyframes v2draft { 0%, 36% { opacity: 0; transform: translateY(20px) scale(.97); } 44%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
.v2-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #00ffff; animation: v2bounce 1.2s infinite; }
.v2-dot.b { animation-delay: .15s; } .v2-dot.c { animation-delay: .3s; }
@keyframes v2bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-6px); opacity: 1; } }
.v2-pulse { animation: v2pulse 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.v2-pulse.p2 { animation-delay: .8s; } .v2-pulse.p3 { animation-delay: 1.6s; }
@keyframes v2pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.v2-knob { animation: v2knob 6s ease-in-out infinite; }
@keyframes v2knob { 0%, 40% { transform: translateX(0); } 50%, 90% { transform: translateX(26px); } 100% { transform: translateX(0); } }
.v2-track { animation: v2track 6s ease-in-out infinite; }
@keyframes v2track { 0%, 40% { background: #444444; } 50%, 90% { background: #0066ff; } 100% { background: #444444; } }
.v2-lbl-a { animation: v2la 6s ease-in-out infinite; } .v2-lbl-b { animation: v2lb 6s ease-in-out infinite; }
@keyframes v2la { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes v2lb { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.v2-line { stroke-dasharray: 8 8; animation: v2dash 1.2s linear infinite; }
@keyframes v2dash { to { stroke-dashoffset: -16; } }
.v2-underline { background: linear-gradient(#00ffff, #00ffff) no-repeat 0 100% / 0% 4px; animation: v2under 2.2s .4s ease-out forwards; }
@keyframes v2under { to { background-size: 100% 4px; } }

/* --- schermi piccoli ---------------------------------------------------- */
@media (max-width: 640px) {
  body.sd .sd-hero h1 { font-size: 40px; }
  body.sd .sd-h2 { font-size: 32px; }
  .sd-nav, .sd-long { display: none; }
  html:has(body.sd) { scroll-padding-top: 76px; }
  .sd-header .sd-wrap { flex-wrap: nowrap; gap: 10px; padding: 10px 16px; }
  .sd-logo { flex: 0 1 auto; min-width: 0; }
  .sd-logo img { height: 34px; }
  .sd-actions { flex-wrap: nowrap; gap: 8px; }
  body.sd .sd-actions .sd-btn-sm { padding: 9px 14px; font-size: 14px; white-space: nowrap; }
  .sd-hero-inner { padding-top: 56px; padding-bottom: 64px; }
  .sd-hero-scene { height: 440px; }
  .sd-hero-scene > svg { width: 70%; }
  .sd-bubble { max-width: calc(100% - 10px); }
  .sd-section, .sd-split { padding-top: 72px; }
  .sd-final { padding: 40px 24px; }
  .sd-final-mark { width: 140px; }
}

/* Chi ha "riduci movimento" attivo vede la pagina ferma, con la bozza già pronta. */
@media (prefers-reduced-motion: reduce) {
  body.sd *, body.sd *::before, body.sd *::after { animation: none !important; transition: none !important; }
  .v2-seq-in, .v2-seq-draft { opacity: 1 !important; }
  .v2-seq-typing { opacity: 0 !important; }
  .v2-underline { background-size: 100% 4px; }
  .v2-lbl-b { opacity: 0; }
}
