/* SPUN studio · tema "spun" · generato da theme/build.py: non modificare a mano */
/* Font SPUN Beta (v2), self-hosted: niente CDN esterni.
   Instrument Sans e Space Mono sono sotto SIL Open Font License.
   Percorsi relativi: questo file va copiato insieme ai .woff2 della cartella. */

@font-face {
  font-family: "Instrument Sans";
  src: url("../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("../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: "Instrument Sans";
  src: url("../fonts/InstrumentSans-italic-latin.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: italic; 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("../fonts/InstrumentSans-italic-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: italic; 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("../fonts/SpaceMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Generato da packages/design-tokens/build.py a partire da tokens.json: non modificare a mano. */
:root {
  --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-paper-3: #EBE9E0;
  --sx-line-light: #E4E3DE;
  --sx-cobalt: #2348FF;
  --sx-cobalt-deep: #1C3AE6;
  --sx-cobalt-light: #4466FF;
  --sx-cobalt-darker: #152DBF;
  --sx-lime: #B6F36B;
  --sx-sky: #9EE7FF;
  --sx-coral: #FF6B4A;
  --sx-butter: #FFD64A;
  --sx-plum: #E9D5FF;
  --sx-field-host: #5F2CFF;
  --sx-field-host-ink: #DFF6FF;
  --sx-field-support: #4AECF7;
  --sx-field-support-ink: #180026;
  --sx-field-guru: #042F32;
  --sx-field-guru-ink: #D6FFCB;
  --sx-field-tel: #FF7700;
  --sx-field-tel-ink: #251D3A;
  --sx-field-pro: #3D007A;
  --sx-field-pro-ink: #E8ECF1;
  --sx-field-one: #404257;
  --sx-field-one-ink: #71D6F4;
  --sx-field-cloud: #DFF6FF;
  --sx-field-cloud-ink: #000D6B;
  --sx-field-menu: #CFFF74;
  --sx-field-menu-ink: #2F3A1D;
  --sx-field-market: #FFA000;
  --sx-field-market-ink: #360099;
  --sx-field-store: #99DDCC;
  --sx-field-store-ink: #000D6B;
  --sx-field-farm: #4C6800;
  --sx-field-farm-ink: #F1FFCC;
  --sx-field-club: #B03A10;
  --sx-field-club-ink: #FFF1E0;
  --sx-field-raas: #FFD11C;
  --sx-field-raas-ink: #1E033F;
  --sx-field-bio: #FFD8B8;
  --sx-field-bio-ink: #0038FF;
  --sx-field-social: #E851E3;
  --sx-field-social-ink: #24006B;
  --sx-field-studio: #D6BFFF;
  --sx-field-studio-ink: #360099;
  --sx-field-city: #0FB2EB;
  --sx-field-city-ink: #121B3B;
  --sx-field-zone: #AAFFB8;
  --sx-field-zone-ink: #250C75;
  --sx-field-video: #F50538;
  --sx-field-video-ink: #000000;
  --sx-field-life: #FF5DA2;
  --sx-field-life-ink: #000D6B;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --sx-font-weight-regular: 400;
  --sx-font-weight-medium: 500;
  --sx-font-weight-semibold: 600;
  --sx-font-tracking-label-min: 0.05em;
  --sx-font-tracking-label-max: 0.08em;
  --sx-type-display-family: var(--font-sans);
  --sx-type-display-size: 96px;
  --sx-type-display-lh: 96px;
  --sx-type-display-weight: 500;
  --sx-type-display-track: -0.035em;
  --sx-type-h1-family: var(--font-sans);
  --sx-type-h1-size: 72px;
  --sx-type-h1-lh: 72px;
  --sx-type-h1-weight: 500;
  --sx-type-h1-track: -0.02em;
  --sx-type-h2-family: var(--font-sans);
  --sx-type-h2-size: 56px;
  --sx-type-h2-lh: 60px;
  --sx-type-h2-weight: 500;
  --sx-type-h2-track: -0.01em;
  --sx-type-h3-family: var(--font-sans);
  --sx-type-h3-size: 44px;
  --sx-type-h3-lh: 52px;
  --sx-type-h3-weight: 500;
  --sx-type-h3-track: -0.01em;
  --sx-type-h4-family: var(--font-sans);
  --sx-type-h4-size: 32px;
  --sx-type-h4-lh: 40px;
  --sx-type-h4-weight: 500;
  --sx-type-h4-track: 0em;
  --sx-type-h5-family: var(--font-sans);
  --sx-type-h5-size: 24px;
  --sx-type-h5-lh: 32px;
  --sx-type-h5-weight: 500;
  --sx-type-h5-track: 0em;
  --sx-type-h6-family: var(--font-sans);
  --sx-type-h6-size: 16px;
  --sx-type-h6-lh: 24px;
  --sx-type-h6-weight: 500;
  --sx-type-h6-track: 0em;
  --sx-type-body-large-family: var(--font-sans);
  --sx-type-body-large-size: 20px;
  --sx-type-body-large-lh: 28px;
  --sx-type-body-large-weight: 400;
  --sx-type-body-large-track: -0.02em;
  --sx-type-body-family: var(--font-sans);
  --sx-type-body-size: 16px;
  --sx-type-body-lh: 24px;
  --sx-type-body-weight: 400;
  --sx-type-body-track: -0.01em;
  --sx-type-small-family: var(--font-sans);
  --sx-type-small-size: 13px;
  --sx-type-small-lh: 20px;
  --sx-type-small-weight: 400;
  --sx-type-small-track: 0em;
  --sx-type-button-large-family: var(--font-sans);
  --sx-type-button-large-size: 16px;
  --sx-type-button-large-lh: 24px;
  --sx-type-button-large-weight: 500;
  --sx-type-button-large-track: 0.01em;
  --sx-type-button-small-family: var(--font-sans);
  --sx-type-button-small-size: 14px;
  --sx-type-button-small-lh: 20px;
  --sx-type-button-small-weight: 500;
  --sx-type-button-small-track: 0.02em;
  --sx-type-eyebrow-family: var(--font-mono);
  --sx-type-eyebrow-size: 13px;
  --sx-type-eyebrow-lh: 20px;
  --sx-type-eyebrow-weight: 400;
  --sx-type-eyebrow-track: var(--sx-font-tracking-label-max);
  --sx-type-eyebrow-case: uppercase;
  --sx-type-chip-family: var(--font-mono);
  --sx-type-chip-size: 11px;
  --sx-type-chip-lh: 16px;
  --sx-type-chip-weight: 400;
  --sx-type-chip-track: var(--sx-font-tracking-label-min);
  --sx-type-chip-case: uppercase;
  --sx-space-1: 4px;
  --sx-space-2: 8px;
  --sx-space-3: 12px;
  --sx-space-4: 16px;
  --sx-space-5: 20px;
  --sx-space-6: 24px;
  --sx-space-8: 32px;
  --sx-space-10: 40px;
  --sx-space-12: 48px;
  --sx-space-16: 64px;
  --sx-space-20: 80px;
  --sx-space-24: 96px;
  --sx-space-32: 128px;
  --sx-layout-max-width: 1728px;
  --sx-layout-gutter: 16px;
  --sx-layout-gutter-wide: 40px;
  --sx-layout-nav-height: 48px;
  --sx-layout-bp-type: 768px;
  --sx-layout-bp-layout: 1024px;
  --sx-radius-none: 0px;
  --sx-radius-chip: 4px;
  --sx-radius-button: 6px;
  --sx-radius-window: 10px;
  --sx-border-hairline: 1px;
  --sx-shadow-window: 0 24px 48px -24px rgba(0,0,0,.55);
  --sx-logo-symbol-min: 16px;
  --sx-logo-full-min: 88px;
  --sx-logo-clear-space: 20%;
  --sx-icon-grid: 16px;
  --sx-icon-arrow-grid: 8px;
  --sx-icon-arrow-pad: 4px;
  --sx-icon-size-16: 16px;
  --sx-icon-size-32: 32px;
  --sx-icon-size-48: 48px;
  --sx-icon-size-64: 64px;
  --sx-icon-size-96: 96px;
  --sx-icon-accent-opacity: 0.55;
  --sx-illustration-grid: 32px;
  --sx-illustration-grid-opacity: 0.16;
  --sx-illustration-window-bg: var(--sx-ink);
  --sx-illustration-window-radius: var(--sx-radius-window);
  --sx-illustration-window-line-opacity: 0.14;
  --sx-illustration-window-shadow: var(--sx-shadow-window);
  --sx-motion-bead: 3.2s;
  --sx-motion-sequence-step-min: 1.1s;
  --sx-motion-sequence-step-max: 1.5s;
  --sx-motion-state-min: 2.6s;
  --sx-motion-state-max: 3.6s;
  --sx-motion-pixel-easing: steps(1, end);
  --sx-component-button-height: 48px;
  --sx-component-secondary-bg-min: 0.05;
  --sx-component-secondary-bg-max: 0.1;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --sx-bg: var(--sx-paper);
  --sx-surface: var(--sx-paper-2);
  --sx-surface-2: var(--sx-paper-3);
  --sx-line: var(--sx-line-light);
  --sx-fg: var(--sx-ink);
  --sx-fg-2: var(--sx-muted);
  --sx-fg-3: var(--sx-muted);
  --sx-btn-bg: var(--sx-ink);
  --sx-btn-fg: var(--sx-paper);
  --sx-focus: var(--sx-cobalt);
}

[data-theme="dark"] {
  color-scheme: dark;
  --sx-bg: var(--sx-ink);
  --sx-surface: var(--sx-ink-2);
  --sx-surface-2: var(--sx-ink-3);
  --sx-line: var(--sx-ink-3);
  --sx-fg: var(--sx-paper);
  --sx-fg-2: var(--sx-muted-2);
  --sx-fg-3: var(--sx-muted);
  --sx-btn-bg: var(--sx-paper);
  --sx-btn-fg: var(--sx-ink);
  --sx-focus: var(--sx-lime);
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    color-scheme: dark;
    --sx-bg: var(--sx-ink);
    --sx-surface: var(--sx-ink-2);
    --sx-surface-2: var(--sx-ink-3);
    --sx-line: var(--sx-ink-3);
    --sx-fg: var(--sx-paper);
    --sx-fg-2: var(--sx-muted-2);
    --sx-fg-3: var(--sx-muted);
    --sx-btn-bg: var(--sx-paper);
    --sx-btn-fg: var(--sx-ink);
    --sx-focus: var(--sx-lime);
  }
}

@media (max-width: 768px) {
  :root {
    --sx-type-display-size: 40px;
    --sx-type-display-lh: 48px;
    --sx-type-h1-size: 40px;
    --sx-type-h1-lh: 48px;
    --sx-type-h2-size: 28px;
    --sx-type-h2-lh: 40px;
    --sx-type-h3-size: 24px;
    --sx-type-h3-lh: 28px;
    --sx-type-h4-size: 20px;
    --sx-type-h4-lh: 24px;
    --sx-type-h5-size: 24px;
    --sx-type-h5-lh: 32px;
    --sx-type-h6-size: 16px;
    --sx-type-h6-lh: 24px;
    --sx-type-body-large-size: 16px;
    --sx-type-body-large-lh: 24px;
    --sx-type-body-size: 16px;
    --sx-type-body-lh: 24px;
    --sx-type-small-size: 13px;
    --sx-type-small-lh: 20px;
    --sx-type-button-large-size: 16px;
    --sx-type-button-large-lh: 24px;
    --sx-type-button-small-size: 13px;
    --sx-type-button-small-lh: 20px;
    --sx-type-eyebrow-size: 12px;
    --sx-type-eyebrow-lh: 16px;
    --sx-type-chip-size: 12px;
    --sx-type-chip-lh: 16px;
  }
}

/* ---- spunstudio/theme/src/css/studio.css ---- */
/* =====================================================================
   SPUN studio · tema "spun": sito prodotto in identità SPUN Beta (v2).
   Anatomia e regole: DESIGN_SYSTEM.md §15, skill spun-web-design. Riferimento:
   spun.tel (spuntel/client/src/themes/spun-v2/spun-v2.css), portato su Blade.
   Tutto sotto la classe radice .sx-studio; colore di campo: SPUN Studio.
   ===================================================================== */

/* ---------- Token del sito ------------------------------------------------ */
html { background: var(--sx-ink); scroll-padding-top: 64px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.sx-studio {
  --field: var(--sx-field-studio);
  --field-ink: var(--sx-field-studio-ink);
  --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);
  --accent: var(--sx-field-studio);
  --accent-line: var(--sx-field-studio);

  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;
}
html[data-theme="light"] { background: var(--sx-paper); }
html[data-theme="light"] .sx-studio {
  --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-cobalt);
  --accent: var(--sx-ink);
  --accent-line: var(--sx-muted);
}
/* Chiaro di default (D-011): "system" diventa scuro solo se il sistema lo chiede. */
@media not all and (prefers-color-scheme: dark) {
  html[data-theme="system"] { background: var(--sx-paper); }
  html[data-theme="system"] .sx-studio {
    --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-cobalt);
    --accent: var(--sx-ink);
    --accent-line: var(--sx-muted);
  }
}

/* Reset a specificità zero: vincono sempre le classi dei componenti. */
:where(.sx-studio) *, :where(.sx-studio) *::before, :where(.sx-studio) *::after { box-sizing: border-box; }
:where(.sx-studio) a { color: inherit; text-decoration: none; }
:where(.sx-studio) ul, :where(.sx-studio) ol { list-style: none; margin: 0; padding: 0; }
:where(.sx-studio) h1, :where(.sx-studio) h2, :where(.sx-studio) h3, :where(.sx-studio) p, :where(.sx-studio) figure, :where(.sx-studio) blockquote { margin: 0; }
:where(.sx-studio) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.sx-studio) img, :where(.sx-studio) video { display: block; max-width: 100%; }
.sx-studio :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sx-studio .sx-px { display: block; width: 100%; height: 100%; overflow: visible; }
html.sx-menu-open { overflow: hidden; }

.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 di 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-chip--lime { background: var(--sx-lime); color: var(--sx-ink); }
.sx-chip--line { background: none; box-shadow: inset 0 0 0 1px var(--rule); color: var(--text-2); }
.sx-dot { 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-h6 { font-size: 16px; line-height: 24px; 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); }
.sx-btn:disabled { opacity: .4; cursor: not-allowed; }
.sx-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Nav fissa, 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 .sx-logo-svg, .sx-logo svg { display: block; width: 88px; height: auto; }
.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; white-space: nowrap;
}
.sx-sq { flex: none; display: grid; place-items: center; width: 24px; height: 24px; background: var(--field); color: var(--field-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); white-space: nowrap;
  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, .sx-nav-end .sx-lang { display: none; }
.sx-lang { align-items: center; gap: 2px; padding-right: 4px; }
.sx-lang a {
  display: grid; place-items: center; min-width: 32px; height: 32px; padding-inline: 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
}
.sx-lang a:hover { color: var(--text); background: var(--soft); }
.sx-lang a[aria-current="true"] { color: var(--text); background: var(--soft-2); }
.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-menu-btn .sx-menu-close, .sx-menu-btn[aria-expanded="true"] .sx-menu-open { display: none; }
.sx-menu-btn[aria-expanded="true"] .sx-menu-close { display: block; }
/* Dentro la nav, che con backdrop-filter fa da riferimento ai figli fixed: il menu si posiziona sotto di lei. */
.sx-mobile {
  position: absolute; top: calc(100% + 1px); left: 0; right: 0; height: calc(100vh - 48px); height: calc(100dvh - 48px);
  overflow: auto; overscroll-behavior: contain; background: var(--bg); padding: 8px 16px 24px;
}
.sx-mobile[hidden] { display: none; }
.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; }
.sx-mobile .sx-lang { display: flex; margin-top: 16px; }
@media (min-width: 1024px) {
  .sx-nav-links { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .sx-nav-links::-webkit-scrollbar { display: none; }
  .sx-nav-end { padding-inline: 8px; }
  .sx-nav-end .sx-btn { display: inline-flex; }
  .sx-nav-end .sx-lang { display: flex; }
  .sx-menu-btn { display: none; }
  .sx-mobile { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .sx-nav-links a { padding-inline: 12px; } }
/* Tra 1024 e 1199px le voci non entrano tutte: il chip del prodotto lascia il posto. */
@media (min-width: 1024px) and (max-width: 1199px) { .sx-nav-product { display: none; } }

/* ---------- Simbolo con la scintilla "Filo che corre" (DESIGN_SYSTEM §3, D-030) ----------------- */
.sx-spark { display: block; width: 100%; height: 100%; overflow: visible; }
.sx-spark-run {
  stroke: var(--spark, var(--sx-lime)); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: .06 .94; stroke-dashoffset: 1; animation: sx-spark-run 3.2s linear infinite;
}
@keyframes sx-spark-run { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sx-spark-run { display: none; animation: none; } }

/* ---------- Hero: titolo, media cinematico e demo ------------------------------ */
.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 40px; }
.sx-hero-media { position: absolute; inset: 0 0 auto 0; height: 400px; overflow: hidden; }
.sx-hero-media img, .sx-hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 40%; }
.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 .sx-chip { background: rgba(250, 250, 244, .08); color: var(--sx-paper); border: 1px solid rgba(250, 250, 244, .14); }
.sx-hero .sx-lead { max-width: 560px; 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-hero .sx-eyebrow { color: rgba(250, 250, 244, .62); }
.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, .5);
}
.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(--field); color: var(--field-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); }
@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(48px, 5vw, 76px); line-height: 1.02; }
  .sx-hero-visual { padding: 0; }
  .sx-hero-media { inset: 0; height: auto; }
  .sx-hero-media img, .sx-hero-media video { object-position: 80% center; }
  .sx-hero-shade {
    background:
      linear-gradient(90deg, rgba(16, 16, 19, 1) 0%, rgba(16, 16, 19, .4) 20%, rgba(16, 16, 19, 0) 42%),
      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; }
}

