/* SPUN Support — landing, SPUN Design System Beta (v2).
   Tutte le regole stanno sotto .sx-support. Colore di campo #00B8D9 con testo ink (DESIGN_SYSTEM §4, campo di SPUN Chat).
   Base: landing statica di SPUN Host (a sua volta da SPUN Farm, SPUN Life e dal tema spun-v2 di spun.tel),
   con il campo ciano, l'hero scuro con il mosaico dei messaggi e i componenti di Support in fondo al file. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans-normal-latin.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans-normal-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/SpaceMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Token ------------------------------------------------------ */
.sx-support {
  --sx-ink: #101013;
  --sx-ink-2: #1A1A1E;
  --sx-ink-3: #27272B;
  --sx-muted: #6D6D78;
  --sx-muted-2: #A1A1AA;
  --sx-paper: #FAFAF4;
  --sx-paper-2: #F5F4EF;
  --sx-line-light: #E4E3DE;
  --sx-cobalt: #2348FF;
  --sx-lime: #B6F36B;
  --sx-sky: #9EE7FF;
  --sx-coral: #FF6B4A;
  --sx-butter: #FFD64A;
  --sx-support: #00B8D9;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --f: var(--sx-support);
  --k: var(--sx-ink);
  --bg: var(--sx-paper);
  --surface: var(--sx-paper-2);
  --rule: var(--sx-line-light);
  --text: var(--sx-ink);
  --text-2: var(--sx-muted);
  --btn: var(--sx-ink);
  --btn-text: var(--sx-paper);
  --soft: rgba(16, 16, 19, .05);
  --soft-2: rgba(16, 16, 19, .1);
  --focus: var(--sx-cobalt);
  --ok: var(--sx-ink);

  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.sx-support[data-theme="dark"] {
  --bg: var(--sx-ink);
  --surface: var(--sx-ink-2);
  --rule: var(--sx-ink-3);
  --text: var(--sx-paper);
  --text-2: var(--sx-muted-2);
  --btn: var(--sx-paper);
  --btn-text: var(--sx-ink);
  --soft: rgba(250, 250, 244, .07);
  --soft-2: rgba(250, 250, 244, .13);
  --focus: var(--sx-lime);
  --ok: var(--sx-lime);
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.sx-support) { scroll-behavior: smooth; }
}
html:has(.sx-support) { background: #FAFAF4; scroll-padding-top: 48px; }
html:has(.sx-support[data-theme="dark"]) { background: #101013; }

/* I reset usano :where() così vincono sempre le classi dei componenti. */
:where(.sx-support) *, :where(.sx-support) *::before, :where(.sx-support) *::after { box-sizing: border-box; }
:where(.sx-support) a { color: inherit; text-decoration: none; }
:where(.sx-support) ul, :where(.sx-support) ol { list-style: none; margin: 0; padding: 0; }
:where(.sx-support) h1, :where(.sx-support) h2, :where(.sx-support) h3, :where(.sx-support) p, :where(.sx-support) dl, :where(.sx-support) dd { margin: 0; }
:where(.sx-support) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.sx-support) img, :where(.sx-support) video { max-width: 100%; }
.sx-support :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sx-support [hidden] { display: none !important; }
.sx-support .sx-px { display: block; width: 100%; height: 100%; overflow: visible; }

.sx-skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--btn); color: var(--btn-text); padding: 8px 12px; border-radius: 6px;
}
.sx-skip:focus { top: 8px; }
.sx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Layout: celle separate da filetti 1px ---------------------- */
.sx-frame { padding-inline: 16px; }
.sx-shell { max-width: 1728px; margin-inline: auto; border-inline: 1px solid var(--rule); }
.sx-section { border-bottom: 1px solid var(--rule); }
.sx-cells { display: grid; gap: 1px; background: var(--rule); }
.sx-cells > * { background: var(--bg); }
@media (min-width: 1024px) {
  .sx-frame { padding-inline: 40px; }
}

/* ---------- Tipografia ------------------------------------------------- */
.sx-eyebrow {
  font-family: var(--font-mono); font-size: 12px; line-height: 16px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
}
.sx-chip {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase;
  background: var(--surface); color: var(--text); padding: 4px 8px; border-radius: 4px;
}
.sx-dot { flex: none; width: 6px; height: 6px; background: var(--sx-lime); }
.sx-h1 { font-size: 40px; line-height: 48px; font-weight: 500; letter-spacing: -.02em; }
.sx-h2 { font-size: 28px; line-height: 40px; font-weight: 500; letter-spacing: -.01em; }
.sx-h3 { font-size: 24px; line-height: 28px; font-weight: 500; letter-spacing: -.01em; }
.sx-h5 { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: 0; }
.sx-lead { font-size: 16px; line-height: 24px; letter-spacing: -.02em; }
.sx-body { font-size: 16px; line-height: 24px; color: var(--text-2); }
.sx-muted { color: var(--text-2); }
@media (min-width: 768px) {
  .sx-eyebrow { font-size: 13px; line-height: 20px; }
  .sx-chip { font-size: 11px; }
  .sx-h1 { font-size: 72px; line-height: 72px; }
  .sx-h2 { font-size: 56px; line-height: 60px; }
  .sx-h3 { font-size: 44px; line-height: 52px; }
  .sx-lead { font-size: 20px; line-height: 28px; }
}

/* ---------- Bottoni ---------------------------------------------------- */
.sx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 48px; padding: 0 16px 0 20px; border-radius: 6px; white-space: nowrap;
  font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: .01em;
  transition: background-color .2s, color .2s;
}
.sx-btn--sm { height: 32px; padding: 0 10px 0 12px; gap: 8px; font-size: 14px; line-height: 20px; letter-spacing: .02em; }
.sx-btn--primary { background: var(--btn); color: var(--btn-text); }
.sx-btn--secondary { background: var(--soft); color: var(--text); }
.sx-btn--secondary:hover { background: var(--soft-2); }
.sx-btn--ink { background: var(--sx-ink); color: var(--sx-paper); }
.sx-btn--paper { background: var(--sx-paper); color: var(--sx-ink); }
.sx-btn-arrow { display: block; width: 16px; height: 16px; overflow: hidden; }
.sx-btn-arrow .sx-px { transition: transform .3s steps(4, end); }
.sx-btn:hover .sx-btn-arrow .sx-px { transform: translateX(4px); }