/* Video in loop: il poster resta sotto finché il video non parte (e con movimento ridotto resta solo lui). */
.sx-video { position: absolute; inset: 0; overflow: hidden; }
.sx-video img, .sx-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Card demo sovrapposta al media ------------------------------------ */
.sx-demo { position: relative; z-index: 2; display: flex; justify-content: center; }
.sx-demo .sx-win {
  position: relative; width: min(100%, 460px); font-size: 14px;
  background: rgba(16, 16, 19, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-color: color-mix(in srgb, var(--sx-field-studio) 45%, transparent);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .85), 0 0 64px -12px color-mix(in srgb, var(--sx-field-studio) 40%, transparent);
}
.sx-demo .sx-btn--primary { background: var(--sx-paper); color: var(--sx-ink); }
.sx-demo .sx-btn--secondary { background: rgba(250, 250, 244, .1); color: var(--sx-paper); }
.sx-demo .sx-btn--secondary:hover { background: rgba(250, 250, 244, .16); }
.sx-demo :focus-visible { outline-color: var(--sx-lime); }
.sx-demo-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 12px 0; 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-field-studio); color: var(--sx-field-studio-ink); }
.sx-demo-panel { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.sx-demo-panel[hidden] { display: none; }
.sx-demo-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-demo-tools span {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 10.5px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase;
  background: rgba(250, 250, 244, .08); color: rgba(250, 250, 244, .7);
}
.sx-demo-tools span:first-child { background: var(--sx-field-studio); color: var(--sx-field-studio-ink); }
.sx-demo-tools .sx-px { width: 16px; height: 16px; }
.sx-demo .sx-log { height: 210px; padding: 8px 0 4px; }
.sx-demo-status { font-size: 14px; line-height: 20px; color: rgba(250, 250, 244, .82); }
.sx-demo-big { font-size: 24px; line-height: 32px; font-weight: 500; color: var(--sx-paper); }
.sx-demo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-demo-actions .sx-btn { flex: 1; }
.sx-demo-note { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: rgba(250, 250, 244, .5); }
.sx-demo-note a { color: var(--sx-paper); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 1024px) {
  .sx-demo { position: absolute; left: -48px; bottom: 56px; width: min(440px, calc(100% - 24px)); }
}

/* ---------- Nastro "Cosa fa" e carosello "Compatibile con" --------------------- */
.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 .sx-px { width: 16px; height: 16px; color: var(--accent); }
@keyframes sxs-marquee { to { transform: translateX(-50%); } }
@media (min-width: 768px) { .sx-marquee-label { display: flex; } }

/* ---------- 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; }
.sx-head .sx-body a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .sx-head { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: 40px; padding: 112px 40px 56px; }
}

/* ---------- Da cosa parti, cosa ottieni, flusso in 5 passi ---------------------- */
.sx-inout { grid-template-columns: minmax(0, 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 .sx-px { 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-footnote a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.sx-flowsteps { grid-template-columns: minmax(0, 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-sq48 { flex: none; display: grid; place-items: center; width: 48px; height: 48px; background: var(--field); color: var(--field-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-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(--field); color: var(--field-ink); } }
@media (min-width: 768px) {
  .sx-inout, .sx-flowsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Cinque passi su due colonne: l'ultimo occupa la riga intera, senza buchi. */
  .sx-flowsteps > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .sx-inout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-inout--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-inout-col { padding: 40px 24px 48px; }
  .sx-flowsteps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sx-flowsteps > :last-child:nth-child(odd) { 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(--accent-line); border-right: 1px solid var(--accent-line); transform: rotate(45deg);
  }
  .sx-footnote { padding: 16px 40px; }
}

/* ---------- Card prodotto con indice laterale ----------------------------------- */
.sx-product { display: grid; grid-template-columns: minmax(0, 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(--field); color: var(--field-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; }
}

/* ---------- Funzioni, come funziona ------------------------------------------ */
.sx-features, .sx-steps, .sx-demos { grid-template-columns: minmax(0, 1fr); }
.sx-feature, .sx-step { display: flex; flex-direction: column; gap: 16px; padding: 32px 16px 40px; }
.sx-demos { border-top: 1px solid var(--rule); }
@media (min-width: 768px) { .sx-features, .sx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .sx-features, .sx-demos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sx-feature, .sx-step { padding: 40px 24px 48px; }
}

/* ---------- Soluzioni: card fotografiche ---------------------------------------- */
.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; 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 .sx-px { width: 16px; height: 16px; }
.sx-person:hover .sx-person-cta { color: var(--sx-lime); }
.sx-person .sx-sq { background: var(--sx-field-studio); color: var(--sx-field-studio-ink); }
.sx-person--contact .sx-sq { background: var(--sx-lime); color: var(--sx-ink); }
/* Nella foto dei contatti il soggetto sta nel terzo basso: il testo va in alto. */
.sx-person--contact::after { background: linear-gradient(180deg, rgba(16, 16, 19, .94) 0%, rgba(16, 16, 19, .45) 40%, rgba(16, 16, 19, 0) 62%); }
.sx-person--contact .sx-person-body { top: 0; bottom: auto; }
/* Hover delle card dei settori (D-017): il colore della categoria (--tone dal data-tone della card) copre la foto in
   semitrasparenza, titolo al centro e testo sotto, nell'inchiostro della coppia (contrasto da 4,2:1 in su anche sulle
   zone nere della foto). Solo dove il puntatore fa hover: sul telefono la card resta com'è. */
.sx-person::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--tone, var(--field)); opacity: 0; pointer-events: none; }
.sx-person-body { z-index: 2; }
@media (hover: hover) {
  .sx-person:is(:hover, :focus-visible)::before { opacity: .88; }
  .sx-person:is(:hover, :focus-visible)::after { opacity: 0; }
  .sx-person:is(:hover, :focus-visible) .sx-person-body {
    top: 0; bottom: 0; justify-content: center; align-items: center; text-align: center; color: var(--tone-ink, var(--field-ink));
  }
  .sx-person:is(:hover, :focus-visible) .sx-person-body p,
  .sx-person:is(:hover, :focus-visible) .sx-person-cta { color: var(--tone-ink, var(--field-ink)); }
  .sx-person:is(:hover, :focus-visible) .sx-person-body p { max-width: 32ch; font-weight: 500; }
  .sx-studio .sx-person:is(:hover, :focus-visible) .sx-sq { background: var(--tone-ink, var(--field-ink)); color: var(--tone, var(--field)); }
  .sx-person:is(:hover, :focus-visible) .sx-person-yours { align-self: center; }
}
/* Sul telefono e sul tablet (niente hover) colore e titolo al centro restano sempre, su richiesta del committente. */
@media (hover: none) {
  .sx-person::before { opacity: .88; }
  .sx-person::after { opacity: 0; }
  .sx-person .sx-person-body {
    top: 0; bottom: 0; justify-content: center; align-items: center; text-align: center; color: var(--tone-ink, var(--field-ink));
  }
  .sx-person .sx-person-body p, .sx-person .sx-person-cta { color: var(--tone-ink, var(--field-ink)); }
  .sx-person .sx-person-body p { max-width: 32ch; font-weight: 500; }
  .sx-studio .sx-person .sx-sq { background: var(--tone-ink, var(--field-ink)); color: var(--tone, var(--field)); }
  .sx-person .sx-person-yours { align-self: center; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sx-person::before, .sx-person::after { transition: opacity .36s steps(3, end); }
  .sx-person:is(:hover, :focus-visible) .sx-person-body { animation: sc-pop .3s steps(3, end) both; }
}
@media (min-width: 768px) {
  .sx-people { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
}
@media (min-width: 1024px) {
  .sx-people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-person-body { padding: 32px; }
}

/* ---------- Illustrazioni: campo colore, griglia, finestra ---------------------- */
.sx-illu {
  --f: var(--sx-field-studio);
  --k: var(--sx-ink);
  --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, .72fr) minmax(0, 1.28fr); 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); --k: var(--sx-paper); background: var(--sx-ink); }
.sx-illu-media { position: absolute; inset: 0; }
.sx-illu-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 16, 19, .15) 0%, rgba(16, 16, 19, .5) 55%, 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-ink); color: var(--sx-paper); padding: 4px 8px;
}
.sx-illu--media .sx-tag { background: var(--sx-paper); color: var(--sx-ink); }
.sx-tag i { width: 6px; height: 6px; background: currentColor; }
.sx-tag::after {
  content: ""; position: absolute; left: 100%; top: 50%; width: 400px; height: 1px;
  background: color-mix(in srgb, var(--k) 45%, transparent);
  transform-origin: left; animation: sxs-wire 3.6s steps(12, end) infinite;
  animation-delay: calc(var(--tag-i, 0) * 220ms);
}
.sx-tag:nth-child(2)::after { --tag-i: 1; }
.sx-tag:nth-child(3)::after { --tag-i: 2; }
.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); }

.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-field-studio); }
.sx-win-ico .sx-logo-mark { display: block; width: 15px; height: 16px; color: var(--sx-paper); }
.sx-win-name { font-weight: 600; }
.sx-win-state {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  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; }
@keyframes sxs-led { 50% { opacity: .25; } }

/* Dialoghi dimostrativi in stile chat (ChatGPT, Claude): bolla a destra per chi scrive, risposta a sinistra col
   simbolo SPUN, conferma come allegato, casella per scrivere. Con JS i messaggi entrano uno alla volta. */
.sx-chat { display: flex; flex-direction: column; }
.sx-log { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; height: clamp(200px, 21vw, 270px); padding: 12px 14px 8px; overflow: hidden; }
.sx-log--mini { height: clamp(196px, 18vw, 240px); }
.sx-win--mini { width: min(100%, 400px); font-size: 13px; }
.sx-msg { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.sx-msg p { min-width: 0; line-height: 1.5; text-wrap: pretty; }
.sx-msg--you { justify-content: flex-end; }
.sx-msg--you p { max-width: 84%; padding: 7px 14px; border-radius: 18px; background: rgba(250, 250, 244, .1); color: var(--sx-paper); }
.sx-msg--ai p { padding-top: 2px; color: rgba(250, 250, 244, .9); }
.sx-msg-avatar { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sx-paper); color: var(--sx-ink); }
.sx-msg-avatar .sx-logo-mark { display: block; width: 11px; height: 12px; }
.sx-handoff {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-left: 34px; padding: 5px 12px 5px 6px;
  border-radius: 10px; background: rgba(250, 250, 244, .05); box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .12);
  font-size: 12px; line-height: 18px; color: rgba(250, 250, 244, .86);
}
.sx-handoff-ico { display: grid; flex: none; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--sx-lime); color: var(--sx-ink); }
.sx-handoff-ico .sx-arrow { display: block; width: 12px; height: 12px; }
.sx-typing { display: none; align-items: center; gap: 10px; }
.sx-typing.is-on { display: flex; }
.sx-dots { display: inline-flex; gap: 4px; }
.sx-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(250, 250, 244, .6); animation: sxs-dot 1s steps(2, jump-none) infinite; }
.sx-dots i:nth-child(2) { animation-delay: .15s; }
.sx-dots i:nth-child(3) { animation-delay: .3s; }
.sx-composer {
  display: flex; align-items: center; gap: 10px; margin: 2px 10px 10px; padding: 5px 5px 5px 14px; border-radius: 20px;
  background: rgba(250, 250, 244, .06); box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .14); color: rgba(250, 250, 244, .5);
}
.sx-composer-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sx-send { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sx-paper); color: var(--sx-ink); }
.sx-send .sx-arrow { display: block; width: 14px; height: 14px; transform: rotate(180deg); }
.is-playing [data-step]:not(.is-on) { display: none; }
.is-playing [data-step].is-on { animation: sxs-in .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sxs-dot { 50% { transform: translateY(-3px); opacity: .45; } }
@keyframes sxs-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Campi piccoli di "Come funziona" */
.sx-illu.sx-feat { aspect-ratio: 4 / 3; grid-template-columns: minmax(0, 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-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 minmax(0, 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 .sx-px { 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: minmax(0, 1fr); }
  .sx-illu.sx-feat { aspect-ratio: auto; min-height: 280px; }
  .sx-illu-tags { display: none; }
  .sx-log { height: 200px; }
  .sx-flow span { font-size: 9px; padding: 8px 2px; }
}

/* ---------- Estensioni ------------------------------------------------------------ */
.sx-ext { grid-template-columns: minmax(0, 1fr); }
.sx-ext-col { display: flex; flex-direction: column; gap: 16px; padding: 32px 16px 40px; }
.sx-ext-head { display: flex; align-items: center; gap: 12px; }
.sx-ext-list { display: flex; flex-direction: column; }
.sx-ext-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--rule); }
.sx-ext-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sx-ext-row b { font-weight: 500; }
.sx-ext-row .sx-chip { flex-shrink: 0; white-space: nowrap; }
.sx-ext-item p { font-size: 13px; line-height: 20px; color: var(--text-2); }
@media (min-width: 768px) { .sx-ext { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .sx-ext--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-ext-col { padding: 40px 24px 48px; }
}

/* ---------- Template (dati del CMS) ------------------------------------------------ */
.sx-tpl-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 16px; border-bottom: 1px solid var(--rule); }
.sx-tpl-filters button {
  min-height: 32px; padding: 4px 10px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase;
  background: var(--soft); color: var(--text-2); transition: background-color .2s, color .2s;
}
.sx-tpl-filters button:hover { color: var(--text); }
.sx-tpl-filters button[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); }
/* Le celle filtrate spariscono: filetti a destra e sotto, quelli esterni tagliati dal contenitore. */
.sx-tpl-wrap { overflow: hidden; }
.sx-tpl-grid { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 -1px -1px 0; }
.sx-tpl { display: flex; flex-direction: column; gap: 8px; padding: 24px 16px 28px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sx-tpl[hidden] { display: none; }
.sx-tpl .sx-sq { margin-bottom: 8px; }
.sx-tpl p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: 14px; line-height: 20px; color: var(--text-2); }
.sx-tpl-more { display: flex; justify-content: center; padding: 24px 16px; border-top: 1px solid var(--rule); }
.sx-tpl-more[hidden] { display: none; }
@media (min-width: 768px) { .sx-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .sx-tpl-filters { padding: 24px 40px; }
  .sx-tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sx-tpl { padding: 28px 24px 32px; }
}

/* ---------- Prezzi ------------------------------------------------------------------ */
.sx-plans { grid-template-columns: minmax(0, 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(--accent-line); }
.sx-plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sx-plan-price { display: flex; flex-wrap: wrap; 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-price :is(del, s) { font-size: .5em; 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-plan-more summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; color: var(--text-2); }
.sx-plan-more summary::-webkit-details-marker { display: none; }
.sx-plan-more summary .sx-px { width: 16px; height: 16px; }
.sx-plan-more[open] summary .sx-px { transform: rotate(180deg); }
.sx-plan-panel { display: grid; gap: 6px; max-height: 280px; overflow: auto; margin-top: 10px; padding: 12px; border: 1px solid var(--rule); border-radius: 6px; font-size: 13px; line-height: 20px; }
.sx-plan-panel li { display: flex; align-items: center; gap: 8px; }
.sx-plan-panel li .sx-px { flex: none; width: 16px; height: 16px; }
.sx-plan-panel li.is-off { color: var(--text-2); }
.sx-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 16px; padding: 4px; width: fit-content; background: var(--soft); border-radius: 6px; }
.sx-tabs button { min-height: 32px; padding: 0 12px; border-radius: 4px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.sx-tabs button[aria-selected="true"] { background: var(--bg); color: var(--text); }
.sx-plans-bar { padding: 24px 0; border-bottom: 1px solid var(--rule); }
html:not(.sx-js) .sx-plans-panel[hidden] { display: block; }
@media (min-width: 1024px) {
  .sx-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-plan { padding: 40px 32px 48px; }
  .sx-plan-price b { font-size: 44px; line-height: 52px; }
  .sx-tabs { margin: 0 40px; }
}

/* ---------- FAQ, blog, testimonianze (dati del CMS) --------------------------------- */
.sx-faq { border-top: 0; }
.sx-faq details + details { border-top: 1px solid var(--rule); }
.sx-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 16px;
  cursor: pointer; list-style: none; font-size: 18px; line-height: 26px; font-weight: 500; transition: background-color .2s;
}
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary:hover { background: var(--soft); }
.sx-faq-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 6px; background: var(--soft); }
.sx-faq-icon::before, .sx-faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; }
.sx-faq-icon::after { transform: rotate(90deg); transition: transform .2s steps(2, jump-none); }
.sx-faq details[open] .sx-faq-icon::after { transform: rotate(0deg); }
.sx-faq-a { max-width: 72ch; padding: 0 16px 24px; color: var(--text-2); }
@media (min-width: 1024px) { .sx-faq summary { padding: 24px 40px; } .sx-faq-a { padding: 0 40px 28px; } }

.sx-posts { grid-template-columns: minmax(0, 1fr); }
.sx-post { display: flex; flex-direction: column; gap: 12px; padding: 24px 16px 32px; }
.sx-post-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--surface); }
.sx-post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.sx-post:hover .sx-post-media img { transform: scale(1.04); }
.sx-post .sx-eyebrow { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-post h3 a:hover, .sx-post .sx-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sx-post-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.sx-post-cta .sx-px { width: 16px; height: 16px; }
@media (min-width: 768px) { .sx-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sx-post { padding: 32px 24px 40px; } }

.sx-quotes { grid-template-columns: minmax(0, 1fr); }
.sx-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px 16px 40px; }
.sx-quote blockquote { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; }
.sx-quote figcaption { display: flex; align-items: center; gap: 12px; }
.sx-quote img { flex: none; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--surface); }
.sx-quote figcaption span { display: flex; flex-direction: column; }
.sx-quote figcaption small { font-size: 13px; line-height: 20px; color: var(--text-2); }
@media (min-width: 1024px) { .sx-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sx-quote { padding: 40px 24px 48px; } }

/* ---------- 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:
    linear-gradient(90deg, var(--sx-cobalt) 0%, var(--sx-cobalt) 34%, rgba(35, 72, 255, .7) 62%, rgba(35, 72, 255, .3) 100%),
    var(--sx-ink) var(--cta-photo, none) right center / cover no-repeat;
}
.sx-cta::before {
  content: ""; position: absolute; inset: 0; 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-in { position: relative; z-index: 1; 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; }
@media (min-width: 1024px) {
  .sx-cta { min-height: 440px; }
  .sx-cta-in { padding: 56px 40px; }
}

/* ---------- Nastro "Compatibile con" (nel corpo della pagina, D-043) -------------------- */
/* Il footer è quello unico del kit (packages/site-kit/assets/footer.css, in coda a spun.css). */
.sx-compat { border-top: 1px solid var(--rule); }
.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-compat-logo { display: block; flex: none; width: 20px; height: 20px; color: var(--text); }
.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); }

/* ---------- Pagine soluzione -------------------------------------------------------- */
.sx-crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.sx-hero--solution .sx-hero-media img { object-position: center 30%; }
.sx-hero--solution .sx-log--mini { height: 204px; }
.sx-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 16px 32px; }
@media (min-width: 1024px) { .sx-links { padding: 32px 40px 40px; } }

/* ---------- Privacy e termini: testo del pannello, colonna di lettura ------------------- */
.sx-legal-head { display: grid; gap: 16px; padding: 104px 16px 40px; border-bottom: 1px solid var(--rule); }
.sx-legal-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-legal-switch a:not([aria-current]):hover { color: var(--text); }
.sx-legal { max-width: 800px; padding: 40px 16px 80px; font-size: 16px; line-height: 26px; color: var(--text-2); }
.sx-legal > :first-child { margin-top: 0; }
.sx-legal h2 { margin: 48px 0 12px; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -.01em; color: var(--text); }
.sx-legal p, .sx-legal ul, .sx-legal ol { margin: 0 0 16px; }
.sx-legal ul, .sx-legal ol { padding-left: 20px; }
.sx-legal ul { list-style: square; }
.sx-legal ol { list-style: decimal; }
.sx-legal li { margin-bottom: 8px; }
.sx-legal strong { font-weight: 500; color: var(--text); }
.sx-legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sx-legal code { font-family: var(--font-mono); font-size: 13px; background: var(--surface); padding: 1px 4px; border-radius: 4px; }
@media (min-width: 1024px) {
  .sx-legal-head { padding: 144px 40px 56px; }
  .sx-legal { padding: 56px 40px 112px; font-size: 17px; line-height: 28px; }
  .sx-legal h2 { font-size: 24px; line-height: 32px; }
}

/* ---------- Cookie e bottone flottante ----------------------------------------------- */
.sx-gdpr {
  position: fixed; z-index: 60; left: 8px; right: 8px; bottom: 8px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 12px 12px 12px 20px; background: var(--bg); color: var(--text);
  border: 1px solid var(--rule); border-radius: 10px; font-size: 13px; line-height: 20px;
}
.sx-gdpr a { text-decoration: underline; text-underline-offset: 3px; }
#gdpr.hidden { display: none; }
@media (min-width: 768px) { .sx-gdpr { left: 50%; right: auto; width: min(760px, calc(100vw - 32px)); transform: translateX(-50%); } }
.sx-float {
  position: fixed; z-index: 55; left: 16px; bottom: 16px; display: none; align-items: center; gap: 12px;
  padding: 8px 16px 8px 8px; border-radius: 6px; background: var(--btn); color: var(--btn-text); font-size: 13px; line-height: 20px;
}
.sx-float .sx-sq { width: 32px; height: 32px; }
.sx-float strong { display: block; font-weight: 500; }
@media (min-width: 768px) { .sx-float { display: flex; } }

/* ---------- Adattamenti alla piattaforma e numero variabile di elementi --------------------- */
html:not(.sx-js) .sx-js-only, html:not(.sx-js) .sx-demo-tabs { display: none !important; }
.sx-menu-btn > span { display: block; width: 16px; height: 16px; }
.sx-menu-btn .sx-menu-close, .sx-menu-btn[aria-expanded="true"] .sx-menu-open { display: none; }
.sx-menu-btn[aria-expanded="true"] .sx-menu-close { display: block; }
.sx-mobile .sx-lang a { display: grid; padding: 0 8px; border-bottom: 0; font-size: 12px; line-height: 16px; font-weight: 400; }
.sx-plan-more { flex: 1; min-width: 0; }
/* Piani dal CMS: numero libero di schede, filetti a destra e sotto come per i template. */
.sx-plan-grid { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 -1px -1px 0; }
.sx-plan-grid > .sx-plan { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) and (max-width: 1023px) {
  .sx-inout > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .sx-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-ext--1, .sx-ext--3 { grid-template-columns: minmax(0, 1fr); }
  .sx-ext--2, .sx-ext--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-posts--1, .sx-quotes--1 { grid-template-columns: minmax(0, 1fr); }
  .sx-posts--2, .sx-quotes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .sx-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-ext--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-ext--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sx-quotes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ---- spunstudio/theme/src/css/home-studio.css ---- */
/* =====================================================================
   SPUN studio · home "studio" (theme.json › spun.home = "studio").
   Ritmo e sezioni ispirati alla pagina Supercomputer di Higgsfield: titolo
   pixel, prompt al centro, demo della creazione di contenuti, team in un
   account, assistenti, memoria del brand, cosa puoi creare, strumenti, casi d'uso.
   Identità SPUN Beta (v2): Instrument Sans + Space Mono, icone pixel, lilla
   di Studio, movimento a scatti con steps(). Chiaro di default (D-011):
   finestre e pannelli d'interfaccia restano scuri, il resto segue il tema.
   ===================================================================== */

/* ---------- Contesti sempre scuri --------------------------------------------- */
.sc-app, .sc-ui, .sc-mini, .sc-use, .sc-cta {
  --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);
  --accent: var(--field);
  color: var(--text);
}

/* ---------- Base ---------------------------------------------------------------- */
.sc-sec { padding: 72px 16px; border-bottom: 1px solid var(--rule); }
.sc-head { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 920px; margin: 0 auto 40px; text-align: center; }
.sc-h2 { font-size: 36px; line-height: 40px; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
.sc-h3 { font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
.sc-h4 { font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -.01em; }
.sc-text { max-width: 640px; font-size: 16px; line-height: 24px; color: var(--text-2); text-wrap: pretty; }
.sc-mark { padding: 0 .1em; background: var(--cat, var(--field)); color: var(--cat-ink, var(--field-ink)); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sc-center { justify-content: center; }
.sc-note { max-width: 1240px; margin: 16px auto 0; text-align: center; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.sc-line { display: block; height: 6px; border-radius: 3px; background: rgba(250, 250, 244, .14); }
.sc-line--short { width: 60%; }
.sc-ui-chip {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; background: rgba(250, 250, 244, .08);
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--sx-muted-2);
}
.sc-ui-chip.is-on { background: var(--field); color: var(--field-ink); }
.sc-ui-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; font-weight: 500; }
.sc-ui-ico { display: block; flex: none; width: 16px; height: 16px; color: var(--field); }
@media (min-width: 768px) {
  .sc-sec { padding: 112px 40px; }
  .sc-head { margin-bottom: 56px; }
  .sc-h2 { font-size: 56px; line-height: 60px; }
  .sc-h3 { font-size: 36px; line-height: 40px; }
  .sc-text { font-size: 20px; line-height: 28px; }
}
@media (min-width: 1280px) { .sc-h2 { font-size: 72px; line-height: 76px; } }

/* ---------- Media e segnaposto ------------------------------------------------------ */
.sc-media { position: relative; overflow: hidden; background: #1b1b21; }
.sc-media img, .sc-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-ph {
  background-color: #17171c;
  background-image:
    linear-gradient(45deg, color-mix(in srgb, var(--field) 7%, transparent) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--field) 7%, transparent) 75%),
    linear-gradient(45deg, color-mix(in srgb, var(--field) 7%, transparent) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--field) 7%, transparent) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

/* ---------- Hero ---------------------------------------------------------------------- */
.sc-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--bg); border-bottom: 1px solid var(--rule); }
.sc-hero, .sc-crew { --sc-grid: color-mix(in srgb, var(--text) 7%, transparent); }
.sc-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--sc-grid) 1px, transparent 1px), linear-gradient(90deg, var(--sc-grid) 1px, transparent 1px);
  background-size: 32px 32px; background-position: 50% 0;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 10%, transparent 72%);
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 10%, transparent 72%);
}
.sc-hero::after {
  content: ""; position: absolute; left: 50%; top: 6%; z-index: -1; width: min(1100px, 150vw); aspect-ratio: 2 / 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--field) 18%, transparent), rgba(35, 72, 255, .06) 60%, transparent); pointer-events: none;
}
.sc-hero-in { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 1000px; margin: 0 auto; padding: 112px 16px 72px; text-align: center; }
.sc-tile {
  display: grid; flex: none; place-items: center; width: 88px; height: 88px; padding: 20px; border-radius: 20px;
  background: linear-gradient(160deg, #26242e, #111115); color: var(--field);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--field) 30%, transparent), 0 0 0 8px color-mix(in srgb, var(--field) 4%, transparent), 0 18px 70px color-mix(in srgb, var(--field) 25%, transparent);
}
.sc-tile .sx-px { width: 48px; height: 48px; }
.sc-title { display: block; width: 350px; max-width: 100%; }
.sx-pixel-title { display: block; width: 100%; height: auto; overflow: visible; color: var(--text); filter: drop-shadow(0 0 20px color-mix(in srgb, var(--field) 30%, transparent)); }
.sc-lead { max-width: 640px; font-size: 18px; line-height: 26px; color: var(--text-2); text-wrap: balance; }
.sc-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sc-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; }
.sc-modes a {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 6px;
  background: var(--soft); font-size: 14px; line-height: 24px; color: var(--text);
}
.sc-modes a:hover { background: color-mix(in srgb, var(--field) 18%, transparent); }
@media (min-width: 768px) {
  .sc-hero-in { gap: 28px; padding: 144px 40px 96px; }
  .sc-title { width: 525px; }
  .sc-lead { font-size: 22px; line-height: 30px; }
}
@media (min-width: 1280px) { .sc-title { width: 700px; } }

/* ---------- Barra del prompt ------------------------------------------------------------ */
.sc-prompt {
  display: flex; align-items: center; gap: 12px; width: min(100%, 760px); padding: 10px 10px 10px 18px; border-radius: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 16%, transparent), 0 16px 40px -28px rgba(16, 16, 19, .45); color: var(--text); text-align: left;
}
.sc-prompt:hover { box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 48px color-mix(in srgb, var(--field) 14%, transparent); }
.sc-prompt-text {
  display: -webkit-box; flex: 1; min-width: 0; height: 48px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: 16px; line-height: 24px; color: color-mix(in srgb, var(--text) 80%, transparent);
}
.sc-prompt-text::after {
  content: ""; display: inline-block; width: 8px; height: 18px; margin-left: 3px; vertical-align: -3px;
  background: color-mix(in srgb, var(--field) 55%, var(--text)); animation: sc-caret 1s steps(1) infinite;
}
.sc-prompt-go { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 14px; border-radius: 10px; background: var(--field); color: var(--field-ink); }
@media (min-width: 768px) {
  .sc-prompt { padding: 12px 12px 12px 22px; }
  .sc-prompt-text { display: block; height: 28px; font-size: 19px; line-height: 28px; white-space: nowrap; text-overflow: ellipsis; }
}

/* ---------- Demo --------------------------------------------------------------------------- */
.sc-app { max-width: 1240px; margin: 0 auto; overflow: hidden; border-radius: 14px; background: #131317; box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .12), 0 40px 100px rgba(0, 0, 0, .35); }
.sc-app-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(250, 250, 244, .1); }
.sc-app-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.sc-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px; border-bottom: 1px solid rgba(250, 250, 244, .1); scrollbar-width: none; }
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tabs button { display: flex; flex: none; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 8px; color: var(--sx-muted-2); text-align: left; }
.sc-tabs button:hover { background: rgba(250, 250, 244, .05); color: var(--sx-paper); }
.sc-tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--field) 14%, transparent); color: var(--sx-paper); }
.sc-tab-label { display: flex; flex-direction: column; font-size: 14px; line-height: 20px; }
.sc-tab-label small { display: none; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .02em; color: var(--sx-muted-2); }
.sc-stage { display: flex; flex-direction: column; min-height: 600px; }
.sc-stage[hidden] { display: none; }
html:not(.sx-js) .sc-tabs { display: none; }
html:not(.sx-js) .sc-stage + .sc-stage { border-top: 1px solid rgba(250, 250, 244, .1); }
@media (min-width: 1024px) {
  .sc-app-body { grid-template-columns: 260px minmax(0, 1fr); }
  .sc-tabs { flex-direction: column; overflow: visible; padding: 12px; border-right: 1px solid rgba(250, 250, 244, .1); border-bottom: 0; }
  .sc-tabs button { padding: 10px 12px 10px 10px; }
  .sc-tab-label small { display: block; }
  .sc-stage { min-height: 680px; }
}