/* ---------- Nav fissa da 48px ------------------------------------------ */
.sx-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.sx-nav-bar { display: flex; height: 47px; }
.sx-logo { display: flex; align-items: center; padding-inline: 16px; border-right: 1px solid var(--rule); color: var(--text); }
.sx-logo-svg { display: block; width: 88px; color: inherit; }
.sx-logo-svg svg { display: block; width: 100%; height: auto; fill: currentColor; }
.sx-nav-product {
  display: flex; align-items: center; gap: 8px; padding-inline: 12px; border-right: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.sx-sq { flex: none; display: grid; place-items: center; width: 24px; height: 24px; background: var(--sx-support); color: var(--sx-ink); border-radius: 4px; }
.sx-sq .sx-px { width: 16px; height: 16px; }
.sx-nav-links { display: none; }
.sx-nav-links a {
  display: flex; align-items: center; padding-inline: 16px; border-right: 1px solid var(--rule);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.sx-nav-links a:hover { color: var(--text); background: var(--soft); }
.sx-nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--rule); }
.sx-nav-end .sx-btn { display: none; }
.sx-menu-btn { display: grid; place-items: center; width: 47px; height: 47px; color: var(--text); }
.sx-menu-btn .sx-px { width: 16px; height: 16px; }
.sx-mobile { position: fixed; inset: 48px 0 0 0; z-index: 49; overflow: auto; background: var(--bg); padding: 8px 16px 24px; }
.sx-mobile a:not(.sx-btn) {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 0;
  border-bottom: 1px solid var(--rule); font-size: 20px; line-height: 24px; font-weight: 500;
}
.sx-mobile a:not(.sx-btn) .sx-px { width: 16px; height: 16px; color: var(--text-2); }
.sx-mobile-actions { display: grid; gap: 8px; margin-top: 24px; }
@media (min-width: 1024px) {
  .sx-nav-links { display: flex; }
  .sx-nav-links a[data-nav-optional] { display: none; }
  .sx-nav-end { padding-inline: 8px; }
  .sx-nav-end .sx-btn { display: inline-flex; }
  .sx-menu-btn, .sx-mobile { display: none; }
}
@media (min-width: 1280px) {
  .sx-nav-links a[data-nav-optional] { display: flex; }
}

/* ---------- Hero: titolo + palco del mini PC (o foto) + demo ------------ */
/* Sempre scura: testo su ink, scena a destra, demo sopra la scena. */
.sx-hero { position: relative; overflow: hidden; background: var(--sx-ink); color: var(--sx-paper); border-bottom: 1px solid var(--rule); }
.sx-hero-grid { max-width: 1728px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); }
.sx-hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 104px 16px 32px; }
.sx-hero-visual { position: relative; padding: 230px 16px 48px; }
.sx-hero-media { position: absolute; inset: 0 0 auto 0; height: 400px; overflow: hidden; background: var(--sx-ink); }
.sx-hero-media video, .sx-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 70% center); }
.sx-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 16, 19, .7) 0%, rgba(16, 16, 19, 0) 28%, rgba(16, 16, 19, 0) 55%, rgba(16, 16, 19, 1) 100%); }
.sx-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-hero .sx-chip { background: rgba(250, 250, 244, .08); color: var(--sx-paper); border: 1px solid rgba(250, 250, 244, .14); }
.sx-hero .sx-chip .sx-sq { width: 20px; height: 20px; }
.sx-hero .sx-lead { max-width: 580px; color: rgba(250, 250, 244, .8); }
.sx-hero .sx-btn--primary { background: var(--sx-paper); color: var(--sx-ink); }
.sx-hero .sx-btn--secondary { background: rgba(250, 250, 244, .12); color: var(--sx-paper); }
.sx-hero .sx-btn--secondary:hover { background: rgba(250, 250, 244, .2); }
.sx-hero .sx-trust li { color: rgba(250, 250, 244, .72); }
.sx-hero .sx-trust .sx-px { color: var(--sx-lime); }
.sx-hero :focus-visible { outline-color: var(--sx-lime); }
.sx-media-note {
  position: absolute; z-index: 2; right: 12px; top: 12px;
  font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(250, 250, 244, .55);
}
.sx-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-chip--live .sx-dot { animation: sxs-led 1.6s steps(1) infinite; }
.sx-rotator { display: inline-block; white-space: nowrap; }
.sx-rotator-word { display: inline-block; padding: 0 .12em; margin-left: -.12em; background: var(--sx-support); color: var(--sx-ink); }
.sx-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sx-trust li {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2);
}
.sx-trust .sx-px { width: 16px; height: 16px; color: var(--ok); }
.sx-crumbs { color: rgba(250, 250, 244, .62); }
.sx-crumbs a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .sx-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(100svh, 920px); }
  .sx-hero-copy { padding: 128px 72px 88px 40px; }
  .sx-hero .sx-h1 { font-size: clamp(44px, 4.4vw, 64px); line-height: 1.04; }
  .sx-hero-visual { padding: 0; }
  .sx-hero-media { inset: 0; height: auto; }
  .sx-hero-shade {
    background:
      linear-gradient(90deg, rgba(16, 16, 19, 1) 0%, rgba(16, 16, 19, .45) 18%, rgba(16, 16, 19, 0) 40%),
      linear-gradient(0deg, rgba(16, 16, 19, .9) 0%, rgba(16, 16, 19, 0) 38%),
      linear-gradient(180deg, rgba(16, 16, 19, .6) 0%, rgba(16, 16, 19, 0) 14%);
  }
  .sx-media-note { top: auto; bottom: 16px; right: 20px; }
}
@keyframes sxs-led { 50% { opacity: .25; } }

/* ---------- Finestre d'interfaccia SPUN ------------------------------- */
.sx-win {
  width: min(100%, 440px); background: var(--sx-ink); color: var(--sx-paper);
  border: 1px solid rgba(250, 250, 244, .14); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 48px -24px rgba(0, 0, 0, .55);
  font-size: 13px; line-height: 1.4; letter-spacing: 0;
}
.sx-win-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(250, 250, 244, .1); }
.sx-win-ico { flex: none; width: 16px; height: 16px; color: var(--sx-lime); }
.sx-win-name { min-width: 0; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sx-win-state {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: rgba(250, 250, 244, .62);
}
.sx-win-state i { width: 6px; height: 6px; background: var(--sx-lime); animation: sxs-led 1.6s steps(1) infinite; }
.sx-win-state b { font-weight: 400; }

.sx-log { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: clamp(170px, 19vw, 250px); padding: 12px; overflow: hidden; }
.sx-log--mini { height: clamp(170px, 15vw, 220px); }
.sx-line { display: grid; grid-template-columns: 56px 1fr; gap: 8px; color: rgba(250, 250, 244, .78); }
.sx-line b { padding-top: 2px; font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: rgba(250, 250, 244, .5); }
.sx-line--ai { color: var(--sx-paper); }
.sx-line--ai b { color: var(--sx-lime); }
.sx-handoff {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--sx-lime); border: 1px dashed color-mix(in srgb, var(--sx-lime) 50%, transparent);
}
.sx-handoff i { width: 6px; height: 6px; background: currentColor; }
.sx-typing { display: none; align-self: flex-start; gap: 4px; padding: 10px; background: rgba(250, 250, 244, .08); border-radius: 8px; }
.sx-typing.is-on { display: inline-flex; }
.sx-typing i { width: 5px; height: 5px; background: rgba(250, 250, 244, .7); animation: sxs-dot 1s steps(2, jump-none) infinite; }
.sx-typing i:nth-child(2) { animation-delay: .15s; }
.sx-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sxs-dot { 50% { transform: translateY(-3px); opacity: .45; } }
.sx-line.is-on, .sx-handoff.is-on, .sx-fd-msg.is-on, .sx-fd-replies.is-on, .sx-fd-event.is-on { animation: sxs-in .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sxs-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Demo della hero -------------------------------------------- */
.sx-demo { position: relative; z-index: 2; display: flex; justify-content: center; }
.sx-demo-win {
  position: relative; width: min(100%, 460px); font-size: 14px;
  background: rgba(16, 16, 19, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-color: color-mix(in srgb, var(--sx-support) 70%, transparent);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .85), 0 0 64px -12px color-mix(in srgb, var(--sx-support) 60%, transparent);
}
.sx-demo-win :focus-visible { outline-color: var(--sx-lime); }
.sx-demo-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px; padding: 3px; background: rgba(250, 250, 244, .08); border-radius: 7px; }
.sx-demo-tabs button { padding: 8px 0; border-radius: 5px; font-size: 13px; line-height: 20px; font-weight: 600; color: rgba(250, 250, 244, .7); transition: background-color .2s, color .2s; }
.sx-demo-tabs button[aria-selected="true"] { background: var(--sx-support); color: var(--sx-ink); }
.sx-demo-panel { height: 356px; border-top: 1px solid rgba(250, 250, 244, .1); }
.sx-demo-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 10px 14px 12px; border-top: 1px solid rgba(250, 250, 244, .1);
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: rgba(250, 250, 244, .55);
}
.sx-demo-foot a { color: var(--sx-paper); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (min-width: 1024px) {
  .sx-demo { position: absolute; left: -48px; bottom: 56px; width: min(460px, calc(100% - 24px)); }
}

/* Scheda 1 · Chiedi */
.sx-fd-chat { display: flex; flex-direction: column; height: 100%; }
.sx-fd-log {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(250, 250, 244, .2) transparent;
}
.sx-fd-log > :first-child { margin-top: auto; }
.sx-fd-msg { max-width: 92%; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; line-height: 19px; }
.sx-fd-msg > * + * { margin-top: 6px; }
.sx-fd-msg--ai { align-self: flex-start; background: rgba(250, 250, 244, .06); border-left: 2px solid var(--sx-support); border-radius: 0 8px 8px 0; }
.sx-fd-msg--ai > b { display: block; font-family: var(--font-mono); font-size: 10.5px; line-height: 14px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-lime); }
.sx-fd-msg--me { align-self: flex-end; background: rgba(250, 250, 244, .92); color: var(--sx-ink); }
.sx-fd-src { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase; color: rgba(250, 250, 244, .58); }
.sx-fd-src i { flex: none; width: 6px; height: 6px; background: var(--sx-support); }
.sx-fd-bars { display: grid; gap: 6px; min-width: 240px; }
.sx-fd-bars li { display: grid; grid-template-columns: 60px 1fr 66px; align-items: center; gap: 8px; font-size: 12.5px; }
.sx-fd-bars i { display: block; height: 8px; width: calc(var(--v) * 100%); background: var(--sx-support); }
.sx-fd-bars i.is-top { background: var(--sx-lime); }
.sx-fd-bars b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.sx-fd-list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid rgba(250, 250, 244, .08); }
.sx-fd-list em { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: rgba(250, 250, 244, .7); white-space: nowrap; }
.sx-fd-list em.is-late { color: var(--sx-coral); }
.sx-fd-replies { align-self: flex-start; display: flex; flex-direction: column; gap: 4px; width: min(92%, 300px); }
.sx-fd-replies button {
  padding: 7px 10px; border-radius: 6px; border: 1px solid rgba(250, 250, 244, .18);
  font-size: 13px; line-height: 18px; font-weight: 500; text-align: left; color: var(--sx-paper);
  transition: background-color .2s, border-color .2s;
}
.sx-fd-replies button:hover { background: rgba(250, 250, 244, .08); border-color: color-mix(in srgb, var(--sx-lime) 60%, transparent); }
.sx-fd-event {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--sx-lime); border: 1px dashed color-mix(in srgb, var(--sx-lime) 50%, transparent);
}
.sx-fd-event i { width: 6px; height: 6px; background: currentColor; }
.sx-fd-input { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px; border-top: 1px solid rgba(250, 250, 244, .08); }
.sx-fd-input > span:first-child { flex: 1; padding: 7px 10px; border-radius: 6px; background: rgba(250, 250, 244, .06); color: rgba(250, 250, 244, .5); font-size: 13px; }
.sx-fd-send { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: var(--sx-support); color: var(--sx-ink); }
.sx-fd-send .sx-px { width: 16px; height: 16px; }