.sc-thread { display: flex; flex: 1; flex-direction: column; gap: 22px; width: 100%; max-width: 860px; margin: 0 auto; padding: 24px 16px 16px; }
.sc-you { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sc-you-text { max-width: min(88%, 580px); padding: 10px 18px; border-radius: 22px; background: rgba(250, 250, 244, .09); font-size: 15px; line-height: 24px; }
.sc-bot { display: flex; align-items: flex-start; gap: 12px; }
.sc-bot-avatar { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sx-paper); color: var(--sx-ink); }
.sc-bot-avatar .sx-logo-mark { display: block; width: 13px; height: 14px; }
.sc-bot-avatar--sm { width: 24px; height: 24px; }
.sc-bot-avatar--sm .sx-logo-mark { width: 11px; height: 12px; }
.sc-bot-body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 14px; min-width: 0; padding-top: 2px; }
.sc-bot-text { font-size: 15px; line-height: 24px; color: rgba(250, 250, 244, .92); }
.sc-think { position: absolute; left: 0; top: 2px; display: none; align-items: center; gap: 5px; font-size: 14px; line-height: 24px; color: var(--sx-muted-2); }
.sc-think i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: sxs-dot 1s steps(2, jump-none) infinite; }
.sc-think i:nth-child(2) { animation-delay: .15s; }
.sc-think i:nth-child(3) { animation-delay: .3s; }
.sc-think span { margin-left: 6px; }
/* Mentre lo studio lavora: puntini al posto della risposta; l'avatar compare con il messaggio. */
.sx-js .is-live .sc-you.is-on ~ .sc-bot .sc-bot-body:not(:has(.is-on)) .sc-think { display: flex; }
.sx-js .is-live .sc-you:not(.is-on) ~ .sc-bot .sc-bot-avatar { visibility: hidden; }
.sc-composer {
  display: flex; align-items: flex-end; gap: 12px; width: calc(100% - 32px); max-width: 860px; margin: 0 auto 16px; padding: 8px 8px 8px 20px;
  border-radius: 26px; background: rgba(250, 250, 244, .06); box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .14);
}
.sc-composer-text { flex: 1; min-width: 0; padding: 6px 0; font-size: 15px; line-height: 24px; color: rgba(250, 250, 244, .5); }
.sc-composer-text.is-typing { color: var(--sx-paper); }
.sc-composer-text.is-typing::after {
  content: ""; display: inline-block; width: 2px; height: 18px; margin-left: 2px; vertical-align: -3px;
  background: var(--sx-paper); animation: sc-caret 1s steps(1) infinite;
}
.sc-send { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sx-paper); color: var(--sx-ink); }
.sc-send .sx-arrow { display: block; width: 16px; height: 16px; transform: rotate(180deg); }
.sc-composer--mini { align-items: center; width: 100%; margin: 0; padding: 4px 4px 4px 14px; border-radius: 20px; }
.sc-composer--mini .sc-composer-text { padding: 0; font-size: 13px; line-height: 20px; }
.sc-composer--mini .sc-send { width: 28px; height: 28px; }
.sc-composer--mini .sc-send .sx-arrow { width: 14px; height: 14px; }
.sc-done { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sc-tools { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .02em; color: var(--sx-muted-2); }
@media (min-width: 1024px) {
  .sc-thread { padding: 40px 32px 24px; }
  .sc-composer { width: calc(100% - 64px); margin-bottom: 24px; }
}

/* Sequenza: gli elementi restano al loro posto (niente salti) e compaiono a scatti. */
.sx-js .is-live [data-s]:not(.is-on) { visibility: hidden; }

.sc-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sc-post { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border-radius: 10px; background: rgba(250, 250, 244, .05); box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .08); font-size: 13px; line-height: 19px; }
.sc-post-head { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; }
.sc-avatar { flex: none; width: 20px; height: 20px; border-radius: 4px; background: var(--field); }
.sc-post-media { aspect-ratio: 1; border-radius: 6px; }
.sc-tags { font-size: 12px; color: var(--field); }
@media (max-width: 767px) {
  .sc-posts { grid-template-columns: repeat(3, 78%); overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .sc-posts::-webkit-scrollbar { display: none; }
  .sc-post { scroll-snap-align: start; }
}

.sc-doc { display: flex; flex-direction: column; gap: 12px; max-width: 700px; padding: 24px; border-radius: 10px; background: var(--sx-paper); color: var(--sx-ink); }
.sc-doc-kicker { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-muted); }
.sc-doc h3 { font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -.02em; }
.sc-doc p:not(.sc-doc-kicker) { font-size: 15px; line-height: 23px; }
.sc-doc-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.sc-doc-actions span { padding: 4px 10px; border-radius: 4px; background: var(--sx-ink); color: var(--sx-paper); font-family: var(--font-mono); font-size: 12px; line-height: 16px; }

.sc-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sc-shot { position: relative; }
.sc-shot-media { aspect-ratio: 1; border-radius: 8px; }
.sc-shot figcaption { position: absolute; left: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(16, 16, 19, .72); font-family: var(--font-mono); font-size: 11px; line-height: 16px; }
@media (min-width: 1024px) { .sc-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.sc-clip { max-width: 780px; overflow: hidden; border-radius: 10px; background: #0b0b0e; }
.sc-clip-media { aspect-ratio: 16 / 9; }
.sc-clip-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--sx-muted-2); }
.sc-clip-bar i { position: relative; flex: 1; height: 4px; background: rgba(250, 250, 244, .14); }
.sc-clip-bar i::after { content: ""; position: absolute; inset: 0; background: var(--field); transform-origin: left; }

.sc-voice { display: flex; flex-direction: column; gap: 16px; max-width: 780px; padding: 20px; border-radius: 10px; background: rgba(250, 250, 244, .05); box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .08); }
.sc-voice-head { display: flex; align-items: center; gap: 12px; }
.sc-voice-head span:last-child { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--sx-muted-2); }
.sc-play { display: grid; flex: none; place-items: center; width: 36px; height: 36px; padding: 10px; border-radius: 8px; background: var(--field); color: var(--field-ink); }
.sc-wave { display: flex; align-items: center; gap: 3px; height: 80px; }
.sc-wave i { flex: 1; height: var(--h); background: var(--field); }
.sc-voice-text { font-size: 15px; line-height: 23px; color: var(--sx-muted-2); }

.sc-file { display: inline-flex; align-self: flex-end; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 8px; background: rgba(250, 250, 244, .06); font-size: 14px; line-height: 20px; }
.sc-file span:last-child { font-family: var(--font-mono); font-size: 12px; color: var(--sx-muted-2); }
.sc-cite { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--field); color: var(--field-ink); font-family: var(--font-mono); font-size: 11px; line-height: 18px; }

/* ---------- Team -------------------------------------------------------------------------------- */
.sc-team { display: grid; gap: 16px; max-width: 1440px; margin: 0 auto; }
.sc-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.sc-card-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px; }
.sc-card-head p { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--text-2); }
.sc-ui { display: flex; flex: 1; flex-direction: column; gap: 12px; margin: 0 12px 12px; padding: 12px; border-radius: 10px; background: #131317; box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .08); }
.sc-cal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sc-cal-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sc-cal-media { aspect-ratio: 4 / 5; border-radius: 6px; }
.sc-cal-item .sc-ui-chip { align-self: flex-start; }
.sc-frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sc-frame-item { position: relative; }
.sc-frame-media { aspect-ratio: 16 / 10; border-radius: 6px; }
.sc-frame-item figcaption { position: absolute; left: 6px; top: 6px; padding: 0 6px; border-radius: 4px; background: rgba(16, 16, 19, .72); font-family: var(--font-mono); font-size: 10px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; }
.sc-strip { display: flex; align-items: center; gap: 2px; height: 40px; padding: 0 6px; border-radius: 6px; background: rgba(250, 250, 244, .05); }
.sc-strip i { flex: 1; height: var(--h); background: color-mix(in srgb, var(--field) 70%, transparent); }
.sc-mood { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sc-mood-media { aspect-ratio: 1; border-radius: 6px; }
.sc-swatches { display: flex; align-items: center; gap: 6px; }
.sc-swatches i { width: 20px; height: 20px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .2); }
.sc-swatches .sc-ui-chip { margin-left: auto; }
@media (min-width: 1024px) { .sc-team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Assistenti -------------------------------------------------------------------------- */
.sc-crew { position: relative; max-width: 1440px; margin: 0 auto; padding: 72px 16px 56px; overflow: hidden; isolation: isolate; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--field) 55%, var(--rule)); }
.sc-crew::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--sc-grid) 1px, transparent 1px), linear-gradient(90deg, var(--sc-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, transparent 15%, #000 95%);
  mask-image: linear-gradient(180deg, transparent 15%, #000 95%);
}
.sc-crew::after {
  content: ""; position: absolute; left: 50%; bottom: -60%; z-index: -1; width: 130%; height: 115%; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--field) 34%, transparent), rgba(35, 72, 255, .1) 55%, transparent);
}
.sc-crew .sc-head { margin-bottom: 32px; }
.sc-floats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.sc-floats li {
  padding: 6px 12px; border-radius: 6px; background: var(--soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--field) 55%, var(--rule));
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase;
}
.sc-floats li:nth-child(odd) { background: var(--field); box-shadow: none; color: var(--field-ink); }
.sc-agents { display: grid; gap: 16px; max-width: 1440px; margin: 16px auto 0; }
.sc-agent { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.sc-agent-media { aspect-ratio: 16 / 10; }
.sc-agent-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px; }
.sc-agent-head { display: flex; align-items: center; gap: 10px; }
.sc-agent-body > p { font-size: 15px; line-height: 22px; color: var(--text-2); }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-family: var(--font-mono); font-size: 12px; line-height: 20px; letter-spacing: .06em; text-transform: uppercase; }
.sc-link .sx-arrow, .sc-sector .sx-arrow { width: 16px; height: 16px; }
.sc-link:hover { color: var(--accent); }
@media (min-width: 768px) {
  .sc-crew { padding: 112px 40px 88px; }
  .sc-agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .sc-agents { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Memoria del brand ------------------------------------------------------------------ */
.sc-mem { position: relative; display: grid; gap: 12px; max-width: 1240px; margin: 0 auto; }
.sc-mem-lines { display: none; }
.sc-mem-core {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; border-radius: 14px; background: var(--surface); text-align: center;
  box-shadow: inset 0 0 0 1px var(--field), 0 0 70px color-mix(in srgb, var(--field) 16%, transparent);
}
.sc-mem-core b { font-size: 20px; line-height: 28px; font-weight: 500; }
.sc-mem-core > span:last-child { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.sc-tile--sm { width: 64px; height: 64px; padding: 16px; border-radius: 14px; }
.sc-tile--sm .sx-px { width: 32px; height: 32px; }
.sc-mem-notes { display: grid; gap: 12px; }
.sc-mem-note { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 15px; line-height: 22px; }
.sc-mem-note .sx-eyebrow { margin-bottom: 2px; font-size: 11px; line-height: 16px; }
@media (min-width: 640px) { .sc-mem-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .sc-mem { display: block; min-height: 580px; }
  .sc-mem-lines { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
  .sc-mem-lines line { stroke: var(--accent-line); stroke-opacity: .45; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
  .sc-mem-core { position: absolute; left: 50%; top: 50%; width: 250px; transform: translate(-50%, -50%); }
  .sc-mem-notes { display: block; }
  .sc-mem-note { position: absolute; width: 250px; transform: translate(-50%, -50%); }
  .sc-mem-note:nth-child(1) { left: 22%; top: 15%; }
  .sc-mem-note:nth-child(2) { left: 78%; top: 15%; }
  .sc-mem-note:nth-child(3) { left: 13%; top: 50%; }
  .sc-mem-note:nth-child(4) { left: 87%; top: 50%; }
  .sc-mem-note:nth-child(5) { left: 22%; top: 85%; }
  .sc-mem-note:nth-child(6) { left: 78%; top: 85%; }
}

/* ---------- Cosa puoi creare --------------------------------------------------------------------- */
.sc-rows { display: flex; flex-direction: column; gap: 48px; max-width: 1320px; margin: 0 auto; }
.sc-row { display: grid; align-items: center; gap: 24px; }
.sc-row-panel { padding: 20px; border-radius: 16px; background: color-mix(in srgb, var(--tone, var(--field)) 45%, var(--sx-paper)); }
.sc-mini { display: flex; flex-direction: column; gap: 12px; min-height: 300px; padding: 14px; border-radius: 12px; background: #131317; box-shadow: 0 24px 60px rgba(16, 16, 19, .28); }
.sc-mini-list { display: flex; flex-direction: column; }
.sc-mini-list li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 4px; border-top: 1px solid rgba(250, 250, 244, .08); font-size: 14px; line-height: 20px; }
.sc-mini-list li > .sc-ui-chip, .sc-mini-go { margin-left: auto; }
.sc-mini-go { display: block; flex: none; width: 16px; height: 16px; color: var(--sx-muted-2); }
.sc-mini-models { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-row .sc-ui-chip.is-on { background: var(--tone, var(--field)); color: var(--sx-ink); }
.sc-mini-chat { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.sc-mini-q { align-self: flex-end; max-width: 80%; padding: 8px 14px; border-radius: 18px; background: rgba(250, 250, 244, .1); font-size: 14px; line-height: 20px; }
.sc-mini-a { display: flex; align-items: flex-start; gap: 10px; max-width: 94%; font-size: 14px; line-height: 20px; }
.sc-mini-a p { padding-top: 2px; }
.sc-initials { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--tone, var(--field)); color: var(--sx-ink); font-family: var(--font-mono); font-size: 10px; line-height: 12px; }
.sc-mini-shared { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--tone, var(--field)) 16%, transparent); font-size: 14px; line-height: 20px; }
.sc-row-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sc-row-copy > p { max-width: 520px; font-size: 17px; line-height: 26px; color: var(--text-2); }
.sc-row-copy > .sc-count { font-family: var(--font-mono); font-size: 13px; line-height: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
@media (min-width: 1024px) {
  .sc-rows { gap: 88px; }
  .sc-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; }
  .sc-row:nth-child(even) .sc-row-panel { order: 2; }
  .sc-row-panel { padding: 36px; }
}

/* ---------- Strumenti --------------------------------------------------------------------------------- */
.sc-kit { max-width: 1320px; margin: 0 auto; border-top: 1px solid var(--rule); }
.sc-kit-row { display: grid; gap: 14px; padding: 20px 0 24px; border-bottom: 1px solid var(--rule); }
.sc-kit-area {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; line-height: 24px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
}
.sc-kit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 24px; }
.sc-kit-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-kit-item b { font-size: 16px; line-height: 24px; font-weight: 500; }
.sc-kit-item span { font-size: 14px; line-height: 20px; color: var(--text-2); text-wrap: pretty; }
@media (min-width: 1024px) {
  .sc-kit-row { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 28px 0 32px; }
  .sc-kit-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 32px; }
}

/* ---------- Casi d'uso ------------------------------------------------------------------------------ */
.sc-bento { display: grid; gap: 12px; max-width: 1440px; margin: 0 auto; }
.sc-use { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; overflow: hidden; border-radius: 14px; background: #131317; box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .1); }
.sc-use-media { position: absolute; inset: 0; }
.sc-use::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 16, 19, 0) 25%, rgba(16, 16, 19, .92) 88%); pointer-events: none; }
.sc-use-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.sc-use-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; line-height: 24px; letter-spacing: .06em; text-transform: uppercase; }
.sc-use .sc-h3 { font-size: 24px; line-height: 28px; }
.sc-use-body > p:last-child { font-size: 15px; line-height: 22px; color: rgba(250, 250, 244, .76); }
.sc-sectors { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 48px; }
.sc-sectors ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sc-sector { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 6px; background: var(--soft); font-size: 15px; line-height: 24px; }
.sc-sector:hover { background: var(--soft-2); }
@media (min-width: 768px) {
  .sc-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sc-use { grid-column: span 2; min-height: 380px; }
  .sc-use--wide { grid-column: span 3; min-height: 420px; }
  .sc-use .sc-h3 { font-size: 28px; line-height: 32px; }
}

/* ---------- Banda finale ------------------------------------------------------------------------------ */
.sc-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--sx-cobalt); }
.sc-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(250, 250, 244, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(250, 250, 244, .1) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent 75%);
}
.sc-cta-in { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 920px; margin: 0 auto; padding: 96px 16px 112px; text-align: center; }
.sc-cta .sx-eyebrow, .sc-cta .sc-text { color: rgba(250, 250, 244, .84); }
.sc-prompt--cta { background: rgba(16, 16, 19, .22); box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .32); }
.sc-prompt--cta:hover { box-shadow: inset 0 0 0 1px var(--sx-paper); }
.sc-prompt--cta .sc-prompt-go { background: var(--sx-paper); color: var(--sx-ink); }
.sc-prompt--cta .sc-prompt-text::after { background: var(--sx-paper); }
@media (min-width: 1024px) {
  .sc-cta-in { padding: 144px 40px; }
}