/* Scheda 2 · Approva */
.sx-fd-action { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 14px 16px; overflow-y: auto; }
.sx-fd-kicker { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; color: rgba(250, 250, 244, .62); }
.sx-fd-kicker > span { flex: none; width: 16px; height: 16px; color: var(--sx-lime); }
.sx-fd-title { font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -.01em; }
.sx-fd-states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(250, 250, 244, .12); border: 1px solid rgba(250, 250, 244, .12); }
.sx-fd-states li {
  padding: 6px 2px; text-align: center; background: var(--sx-ink);
  font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .04em; text-transform: uppercase; color: rgba(250, 250, 244, .45);
}
.sx-fd-states li.is-done { background: color-mix(in srgb, var(--sx-support) 45%, var(--sx-ink)); color: var(--sx-paper); }
.sx-fd-states li.is-on { background: var(--sx-lime); color: var(--sx-ink); }
.sx-fd-states li.is-off { text-decoration: line-through; color: rgba(250, 250, 244, .35); background: var(--sx-ink); }
.sx-fd-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(250, 250, 244, .1); border: 1px solid rgba(250, 250, 244, .1); }
.sx-fd-fields > div { padding: 7px 10px; background: var(--sx-ink); }
.sx-fd-fields dt { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase; color: rgba(250, 250, 244, .5); }
.sx-fd-fields dd { font-size: 13px; line-height: 18px; }
.sx-fd-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-fd-btn { height: 36px; padding: 0 14px; border-radius: 6px; background: rgba(250, 250, 244, .1); color: var(--sx-paper); font-size: 13px; font-weight: 600; transition: background-color .2s; }
.sx-fd-btn:hover { background: rgba(250, 250, 244, .18); }
.sx-fd-btn--ok { background: var(--sx-paper); color: var(--sx-ink); }
.sx-fd-btn--ok:hover { background: var(--sx-lime); }
.sx-fd-btn:disabled { opacity: .4; cursor: default; }
.sx-fd-audit li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 5px 0; border-top: 1px solid rgba(250, 250, 244, .08); font-size: 12.5px; line-height: 17px; color: rgba(250, 250, 244, .75); }
.sx-fd-audit li span { font-family: var(--font-mono); font-size: 11px; color: rgba(250, 250, 244, .45); }
.sx-fd-audit li.is-on { animation: sxs-in .32s cubic-bezier(.2, .7, .2, 1) both; }

/* Scheda 3 · Traccia */
.sx-fd-passport { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 14px 16px; overflow-y: auto; }
.sx-fd-pass-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sx-fd-code { margin-top: 2px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--sx-lime); }
.sx-fd-qr { flex: none; display: grid; place-items: center; width: 64px; height: 64px; background: var(--sx-paper); color: var(--sx-ink); }
.sx-fd-qr > span { width: 48px; height: 48px; }
.sx-fd-trail li { position: relative; display: grid; grid-template-columns: 32px 1fr; align-items: center; column-gap: 10px; padding: 6px 0; transition: opacity .3s steps(3, end); }
.sx-fd-trail li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: -6px; width: 1px; background: rgba(250, 250, 244, .22); }
.sx-fd-trail li > span { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; background: var(--sx-support); color: var(--sx-ink); }
.sx-fd-trail li > span .sx-px { width: 16px; height: 16px; }
.sx-fd-trail b { font-size: 13px; line-height: 17px; font-weight: 600; }
.sx-fd-trail em { font-style: normal; font-size: 12px; line-height: 16px; color: rgba(250, 250, 244, .62); }
.sx-fd-trail.is-seq li { opacity: .22; }
.sx-fd-trail.is-seq li.is-on { opacity: 1; }
.sx-fd-note { font-family: var(--font-mono); font-size: 10.5px; line-height: 15px; letter-spacing: .05em; text-transform: uppercase; color: rgba(250, 250, 244, .55); }

/* ---------- Nastro "Cosa fa" -------------------------------------------- */
.sx-marquee { display: flex; overflow: hidden; border-bottom: 1px solid var(--rule); }
.sx-marquee-label { display: none; flex: none; align-items: center; padding: 0 24px; border-right: 1px solid var(--rule); }
.sx-marquee-viewport { flex: 1; min-width: 0; overflow: hidden; }
.sx-marquee-track { display: flex; width: max-content; animation: sxs-marquee 40s linear infinite; }
.sx-marquee:hover .sx-marquee-track { animation-play-state: paused; }
.sx-marquee-item {
  display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-right: 1px solid var(--rule);
  white-space: nowrap; font-size: 14px; line-height: 20px; font-weight: 500;
}
.sx-marquee-item > span:first-child { flex: none; width: 16px; height: 16px; color: var(--ok); }
@keyframes sxs-marquee { to { transform: translateX(-50%); } }
@media (min-width: 768px) { .sx-marquee-label { display: flex; } }

/* ---------- Simbolo animato (D-030, DESIGN_SYSTEM §3) ------------------- */
/* Primo path del logo ufficiale a tinta unita; la scintilla lime "Filo che corre" percorre il contorno
   in 3,2s. Con movimento ridotto la scintilla resta ferma e nascosta: si vede solo il simbolo. */
.sx-symbol { display: block; width: 100%; height: 100%; overflow: visible; }
.sx-symbol__spark { stroke: var(--sx-lime); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sx-symbol__spark { opacity: 1; animation: sxs-symbol-spark 3.2s linear infinite; }
}
@keyframes sxs-symbol-spark { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Intestazione di sezione ------------------------------------ */
.sx-head { display: grid; gap: 16px; padding: 64px 16px 40px; border-bottom: 1px solid var(--rule); }
.sx-head-title { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) {
  .sx-head { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: 40px; padding: 112px 40px 56px; }
}

/* ---------- Entrata/uscita, canali, flusso passo passo ----------------- */
.sx-inout { grid-template-columns: 1fr; }
.sx-inout-col { display: flex; flex-direction: column; gap: 16px; padding: 32px 16px 40px; }
.sx-checklist { display: flex; flex-direction: column; gap: 10px; }
.sx-checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); }
.sx-checklist li > span:first-child { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--ok); }
.sx-channels { display: flex; flex-direction: column; gap: 14px; }
.sx-channels li { display: flex; align-items: flex-start; gap: 12px; }
.sx-channels li > span:last-child { display: flex; flex-direction: column; color: var(--text-2); }
.sx-channels b { font-weight: 500; color: var(--text); }
.sx-note { font-size: 13px; line-height: 20px; color: var(--text-2); }
.sx-footnote { padding: 16px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 20px; color: var(--text-2); }
.sx-flowsteps { grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.sx-flowstep { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 16px 40px; }
.sx-flowstep-top { display: flex; align-items: center; justify-content: space-between; align-self: stretch; }
.sx-flowstep .sx-sq48 { animation: sxs-step 7.5s steps(1) infinite; animation-delay: calc(var(--n) * 1.5s); }
@keyframes sxs-step { 0%, 19% { background: var(--sx-lime); color: var(--sx-ink); } 20%, 100% { background: var(--sx-support); color: var(--sx-ink); } }
@media (min-width: 768px) {
  .sx-inout, .sx-flowsteps { grid-template-columns: repeat(2, 1fr); }
  .sx-flowsteps > .sx-flowstep:last-child,
  .sx-inout:not(.sx-inout--two) > .sx-inout-col:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .sx-inout { grid-template-columns: repeat(3, 1fr); }
  .sx-inout:not(.sx-inout--two) > .sx-inout-col:last-child { grid-column: auto; }
  .sx-inout--two { grid-template-columns: repeat(2, 1fr); }
  .sx-inout-col { padding: 40px 24px 48px; }
  .sx-flowsteps { grid-template-columns: repeat(5, 1fr); }
  .sx-flowsteps > .sx-flowstep:last-child { grid-column: auto; }
  .sx-flowstep { padding: 40px 24px 48px; }
  .sx-flowstep:not(:last-child)::after {
    content: ""; position: absolute; z-index: 1; top: 56px; right: -8px; width: 15px; height: 15px;
    background: var(--bg); border-top: 1px solid var(--ok); border-right: 1px solid var(--ok); transform: rotate(45deg);
  }
  .sx-footnote { padding: 16px 40px; }
}

/* ---------- Banda "Hardware" ------------------------------------------ */
.sx-band { grid-template-columns: 1fr; }
.sx-band-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 56px 16px 48px; }
.sx-band-copy .sx-lead { max-width: 60ch; }
.sx-band-stage { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 460px; padding: 72px 16px 40px; color: var(--k); }
.sx-cells > .sx-band-stage { background: var(--f); }
.sx-band-stage .sx-illu-grid { --grid-line: color-mix(in srgb, var(--k) 16%, transparent); }
.sx-band-tags { position: absolute; z-index: 2; inset: 16px 16px auto auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sx-pass-win { position: relative; z-index: 1; width: min(100%, 420px); }
.sx-pass-win .sx-fd-passport { height: auto; }
@media (min-width: 1024px) {
  .sx-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sx-band-copy { justify-content: center; padding: 104px 40px 96px; }
  .sx-band-stage { padding: 72px 48px 56px; }
  .sx-band-tags { inset: 32px 32px auto auto; }
}

/* ---------- Card prodotto ---------------------------------------------- */
.sx-product { display: grid; grid-template-columns: 1fr; }
.sx-rail { display: none; }
.sx-rail-in { position: sticky; top: 48px; display: flex; flex-direction: column; gap: 4px; padding: 24px 16px; }
.sx-rail-title { padding: 0 8px 8px; }
.sx-rail a {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.sx-rail a:hover { color: var(--text); background: var(--soft); }
.sx-rail-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; background: var(--sx-support); color: var(--sx-ink); }
.sx-rail-ico .sx-px { width: 16px; height: 16px; }
.sx-card { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: 40px 16px; }
.sx-card-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sx-card-name { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--text-2); }
.sx-card-text { max-width: 62ch; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 1024px) {
  .sx-product { grid-template-columns: 240px minmax(0, 1fr); }
  .sx-rail { display: block; border-right: 1px solid var(--rule); }
  .sx-card { padding: 56px 40px; }
}

/* ---------- Illustrazioni: campo colore + griglia + finestra ----------- */
.sx-illu {
  --grid-line: color-mix(in srgb, var(--k) 16%, transparent);
  position: relative; overflow: hidden; width: 100%;
  aspect-ratio: 2400 / 1211;
  display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); align-items: center;
  background: var(--f); color: var(--k);
}
.sx-cells > .sx-illu { background: var(--f); }
.sx-illu--media { --grid-line: rgba(250, 250, 244, .08); background: var(--sx-ink); }
.sx-illu-media { position: absolute; inset: 0; }
.sx-illu-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.sx-illu-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 16, 19, .2) 0%, rgba(16, 16, 19, .45) 50%, rgba(16, 16, 19, .72) 100%); }
.sx-illu-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}
.sx-illu-tags { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-left: clamp(16px, 4%, 44px); }
.sx-tag {
  position: relative; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--sx-paper); color: var(--sx-ink); padding: 4px 8px;
}
.sx-tag i { width: 6px; height: 6px; background: var(--sx-support); }
.sx-illu-tags .sx-tag::after {
  content: ""; position: absolute; left: 100%; top: 50%; width: 400px; height: 1px;
  background: rgba(16, 16, 19, .35);
  transform-origin: left; animation: sxs-wire 3.6s steps(12, end) infinite;
  animation-delay: calc(var(--tag-i, 0) * 220ms);
}
.sx-illu-tags .sx-tag:nth-child(2)::after { --tag-i: 1; }
.sx-illu-tags .sx-tag:nth-child(3)::after { --tag-i: 2; }
.sx-illu-tags .sx-tag:nth-child(4)::after { --tag-i: 3; }
@keyframes sxs-wire { 0% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
.sx-illu-stage { position: relative; z-index: 2; height: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; padding: clamp(14px, 4%, 40px); }

/* Illustrazioni più piccole in "Come funziona" */
.sx-illu.sx-feat { aspect-ratio: 4 / 3; grid-template-columns: 1fr; }
.sx-feat .sx-illu-stage { flex-direction: column; gap: 14px; }
.sx-feat-label { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; background: var(--sx-ink); color: var(--sx-paper); padding: 4px 8px; }
.sx-feat .sx-win { width: min(100%, 340px); }
.sx-feat .sx-log { height: clamp(130px, 12vw, 176px); }

.sx-flow { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; width: min(100%, 440px); padding-top: 22px; }
.sx-flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 7px; height: 1px; background: var(--k); }
.sx-flow span {
  position: relative; text-align: center; padding: 9px 4px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  background: var(--sx-ink); color: var(--sx-paper);
  animation: sxs-node 4.8s steps(1) infinite; animation-delay: calc(var(--n) * 1.2s);
}
.sx-flow span::before { content: ""; position: absolute; left: 50%; top: -18px; width: 7px; height: 7px; transform: translateX(-50%); background: var(--k); }
.sx-flow i { position: absolute; top: 4px; left: 10%; width: 7px; height: 7px; background: var(--sx-lime); animation: sxs-flow-dot 4.8s steps(24, end) infinite; }
@keyframes sxs-node { 0%, 24% { background: var(--sx-lime); color: var(--sx-ink); } 25%, 100% { background: var(--sx-ink); color: var(--sx-paper); } }
@keyframes sxs-flow-dot { from { left: 10%; } to { left: 88%; } }