/* ---------- Movimento a scatti ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Solo "backwards": invisibile durante l'attesa, poi torna allo stile normale (con "both" alcuni pixel restavano spenti). */
  .sx-pixel-title rect { animation: sc-px-in 1ms steps(1, end) backwards; animation-delay: calc(var(--d) * 32ms + var(--r) * 70ms + 200ms); }
  .sc-tile { animation: sc-bob 3.6s steps(4, end) infinite alternate; }
  .sc-floats li { animation: sc-bob 3.2s steps(4, end) infinite alternate; animation-delay: calc(var(--i) * -.7s); }
  .sc-mem-lines line { animation: sc-dash 2.4s steps(8, end) infinite; }
  .sx-js .is-live [data-s].is-on { animation: sc-pop .3s steps(3, end) both; }
  .sx-js .is-live .sc-shot.is-on .sc-media { animation: sc-reveal .64s steps(8, end) both; }
  .sx-js .is-live .sc-clip.is-on .sc-clip-bar i::after { animation: sc-fill 5s steps(20, end) infinite; }
  .sx-js .is-live .sc-voice.is-on .sc-wave i { animation: sc-wave 1.1s steps(4, end) infinite alternate; animation-delay: calc(var(--k) * -80ms); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-prompt-text::after, .sc-composer-text.is-typing::after, .sc-think i { animation: none; }
}
@keyframes sc-caret { 50% { opacity: 0; } }
@keyframes sc-px-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sc-bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes sc-dash { to { stroke-dashoffset: -16; } }
@keyframes sc-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sc-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sc-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes sc-wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* =====================================================================
   Colori per categoria (D-017, scelta del committente: "usa il multicolor per ogni categoria, così il sito cambia
   colore, ed è più social"). Eccezione di SPUN Studio a D-037 b: ogni area di lavoro e ogni settore ha una coppia
   della palette C (campo + inchiostro colorato, contrasto verificato nei token). Il colore sta nei quadratini degli
   avatar e delle icone, negli evidenziatori, nei bottoni attivi e nel campo della settimana; il testo fuori dal
   campo resta neutro. Studio (lilla) resta il colore del prodotto: nav, "Tutto il reparto" e tutto ciò che non ha
   una categoria. Una categoria scelta dal visitatore colora la pagina con --cat (html[data-cat], studio.js).
   ===================================================================== */
.sx-studio { --tone: var(--field); --tone-ink: var(--field-ink); }
.sx-studio [data-tone="team"],   html[data-cat="team"]   { --tone: var(--sx-field-studio); --tone-ink: var(--sx-field-studio-ink); }
.sx-studio [data-tone="social"], html[data-cat="social"] { --tone: var(--sx-field-social); --tone-ink: var(--sx-field-social-ink); }
.sx-studio [data-tone="text"],   html[data-cat="text"]   { --tone: var(--sx-field-menu);   --tone-ink: var(--sx-field-menu-ink); }
.sx-studio [data-tone="image"],  html[data-cat="image"]  { --tone: var(--sx-field-raas);   --tone-ink: var(--sx-field-raas-ink); }
.sx-studio [data-tone="video"],  html[data-cat="video"]  { --tone: var(--sx-field-tel);    --tone-ink: var(--sx-field-tel-ink); }
.sx-studio [data-tone="voice"],  html[data-cat="voice"]  { --tone: var(--sx-field-support); --tone-ink: var(--sx-field-support-ink); }
.sx-studio [data-tone="docs"],   html[data-cat="docs"]   { --tone: var(--sx-field-store);  --tone-ink: var(--sx-field-store-ink); }
.sx-studio [data-tone="code"],   html[data-cat="code"]   { --tone: var(--sx-field-city);   --tone-ink: var(--sx-field-city-ink); }
.sx-studio [data-tone="brand"],  html[data-cat="brand"]  { --tone: var(--sx-field-bio);    --tone-ink: var(--sx-field-bio-ink); }
/* Nomi usati dalle home "studio" e "griglia". */
.sx-studio {
  --tone-team: var(--sx-field-studio); --tone-social: var(--sx-field-social); --tone-text: var(--sx-field-menu);
  --tone-image: var(--sx-field-raas); --tone-video: var(--sx-field-tel); --tone-voice: var(--sx-field-support);
  --tone-docs: var(--sx-field-store); --tone-code: var(--sx-field-city); --tone-brand: var(--sx-field-bio);
}
/* La categoria scelta dal visitatore: --cat vale in tutta la pagina (Studio finché non sceglie). */
html { --cat: var(--sx-field-studio); --cat-ink: var(--sx-field-studio-ink); }
html[data-cat] { --cat: var(--tone); --cat-ink: var(--tone-ink); }
.sx-studio [data-tone] .sx-sq { background: var(--tone); color: var(--tone-ink); }
.sx-studio [data-tone] .sc-ui-ico { color: var(--tone); }
@media (prefers-reduced-motion: no-preference) {
  .sx-studio .sx-sq, .sa-who, .sa-field, .sa-pick-btn, .sc-mark, .ss-voice-head .sx-sq {
    transition: background-color .42s steps(3, end), color .42s steps(3, end), box-shadow .42s steps(3, end);
  }
}

/* Simbolo SPUN nell'icona dell'hero (DESIGN_SYSTEM §2): tinta unita paper. */
.sc-tile .sx-logo-mark { display: block; width: 41px; height: 44px; color: var(--sx-paper); }
.sc-tile--sm .sx-logo-mark { width: 28px; height: 30px; }

/* ---- spunstudio/theme/src/css/home-attivita.css ---- */
/* =====================================================================
   SPUN studio · home "attività" (theme.json › spun.home = "attivita", D-012, D-014).
   Per chi ha un'attività: la chat del reparto in stile Grok nell'hero, la
   settimana di contenuti che si riempie quando scegli il settore, tre passi,
   prima e dopo, il brand a ragnatela e i settori. Beta (v2): chiaro di
   default, filetti da 1px, icone pixel, colori di campo per area (D-010),
   movimento a scatti con steps(). Classi sa-*; le parti in comune con la home
   "studio" (sc-*) stanno in home-studio.css, il simbolo con la scintilla in studio.css.
   ===================================================================== */

/* ---------- Simbolo con la scintilla nell'icona dell'hero "studio" e nella banda finale ---- */
.sc-tile .sx-spark { width: 41px; height: 44px; color: var(--sx-paper); }
.sc-cta-mark { display: block; width: 52px; height: 56px; color: var(--sx-paper); }

/* ---------- Hero sul modello di Grok Bot: testo centrato, poi la finestra al centro ------------ */
.sa-hero, .sa-week-sec { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--bg); }
.sa-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.sa-chat-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 880px; margin: 0 auto; padding: 88px 16px 36px; text-align: center; }
.sa-chat-chip { align-self: center; gap: 8px; }
.sa-chat-head .sa-lead { max-width: 60ch; text-align: center; }
.sa-chat-head .sx-actions, .sa-chat-head .sx-trust { justify-content: center; }
.sa-chat-in { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 16px 64px; }
.sa-title { font-size: 40px; line-height: 46px; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
.sa-who {
  padding: 0 .12em; border-radius: 6px; background: var(--tone); color: var(--tone-ink);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.sa-lead { max-width: 560px; font-size: 18px; line-height: 27px; color: var(--text-2); text-wrap: pretty; }
@media (min-width: 768px) {
  .sa-chat-head { gap: 24px; padding: 104px 40px 44px; }
  .sa-chat-in { padding: 0 40px 80px; }
  .sa-title { font-size: 56px; line-height: 60px; }
  .sa-lead { font-size: 20px; line-height: 30px; }
}
@media (min-width: 1280px) { .sa-title { font-size: 64px; line-height: 68px; } }

/* La finestra come un'app di messaggi (Grok Bot): a sinistra le conversazioni con i colleghi, a destra la chat. */
.sc-app--bot { position: relative; max-width: none; border-radius: 12px; background: #121216; box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .12), 0 30px 70px -20px rgba(16, 16, 19, .45); }
.sc-app--bot .sc-app-body { grid-template-columns: minmax(0, 1fr); }
.sc-bot-side { display: flex; flex-direction: column; min-width: 0; background: #17171c; border-bottom: 1px solid rgba(250, 250, 244, .1); }
.sc-bot-side-top { display: none; align-items: center; gap: 8px; padding: 14px 14px 10px; font-size: 13px; line-height: 20px; font-weight: 600; }
.sc-bot-new { position: relative; display: block; flex: none; width: 24px; height: 24px; margin-left: auto; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .16); }
.sc-bot-new::before, .sc-bot-new::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: rgba(250, 250, 244, .7); }
.sc-bot-new::after { transform: rotate(90deg); }
.sc-bot-search { display: none; margin: 0 12px 8px; padding: 7px 12px; border-radius: 8px; background: rgba(250, 250, 244, .06); font-size: 13px; line-height: 20px; color: var(--sx-muted-2); }
.sc-bot-me { display: none; align-items: center; gap: 10px; margin-top: auto; padding: 12px 14px; border-top: 1px solid rgba(250, 250, 244, .1); font-size: 13px; line-height: 20px; }
.sc-bot-me .sc-initials { width: 26px; height: 26px; border-radius: 50%; background: rgba(250, 250, 244, .14); color: var(--sx-paper); }
.sc-tabs--list { padding: 8px; border-bottom: 0; }
.sc-tabs--list button { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "av name time" "av prev prev"; align-items: center; gap: 1px 10px; flex: none; padding: 8px 10px; border-radius: 8px; }
.sc-tabs--list button .sx-sq { grid-area: av; width: 32px; height: 32px; border-radius: 8px; }
.sc-tab-name { grid-area: name; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--sx-paper); }
.sc-tab-time { grid-area: time; font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .04em; color: var(--sx-muted-2); }
.sc-tab-preview { grid-area: prev; display: none; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; line-height: 16px; color: var(--sx-muted-2); }
.sc-tabs--list button[aria-selected="true"] { background: rgba(250, 250, 244, .09); }
.sc-bot-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(250, 250, 244, .1); font-size: 14px; line-height: 20px; font-weight: 600; }
.sc-bot-head .sx-sq { width: 26px; height: 26px; border-radius: 7px; }
.sc-bot-time { text-align: center; font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .06em; color: var(--sx-muted-2); }
.sc-app--bot .sc-stage { min-height: 520px; }
.sc-app--bot .sc-thread { gap: 16px; max-width: none; padding: 16px 16px 8px; }
.sc-app--bot .sc-you-text { background: var(--sx-paper); color: var(--sx-ink); }
.sc-app--bot .sc-file { background: rgba(250, 250, 244, .1); }
.sc-app--bot .sc-bot-body { max-width: min(100%, 720px); padding: 12px 16px 14px; border-radius: 18px; border-top-left-radius: 6px; background: rgba(250, 250, 244, .08); }
.sc-app--bot .sc-think { left: 16px; top: 12px; }
.sc-app--bot .sc-composer { align-items: center; width: calc(100% - 32px); max-width: none; margin-bottom: 16px; padding: 6px 6px 6px 8px; border-radius: 22px; }
.sc-app--bot .sc-composer-text { padding: 6px 4px; }
.sc-attach { position: relative; display: block; flex: none; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .18); }
.sc-attach::before, .sc-attach::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: rgba(250, 250, 244, .7); }
.sc-attach::after { transform: rotate(90deg); }
@media (min-width: 1024px) {
  .sc-app--bot .sc-app-body { grid-template-columns: 264px minmax(0, 1fr); }
  .sc-bot-side { border-right: 1px solid rgba(250, 250, 244, .1); border-bottom: 0; }
  .sc-bot-side-top, .sc-bot-search, .sc-bot-me { display: flex; }
  .sc-tabs--list { flex-direction: column; gap: 2px; padding: 4px 8px 8px; border-right: 0; overflow: visible; }
  .sc-tab-preview { display: block; }
  .sc-app--bot .sc-stage { min-height: 600px; }
  .sc-app--bot .sc-thread { padding: 20px 24px 8px; }
  .sc-app--bot .sc-composer { width: calc(100% - 48px); margin-bottom: 20px; }
}

/* Variante senza barra laterale (pillole del reparto sotto la casella), usata dalla home "griglia" se richiesta. */
.sa-field { position: relative; padding: 16px; border-radius: 16px; background: var(--tone); }
.sa-field::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(rgba(16, 16, 19, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 16, 19, .08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.sc-app--grok { position: relative; max-width: none; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .12), 0 24px 60px rgba(16, 16, 19, .22); }
.sc-app--grok .sc-app-body { display: flex; flex-direction: column; }
.sc-app--grok .sc-stage { min-height: 520px; }
.sc-app--grok .sc-thread { max-width: 800px; padding: 24px 16px 12px; }
.sc-app--grok .sc-composer { align-items: center; margin-bottom: 10px; padding: 8px; border-radius: 24px; }
.sc-app--grok .sc-composer-text { padding: 6px 4px; }
.sc-tabs--pills {
  flex-direction: row; flex-wrap: wrap; gap: 6px; width: calc(100% - 32px); max-width: 800px; margin: 0 auto 16px; padding: 0;
  border: 0; overflow: visible;
}
.sc-tabs--pills button {
  gap: 8px; padding: 4px 12px 4px 5px; border-radius: 999px; background: rgba(250, 250, 244, .05);
  box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .12); font-size: 13px; line-height: 20px; white-space: nowrap;
}
.sc-tabs--pills button .sx-sq { width: 22px; height: 22px; }
.sc-tabs--pills button[aria-selected="true"] {
  background: color-mix(in srgb, var(--tone, var(--field)) 22%, transparent); box-shadow: inset 0 0 0 1px var(--tone, var(--field)); color: var(--sx-paper);
}
.sc-tabs--pills .sc-tab-label { font-size: 13px; line-height: 20px; }
.sc-tabs--pills .sc-tab-label small { display: none; }
@media (max-width: 767px) {
  .sc-tabs--pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}
@media (min-width: 1024px) {
  .sc-app--grok .sc-stage { min-height: 560px; }
  .sc-app--grok .sc-thread { padding: 32px 24px 12px; }
  .sc-app--grok .sc-composer { width: calc(100% - 48px); }
  .sc-tabs--pills { width: calc(100% - 48px); }
}