.sx-packets { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: min(100%, 440px); }
.sx-pk-node { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; background: var(--sx-ink); color: var(--sx-paper); }
.sx-pk-node > span { width: 32px; height: 32px; }
.sx-pk-line { position: relative; height: 1px; border-top: 1px dashed var(--k); }
.sx-pk-line i { position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--k); animation: sxs-pulse 1.8s steps(12, end) infinite; }
.sx-pk-line i:nth-child(2) { animation-delay: .6s; }
.sx-pk-line i:nth-child(3) { animation-delay: 1.2s; }
.sx-pk-line b { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); white-space: nowrap; font: 400 10.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
@keyframes sxs-pulse { from { left: 0; } to { left: calc(100% - 7px); } }

@media (max-width: 767px) {
  .sx-illu { aspect-ratio: auto; min-height: 300px; grid-template-columns: 1fr; }
  .sx-illu.sx-feat { aspect-ratio: auto; min-height: 280px; }
  .sx-illu-tags { display: none; }
  .sx-illu-media img { object-position: 20% center; }
  .sx-log { height: 220px; }
  .sx-flow span { font-size: 9px; padding: 8px 2px; }
}

/* ---------- Funzioni, controllo, passi --------------------------------- */
.sx-features, .sx-guards, .sx-steps, .sx-demos { grid-template-columns: 1fr; }
.sx-feature, .sx-step { display: flex; flex-direction: column; gap: 16px; padding: 32px 16px 40px; }
.sx-sq48 { flex: none; display: grid; place-items: center; width: 48px; height: 48px; background: var(--sx-support); color: var(--sx-ink); }
.sx-sq48 .sx-px { width: 32px; height: 32px; }
.sx-step-n { font-family: var(--font-mono); font-size: 13px; line-height: 20px; letter-spacing: .06em; color: var(--text-2); }
.sx-demos { border-top: 1px solid var(--rule); }
.sx-guard .sx-sq48 { background: var(--surface); color: var(--ok); }
@media (min-width: 768px) {
  .sx-features, .sx-guards, .sx-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .sx-features, .sx-demos { grid-template-columns: repeat(3, 1fr); }
  .sx-guards, .sx-steps { grid-template-columns: repeat(4, 1fr); }
  .sx-feature, .sx-step { padding: 40px 24px 48px; }
}

/* ---------- Card "Soluzioni" ------------------------------------------- */
.sx-people {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 1px; background: var(--rule);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.sx-people > li { scroll-snap-align: start; background: var(--sx-ink); }
.sx-person { position: relative; display: block; height: 100%; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sx-ink); color: var(--sx-paper); }
.sx-person:focus-visible { outline-offset: -3px; }
.sx-person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.sx-person::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 16, 19, .94) 0%, rgba(16, 16, 19, .4) 42%, rgba(16, 16, 19, 0) 68%); }
.sx-person:hover img { transform: scale(1.05); }
.sx-person-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; }
.sx-person-body p { color: rgba(250, 250, 244, .78); }
.sx-person-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; }
.sx-person-cta > span { width: 16px; height: 16px; }
.sx-person:hover .sx-person-cta { color: var(--sx-lime); }
/* Senza foto: campo colore con griglia e icona pixel grande. */
.sx-person--art { background: var(--sx-support); }
.sx-person-art {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(16, 16, 19, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 16, 19, .16) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}
.sx-person-art > span { position: absolute; left: 50%; top: 18%; width: 96px; height: 96px; margin-left: -48px; color: var(--sx-ink); transition: transform .3s steps(3, end); }
.sx-person--art:hover .sx-person-art > span { transform: translateY(-8px); }
.sx-person--art::after { background: linear-gradient(0deg, rgba(16, 16, 19, .9) 0%, rgba(16, 16, 19, .35) 45%, rgba(16, 16, 19, 0) 70%); }
.sx-person--contact .sx-sq { background: var(--sx-lime); color: var(--sx-ink); }
.sx-person--contact.sx-person--art { background: var(--sx-cobalt); }
@media (min-width: 768px) {
  .sx-people { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; }
}
@media (min-width: 1024px) {
  .sx-people { grid-template-columns: repeat(3, 1fr); }
  .sx-person-body { padding: 32px; }
}

/* ---------- Prezzi ------------------------------------------------------ */
.sx-plans { grid-template-columns: 1fr; }
.sx-plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 32px 16px 40px; }
.sx-plan--featured { box-shadow: inset 0 3px 0 var(--sx-support); }
.sx-plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sx-plan-price { display: flex; align-items: baseline; gap: 6px; }
.sx-plan-price b { font-size: 36px; line-height: 44px; font-weight: 500; letter-spacing: -.02em; }
.sx-plan-price span { color: var(--text-2); }
.sx-plan-volume { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; }
.sx-plan .sx-checklist { flex: 1; }
.sx-plan .sx-btn { width: 100%; }
.sx-chip--lime { background: var(--sx-lime); color: var(--sx-ink); }
@media (min-width: 1024px) {
  .sx-plans { grid-template-columns: repeat(3, 1fr); }
  .sx-plan { padding: 40px 32px 48px; }
  .sx-plan-price b { font-size: 44px; line-height: 52px; }
}

/* ---------- Banda CTA --------------------------------------------------- */
.sx-cta {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 360px;
  color: var(--sx-paper); border-bottom: 1px solid var(--rule); background: var(--sx-cobalt);
}
.sx-cta--photo {
  background:
    linear-gradient(90deg, var(--sx-cobalt) 0%, var(--sx-cobalt) 34%, rgba(35, 72, 255, .7) 62%, rgba(35, 72, 255, .3) 100%),
    var(--cta-img) right center / cover no-repeat, var(--sx-ink);
}
.sx-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sx-cta-tiles {
  position: absolute; inset: 0 0 0 auto; width: 70%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.sx-cta-in { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; max-width: 920px; padding: 120px 16px 40px; }
.sx-cta .sx-eyebrow { color: var(--sx-paper); }
.sx-cta .sx-actions { margin-top: 8px; }
.sx-cta-symbol { position: absolute; z-index: 2; right: 16px; top: 24px; width: 56px; height: 60px; color: var(--sx-paper); }
@media (min-width: 1024px) {
  .sx-cta { min-height: 440px; }
  .sx-cta-in { padding: 56px 40px; }
  .sx-cta-symbol { top: auto; right: 40px; bottom: 40px; width: 98px; height: 105px; }
}

/* ---------- Footer ------------------------------------------------------ */
.sx-foot-cols { grid-template-columns: repeat(2, 1fr); }
.sx-foot-col { display: flex; flex-direction: column; gap: 12px; padding: 32px 16px; }
.sx-foot-col h3 { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.sx-foot-col ul { display: flex; flex-direction: column; gap: 6px; }
.sx-foot-col a, .sx-foot-col li > span { font-size: 14px; line-height: 20px; font-weight: 500; }
.sx-foot-col li > span { color: var(--text-2); }
.sx-foot-col a:hover, .sx-foot-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sx-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 16px; border-block: 1px solid var(--rule); font-size: 14px; line-height: 20px; font-weight: 500; }
.sx-foot-claim { text-align: left; }
.sx-foot-claim span { display: block; color: var(--text-2); }
.sx-foot-brand { display: block; color: var(--text); }
.sx-foot-brand .sx-logo-svg { width: 132px; }
.sx-compat .sx-marquee-track { animation-duration: 60s; }
.sx-compat .sx-marquee-item { gap: 10px; padding: 14px 24px; }
.sx-compat .sx-marquee-item b { font-weight: 500; }
.sx-compat .sx-marquee-item span { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.sx-foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 20px; color: var(--text-2); }
.sx-foot-legal { padding: 16px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 20px; color: var(--text-2); }
.sx-foot-legal b { font-weight: 500; color: var(--text); }
.sx-theme { display: inline-flex; gap: 2px; padding: 2px; background: var(--soft); border-radius: 6px; }
.sx-theme button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; color: var(--text-2); }
.sx-theme button[aria-checked="true"] { background: var(--bg); color: var(--text); }
.sx-theme .sx-px { width: 16px; height: 16px; }
@media (min-width: 1024px) {
  .sx-foot-cols { grid-template-columns: repeat(4, 1fr); }
  .sx-foot-col { padding: 40px; }
  .sx-foot-row { padding: 24px 40px; }
  .sx-foot-claim { text-align: right; }
  .sx-foot-bottom, .sx-foot-legal { padding: 16px 40px; }
}

/* ---------- Pagine soluzione ------------------------------------------- */
.sx-hero--solution .sx-demo-win { width: min(100%, 420px); }
.sx-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 16px 32px; }
@media (min-width: 1024px) {
  .sx-links { padding: 32px 40px 40px; }
}

/* ---------- Movimento ridotto: tutto visibile e fermo ------------------ */
@media (prefers-reduced-motion: reduce) {
  .sx-support *, .sx-support *::before, .sx-support *::after { animation: none !important; transition: none !important; }
  .sx-illu-tags .sx-tag::after { transform: none; }
  .sx-flow i { left: 48%; }
  .sx-pk-line i { left: calc(50% - 3px); }
  .sx-person:hover img { transform: none; }
  .sx-marquee-viewport { overflow-x: auto; }
}

/* =====================================================================
   Componenti di SPUN Support
   ===================================================================== */

/* ---------- Palco dell'hero: mosaico dei messaggi (senza foto) --------- */
/* Canvas disegnato da site.js nel colore di campo, con rare tessere lime e un mirino (DESIGN_SYSTEM §9).
   Le etichette dei canali sono decorative: i canali veri sono scritti nella sezione "Canali e flusso". */
.sx-mosaic { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sx-mosaic-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 16, 19, 0) 45%, rgba(16, 16, 19, 1) 100%); }
.sx-hero-tags { display: none; }
.sx-hero-tag {
  position: absolute; left: var(--x); top: var(--y);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 10.5px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(16, 16, 19, .88); color: var(--sx-paper); border: 1px solid rgba(250, 250, 244, .18); padding: 5px 8px;
}
.sx-hero-tag > span { flex: none; width: 16px; height: 16px; color: var(--sx-support); }
.sx-hero-visual--404 { min-height: 320px; }
@media (min-width: 1024px) {
  .sx-hero-tags { display: block; position: absolute; z-index: 1; inset: 0; pointer-events: none; }
  .sx-mosaic-shade {
    background:
      linear-gradient(90deg, rgba(16, 16, 19, 1) 0%, rgba(16, 16, 19, .5) 14%, rgba(16, 16, 19, 0) 36%),
      linear-gradient(0deg, rgba(16, 16, 19, .85) 0%, rgba(16, 16, 19, 0) 36%);
  }
}

/* ---------- Demo della hero: Chat · Ticket · Traduzioni ---------------- */
.sx-sd-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid rgba(250, 250, 244, .08); }
.sx-sd-replies button {
  padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(250, 250, 244, .18);
  font-size: 12.5px; line-height: 18px; font-weight: 500; color: var(--sx-paper);
  transition: background-color .2s, border-color .2s;
}
.sx-sd-replies button:hover { background: rgba(250, 250, 244, .08); border-color: color-mix(in srgb, var(--sx-lime) 60%, transparent); }
.sx-sd-replies button:disabled { opacity: .4; cursor: default; }
.sx-sd-replies .sx-sd-restart { background: var(--sx-paper); color: var(--sx-ink); border-color: var(--sx-paper); }
.sx-sd-replies .sx-sd-restart:hover { background: var(--sx-lime); border-color: var(--sx-lime); }
.sx-fd-msg--ai > p, .sx-fd-msg--op > p { margin: 0; }
.sx-fd-msg--op { align-self: flex-start; background: rgba(250, 250, 244, .06); border-left: 2px solid var(--sx-lime); border-radius: 0 8px 8px 0; }
.sx-fd-msg--op > b { display: block; font-family: var(--font-mono); font-size: 10.5px; line-height: 14px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-support); }
.sx-fd-log .sx-typing { flex: none; }
[data-show].is-on { animation: sxs-in .32s cubic-bezier(.2, .7, .2, 1) both; }