/* ---------- La tua settimana: scegli il settore e la settimana si riempie ------------------- */
.sa-hero-in { position: relative; display: grid; gap: 40px; max-width: 1440px; margin: 0 auto; padding: 72px 16px 56px; }
.sa-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.sa-pick { display: flex; flex-direction: column; gap: 12px; align-self: stretch; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--rule); }
.sa-pick-label { font-size: 20px; line-height: 28px; font-weight: 500; }
.sa-pick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-pick-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 8px; border-radius: 6px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule); font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text);
  transition: background-color .2s, box-shadow .2s;
}
.sa-pick-btn:hover { background: var(--soft); }
.sa-pick-btn[aria-pressed="true"] {
  background: var(--tone); color: var(--tone-ink);
  box-shadow: inset 0 0 0 1px var(--tone-ink);
}
.sa-pick-hint { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
html:not(.sx-js) .sa-pick { display: none; }

.sa-board-wrap { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sa-board { position: relative; overflow: hidden; border-radius: 12px; background: var(--sx-ink); color: var(--sx-paper); box-shadow: 0 24px 60px rgba(16, 16, 19, .22); }
.sa-board-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(250, 250, 244, .1); font-size: 14px; line-height: 20px; }
.sa-board-mark { display: block; flex: none; width: 19px; height: 20px; color: var(--sx-paper); }
.sa-week { display: flex; flex-direction: column; gap: 14px; padding: 14px; }
.sa-week[hidden] { display: none; }
.sa-ask { align-self: flex-end; max-width: 90%; padding: 9px 16px; border-radius: 20px; background: rgba(250, 250, 244, .1); font-size: 14px; line-height: 21px; }
.sa-ask-text.is-typing::after {
  content: ""; display: inline-block; width: 2px; height: 15px; margin-left: 2px; vertical-align: -2px;
  background: var(--sx-paper); animation: sc-caret 1s steps(1) infinite;
}
.sa-days-wrap { position: relative; }
.sa-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sa-tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 8px; border-radius: 10px; background: rgba(250, 250, 244, .05); box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .08); }
.sa-tile-head { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--font-mono); font-size: 10.5px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--sx-muted-2); }
.sa-tile-head span:first-child { flex: none; color: var(--sx-paper); }
.sa-tile-type { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sa-tile-body { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 7px; aspect-ratio: 4 / 3; padding: 10px; overflow: hidden; border-radius: 6px; background: rgba(250, 250, 244, .06); }
.sa-tile-body b { font-size: 12px; line-height: 16px; font-weight: 500; }
.sa-tile-body--photo, .sa-tile-body--video { padding: 0; }
.sc-media.sa-tile-media { position: absolute; inset: 0; }
.sa-tile-body--doc { background: var(--sx-paper); color: var(--sx-ink); }
.sa-tile-body--doc .sc-line { background: rgba(16, 16, 19, .14); }
.sa-mail-from { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 14px; color: var(--sx-muted-2); }
.sa-mail-from .sc-avatar { width: 14px; height: 14px; border-radius: 3px; }
.sa-mini-wave { display: flex; align-items: center; gap: 2px; height: 34px; }
.sa-mini-wave i { flex: 1; height: var(--h); background: var(--tone); }
.sa-play {
  position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; padding: 8px;
  border-radius: 50%; background: rgba(16, 16, 19, .62); color: var(--sx-paper); transform: translate(-50%, -50%);
}
.sa-play .sx-arrow { display: block; width: 16px; height: 16px; }
.sa-tile-state { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--sx-lime); }
.sa-tile-state i { width: 6px; height: 6px; background: currentColor; }
.sa-tile-state.is-scheduled { color: var(--sx-sky); }
.sa-note { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; text-align: right; color: var(--text-2); }
/* Il mirino: quattro angoli lime che saltano a scatti sulla tessera che sta comparendo (posizione data da studio.js). */
.sa-cursor {
  --c: var(--sx-lime); --l: 12px; --w: 2px;
  position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
  transition: left .36s steps(3, end), top .36s steps(3, end), width .36s steps(3, end), height .36s steps(3, end);
}
.sa-cursor.is-on { opacity: 1; }
html:not(.sx-js) .sa-cursor { display: none; }
.sx-js .sa-board.is-live [data-w]:not(.is-on) { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .sx-js .sa-board.is-live [data-w].is-on { animation: sc-pop .3s steps(3, end) both; }
}
@media (min-width: 640px) { .sa-days { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .sa-hero-in { padding: 88px 40px 72px; }
  .sa-field { padding: 28px; }
  .sa-week { padding: 16px; }
}
@media (min-width: 1024px) {
  .sa-hero-in { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: 56px; }
}

/* ---------- Tre passi ---------------------------------------------------------------- */
.sa-steps { display: grid; max-width: 1320px; margin: 0 auto; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
/* min-width 0: la casella d'esempio (testo su una riga) non deve allargare la colonna sui telefoni. */
.sa-step { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sa-step-visual {
  display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 160px; margin-bottom: 8px; padding: 20px;
  border-radius: 12px; background: color-mix(in srgb, var(--tone, var(--field)) 45%, var(--sx-paper));
}
.sa-step-num { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; line-height: 24px; letter-spacing: .06em; color: var(--text-2); }
.sa-step-text { font-size: 16px; line-height: 24px; color: var(--text-2); }
.sa-compose { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 6px 6px 16px; border-radius: 22px; background: var(--sx-ink); color: var(--sx-paper); font-size: 14px; line-height: 20px; }
.sa-compose > span:first-child { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sa-compose .sc-send { width: 30px; height: 30px; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sa-chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 4px; background: rgba(250, 250, 244, .72); color: var(--sx-ink);
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase;
}
.sa-chip.is-on { background: var(--sx-ink); color: var(--sx-paper); }
@media (min-width: 768px) {
  .sa-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sa-step { padding: 32px; }
}

/* ---------- Prima e dopo: tendina per foto e video, affiancati per i testi ---------------- */
.sa-ba { max-width: 1240px; margin: 0 auto; }
.sa-ba-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.sa-ba-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 6px; background: var(--soft); font-size: 15px; line-height: 24px; color: var(--text); }
.sa-ba-tabs button:hover { background: var(--soft-2); }
.sa-ba-tabs button[aria-selected="true"] { background: var(--tone); color: var(--tone-ink); }
.sa-ba-panel[hidden] { display: none; }
.sa-compare { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 14px; background: var(--sx-ink); color: var(--sx-paper); }
.sa-side { position: absolute; inset: 0; overflow: hidden; }
.sa-side--after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.sa-side-label {
  position: absolute; top: 12px; z-index: 2; padding: 3px 8px; border-radius: 4px; background: rgba(16, 16, 19, .72); color: var(--sx-paper);
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.sa-side--before .sa-side-label { left: 12px; }
.sa-side--after .sa-side-label { right: 12px; background: var(--sx-lime); color: var(--sx-ink); }
.sa-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); z-index: 3; width: 2px; margin-left: -1px; background: var(--sx-paper); pointer-events: none; }
.sa-handle i { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; border-radius: 50%; background: var(--sx-paper); box-shadow: 0 4px 16px rgba(16, 16, 19, .35); transform: translate(-50%, -50%); }
.sa-handle i::before, .sa-handle i::after { content: ""; position: absolute; top: 50%; border: 5px solid transparent; transform: translateY(-50%); }
.sa-handle i::before { left: 6px; border-right-color: var(--sx-ink); }
.sa-handle i::after { right: 6px; border-left-color: var(--sx-ink); }
.sa-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.sa-range:focus-visible + .sa-handle i { outline: 2px solid var(--focus); outline-offset: 3px; }
.sa-ba-tools { margin-top: 12px; text-align: center; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .04em; color: var(--text-2); }
html:not(.sx-js) .sa-compare { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: auto; }
html:not(.sx-js) .sa-side { position: relative; min-height: 420px; clip-path: none; }
html:not(.sx-js) .sa-range, html:not(.sx-js) .sa-handle { display: none; }

/* Coppie di testo (vocale e articolo, menu e post): le due metà affiancate con la freccia, senza tendina. */
.sa-pair { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; overflow: hidden; border-radius: 14px; background: rgba(16, 16, 19, .14); }
.sa-pair .sa-side { position: relative; min-height: 380px; background: var(--sx-ink); color: var(--sx-paper); clip-path: none; }
.sa-pair-arrow {
  position: absolute; z-index: 3; left: 50%; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border-radius: 50%;
  background: var(--sx-paper); color: var(--sx-ink); box-shadow: 0 4px 16px rgba(16, 16, 19, .35); transform: translate(-50%, -50%) rotate(90deg);
}
.sa-pair-arrow .sx-arrow { display: block; width: 16px; height: 16px; }

.sa-side .sc-media { position: absolute; inset: 0; }
.sa-memo, .sa-article, .sa-pdf, .sa-postout { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 56px 24px 24px; }
.sa-memo { background: #141418; }
.sa-memo-head { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--sx-muted-2); }
.sa-memo-wave { display: flex; align-items: center; gap: 3px; height: 72px; }
.sa-memo-wave i { flex: 1; height: var(--h); background: var(--tone, var(--field)); }
.sa-memo-text { max-width: 640px; font-size: 16px; line-height: 25px; color: rgba(250, 250, 244, .82); }
.sa-article { gap: 10px; padding-inline: 8%; background: var(--sx-paper); color: var(--sx-ink); }
.sa-kicker { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-muted); }
.sa-article h3 { font-size: 22px; line-height: 27px; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
.sa-article p:not(.sa-kicker) { font-size: 15px; line-height: 23px; }
.sa-pdf { align-items: center; background: #e7e6df; color: var(--sx-ink); }
.sa-pdf-file { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; line-height: 24px; color: var(--sx-muted); }
.sa-pdf-page { width: min(100%, 400px); padding: 22px 24px; background: #fff; box-shadow: 0 10px 30px rgba(16, 16, 19, .16); }
.sa-pdf-page h3 { margin-bottom: 10px; text-align: center; font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.sa-pdf-page li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px dashed rgba(16, 16, 19, .2); font-size: 14px; line-height: 20px; }
.sa-pdf-page li span { font-size: 12px; line-height: 18px; color: var(--sx-muted); }
.sa-postout { align-items: center; background: #141418; }
.sa-post { width: min(100%, 250px); overflow: hidden; border-radius: 12px; background: #1c1c22; box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .1); }
.sa-post-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; line-height: 18px; }
.sa-side .sa-post .sc-media { position: relative; inset: auto; aspect-ratio: 1; }
.sa-post-caption { padding: 10px 12px 14px; font-size: 13px; line-height: 19px; }
.sa-post-caption .sc-tags { display: block; margin-top: 4px; }
@media (min-width: 768px) {
  .sa-compare { aspect-ratio: 16 / 9; }
  .sa-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-pair .sa-side { min-height: 540px; }
  .sa-pair-arrow { transform: translate(-50%, -50%); }
  .sa-memo, .sa-article, .sa-pdf, .sa-postout { padding: 64px 48px 40px; }
  .sa-memo-wave { height: 120px; }
  .sa-memo-text { font-size: 19px; line-height: 29px; }
  .sa-article { padding-inline: 12%; }
  .sa-article h3 { font-size: 30px; line-height: 34px; }
  .sa-article p:not(.sa-kicker) { font-size: 17px; line-height: 27px; }
  .sa-post { width: min(100%, 280px); }
}

/* ---------- Reparto creativo: le consegne del gruppo nella chat --------------------------- */
.sc-crewlog { display: flex; flex-direction: column; gap: 14px; }
.sc-mate { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.sc-mate > .sx-sq { margin-top: 2px; }
.sc-mate-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.sc-mate-body > b { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--sx-paper); }
.sc-mate-body > p { font-size: 15px; line-height: 23px; color: rgba(250, 250, 244, .9); }
.sc-mate-photos { display: flex; gap: 8px; }
.sc-mate-photo { width: 112px; aspect-ratio: 1; border-radius: 8px; }
.sc-mate-clip { position: relative; width: 200px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; }
.sc-mate-clip .sc-media { position: absolute; inset: 0; }
.sc-mate-len { position: absolute; right: 6px; bottom: 6px; padding: 0 6px; border-radius: 4px; background: rgba(16, 16, 19, .72); font-family: var(--font-mono); font-size: 11px; line-height: 16px; }
.sc-mate-slots { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 767px) {
  .sc-mate-photo { width: 88px; }
  .sc-mate-clip { width: 160px; }
}

/* ---------- Settori ------------------------------------------------------------------------- */
.sa-people { max-width: 1440px; margin: 0 auto; }

/* ---------- Tutti gli strumenti, chiusi ------------------------------------------------------ */
.sc-kit-more { max-width: 1320px; margin: 0 auto; }
.sc-kit-summary {
  display: flex; align-items: center; gap: 10px; width: fit-content; margin: 0 auto; padding: 12px 18px; border-radius: 6px;
  background: var(--btn); color: var(--btn-text); font-size: 16px; line-height: 24px; font-weight: 500; cursor: pointer; list-style: none;
}
.sc-kit-summary::-webkit-details-marker { display: none; }
.sc-kit-summary .sx-arrow { display: block; width: 16px; height: 16px; transition: transform .2s steps(2, end); }
.sc-kit-more[open] .sc-kit-summary { margin-bottom: 32px; }
.sc-kit-more[open] .sc-kit-summary .sx-arrow { transform: rotate(180deg); }

/* ---- spunstudio/theme/src/css/home-griglia.css ---- */
/* =====================================================================
   SPUN studio · home "griglia" (theme.json › spun.home = "griglia", D-013).
   Restyling della home per chi ha un'attività, tutto in griglia Beta (v2):
   celle con filetti da 1px, intestazioni a sinistra con il testo a destra,
   campo lilla di Studio con la griglia a 32px e finestre scure per le
   illustrazioni, colori d'area (D-010) solo nei quadratini, nei nodi e negli
   evidenziatori, movimento a scatti con steps(). Classi sg-*.
   Riusa dallo stesso bundle il confronto prima/dopo della home "attività"
   (sa-compare*) e la demo in chat della home "studio" (sc-app*).
   ===================================================================== */

/* ---------- Titoli della home ---------------------------------------------------- */
.sg-h1 { font-size: 40px; line-height: 46px; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
.sg-h3 { font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
.sg-who {
  padding: 0 .12em; background: color-mix(in srgb, var(--tone, var(--field)) 55%, var(--sx-paper)); color: var(--sx-ink);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (min-width: 768px) { .sg-h1 { font-size: 56px; line-height: 60px; } }
@media (min-width: 1024px) { .sg-h3 { font-size: 32px; line-height: 38px; } }
@media (min-width: 1280px) { .sg-h1 { font-size: 72px; line-height: 74px; } }

/* ---------- Hero: titolo, riga dei settori, campo con la settimana ------------------ */
.sg-hero { border-bottom: 1px solid var(--rule); }
.sg-hero-head { display: grid; gap: 28px; padding: 88px 16px 40px; }
.sg-hero-title { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sg-hero-title .sx-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.sg-hero-side { display: flex; flex-direction: column; gap: 24px; }
.sg-hero-side .sx-lead { max-width: 46ch; color: var(--text-2); text-wrap: pretty; }
@media (min-width: 768px) { .sg-hero-head { padding: 104px 40px 40px; } }
@media (min-width: 1024px) { .sg-hero-head { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; gap: 48px; } }
@media (min-width: 1280px) { .sg-hero-head { padding-top: 112px; } }

/* La scelta del settore: una riga di celle, quella attiva in negativo. Senza JS non serve. */
.sg-pick { display: flex; overflow-x: auto; border-top: 1px solid var(--rule); scrollbar-width: none; }
.sg-pick::-webkit-scrollbar { display: none; }
.sg-pick-label {
  display: flex; flex: none; align-items: center; padding: 0 16px; border-right: 1px solid var(--rule); white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
}
.sg-pick-btn {
  display: inline-flex; flex: none; align-items: center; gap: 10px; height: 56px; padding: 0 18px 0 12px; border-right: 1px solid var(--rule);
  white-space: nowrap; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--text-2); transition: background-color .2s, color .2s;
}
.sg-pick-btn:hover { background: var(--soft); color: var(--text); }
.sg-pick-btn[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); }
html:not(.sx-js) .sg-pick { display: none; }
@media (min-width: 1024px) { .sg-pick-label { padding-inline: 40px 20px; } .sg-pick-btn { padding: 0 22px 0 14px; } }

/* Campo colore di Studio con la griglia a 32px ed etichette mono agli angoli (DESIGN_SYSTEM §8, §9). */
.sg-field { position: relative; padding: 24px 12px; border-top: 1px solid var(--rule); background: var(--field); color: var(--sx-ink); }
.sg-field::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(16, 16, 19, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 16, 19, .09) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}
.sg-corner {
  position: absolute; z-index: 1; top: 10px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .08em; text-transform: uppercase; color: rgba(16, 16, 19, .72);
}
.sg-corner i { width: 6px; height: 6px; background: currentColor; }
.sg-corner--l { left: 12px; }
.sg-corner--r { right: 12px; }
@media (min-width: 768px) {
  .sg-field { padding: 48px 40px; }
  .sg-corner { top: 16px; font-size: 11px; line-height: 16px; }
  .sg-corner--l { left: 40px; }
  .sg-corner--r { right: 40px; }
}

/* Finestra scura "La tua settimana": la richiesta, poi sei giorni in una striscia di celle. */
.sg-board {
  position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; overflow: hidden; border-radius: 10px;
  background: var(--sx-ink); color: var(--sx-paper); border: 1px solid rgba(250, 250, 244, .14);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); font-size: 13px; line-height: 1.4; letter-spacing: 0;
}
.sg-board-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(250, 250, 244, .1); font-size: 13px; line-height: 20px; font-weight: 600; }
.sg-board-mark { display: block; flex: none; width: 17px; height: 18px; color: var(--sx-paper); }
.sg-week { display: flex; flex-direction: column; }
.sg-week[hidden] { display: none; }
.sg-ask { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(250, 250, 244, .1); font-size: 14px; line-height: 20px; }
.sg-ask-you {
  display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(250, 250, 244, .12);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
}
.sg-ask-text { flex: 1; min-width: 0; color: rgba(250, 250, 244, .92); text-wrap: pretty; }
.sg-ask-text.is-typing::after {
  content: ""; display: inline-block; width: 2px; height: 16px; margin-left: 2px; vertical-align: -3px;
  background: var(--sx-paper); animation: sc-caret 1s steps(1) infinite;
}
.sg-ask-go { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(250, 250, 244, .1); color: rgba(250, 250, 244, .5); transition: background-color .2s steps(2, end), color .2s steps(2, end); }
.sg-ask-go .sx-arrow { display: block; width: 14px; height: 14px; transform: rotate(180deg); }
.sg-week.is-sent .sg-ask-go, html:not(.sx-js) .sg-ask-go { background: var(--sx-lime); color: var(--sx-ink); }

.sg-days-wrap { position: relative; }
.sg-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(250, 250, 244, .1); }
.sg-day { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px; background: var(--sx-ink); }
.sg-day-head {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-family: var(--font-mono); font-size: 10.5px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--sx-muted-2);
}
.sg-day-head b { flex: none; font-weight: 400; color: var(--sx-paper); }
.sg-day-head i { flex: none; width: 6px; height: 6px; background: var(--tone, var(--field)); }
.sg-day-type { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sg-day-body {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 7px; aspect-ratio: 4 / 3; padding: 10px; overflow: hidden;
  border-radius: 6px; background: rgba(250, 250, 244, .06);
}
.sg-day-body b { font-size: 12px; line-height: 16px; font-weight: 500; }
.sg-day-body--photo, .sg-day-body--video { padding: 0; }
.sc-media.sg-day-media { position: absolute; inset: 0; }
.sg-day-body--doc { background: var(--sx-paper); color: var(--sx-ink); }
.sg-day-body--doc .sc-line { background: rgba(16, 16, 19, .14); }
.sg-day-from { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 14px; color: var(--sx-muted-2); }
.sg-day-from .sc-avatar { width: 14px; height: 14px; border-radius: 3px; }
.sg-wave { display: flex; align-items: center; gap: 2px; height: 34px; }
.sg-wave i { flex: 1; height: var(--h); background: var(--tone, var(--tone-voice)); }
.sg-play {
  position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; padding: 8px;
  border-radius: 50%; background: rgba(16, 16, 19, .62); color: var(--sx-paper); transform: translate(-50%, -50%);
}
.sg-play .sx-arrow { display: block; width: 16px; height: 16px; }
.sg-day-state { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--sx-lime); }
.sg-day-state i { width: 6px; height: 6px; background: currentColor; }
.sg-day-state.is-scheduled { color: var(--sx-sky); }
/* Il mirino: quattro angoli lime che saltano a scatti sulla tessera che sta comparendo (posizione data da studio.js). */
.sg-cursor {
  --c: var(--sx-lime); --l: 12px; --w: 2px;
  position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
  transition: left .36s steps(3, end), top .36s steps(3, end), width .36s steps(3, end), height .36s steps(3, end);
}
.sg-cursor.is-on { opacity: 1; }
html:not(.sx-js) .sg-cursor { display: none; }
.sx-js .sg-board.is-live [data-w]:not(.is-on) { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .sx-js .sg-board.is-live [data-w].is-on { animation: sc-pop .3s steps(3, end) both; }
}
@media (min-width: 560px) { .sg-days { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .sg-days { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sg-day { gap: 12px; padding: 14px; }
  .sg-ask { padding: 12px 16px; }
}

/* ---------- Tre passi: celle con il numero, il titolo e una piccola scena in fondo ------- */
.sg-steps { grid-template-columns: minmax(0, 1fr); }
.sg-step { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 16px 36px; }
.sg-step-top { display: flex; align-items: center; justify-content: space-between; align-self: stretch; }
.sg-step-n { font-family: var(--font-mono); font-size: 13px; line-height: 20px; letter-spacing: .06em; color: var(--text-2); }
.sg-step .sx-body { max-width: 40ch; }
.sg-step-demo { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; align-self: stretch; margin-top: auto; padding-top: 16px; }
.sg-compose {
  display: flex; align-items: center; gap: 10px; width: min(100%, 360px); padding: 6px 6px 6px 14px; border-radius: 22px;
  background: var(--btn); color: var(--btn-text); font-size: 14px; line-height: 20px;
}
.sg-compose > span:first-child { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sg-compose-go { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--btn-text); color: var(--btn); }
.sg-compose-go .sx-arrow { display: block; width: 14px; height: 14px; transform: rotate(180deg); }
.sg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rule);
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2);
}
.sg-chip.is-on { background: var(--tone, var(--field)); color: var(--sx-ink); box-shadow: none; }
@media (min-width: 768px) {
  .sg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg-step { padding: 40px 28px 44px; }
}

/* ---------- Prima e dopo: schede in colonna e confronto a filo cella --------------------- */
.sg-ba { display: grid; grid-template-columns: minmax(0, 1fr); }
.sg-ba-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
.sg-ba-tabs::-webkit-scrollbar { display: none; }
.sg-ba-tab {
  display: flex; flex: none; align-items: center; gap: 12px; padding: 14px 16px; border-right: 1px solid var(--rule);
  text-align: left; white-space: nowrap; color: var(--text-2); transition: background-color .2s, color .2s;
}
.sg-ba-tab:hover { background: var(--soft); color: var(--text); }
.sg-ba-tab[aria-selected="true"] { background: var(--soft); color: var(--text); box-shadow: inset 0 -3px 0 var(--tone, var(--field)); }
.sg-ba-tab-label { display: flex; flex-direction: column; font-size: 15px; line-height: 20px; font-weight: 500; }
.sg-ba-tab-label small { font-family: var(--font-mono); font-size: 10.5px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.sg-ba-panel[hidden] { display: none; }
.sg-ba-panel .sa-compare { border-radius: 0; }
/* Il confronto qui è più stretto che nella home "attività": il post del menu resta dentro il riquadro 16:9. */
@media (min-width: 768px) {
  .sg-ba-panel .sa-postout { padding-top: 56px; }
  .sg-ba-panel .sa-post { width: min(100%, 250px); }
}
.sg-ba-tools {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2);
}
.sg-ba-tools i { width: 6px; height: 6px; background: var(--tone, var(--field)); }
@media (min-width: 1024px) {
  .sg-ba { grid-template-columns: 280px minmax(0, 1fr); }
  .sg-ba-tabs { flex-direction: column; overflow: visible; border-bottom: 0; border-right: 1px solid var(--rule); }
  .sg-ba-tab { padding: 20px 24px; border-right: 0; border-bottom: 1px solid var(--rule); white-space: normal; }
  .sg-ba-tab[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--tone, var(--field)); }
  .sg-ba-tools { padding: 14px 24px; }
}