.sx-hd-label {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; color: rgba(250, 250, 244, .55);
}
.sx-hd-label i { flex: none; width: 6px; height: 6px; background: var(--sx-support); }
.sx-hd-text { padding: 9px 12px; background: rgba(250, 250, 244, .06); border-left: 2px solid var(--sx-support); font-size: 13.5px; line-height: 20px; }
.sx-hd-answer { padding: 9px 12px; border: 1px solid rgba(250, 250, 244, .14); font-size: 13.5px; line-height: 20px; }
.sx-sd-tag, .sx-sd-tr > span {
  display: block; margin-bottom: 2px;
  font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-lime);
}
.sx-sd-tr { padding: 7px 12px; border-left: 2px solid var(--sx-lime); font-size: 13.5px; line-height: 20px; color: rgba(250, 250, 244, .86); }
.sx-sd-tr--me { border-left-color: var(--sx-paper); }
.sx-sd-tr--me > span { color: rgba(250, 250, 244, .62); }
.sx-sd-convs { display: grid; gap: 1px; background: rgba(250, 250, 244, .1); border: 1px solid rgba(250, 250, 244, .1); }
.sx-sd-convs li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 6px 8px; background: var(--sx-ink); }
.sx-sd-convs li.is-active { background: var(--sx-ink-2); box-shadow: inset 2px 0 0 var(--sx-support); }
.sx-sd-convs li > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.sx-sd-convs b { font-size: 12.5px; line-height: 16px; font-weight: 600; }
.sx-sd-convs em { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-style: normal; font-size: 12px; line-height: 16px; color: rgba(250, 250, 244, .62); }
.sx-sd-convs li > i { font-style: normal; font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .05em; padding: 2px 5px; border: 1px solid rgba(250, 250, 244, .2); color: rgba(250, 250, 244, .72); }
.sx-sd-convs li.is-active > i { background: var(--sx-support); border-color: var(--sx-support); color: var(--sx-ink); }
.sx-sd-ch { display: grid; place-items: center; width: 24px; height: 24px; background: var(--sx-support); color: var(--sx-ink); }
.sx-sd-ch .sx-px { width: 16px; height: 16px; }
.sx-demo-win .sx-fd-states li { font-size: 9.5px; }

/* ---------- Knowledge base: scheda delle fonti e finestra ------------- */
.sx-specs { display: grid; grid-template-columns: 1fr; gap: 1px; align-self: stretch; background: var(--rule); border: 1px solid var(--rule); }
.sx-specs > div { display: grid; grid-template-columns: 32px 1fr; align-items: center; column-gap: 14px; padding: 12px 14px; background: var(--bg); }
.sx-specs .sx-sq { grid-row: span 2; width: 32px; height: 32px; }
.sx-specs dt { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.sx-specs dd { font-size: 16px; line-height: 22px; font-weight: 500; }
@media (min-width: 768px) {
  .sx-specs { grid-template-columns: repeat(2, 1fr); }
}
.sx-kb-win { position: relative; z-index: 1; width: min(100%, 460px); }
.sx-kb li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(250, 250, 244, .08); }
.sx-kb li:first-child { border-top: 0; }
.sx-kb-ico { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; background: var(--sx-support); color: var(--sx-ink); }
.sx-kb-ico .sx-px { width: 16px; height: 16px; }
.sx-kb b { font-size: 13px; line-height: 17px; font-weight: 600; }
.sx-kb em { grid-column: 2; font-style: normal; font-size: 12px; line-height: 16px; color: rgba(250, 250, 244, .62); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sx-kb .sx-state { grid-column: 3; grid-row: 1 / span 2; }
.sx-kb-meter { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; }
.sx-kb-meter i { height: 4px; background: rgba(250, 250, 244, .1); }
.sx-kb-meter i.is-on { background: var(--sx-support); }
.sx-kb-ask { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-top: 1px solid rgba(250, 250, 244, .1); }

/* ---------- Inbox della card prodotto e stati ------------------------- */
.sx-board-win { width: min(100%, 520px); }
.sx-board li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 9px 12px; border-top: 1px solid rgba(250, 250, 244, .08); }
.sx-board li:first-child { border-top: 0; }
.sx-board-ico { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; background: var(--sx-support); color: var(--sx-ink); }
.sx-board-ico .sx-px { width: 16px; height: 16px; }
.sx-board b { font-size: 13px; line-height: 17px; font-weight: 600; }
.sx-board em { grid-column: 2; font-style: normal; font-size: 12px; line-height: 16px; color: rgba(250, 250, 244, .62); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sx-board .sx-state { grid-column: 3; grid-row: 1 / span 2; }
.sx-board-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 12px 10px; border-top: 1px solid rgba(250, 250, 244, .1);
  font-family: var(--font-mono); font-size: 10.5px; line-height: 15px; letter-spacing: .05em; text-transform: uppercase; color: rgba(250, 250, 244, .55);
}
.sx-state {
  padding: 3px 6px; white-space: nowrap; font-style: normal;
  font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase;
  color: rgba(250, 250, 244, .72); border: 1px solid rgba(250, 250, 244, .2);
}
.sx-state.is-bot, .sx-state.is-run { color: var(--sx-lime); border-color: color-mix(in srgb, var(--sx-lime) 50%, transparent); }
.sx-state.is-op { background: var(--sx-support); color: var(--sx-ink); border-color: var(--sx-support); }
.sx-state.is-done { color: rgba(250, 250, 244, .45); }
.sx-state.is-flip { animation: sxs-in .32s cubic-bezier(.2, .7, .2, 1) both; }
@media (max-width: 767px) {
  .sx-board em, .sx-kb em { white-space: normal; }
}