/* ---------- Reparto: la demo in chat dentro il campo di Studio --------------------------- */
.sg-field--crew { border-top: 0; }
.sg-field--crew .sc-app {
  position: relative; z-index: 1; max-width: 1440px; border-radius: 10px; border: 1px solid rgba(250, 250, 244, .14);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55);
}
.sg-field--crew .sc-stage { min-height: 540px; }
@media (min-width: 1024px) { .sg-field--crew .sc-stage { min-height: 600px; } }

/* ---------- Il tuo brand: scheda a celle con l'evidenziatore che si accende a scatti -------- */
.sg-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-sheet-core { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 16px; }
.sg-sheet-mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; background: var(--field); color: var(--sx-ink); }
.sg-sheet-mark .sx-logo-mark { display: block; width: 30px; height: 32px; }
.sg-sheet-core b { font-size: 20px; line-height: 28px; font-weight: 500; }
.sg-sheet-core .sx-chip { margin-top: 8px; }
.sg-sheet-cell { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 24px; }
.sg-sheet-cell .sx-eyebrow { font-size: 11px; line-height: 16px; }
.sg-sheet-val { font-size: 16px; line-height: 24px; font-weight: 500; text-wrap: pretty; }
.sg-mark {
  background: linear-gradient(color-mix(in srgb, var(--tone, var(--field)) 42%, var(--bg)), color-mix(in srgb, var(--tone, var(--field)) 42%, var(--bg))) no-repeat 0 100% / 100% 42%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (min-width: 768px) {
  .sg-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg-sheet-core { padding: 28px 24px; }
  .sg-sheet-cell { padding: 28px 24px 32px; }
}
@media (min-width: 1024px) {
  .sg-sheet { grid-template-columns: 240px repeat(3, minmax(0, 1fr)); }
  .sg-sheet-core { grid-column: auto; grid-row: span 2; padding: 32px 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sx-js .sg-sheet .sg-mark { background-size: 0 42%; }
  .sx-js .sg-sheet.is-in .sg-mark { animation: sg-marker .5s steps(5, end) forwards; animation-delay: calc(var(--r, 0) * 160ms + 200ms); }
}
@keyframes sg-marker { to { background-size: 100% 42%; } }

/* ---------- Settori: le card fotografiche in griglia -------------------------------------- */
.sg-people .sx-people > li { background: var(--bg); }

/* ---------- Strumenti: nove aree con i nomi in chip, descrizioni da aprire sotto ----------- */
.sg-areas { grid-template-columns: minmax(0, 1fr); }
.sg-area { display: flex; flex-direction: column; gap: 14px; padding: 24px 16px 28px; }
.sg-area-head { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 24px; font-weight: 500; }
.sg-area-n { margin-left: auto; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.sg-area-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-area-list .sg-chip { color: var(--text); }
.sg-area-note { font-size: 13px; line-height: 20px; color: var(--text-2); }
.sg-kit { border-top: 1px solid var(--rule); }
.sg-kit-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px; cursor: pointer; list-style: none; font-size: 16px; line-height: 24px; font-weight: 500; transition: background-color .2s; }
.sg-kit-summary::-webkit-details-marker { display: none; }
.sg-kit-summary:hover { background: var(--soft); }
.sg-kit-summary .sx-arrow { display: block; flex: none; width: 16px; height: 16px; transition: transform .2s steps(2, end); }
.sg-kit[open] .sg-kit-summary .sx-arrow { transform: rotate(180deg); }
.sg-kit-row { display: grid; gap: 12px; padding: 20px 16px 24px; border-top: 1px solid var(--rule); }
.sg-kit-area { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; line-height: 24px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.sg-kit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 24px; }
.sg-kit-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg-kit-item b { font-size: 15px; line-height: 22px; font-weight: 500; }
.sg-kit-item span { font-size: 14px; line-height: 20px; color: var(--text-2); text-wrap: pretty; }
@media (min-width: 768px) { .sg-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .sg-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg-area { padding: 28px 28px 32px; }
  .sg-kit-summary { padding: 20px 40px; }
  .sg-kit-row { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 28px 40px 32px; }
  .sg-kit-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Banda finale: cobalt con la foto sfumata e il simbolo con la scintilla ---------- */
.sg-cta .sx-cta-in { gap: 20px; }
.sg-cta-mark { display: block; width: 56px; height: 60px; margin-bottom: 8px; color: var(--sx-paper); }
.sg-cta .sx-lead { max-width: 52ch; color: rgba(250, 250, 244, .84); }

/* ---- spunstudio/theme/src/css/home-scrivilo.css ---- */
/* =====================================================================
   SPUN studio · home "scrivilo" (theme.json › spun.home = "scrivilo", D-015).
   «Scrivilo tu. Lo vedi fatto.»: hero compatto sul modello di Grok Bot con la
   casella vera nella finestra del reparto (sc-ask-*), la settimana con la barra
   "Approva" (sa-review), il brand che segue settore e tono (ss-voice), la banda
   finale con la richiesta ripresa (ss-echo). Beta (v2): chiaro di default,
   finestre scure, filetti da 1px, raggi 0/4/6/10, lime solo per stati e
   conferme, movimento a scatti con steps(), fermo con movimento ridotto.
   Le parti comuni stanno in home-studio.css e home-attivita.css.
   ===================================================================== */

/* ---------- Hero compatto: la finestra entra nel primo schermo ------------------------------ */
.ss-head { gap: 16px; padding: 76px 16px 28px; }
.ss-title { font-size: 44px; line-height: 48px; }
/* Il titolo va a capo solo tra una frase e l'altra. */
.ss-title-part { display: inline-block; white-space: nowrap; }
.ss-lead { max-width: 64ch; }
.ss-free { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.ss-chat-in { display: flex; flex-direction: column; gap: 20px; }
.ss-trust { justify-content: center; }
@media (min-width: 768px) {
  .ss-head { gap: 14px; padding: 80px 40px 24px; }
  .ss-title { font-size: 60px; line-height: 64px; }
  .ss-lead { font-size: 18px; line-height: 27px; }
}
@media (min-width: 1280px) { .ss-title { font-size: 64px; line-height: 68px; } }
/* Portatili con lo schermo basso: intestazione più stretta, bottoni e nota sulla stessa riga. */
@media (min-width: 1024px) and (max-height: 860px) {
  .ss-head { max-width: 1080px; gap: 12px; padding: 64px 40px 20px; }
  .ss-head .sa-chat-chip { display: none; }
  .ss-title { font-size: 54px; line-height: 58px; }
  .ss-lead { max-width: none; font-size: 17px; line-height: 25px; }
  .ss-free { margin-top: -2px; }
  .sc-app--ask { --ask-h: clamp(420px, calc(100svh - 285px), 600px); }
}

/* La categoria scelta dal visitatore (D-017) colora la griglia di sfondo dell'hero. */
html[data-cat] .ss-hero::before {
  background-image:
    linear-gradient(color-mix(in srgb, var(--cat) 24%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--cat) 24%, transparent) 1px, transparent 1px);
}

/* ---------- La finestra con la casella vera ---------------------------------------------------- */
.sc-app--ask { --ask-h: auto; }
.sc-ask { position: relative; }
.sc-ask .sc-bot-head { gap: 10px; }
.sc-ask .sc-bot-head .sx-win-state { margin-left: 4px; }
.sc-ask-new {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto; height: 32px; padding: 0 12px 0 8px; border-radius: 6px;
  background: rgba(250, 250, 244, .06); box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .14); color: var(--sx-paper);
  font-size: 13px; line-height: 20px; font-weight: 500; white-space: nowrap;
}
.sc-ask-new:hover { background: rgba(250, 250, 244, .12); }
.sc-ask-plus { position: relative; display: block; flex: none; width: 16px; height: 16px; }
.sc-ask .sc-bot-head b { white-space: nowrap; }
@media (max-width: 559px) {
  .sc-ask-new { width: 32px; padding: 0; justify-content: center; }
  .sc-ask-new-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
.sc-ask-plus::before, .sc-ask-plus::after { content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 2px; background: currentColor; }
.sc-ask-plus::after { transform: rotate(90deg); }

.sc-ask-thread { position: relative; gap: 18px; min-height: 360px; }
.sc-ask-empty {
  margin: auto 0 0; padding: 24px 16px 8px; text-align: center; font-family: var(--font-mono); font-size: 12px; line-height: 18px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--sx-muted-2);
}
.sc-ask .sc-you { gap: 4px; }
.sc-ask-meta { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-muted-2); }

.sc-ask-msg { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 12px; }
.sc-ask-msg > .sx-sq { width: 26px; height: 26px; margin-top: 1px; border-radius: 7px; }
.sc-ask-msg > .sx-sq .sx-logo-mark { display: block; width: 12px; height: 13px; }
.sc-ask-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.sc-ask-who { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--sx-paper); }
.sc-ask-text { max-width: 60ch; font-size: 15px; line-height: 23px; color: rgba(250, 250, 244, .92); }
.sc-ask-for { font-size: 15px; line-height: 23px; color: rgba(250, 250, 244, .92); }
.sc-ask-card {
  display: flex; flex-direction: column; gap: 4px; width: min(100%, 560px); padding: 14px 16px; border-radius: 10px;
  background: rgba(250, 250, 244, .05); box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .1);
}
.sc-ask-label { margin-top: 6px; font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-muted-2); }
.sc-ask-label:first-child { margin-top: 0; }
.sc-ask-ad { display: flex; flex-direction: column; font-size: 15px; line-height: 23px; color: var(--sx-paper); }
.sc-ask-ad span:first-child { font-weight: 600; }
.sc-ask-subject { font-size: 15px; line-height: 23px; color: rgba(250, 250, 244, .92); }
.sc-ask-card .sc-tags { margin-top: 6px; font-size: 13px; line-height: 20px; }
.sc-ask-tones { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-ask-tones button, .sc-ask-pills button, .ss-tones button {
  display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 4px; background: rgba(250, 250, 244, .06);
  box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .16); color: var(--sx-paper);
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.sc-ask-tones button:hover, .sc-ask-pills button:hover { background: rgba(250, 250, 244, .12); }
.sc-ask-tones button[aria-pressed="true"] { background: var(--sx-paper); box-shadow: none; color: var(--sx-ink); }
.sc-ask-pills { display: flex; flex-wrap: wrap; gap: 6px; max-width: 560px; }
.sc-ask-pills .is-skip { background: none; box-shadow: none; color: var(--sx-muted-2); text-decoration: underline; text-underline-offset: 3px; }

.sc-ask-post { width: min(100%, 250px); overflow: hidden; border-radius: 10px; background: #1c1c22; box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .1); }
.sc-ask-post .sc-post-head { padding: 9px 12px; font-size: 13px; line-height: 18px; }
.sc-ask-post-media { aspect-ratio: 1; }
.sc-ask-cap { padding: 10px 12px 12px; font-size: 13px; line-height: 19px; }
.sc-ask-cap .sc-tags { font-size: 12px; }

.sc-ask-reel { display: flex; flex-direction: column; gap: 0; width: min(100%, 390px); overflow: hidden; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .1); }
.sc-ask-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(250, 250, 244, .1); }
.sc-ask-scenes li { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; background: #17171c; }
.sc-ask-scenes .sc-media { position: absolute; inset: 0; }
.sc-ask-scenes li span {
  position: relative; max-width: calc(100% - 12px); margin: 6px; align-self: flex-start; padding: 1px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: 4px; background: rgba(16, 16, 19, .78);
  font-family: var(--font-mono); font-size: 10px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--sx-paper);
}
.sc-ask-scenes li.is-text { justify-content: center; align-items: center; }
.sc-ask-scenes li.is-text span { align-self: center; background: none; color: var(--sx-muted-2); }
.sc-ask-clip { aspect-ratio: 16 / 10; }
.sc-ask-band { padding: 10px 12px; background: #0c0c0f; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--sx-paper); }
.sc-ask-note { padding: 6px 12px 8px; background: #0c0c0f; border-top: 1px solid rgba(250, 250, 244, .08); font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-muted-2); }

.sc-ask-sched { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: rgba(250, 250, 244, .86); }
.sc-ask-voice {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "play meta" "wave wave"; align-items: center; gap: 10px 12px;
  width: min(100%, 390px); padding: 12px; border-radius: 10px; background: rgba(250, 250, 244, .05); box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .1);
}
.sc-ask-voice .sc-play { grid-area: play; width: 32px; height: 32px; padding: 8px; background: var(--tone); color: var(--tone-ink); }
.sc-ask-voice .sc-play .sx-arrow { display: block; width: 16px; height: 16px; }
.sc-ask-voice-meta { grid-area: meta; display: flex; align-items: baseline; gap: 10px; min-width: 0; font-size: 13px; line-height: 18px; }
.sc-ask-voice-meta b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.sc-ask-voice-meta span { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--sx-muted-2); }
.sc-ask-wave { grid-area: wave; display: flex; align-items: center; gap: 2px; height: 34px; }
.sc-ask-wave i { flex: 1; height: var(--h); background: var(--tone); }

.sc-ask-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sc-ask-free { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--sx-muted-2); }

.sc-ask-think { display: flex; align-items: center; gap: 5px; padding-left: 38px; font-size: 14px; line-height: 22px; color: var(--sx-muted-2); }
.sc-ask-think i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: sxs-dot 1s steps(2, jump-none) infinite; }
.sc-ask-think i:nth-child(2) { animation-delay: .15s; }
.sc-ask-think i:nth-child(3) { animation-delay: .3s; }
.sc-ask-think span { margin-left: 6px; }

/* La casella: vera, 16px per non far zoomare i telefoni; mentre l'esempio aspetta, l'anello lime lampeggia a scatti. */
.sc-ask-form { position: relative; }
.sc-ask-form:focus-within { box-shadow: inset 0 0 0 1px var(--sx-paper); }
.sc-ask-input {
  flex: 1; min-width: 0; height: 36px; padding: 0 4px; border: 0; background: none; color: var(--sx-paper);
  font: inherit; font-size: 16px; line-height: 24px; outline: none;
}
.sc-ask-input::placeholder { color: rgba(250, 250, 244, .5); }
.sc-ask-input:focus, .sc-ask-input:focus-visible { outline: none; }
.sc-ask-form .sc-send { cursor: pointer; }
.sc-ask-form .sc-send:focus-visible { outline: 2px solid var(--sx-lime); outline-offset: 2px; }
.sc-ask.is-waiting .sc-ask-form { animation: ss-ring 1s steps(1) infinite; }
@keyframes ss-ring { 0%, 49% { box-shadow: inset 0 0 0 1px var(--sx-lime); } 50%, 100% { box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .14); } }

.sc-ask-foot { display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); margin: -6px auto 14px; }
.sc-ask-hint { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-lime); }
.sc-ask-hint[hidden] { display: none; }
.sc-ask-shortcuts { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sc-ask-shortcuts::-webkit-scrollbar { display: none; }
@media (max-width: 1599px) { .sc-ask-try { display: none; } }
.sc-ask-try { flex: none; margin-right: 2px; font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-muted-2); }
.sc-ask-shortcuts button {
  display: inline-flex; flex: none; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 4px; border-radius: 6px;
  background: rgba(250, 250, 244, .05); box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .12); color: rgba(250, 250, 244, .86);
  font-size: 13px; line-height: 18px; white-space: nowrap;
}
.sc-ask-shortcuts button:hover { background: rgba(250, 250, 244, .12); color: var(--sx-paper); }
.sc-ask-shortcuts .sx-sq { width: 22px; height: 22px; }
html:not(.sx-js) .sc-ask-new, html:not(.sx-js) .sc-ask-foot { display: none; }
/* Sul telefono e sul tablet la casella sta subito sotto l'intestazione: la conversazione cresce sotto, senza scorrimento interno. */
@media (max-width: 1023px) {
  .sc-ask .sc-bot-head { order: 0; }
  .sc-ask-form { order: 1; margin-top: 14px; }
  .sc-ask-foot { order: 2; margin: 2px auto 0; }
  .sc-ask-thread { order: 3; min-height: 280px; }
}

@media (prefers-reduced-motion: no-preference) {
  .sx-js .sc-ask-thread > .sc-you, .sx-js .sc-ask-thread > .sc-ask-msg { animation: sc-pop .3s steps(3, end) both; }
  .sx-js .sc-ask-thread .sc-ask-wave i { animation: sc-wave 1.1s steps(4, end) infinite alternate; animation-delay: calc(var(--k) * -80ms); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-ask-think i, .sc-ask.is-waiting .sc-ask-form { animation: none; }
}

@media (min-width: 1024px) {
  /* Sul desktop la finestra ha un'altezza fissa, legata allo schermo: la conversazione scorre da sola all'ultima consegna. */
  .sc-app--ask { --ask-h: clamp(440px, calc(100svh - 390px), 640px); }
  .sc-app--ask .sc-stage { height: var(--ask-h); min-height: 0; }
  .sc-app--ask .sc-thread { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(250, 250, 244, .2) transparent; }
  .sc-ask-foot { width: calc(100% - 48px); margin-bottom: 16px; }
  .sc-ask .sc-thread { padding: 20px 24px 12px; }
}

/* ---------- La tua settimana: la barra "Approva" ---------------------------------------------- */
.sa-review {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; margin: 0 14px 14px; padding: 12px 14px;
  border-radius: 10px; background: rgba(250, 250, 244, .06); box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .12);
}
.sa-review[hidden] { display: none; }
.sa-review-target { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-lime); }
.sa-review-target:empty { display: none; }
.sa-review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-review-actions[hidden], .sa-review-done[hidden] { display: none; }
.sa-review-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 6px; background: rgba(250, 250, 244, .08);
  box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .18); color: var(--sx-paper); font-size: 14px; line-height: 20px; font-weight: 500;
}
.sa-review-btn:hover { background: rgba(250, 250, 244, .14); }
.sa-review-btn[hidden] { display: none; }
.sa-review-btn--ok { background: var(--sx-paper); box-shadow: none; color: var(--sx-ink); }
.sa-review-btn--ok:hover { background: #fff; }
.sa-review-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--sx-lime); color: var(--sx-ink); }
.sa-review-check .sx-px { display: block; width: 12px; height: 12px; }
.sa-review-done { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; line-height: 22px; }
.sa-review-note { flex-basis: 100%; font-family: var(--font-mono); font-size: 10.5px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--sx-muted-2); }
.sa-review-count { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-muted-2); white-space: nowrap; }
.sa-tile.is-approved { box-shadow: inset 0 0 0 1px var(--sx-lime); }
.sa-tile.is-approved .sa-tile-state { color: var(--sx-lime); }
.sa-tile-cap { font-size: 12px; line-height: 16px; color: rgba(250, 250, 244, .9); display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
@media (max-width: 639px) {
  .sa-review { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Il tuo brand: la risposta al cliente nel tono scelto --------------------------------- */
.sc-tile--sm .sx-spark { width: 28px; height: 30px; color: var(--sx-paper); }
.ss-voice { display: flex; flex-direction: column; gap: 14px; max-width: 880px; margin: 40px auto 0; }
.ss-voice-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.ss-voice-head .sx-sq { background: var(--cat); color: var(--cat-ink); }
.ss-voice-cells { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--rule); border-radius: 10px; background: var(--rule); }
.ss-voice-cell { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--bg); }
.ss-voice-cell--a { background: var(--surface); }
.ss-voice-q { font-size: 17px; line-height: 26px; color: var(--text-2); }
.ss-voice-a { font-size: 19px; line-height: 28px; font-weight: 500; color: var(--text); text-wrap: pretty; }
.ss-tones { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-tones button { background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule); color: var(--text); }
.ss-tones button:hover { background: var(--soft); }
.ss-tones button[aria-pressed="true"] { background: var(--text); box-shadow: none; color: var(--bg); }
@media (min-width: 768px) { .ss-voice-cells { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }

/* ---------- Settori: la card del visitatore va per prima --------------------------------------- */
.sx-people > li.is-yours { order: -1; }
.sa-ba-try { margin-top: 6px; text-align: center; }
.sa-ba-try a {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text); text-decoration: underline; text-underline-offset: 4px;
}
.sa-ba-try .sx-px { width: 14px; height: 14px; }
.sx-person-yours { align-self: flex-start; }
.sx-person-yours[hidden] { display: none; }

/* ---------- Banda finale: la richiesta del visitatore ---------------------------------------------- */
.ss-echo {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: min(100%, 640px); padding: 18px 20px; border-radius: 10px;
  background: var(--sx-ink); box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .3); text-align: left;
}
.ss-echo[hidden] { display: none; }
.ss-echo-label { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-lime); }
.ss-echo-text { font-size: 20px; line-height: 28px; font-weight: 500; color: var(--sx-paper); overflow-wrap: anywhere; }
.ss-echo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ss-echo-copy {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 6px; background: rgba(250, 250, 244, .1);
  box-shadow: inset 0 0 0 1px rgba(250, 250, 244, .24); color: var(--sx-paper); font-size: 14px; line-height: 20px; font-weight: 500;
}
.ss-echo-copy:hover { background: rgba(250, 250, 244, .18); }
.ss-echo-note { font-size: 13px; line-height: 19px; color: rgba(250, 250, 244, .7); }

/* ---- spunai/SPUN-saas/packages/site-kit/assets/footer.css ---- */
/* Footer unico dei siti SPUN (packages/site-kit, D-043): uguale su spun.ai e su ogni sito prodotto.
   Generato da site_kit.footer_html(); sul modello di spun.tel (DESIGN_SYSTEM §10 e §15).
   Variabili proprie con ripiego: i token di spun.ai (--sx-*) o le variabili delle landing (--bg, --text, --rule…),
   così lo stesso file funziona ovunque senza toccare il CSS del sito.
   Ogni regola parte da .sx-footer e il logo e le icone hanno classi proprie (niente .sx-logo o .sx-px):
   così le regole generiche dei siti (per esempio .sx-chat .sx-px) non entrano nel footer. */
.sx-footer {
  --kf-bg: var(--sx-bg, var(--bg, #FAFAF4));
  --kf-fg: var(--sx-fg, var(--text, #101013));
  --kf-fg-2: var(--sx-fg-2, var(--text-2, #6D6D78));
  --kf-line: var(--sx-line, var(--rule, rgba(16, 16, 19, .12)));
  --kf-surface: var(--sx-surface, var(--surface, var(--soft, rgba(16, 16, 19, .04))));
  --kf-surface-2: var(--sx-surface-2, var(--soft, rgba(16, 16, 19, .06)));
  --kf-focus: var(--sx-focus, var(--focus, #1F3DFF));
  --kf-mono: var(--font-mono, "Space Mono", ui-monospace, monospace);
  --kf-g: 16px;
  border-top: 1px solid var(--kf-line);
  color: var(--kf-fg);
}
@media (min-width: 1024px) { .sx-footer { --kf-g: 40px; } }
.sx-footer :where(h2, h3, p, ul, li) { margin: 0; padding: 0; }
.sx-footer :where(ul) { list-style: none; }
.sx-footer :where(a) { color: inherit; text-decoration: none; }
.sx-footer :where(button) { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.sx-footer :where(a, button):focus-visible { outline: 2px solid var(--kf-focus); outline-offset: 2px; }
.sx-footer .sx-footer__sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Colonne a celle: 2 sul telefono, tutte in fila da 1024px. */
.sx-footer .sx-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--kf-line); }
@media (min-width: 1024px) { .sx-footer .sx-footer__cols { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }
.sx-footer .sx-footer__col { display: flex; flex-direction: column; gap: 12px; padding: 32px var(--kf-g); background: var(--kf-bg); }
@media (min-width: 1024px) { .sx-footer .sx-footer__col { padding: 40px var(--kf-g); } }
.sx-footer .sx-footer__title, .sx-footer .sx-footer__ecolabel {
  font-family: var(--kf-mono); font-size: 12px; line-height: 16px; font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase; color: var(--kf-fg-2);
}
.sx-footer .sx-footer__col ul { display: flex; flex-direction: column; gap: 6px; }
.sx-footer .sx-footer__col a, .sx-footer .sx-footer__row { font-size: 14px; line-height: 20px; font-weight: 500; }
.sx-footer .sx-footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Riga del marchio: logo e claim a sinistra (claim sotto sul telefono, accanto dopo un filetto da 768px),
   certificazioni a destra, tutte alla stessa altezza. */
.sx-footer .sx-footer__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px var(--kf-g); border-block: 1px solid var(--kf-line);
}
.sx-footer .sx-footer__id { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sx-footer .sx-footer__brand { display: block; color: var(--kf-fg); }
.sx-footer .sx-footer__logo { display: block; width: 132px; height: auto; }
.sx-footer .sx-footer__claim span { display: block; color: var(--kf-fg-2); }
@media (min-width: 768px) {
  .sx-footer .sx-footer__id { flex-direction: row; align-items: center; gap: 24px; }
  .sx-footer .sx-footer__claim { padding-left: 24px; border-left: 1px solid var(--kf-line); }
}
.sx-footer .sx-footer__certlist { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-footer .sx-footer__cert { display: block; border-radius: 999px; transition: transform .15s; }
.sx-footer .sx-footer__cert:hover { transform: translateY(-2px); }
.sx-footer .sx-footer__cert img { display: block; width: auto; height: 44px; }
@media (min-width: 768px) {
  .sx-footer .sx-footer__certlist { gap: 16px; }
  .sx-footer .sx-footer__cert img { height: 64px; }
}

/* Nastro dell'ecosistema: prodotto in chiaro, famiglia in mono. Il secondo giro chiude il loop;
   si ferma al passaggio e con il fuoco da tastiera. */
.sx-footer .sx-footer__eco { display: flex; overflow: hidden; border-bottom: 1px solid var(--kf-line); }
.sx-footer .sx-footer__ecolabel { display: flex; flex: none; align-items: center; padding: 0 24px; border-right: 1px solid var(--kf-line); }
@media (max-width: 767px) {
  .sx-footer .sx-footer__ecolabel { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}
.sx-footer .sx-footer__ecoview { flex: 1; min-width: 0; overflow: hidden; }
.sx-footer .sx-footer__ecomove { display: flex; width: max-content; animation: sx-kit-marquee 60s linear infinite; }
.sx-footer .sx-footer__eco:hover .sx-footer__ecomove, .sx-footer .sx-footer__eco:focus-within .sx-footer__ecomove { animation-play-state: paused; }
.sx-footer .sx-footer__ecotrack { display: flex; }
.sx-footer .sx-footer__ecolink {
  display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-right: 1px solid var(--kf-line);
  white-space: nowrap; font-size: 14px; line-height: 20px; transition: background-color .15s;
}
.sx-footer .sx-footer__ecolink b { font-weight: 500; }
.sx-footer .sx-footer__ecolink span {
  font-family: var(--kf-mono); font-size: 10px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--kf-fg-2);
}
.sx-footer .sx-footer__ecolink:hover { background: var(--kf-surface); }
@keyframes sx-kit-marquee { to { transform: translateX(-50%); } }

/* Riga finale: società a sinistra; social e tema a destra. */
.sx-footer .sx-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--kf-g); }
.sx-footer .sx-footer__legal { font-size: 13px; line-height: 20px; color: var(--kf-fg-2); }
.sx-footer .sx-footer__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.sx-footer .sx-footer__social { display: flex; gap: 4px; }
.sx-footer .sx-footer__social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: var(--kf-fg-2); transition: color .15s, background-color .15s; }
.sx-footer .sx-footer__social a:hover { color: var(--kf-fg); background: var(--kf-surface); }
.sx-footer .sx-footer__social svg { display: block; width: 18px; height: 18px; }
.sx-footer .sx-footer__theme { display: inline-flex; gap: 2px; padding: 2px; border-radius: 6px; background: var(--kf-surface-2); }
.sx-footer .sx-footer__opt { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; color: var(--kf-fg-2); }
.sx-footer .sx-footer__opt svg { display: block; width: 16px; height: 16px; }
.sx-footer .sx-footer__opt:hover { color: var(--kf-fg); }
.sx-footer .sx-footer__opt[aria-checked="true"] { background: var(--kf-bg); color: var(--kf-fg); }
.sx-footer .sx-footer__note { padding: 0 var(--kf-g) 16px; font-size: 13px; line-height: 20px; color: var(--kf-fg-2); }
.sx-footer .sx-footer__note a { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .sx-footer .sx-footer__ecomove { width: auto; animation: none; }
  .sx-footer .sx-footer__ecotrack { flex-wrap: wrap; }
  .sx-footer .sx-footer__ecotrack[aria-hidden="true"] { display: none; }
  .sx-footer .sx-footer__cert, .sx-footer .sx-footer__ecolink, .sx-footer .sx-footer__social a { transition: none; }
  .sx-footer .sx-footer__cert:hover { transform: none; }
}
