/* Wordmark: Golden Rooster (campionario allegato). Copia il file come fonts/golden-rooster.ttf oppure installa il font nel sistema (local). */
@font-face {
  font-family: "Golden Rooster";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local("Golden Rooster"),
    url("fonts/golden-rooster.ttf") format("truetype");
}

@font-face {
  font-family: "Golden Rooster";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    local("Golden Rooster"),
    url("fonts/golden-rooster.ttf") format("truetype");
}

:root {
  --font-synapse-wordmark: "Golden Rooster", Montserrat, Inter, system-ui, sans-serif;
  /* Palette neutra */
  --bg: #0b0b0b;
  --surface: #141414;
  --surface-soft: #1d1d1d;
  --line: rgba(179, 179, 179, 0.35);
  --line-strong: rgba(179, 179, 179, 0.75);
  --text: #ffffff;
  --muted: #c8c8c8;
  /* Accento blu di Prussia / grigio (allineato a Plasticity · Nexa · Hub) */
  --gold: #6b8fa3;
  --gold-soft: #4a6678;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
}

body {
  font-family: Montserrat, Inter, system-ui, sans-serif;
  color: var(--text);
  color-scheme: dark;
  --intro-progress: 0;
  --intro-inv-progress: 1;
  background:
    radial-gradient(1100px 640px at 100% -20%, rgba(179, 179, 179, 0.08), transparent 62%),
    radial-gradient(900px 520px at 0% 110%, rgba(120, 120, 120, 0.1), transparent 64%),
    linear-gradient(165deg, #050505, #0f0f0f 45%, var(--bg) 85%);
  opacity: 0;
  transition:
    opacity 1.05s ease,
    background 1.05s cubic-bezier(0.33, 0, 0.2, 1),
    color 0.95s cubic-bezier(0.33, 0, 0.2, 1),
    color-scheme 0.6s ease;
}

html.light-mode {
  color-scheme: light;
  --bg: #ececec;
  --surface: #ffffff;
  --surface-soft: #f2f5f7;
  --line: rgba(55, 48, 38, 0.12);
  --line-strong: rgba(55, 48, 38, 0.22);
  --text: #1a1f18;
  --muted: #4d5248;
  /* Accento su fondo chiaro */
  --gold: #3a5466;
  --gold-soft: #2a3f4d;
}

html.light-mode body {
  background:
    radial-gradient(1100px 640px at 100% -18%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(900px 520px at 0% 108%, rgba(120, 120, 120, 0.18), transparent 65%),
    linear-gradient(165deg, #f7f7f7, #e1e1e1 52%, var(--bg) 100%);
}

/* Superfici in modalità chiara (pannello home, fasi, card modulo) */
html.light-mode .topbar {
  background: rgba(250, 252, 253, 0.92);
  border-bottom-color: var(--line);
}

html.light-mode .section-shell {
  border-color: rgba(55, 48, 38, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 250, 0.9));
  box-shadow: 0 8px 32px rgba(26, 31, 24, 0.06);
}

html.light-mode .module-actions-wrap,
html.light-mode .module-actions-hero {
  border-top-color: rgba(55, 48, 38, 0.1);
}

html.light-mode .phase-step {
  border-color: rgba(55, 48, 38, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

html.light-mode .phase-step summary::after {
  color: var(--gold-soft);
}

html.light-mode .phase-step:hover,
html.light-mode .phase-step:focus-within {
  border-color: rgba(58, 84, 102, 0.32);
  background: linear-gradient(160deg, rgba(90, 122, 145, 0.12), rgba(255, 255, 255, 0.94));
  box-shadow: 0 16px 32px rgba(26, 31, 24, 0.08);
}

html.light-mode .phase-body {
  border-top-color: rgba(55, 48, 38, 0.1);
}

html.light-mode .topbar-glass .nav-link:hover,
html.light-mode .topbar-glass .nav-link:focus-visible,
html.light-mode .topbar-glass .nav-link.is-active {
  text-shadow: 0 0 14px rgba(90, 122, 145, 0.22);
}

html.light-mode .intro-main-cta {
  background: linear-gradient(135deg, #faf7f0, #ebe6dc);
  border: 1px solid rgba(55, 48, 38, 0.14);
  box-shadow: 0 18px 40px rgba(26, 31, 24, 0.09), 0 0 24px rgba(90, 122, 145, 0.12);
  color: var(--text);
}

html.light-mode .intro-main-cta:hover,
html.light-mode .intro-main-cta:focus-visible {
  background: linear-gradient(135deg, #fffefb, #f2ebe0);
  box-shadow: 0 24px 48px rgba(26, 31, 24, 0.11), 0 0 32px rgba(90, 122, 145, 0.16);
}

/* Modalità chiara: indici sezione, form contatti, preview, KPI, card azione, booking (hover) */
html.light-mode .section-index {
  border-color: rgba(55, 48, 38, 0.16);
}

html.light-mode .section-label {
  color: var(--muted);
}

html.light-mode .lang-btn.active {
  color: var(--text);
  border-color: rgba(58, 84, 102, 0.35);
  background: rgba(255, 255, 255, 0.92);
}

html.light-mode .contact {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 250, 0.94));
  border-color: rgba(55, 48, 38, 0.12);
  box-shadow: 0 4px 22px rgba(26, 31, 24, 0.06);
}

html.light-mode .contact:hover {
  border-color: rgba(58, 84, 102, 0.22);
  box-shadow: 0 20px 42px rgba(26, 31, 24, 0.1);
}

html.light-mode .quick-form input {
  border-color: rgba(55, 48, 38, 0.14);
  background: rgba(255, 255, 255, 0.94);
}

html.light-mode .quick-form input:focus {
  border-color: rgba(58, 84, 102, 0.42);
  box-shadow: 0 0 0 3px rgba(90, 122, 145, 0.18);
}

html.light-mode .quick-form button {
  background: var(--text);
  color: #fafaf8;
  border-color: var(--text);
}

html.light-mode .quick-form button:hover,
html.light-mode .quick-form button:focus-visible {
  background: #2a3128;
  border-color: #2a3128;
}

html.light-mode .cta {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(55, 48, 38, 0.16);
}

html.light-mode .cta:hover {
  border-color: rgba(58, 84, 102, 0.42);
  background: rgba(255, 255, 255, 0.98);
}

html.light-mode .form-success {
  color: #047857;
}

html.light-mode .preview-item:hover {
  border-color: rgba(58, 84, 102, 0.22);
  box-shadow: 0 22px 46px rgba(26, 31, 24, 0.11);
}

html.light-mode .preview-head {
  border-bottom-color: rgba(55, 48, 38, 0.1);
}

html.light-mode .preview-tag {
  color: var(--muted);
  border-color: rgba(55, 48, 38, 0.14);
}

html.light-mode .module-kpi {
  border-color: rgba(55, 48, 38, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 250, 0.9));
}

html.light-mode .module-kpi strong {
  color: var(--text);
}

html.light-mode .module-kpi span {
  color: var(--muted);
}

html.light-mode .module-panel {
  border-color: rgba(55, 48, 38, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 250, 0.88));
}

html.light-mode .module-checklist {
  color: var(--muted);
}

html.light-mode .feature:hover {
  box-shadow: 0 20px 40px rgba(26, 31, 24, 0.1);
  border-color: rgba(58, 84, 102, 0.26);
}

html.light-mode .feature-drop {
  color: var(--muted);
}

html.light-mode .action-card {
  border-color: rgba(55, 48, 38, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 250, 0.82));
}

html.light-mode .action-card:hover,
html.light-mode .action-card:focus-visible {
  border-color: rgba(58, 84, 102, 0.28);
  box-shadow: 0 20px 40px rgba(26, 31, 24, 0.09);
}

html.light-mode .phase-body ul {
  color: var(--muted);
}

html.light-mode .booking-demo-day:hover:not(:disabled) {
  border-color: rgba(58, 84, 102, 0.32);
  background: rgba(255, 255, 255, 0.98);
}

html.light-mode .booking-demo-day:focus-visible {
  outline-color: rgba(58, 84, 102, 0.55);
}

html.light-mode .booking-demo-slot:hover {
  border-color: rgba(58, 84, 102, 0.38);
  background: rgba(255, 255, 255, 0.98);
}

html.light-mode .booking-demo-slot.is-selected {
  border-color: rgba(58, 84, 102, 0.42);
  background: rgba(90, 122, 145, 0.18);
}

html.light-mode .booking-demo-submit:not(:disabled):hover {
  box-shadow: 0 8px 22px rgba(26, 31, 24, 0.12);
}

input,
button,
select,
textarea {
  font-family: Montserrat, Inter, system-ui, sans-serif;
}

body.is-loaded {
  opacity: 1;
}

/*
 * Transizione morbida tema: specificità bassa (:where) così non sovrascrive
 * opacity/transform/filter di hero, reveal, accordion, ecc.
 */
body.is-loaded
  :where(*:not(.theme-toggle):not(.synapse-cookie-banner):not(.synapse-cookie-banner *)) {
  transition-property: background, background-color, color, border-color, box-shadow, fill, stroke;
  transition-duration: 0.9s;
  transition-timing-function: cubic-bezier(0.33, 0, 0.2, 1);
}

/*
 * La regola tema ha specificità (0,1,1) e batteva .topbar-intro (0,1,0): l’header perdeva
 * opacity/transform/filter su --intro-progress → logo / topbar “a scatto” rispetto ai figli.
 */
body.is-loaded .topbar-intro {
  transition: opacity 0.28s linear, transform 0.28s linear, filter 0.28s linear;
}

/* Stesso motivo: parità (0,1,1) con :where(*); ancoriamo la dissolvenza dell’overlay SYNAPSE. */
body.is-loaded .hero-title-synapse-overlay {
  transition:
    opacity 1.7s cubic-bezier(0.2, 0.75, 0.18, 1),
    transform 1.7s cubic-bezier(0.2, 0.75, 0.18, 1),
    filter 1.7s ease;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: opacity 0.4s ease;
  }

  body.is-loaded
    :where(*:not(.theme-toggle):not(.synapse-cookie-banner):not(.synapse-cookie-banner *)) {
    transition-duration: 0.01ms !important;
    transition-property: none;
  }
}

body.skip-load-fade {
  opacity: 1;
  transition: none;
}

body.is-nav-transitioning {
  pointer-events: none;
}

.theme-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.65);
  color: #f5f6fb;
  font: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  background: rgba(30, 30, 36, 0.8);
  border-color: rgba(255, 255, 255, 0.44);
}

html.light-mode .theme-toggle {
  border-color: rgba(20, 26, 38, 0.24);
  background: rgba(255, 255, 255, 0.84);
  color: #1d2433;
}

html.light-mode .theme-toggle:hover,
html.light-mode .theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(20, 26, 38, 0.42);
}

.container {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 7, 0.86);
  backdrop-filter: blur(10px);
}

.topbar-glass {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.topbar-intro {
  position: fixed;
  left: 0;
  right: 0;
  opacity: var(--intro-progress);
  transform: translateY(calc(-18px * var(--intro-inv-progress)));
  filter: blur(calc(8px * var(--intro-inv-progress)));
  pointer-events: none;
  transition: opacity 0.28s linear, transform 0.28s linear, filter 0.28s linear;
}

body.landing-intro.has-scrolled-intro .topbar-intro {
  pointer-events: auto;
}

.topbar-glass .topbar-inner,
.topbar-glass .brand-logo,
.topbar-glass .nav {
  opacity: var(--intro-progress);
  transform: translateY(calc(10px * var(--intro-inv-progress)));
  filter: blur(calc(6px * var(--intro-inv-progress)));
  transition: opacity 0.28s linear, transform 0.28s linear, filter 0.28s linear;
}

.topbar-glass:not(.topbar-intro) .topbar-inner,
.topbar-glass:not(.topbar-intro) .brand-logo,
.topbar-glass:not(.topbar-intro) .nav {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

html.light-mode .topbar-glass {
  border-bottom-color: rgba(20, 26, 38, 0.16);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  box-shadow: 0 12px 24px rgba(17, 23, 35, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.topbar-glass .nav-link {
  border: none;
  border-radius: 0;
  padding: 4px 0;
  color: #e8ebf4;
  background: transparent;
  box-shadow: none;
  font-size: 0.94rem;
  letter-spacing: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), color 0.34s ease, text-shadow 0.34s ease;
}

html.light-mode .topbar-glass .nav-link {
  color: #2e3648;
}

.topbar-glass .nav-link:hover,
.topbar-glass .nav-link:focus-visible,
.topbar-glass .nav-link.is-active {
  transform: translateY(-1px) scale(1.05);
  border: none;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(154, 170, 189, 0.35);
}

html.light-mode .topbar-glass .nav-link:hover,
html.light-mode .topbar-glass .nav-link:focus-visible,
html.light-mode .topbar-glass .nav-link.is-active {
  color: #151b28;
  text-shadow: 0 0 12px rgba(122, 141, 163, 0.26);
}

.topbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  gap: 0;
}

.brand-logo svg {
  width: 150px;
  height: 42px;
  display: block;
  transform-origin: left top;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 0 10px rgba(22, 56, 102, 0.18));
  transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1), filter 0.46s ease;
}

.brand-logo text {
  fill: #ffffff;
  font-family: var(--font-synapse-wordmark);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-synthesis: none;
}

html.light-mode .brand-logo text {
  fill: var(--text);
}

/* Nomi moduli suite: stesso wordmark Golden Rooster del logo (testo maiuscolo da JS) */
.synapse-product-name {
  font-family: var(--font-synapse-wordmark);
  font-weight: 600;
  letter-spacing: 0.085em;
  font-synthesis: none;
  text-transform: uppercase;
}

.brand-logo:hover svg {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 0 20px rgba(13, 50, 96, 0.34)) drop-shadow(0 0 34px rgba(139, 171, 215, 0.22));
}

.brand-sub {
  display: none;
}

html.light-mode .brand-sub {
  display: none;
}

.brand-logo:hover .brand-sub,
.brand-logo:focus-visible .brand-sub {
  opacity: 0;
  transform: translateY(-4px);
  filter: blur(2px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  color: #e8ebf4;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font-size: 0.88rem;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.42s ease,
    background 0.42s ease,
    box-shadow 0.42s ease;
}

.nav-link:hover,
.nav-link.is-active {
  transform: translateY(-2px);
  border-color: rgba(154, 170, 189, 0.68);
  background: linear-gradient(140deg, rgba(154, 170, 189, 0.32), rgba(255, 255, 255, 0.08));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), 0 0 18px rgba(154, 170, 189, 0.3);
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  margin-left: 2px;
}

.lang-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
}

.lang-btn.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  padding: 86px 0 26px;
}

.hero-minimal {
  min-height: 82vh;
  display: grid;
  align-content: center;
  padding: 8vh 0 10vh;
}

.hero-intro-only {
  min-height: 100vh;
  padding: 18vh 0 16vh;
  position: relative;
  overflow-x: visible;
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6.8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 10.5ch;
}
.hero-title {
  display: grid;
  gap: 0;
  position: relative;
}

.hero-title.mega {
  font-size: clamp(2.5rem, 8.8vw, 7.2rem);
  max-width: 14.5ch;
  line-height: 0.82;
}

.hero-intro-only .hero-title.mega {
  max-width: 22ch;
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.hero-intro-only .title-line {
  color: var(--text);
  white-space: nowrap;
}

.hero-intro-only .hero-title > .title-line:first-child {
  color: #f5f6fb;
  display: inline-block;
  transform-origin: left top;
  transform: scale(1);
  text-shadow:
    0 0 36px rgba(255, 255, 255, 0.16),
    0 0 72px rgba(90, 122, 145, 0.08);
  transition:
    opacity 2.8s cubic-bezier(0.2, 0.75, 0.18, 1),
    filter 2.8s ease,
    color 3.2s cubic-bezier(0.2, 0.75, 0.18, 1),
    transform 3.2s cubic-bezier(0.2, 0.75, 0.18, 1),
    text-shadow 3.2s cubic-bezier(0.2, 0.75, 0.18, 1);
}

/* Seconda riga hero: sempre bianca (dark); in light = testo scuro */
.hero-intro-only .hero-title .hero-title-second {
  display: inline-block;
  font-size: clamp(2.05rem, 7.2vw, 6rem);
  color: #ffffff;
  text-shadow:
    0 0 32px rgba(255, 255, 255, 0.14),
    0 0 64px rgba(255, 255, 255, 0.06);
  transition:
    opacity 2.1s cubic-bezier(0.2, 0.75, 0.18, 1),
    filter 2.1s ease,
    transform 2.1s cubic-bezier(0.2, 0.75, 0.18, 1),
    text-shadow 2.1s cubic-bezier(0.2, 0.75, 0.18, 1);
}

html.light-mode .hero-intro-only .hero-title .hero-title-second {
  color: var(--text);
  text-shadow:
    0 0 28px rgba(58, 84, 102, 0.12),
    0 0 52px rgba(26, 31, 24, 0.06);
}

/* Landing intro: swap word “Technologies” -> “SYNAPSE” (catch up stays) */
.hero-second-line {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.hero-title-synapse-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  filter: blur(12px);
  transition:
    opacity 1.7s cubic-bezier(0.2, 0.75, 0.18, 1),
    transform 1.7s cubic-bezier(0.2, 0.75, 0.18, 1),
    filter 1.7s ease;

  font-family: var(--font-synapse-wordmark);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 0.88;
  font-size: clamp(2.65rem, 8.6vw, 10rem);

  color: #ffffff;
  text-shadow:
    0 0 32px rgba(255, 255, 255, 0.12),
    0 0 64px rgba(255, 255, 255, 0.06);

  pointer-events: none;
  white-space: nowrap;
  max-width: 94vw;
  text-align: center;
  box-sizing: border-box;
  font-synthesis: none;
  z-index: 2;
}

html.light-mode .hero-title-synapse-overlay {
  color: var(--text);
  text-shadow:
    0 0 26px rgba(26, 31, 24, 0.10),
    0 0 52px rgba(26, 31, 24, 0.06);
}

/* A fine auto-scroll: dissolvi il motto e mostra SYNAPSE enorme al centro */
body.intro-technologies-to-synapse .hero-intro-only .hero-title .title-line {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(14px);
}

body.intro-logo-visible .hero-title-synapse-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  filter: blur(0);
}

.hero-word-swap {
  position: relative;
  display: inline-block;
  /* Width set dynamically in JS to align “catch up.” after the visible word end. */
  width: var(--hero-swap-word-width, 0px);
  height: 1em;
  vertical-align: baseline;
}

.hero-tech-word,
.hero-synapse-word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;

  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);

  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;

  color: inherit;
  text-shadow: inherit;
}

.hero-catchup-word {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 0;
  transform: translateX(var(--hero-catchup-shift-x, 0px));
  will-change: transform;
  white-space: nowrap;
}

.hero-synapse-word {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  filter: blur(10px);
}

body.intro-technologies-to-synapse .hero-tech-word {
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  filter: blur(10px);
}

body.intro-technologies-to-synapse .hero-synapse-word {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

html.light-mode .hero-intro-only .hero-title > .title-line:first-child {
  color: var(--text);
  text-shadow: 0 0 40px rgba(26, 31, 24, 0.06);
}

/* Prima riga hero: con accent intro passa in dissolvenza al blu di Prussia */
body.intro-first-line-accent .hero-intro-only .hero-title > .title-line:first-child {
  color: var(--gold);
  transform: translateY(0) scale(0.82);
  text-shadow:
    0 0 42px rgba(90, 122, 145, 0.32),
    0 0 88px rgba(90, 122, 145, 0.14);
}

.hero-intro-only .title-line + .title-line {
  margin-top: 0.1em;
}

.hero-title .title-line {
  display: block;
  opacity: 0;
  transform: translateY(26px);
  filter: blur(10px);
  transition: opacity 2.1s cubic-bezier(0.2, 0.75, 0.18, 1), transform 2.1s cubic-bezier(0.2, 0.75, 0.18, 1), filter 2.1s ease;
}

body.is-loaded .hero-title .title-line {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

body.is-loaded .hero-title .hero-title-second {
  transition-delay: 0.52s;
}

.subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.65;
  font-size: 0.98rem;
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), filter 0.95s ease;
}

body.is-loaded .subtitle {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.34s;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  filter: blur(8px);
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), filter 0.95s ease;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

body.landing-intro .intro-next {
  opacity: calc(0.08 + (0.92 * var(--intro-progress))) !important;
  transform: translateY(calc(46px * var(--intro-inv-progress))) scale(calc(0.985 + (0.015 * var(--intro-progress)))) !important;
  filter: blur(calc(12px * var(--intro-inv-progress))) !important;
  transition: opacity 0.22s linear, transform 0.22s linear, filter 0.22s linear;
}

body.landing-intro .cta-card-grid .action-card {
  opacity: calc(0.06 + (0.94 * var(--intro-progress)));
  transform: translateY(calc(30px * var(--intro-inv-progress)));
  filter: blur(calc(8px * var(--intro-inv-progress)));
  transition: opacity 0.22s linear, transform 0.22s linear, filter 0.22s linear;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 48px;
  width: 18px;
  height: 38px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.is-loaded .scroll-hint {
  opacity: 0.9;
}

body.landing-intro.has-scrolled-intro .scroll-hint {
  opacity: 0;
  transform: translate(-50%, 10px);
}

.scroll-hint-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 26px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.85));
}

html.light-mode .scroll-hint-line {
  background: linear-gradient(to bottom, rgba(20, 26, 38, 0.12), rgba(20, 26, 38, 0.7));
}

.scroll-hint-dot {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  animation: scrollHintMove 1.5s ease-in-out infinite;
}

html.light-mode .scroll-hint-dot {
  background: rgba(20, 26, 38, 0.8);
}

@keyframes scrollHintMove {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
}

.pill-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: #d9dce6;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.74rem;
}

.feature-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(154, 170, 189, 0.58);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.34), 0 0 18px rgba(154, 170, 189, 0.24);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.feature-drop {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  color: #d7dbe7;
  font-size: 0.8rem;
  line-height: 1.45;
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s ease, margin-top 0.42s ease, padding-top 0.42s ease, border-color 0.42s ease;
}

.feature:hover .feature-drop,
.feature:focus-within .feature-drop {
  max-height: 88px;
  opacity: 1;
  margin-top: 8px;
  padding-top: 8px;
  border-top-color: rgba(154, 170, 189, 0.38);
}

.section-shell {
  margin: 52px 0 86px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(7px);
  padding: 30px 28px;
}

.module-lead {
  max-width: 84ch;
}

.module-kpi-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.module-kpi {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}

.module-kpi strong {
  display: block;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.module-kpi span {
  display: block;
  margin-top: 4px;
  color: #b2bacb;
  font-size: 0.78rem;
}

.module-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
}

.module-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  padding: 14px;
}

.module-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.module-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.88rem;
}

.module-checklist {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #d1d6e3;
  display: grid;
  gap: 5px;
  line-height: 1.5;
  font-size: 0.84rem;
}

.module-flow {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  /* Altrimenti le card si stirano tutte all’altezza della sola aperta */
  align-items: start;
}

.phase-step {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.48s ease, box-shadow 0.48s ease, background 0.48s ease;
}

.phase-step summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 16px 14px;
  min-height: 48px;
  position: relative;
}

.phase-step summary::-webkit-details-marker {
  display: none;
}

.phase-step summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 1.05rem;
  color: var(--gold-soft);
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.phase-step[open] summary::after {
  transform: rotate(45deg);
}

.phase-step summary:focus-visible {
  outline: 2px solid rgba(154, 170, 189, 0.74);
  outline-offset: -2px;
}

.phase-step:hover,
.phase-step:focus-within {
  transform: translateY(-5px);
  border-color: rgba(154, 170, 189, 0.6);
  background: linear-gradient(160deg, rgba(154, 170, 189, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(154, 170, 189, 0.26);
}

.phase-step .step-label {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Homepage: etichette fasi in bianco (dark); in light restano leggibili su carta */
.section-shell-home .module-flow .phase-step .step-label {
  color: #ffffff;
}

html.light-mode .section-shell-home .module-flow .phase-step .step-label {
  color: var(--text);
}

.phase-step h4 {
  margin: 9px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.phase-step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.phase-body {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px 16px;
  transition:
    height 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1s cubic-bezier(0.33, 0.1, 0.24, 1),
    padding 1.08s cubic-bezier(0.22, 1, 0.36, 1),
    border-top-color 0.45s ease;
}

.phase-body ul {
  margin: 0;
  padding-left: 18px;
  color: #d6dce8;
  font-size: 0.8rem;
  line-height: 1.68;
  display: grid;
  gap: 7px;
}

/* Pagine Privacy / Cookie */
.legal-doc {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  max-width: 78ch;
}

.legal-doc .legal-meta {
  margin: 0 0 20px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.legal-doc h3 {
  margin: 1.5em 0 0.45em;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.legal-doc h3:first-of-type {
  margin-top: 0;
}

.legal-doc h4 {
  margin: 1.1em 0 0.35em;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.legal-doc p {
  margin: 0.55em 0 0;
  font-size: 0.86rem;
  line-height: 1.68;
  color: var(--muted);
}

.legal-doc p:first-of-type {
  margin-top: 0;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0.5em 0 0;
  padding-left: 1.25em;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--muted);
  display: grid;
  gap: 0.4em;
}

.legal-doc li::marker {
  color: var(--gold-soft);
}

.legal-doc a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.legal-doc a:hover,
.legal-doc a:focus-visible {
  color: var(--gold-soft);
}

.legal-doc table {
  width: 100%;
  margin: 0.65em 0 0;
  border-collapse: collapse;
  font-size: 0.8rem;
  line-height: 1.5;
}

.legal-doc th,
.legal-doc td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}

.legal-doc th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}

.legal-doc code {
  font-size: 0.78em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

html.light-mode .legal-doc th {
  background: rgba(26, 31, 24, 0.04);
}

html.light-mode .legal-doc code {
  background: rgba(26, 31, 24, 0.05);
}

.module-reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s ease;
}

.module-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.module-reveal.delay-1 {
  transition-delay: 0.08s;
}

.module-reveal.delay-2 {
  transition-delay: 0.16s;
}

.module-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-actions .action-card {
  position: relative;
  text-align: center;
}

.module-actions .action-card .action-kicker {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
}

html.light-mode .module-actions .action-card .action-kicker {
  color: var(--text);
}

.module-actions .action-card h3,
.module-actions .action-card p {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.35s ease, margin-top 0.35s ease;
}

.module-actions .action-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: #ffffff;
}

html.light-mode .module-actions .action-card h3 {
  color: var(--text);
}

.module-actions .action-card p {
  color: var(--muted);
}

.module-actions .action-card:hover h3,
.module-actions .action-card:hover p,
.module-actions .action-card:focus-visible h3,
.module-actions .action-card:focus-visible p {
  opacity: 1;
  max-height: 120px;
  margin-top: 8px;
}

.module-actions-wrap {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.module-actions-hero {
  margin-top: 36px;
  padding-top: 28px;
  border-top-color: rgba(255, 255, 255, 0.14);
}

.module-actions-head {
  margin-bottom: 10px;
}

.module-actions-head .section-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.section-shell-home .module-actions-head .section-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}

.module-actions-deck {
  margin: 12px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.module-lead-compact .subtitle {
  margin-top: 12px;
  font-size: 0.95rem;
}

/* Homepage: SYNAPSE (stile logo) + numeri + spiegazioni, senza “riquadro” */
.home-impact-top {
  margin: 16px 0 12px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vw, 22px);
}

.home-impact-summary--full {
  width: 100%;
}

.home-impact-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(14px, 2.6vw, 26px);
  align-items: stretch;
}

.home-impact-block {
  margin: 0;
  padding: 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

html.light-mode .home-impact-block {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(55, 48, 38, 0.12);
  box-shadow: 0 14px 30px rgba(26, 31, 24, 0.06);
}

.home-impact-pairs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.7vw, 16px);
  margin: auto 0;
}

.impact-pair {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
  padding: clamp(10px, 1.6vw, 14px) clamp(12px, 1.8vw, 16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  /* Se rimangono nodi di testo tra i children (es. “-”), li neutralizziamo. */
  font-size: 0;
}

.impact-pair .home-impact-num {
  flex: 0 0 126px;
  text-align: center;
  white-space: nowrap;
}

.impact-sep {
  color: var(--muted);
  opacity: 0.9;
  font-size: 1.05rem;
  margin-top: 0.35em;
  display: none;
}

.impact-text {
  flex: 1 1 auto;
  max-width: none;
  width: 100%;
  display: flex;
  align-items: center;
  font-size: 1rem;
  line-height: 1.35;
}

.home-impact-summary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  padding: clamp(18px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.home-impact-summary p {
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

.home-impact-summary-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  line-height: 1.25;
  font-weight: 400;
}

.home-impact-summary-text {
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
}

/* Home: pulsante Hub (→ hub piattaforma) + tracciati PCB al hover */
.home-hub-circuit-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 156px;
  margin-top: 4px;
  padding: 6px 0 10px;
}

.home-hub-circuit-svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 520px);
  height: 168px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.home-hub-trace {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.35;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  vector-effect: non-scaling-stroke;
  transition:
    stroke-dashoffset 0.48s cubic-bezier(0.33, 1, 0.45, 1),
    opacity 0.28s ease;
  transition-delay: 0s;
}

.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-trace--1 {
  transition-delay: 0.02s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-trace--2 {
  transition-delay: 0.06s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-trace--3 {
  transition-delay: 0.1s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-trace--4 {
  transition-delay: 0.14s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-trace--5 {
  transition-delay: 0.18s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-trace--6 {
  transition-delay: 0.22s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-trace--7 {
  transition-delay: 0.26s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-trace--8 {
  transition-delay: 0.3s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-trace--9 {
  transition-delay: 0.34s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-trace--10 {
  transition-delay: 0.38s;
}

.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-trace {
  stroke-dashoffset: 0;
  opacity: 0.94;
}

.home-hub-pad {
  fill: var(--gold);
  opacity: 0;
  stroke: none;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-pad--1 {
  opacity: 0.88;
  transition-delay: 0.32s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-pad--2 {
  opacity: 0.88;
  transition-delay: 0.34s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-pad--3 {
  opacity: 0.75;
  transition-delay: 0.4s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-pad--4 {
  opacity: 0.75;
  transition-delay: 0.42s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-pad--5 {
  opacity: 0.82;
  transition-delay: 0.36s;
}
.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-pad--6 {
  opacity: 0.82;
  transition-delay: 0.37s;
}

.home-hub-protagonist-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  padding: 15px 40px;
  font-family: var(--font-synapse-wordmark), Montserrat, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(155deg, rgba(90, 122, 145, 0.28), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(90, 122, 145, 0.55);
  border-radius: 16px;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-protagonist-btn {
  transform: translateY(-3px);
  border-color: rgba(90, 122, 145, 0.85);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(90, 122, 145, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.home-hub-protagonist-btn:hover,
.home-hub-protagonist-btn:focus-visible {
  outline: none;
}

.home-hub-protagonist-btn:focus-visible {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--gold);
}

html.light-mode .home-hub-trace {
  stroke: var(--gold);
}

html.light-mode .home-hub-protagonist-btn {
  background: linear-gradient(155deg, rgba(90, 122, 145, 0.2), rgba(255, 255, 255, 0.92));
  border-color: rgba(58, 84, 102, 0.45);
  box-shadow: 0 10px 28px rgba(26, 31, 24, 0.1);
}

html.light-mode .home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-protagonist-btn {
  box-shadow:
    0 18px 40px rgba(26, 31, 24, 0.12),
    0 0 24px rgba(58, 84, 102, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .home-hub-trace {
    stroke-dashoffset: 0;
    opacity: 0.2;
    transition: opacity 0.2s ease;
  }

  .home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-trace {
    opacity: 0.5;
  }

  .home-hub-circuit-wrap:is(:hover, :focus-within) .home-hub-protagonist-btn {
    transform: none;
  }
}

.gold-keyword {
  font-family: var(--font-synapse-wordmark);
  color: inherit;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  font-synthesis: none;
}

html.light-mode .home-impact-summary {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(55, 48, 38, 0.12);
  box-shadow: 0 12px 24px rgba(26, 31, 24, 0.07);
}

/* Per le cards numeri: fade senza “salti” verticali durante il reveal */
.home-impact-pairs .module-reveal {
  transform: none !important;
  filter: none !important;
}

/* 4 product cards a destra dei numeri */
.home-product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.6vw, 16px);
}

.home-product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
}

.home-product-card:hover,
.home-product-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(90, 122, 145, 0.45);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26), 0 0 18px rgba(90, 122, 145, 0.12);
}

html.light-mode .home-product-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(55, 48, 38, 0.12);
  box-shadow: 0 8px 18px rgba(26, 31, 24, 0.06);
}

html.light-mode .home-product-card:hover,
html.light-mode .home-product-card:focus-visible {
  border-color: rgba(58, 84, 102, 0.32);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 28px rgba(26, 31, 24, 0.1), 0 0 14px rgba(58, 84, 102, 0.1);
}

.home-product-card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}

.home-product-card-name {
  font-family: var(--font-synapse-wordmark);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  font-synthesis: none;
}

.home-impact-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.home-impact-nums-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.6vw, 14px);
}

.home-impact-wordmark {
  margin: 0;
  padding: 0;
  font-family: var(--font-synapse-wordmark);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.2vw, 2.7rem);
  letter-spacing: 2.4px;
  text-indent: 0;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

.home-impact-nums {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.2vw, 12px);
}

.home-impact-num {
  display: block;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: clamp(2.15rem, 5.4vw, 3.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.02;
  -webkit-font-smoothing: antialiased;
}

html.light-mode .home-impact-num {
  color: rgba(26, 31, 24, 0.92);
}

section.section-shell-home {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

html.light-mode section.section-shell-home {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 250, 0.9));
}

/* Homepage senza accordion a tre colonne: riquadro più compatto */
section.section-shell-home.section-shell-home--cta-only {
  margin: 40px 0 52px;
  padding: 22px 24px 24px;
}

section.section-shell-home.section-shell-home--cta-only .module-actions-wrap.module-actions-hero {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.home-impact-side {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vw, 12px);
  align-items: flex-start;
}

.impact-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  color: var(--text);
}

.impact-kpi {
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: -0.01em;
  min-width: 62px;
  display: none; /* non usato: le descrizioni stanno a lato dei numeri */
}

.home-impact-side .impact-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
  max-width: 34ch; /* stabilizza i wrap e quindi l'altezza dei blocchi (cards per riga) */
}

html.light-mode .impact-text {
  color: rgba(26, 31, 24, 0.72);
}

/* Mantiene allineamento verticale coerente con i numeri (evita “scorrimento” dovuto a wrap diverso). */
.home-impact-side .module-reveal {
  min-height: 2.75em;
}

@media (max-width: 980px) {
  .home-impact-grid {
    grid-template-columns: minmax(0, 280px) 1fr;
  }

  .home-impact-wordmark {
    font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  }

  .home-impact-num {
    font-size: clamp(1.9rem, 7.2vw, 3.15rem);
  }
}

@media (max-width: 768px) {
  .home-impact-top {
    margin: 10px 0 6px;
    gap: 12px;
  }

  .home-impact-bottom {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-impact-grid {
    grid-template-columns: 1fr;
  }

  .home-impact-side {
    padding-top: 8px;
  }

  .home-impact-wordmark {
    letter-spacing: 2px;
    font-size: clamp(1.35rem, 5.2vw, 2.1rem);
  }

  .home-impact-num {
    font-size: clamp(2rem, 14vw, 3.05rem);
  }

  .impact-pair {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .impact-pair .home-impact-num {
    flex: 0 0 auto;
    width: 100%;
    text-align: left;
    white-space: nowrap;
  }

  .impact-text {
    max-width: none;
    display: block;
    font-size: 1rem;
  }

  .home-impact-block {
    padding: 16px 14px;
  }

  .home-impact-summary {
    padding: 16px 14px;
    gap: 10px;
  }

  .home-impact-summary-lead {
    font-size: clamp(1.05rem, 5.2vw, 1.34rem);
  }

  .home-impact-summary-text {
    font-size: clamp(0.96rem, 4.2vw, 1.08rem);
  }

  .home-product-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* Homepage: un solo CTA verso pagina prodotti */
.home-products-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 112px;
  padding: 26px 28px !important;
  margin-top: 12px;
  text-decoration: none;
  border: 1px solid rgba(90, 122, 145, 0.38);
  background: linear-gradient(145deg, rgba(90, 122, 145, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38), 0 0 36px rgba(90, 122, 145, 0.12);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease, background 0.45s ease;
}

.home-products-cta-title {
  font-size: clamp(1.25rem, 2.9vw, 1.72rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.home-products-cta-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 42ch;
}

html.light-mode .home-products-cta {
  background: linear-gradient(145deg, rgba(255, 252, 245, 0.98), rgba(240, 232, 218, 0.92));
  border-color: rgba(58, 84, 102, 0.35);
  box-shadow: 0 16px 36px rgba(26, 31, 24, 0.1), 0 0 28px rgba(90, 122, 145, 0.15);
}

.intro-next {
  margin: 32px 0 96px;
  padding: 32px 0 16px;
}

.intro-next .section-head {
  margin-bottom: 14px;
  justify-content: center;
  text-align: center;
}

.intro-next .section-title {
  max-width: 24ch;
  line-height: 1.2;
}

.cta-card-grid.intro-main-cta-wrap {
  grid-template-columns: 1fr;
  justify-items: center;
}

.intro-main-cta {
  width: min(560px, 100%);
  margin-inline: auto;
  text-align: center;
  border-width: 1.5px;
  background: linear-gradient(135deg, #2a2a2a, #121212);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 36px rgba(179, 179, 179, 0.28);
  transform: translateY(0);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    background 0.4s ease;
}

.intro-main-cta h3 {
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.intro-main-cta .action-kicker {
  display: block;
  width: 100%;
  text-align: center;
  margin-inline: auto;
  letter-spacing: 0.18em;
}

.intro-main-cta p {
  font-size: 0.92rem;
}

.intro-main-cta:hover,
.intro-main-cta:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.65), 0 0 44px rgba(179, 179, 179, 0.35);
  background: linear-gradient(135deg, #343434, #161616);
}

.intro-copy {
  max-width: 78ch;
  margin-top: 18px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.cta-card-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.action-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--text);
  text-decoration: none;
  padding: 18px;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.48s ease, box-shadow 0.48s ease, background 0.48s ease;
}

.action-kicker {
  display: inline-block;
  color: var(--gold-soft);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.action-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.action-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

.products-card p {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.products-card:hover p,
.products-card:focus-visible p,
.products-card:focus-within p {
  max-height: 120px;
  opacity: 1;
  margin-top: 8px;
}

body.landing-intro .cta-card-grid .action-card {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 10px 0;
}

body.landing-intro .cta-card-grid .action-card:hover,
body.landing-intro .cta-card-grid .action-card:focus-visible {
  transform: translateY(-1px) scale(1.04);
  border: none;
  background: transparent;
  box-shadow: none;
}

body.landing-intro .cta-card-grid .action-card h3 {
  text-shadow: 0 0 0 rgba(122, 141, 163, 0);
  transition: text-shadow 0.34s ease, letter-spacing 0.34s ease;
}

body.landing-intro .cta-card-grid .action-card:hover h3,
body.landing-intro .cta-card-grid .action-card:focus-visible h3 {
  letter-spacing: 0.01em;
  text-shadow: 0 0 16px rgba(154, 170, 189, 0.36);
}

.site-footer {
  margin-top: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(10, 10, 12, 0.2));
}

html.light-mode .site-footer {
  border-top-color: rgba(20, 26, 38, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(236, 240, 246, 0.76));
}

.footer-inner {
  padding: 20px 0 24px;
  text-align: center;
  display: grid;
  gap: 5px;
  justify-items: center;
}

.footer-logo {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo svg {
  width: 126px;
  height: 36px;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 0 8px rgba(22, 56, 102, 0.14));
}

.footer-logo text {
  fill: #ffffff;
  font-family: var(--font-synapse-wordmark);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-synthesis: none;
}

html.light-mode .footer-logo text {
  fill: var(--text);
}

.footer-sub {
  display: none;
}

html.light-mode .footer-sub {
  display: none;
}

.footer-contact,
.footer-meta,
.footer-copy {
  color: #b5bdcd;
  font-size: 0.76rem;
}

html.light-mode .footer-contact,
html.light-mode .footer-meta,
html.light-mode .footer-copy {
  color: #384256;
}

.footer-legal {
  margin: 4px auto 0;
  max-width: 72ch;
  color: #98a1b4;
  font-size: 0.7rem;
  line-height: 1.45;
}

html.light-mode .footer-legal {
  color: #4b5569;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(154, 170, 189, 0.6);
  background: linear-gradient(160deg, rgba(154, 170, 189, 0.2), rgba(255, 255, 255, 0.05));
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(154, 170, 189, 0.26);
}

.action-card.home-products-cta:hover,
.action-card.home-products-cta:focus-visible {
  border-color: rgba(90, 122, 145, 0.58);
  background: linear-gradient(145deg, rgba(90, 122, 145, 0.2), rgba(255, 255, 255, 0.06));
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.42), 0 0 44px rgba(90, 122, 145, 0.22);
}

html.light-mode .action-card.home-products-cta:hover,
html.light-mode .action-card.home-products-cta:focus-visible {
  border-color: rgba(122, 92, 18, 0.45);
  background: linear-gradient(145deg, rgba(255, 252, 245, 0.99), rgba(232, 224, 208, 0.95));
  box-shadow: 0 22px 44px rgba(26, 31, 24, 0.12), 0 0 36px rgba(90, 122, 145, 0.2);
}

.action-card:focus-visible {
  outline: 2px solid rgba(154, 170, 189, 0.74);
  outline-offset: 2px;
}

.action-card[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), filter 0.85s ease;
}

.action-card[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.cta-card-grid .action-card:nth-child(2) {
  transition-delay: 0.12s;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-index {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 9px;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #d4d7e1;
}

.preview-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.preview-item {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--surface-soft));
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.55s ease,
    box-shadow 0.55s ease;
}

.preview-item:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 26px 45px rgba(0, 0, 0, 0.33);
}

.preview-head {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.preview-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.preview-tag {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.67rem;
  color: #d1d5e0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.preview-body {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.preview-body ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 5px;
  line-height: 1.45;
}

.contact {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(26, 26, 28, 0.92), rgba(14, 14, 16, 0.92));
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.55s ease,
    box-shadow 0.55s ease;
}

.contact:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.34);
}

.contact p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.quick-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 760px;
}

.quick-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}

.quick-form input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.quick-form .full {
  grid-column: 1 / -1;
}

.quick-form button,
.cta {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: inherit;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.quick-form button {
  background: #fff;
  color: #0b0b0c;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  justify-self: start;
}

.form-note {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 8px;
}

.form-success {
  margin-top: 10px;
  color: #d1fae5;
  font-size: 0.84rem;
  display: none;
}

.form-success.is-visible {
  display: block;
}

.cta {
  color: #fff;
  padding: 11px 16px;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.45s ease, border-color 0.45s ease, background 0.45s ease;
}

.cta:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
}

/* —— Demo prenotazione appuntamenti (Preventivo) —— */
#prenota-appuntamento {
  scroll-margin-top: 88px;
}

.booking-demo {
  margin-top: 20px;
}

.booking-demo-inner {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(26, 26, 28, 0.88), rgba(14, 14, 16, 0.92));
  padding: 22px 22px 24px;
}

.booking-demo-note {
  margin: 0 0 18px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.booking-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}

.booking-demo-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.booking-demo-month {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  flex: 1;
  letter-spacing: -0.02em;
}

.booking-demo-nav {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.booking-demo-nav:hover,
.booking-demo-nav:focus-visible {
  border-color: rgba(90, 122, 145, 0.45);
  background: rgba(90, 122, 145, 0.1);
  outline: none;
}

.booking-demo-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.booking-demo-wd {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking-demo-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.booking-demo-day {
  aspect-ratio: 1;
  max-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}

.booking-demo-day:hover:not(:disabled) {
  border-color: rgba(154, 170, 189, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.booking-demo-day:focus-visible {
  outline: 2px solid rgba(154, 170, 189, 0.75);
  outline-offset: 2px;
}

.booking-demo-day.is-selected {
  border-color: rgba(90, 122, 145, 0.65);
  background: rgba(90, 122, 145, 0.16);
  box-shadow: 0 0 0 1px rgba(90, 122, 145, 0.2);
}

.booking-demo-day--today:not(.is-selected) {
  border-color: rgba(90, 122, 145, 0.35);
}

.booking-demo-day--muted {
  opacity: 0.28;
  cursor: default;
}

.booking-demo-day--past,
.booking-demo-day--full {
  opacity: 0.38;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.2);
}

.booking-demo-day--partial:not(:disabled) {
  border-color: rgba(90, 122, 145, 0.28);
}

.booking-demo-slots-title {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.booking-demo-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
}

.booking-demo-slot {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.booking-demo-slot:hover {
  border-color: rgba(154, 170, 189, 0.5);
}

.booking-demo-slot.is-selected {
  border-color: rgba(90, 122, 145, 0.55);
  background: rgba(90, 122, 145, 0.14);
}

.booking-demo-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.booking-demo-form-legend {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.booking-demo-field {
  display: grid;
  gap: 5px;
  margin: 0;
}

.booking-demo-field-label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking-demo-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}

.booking-demo-field input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.booking-demo-error {
  margin-top: 12px;
  font-size: 0.84rem;
  color: #fecaca;
  line-height: 1.45;
}

html.light-mode .booking-demo-field input {
  border-color: rgba(55, 48, 38, 0.14);
  background: rgba(255, 255, 255, 0.85);
}

html.light-mode .booking-demo-error {
  color: #b91c1c;
}

.booking-demo-actions {
  margin-top: 4px;
}

.booking-demo-submit {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: #0b0b0c;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.booking-demo-submit:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
}

.booking-demo-submit:not(:disabled):hover {
  transform: translateY(-2px);
}

.booking-demo-feedback {
  margin-top: 12px;
  font-size: 0.84rem;
  color: #d1fae5;
  line-height: 1.5;
}

.booking-demo-empty {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

html.light-mode .booking-demo-inner {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 250, 0.92));
  border-color: rgba(55, 48, 38, 0.12);
}

html.light-mode .booking-demo-nav {
  border-color: rgba(55, 48, 38, 0.14);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}

html.light-mode .booking-demo-day {
  border-color: rgba(55, 48, 38, 0.12);
  background: rgba(255, 255, 255, 0.65);
}

html.light-mode .booking-demo-day--past,
html.light-mode .booking-demo-day--full {
  background: rgba(26, 31, 24, 0.06);
}

html.light-mode .booking-demo-slot {
  border-color: rgba(55, 48, 38, 0.14);
  background: rgba(255, 255, 255, 0.75);
}

html.light-mode .booking-demo-feedback {
  color: #047857;
}

@media (max-width: 768px) {
  .booking-demo-layout {
    grid-template-columns: 1fr;
  }
}

.cursor-dot {
  display: none;
}

@media (pointer: fine) {
  html,
  body,
  a,
  button,
  input,
  select,
  textarea,
  label {
    cursor: auto !important;
  }

  .cursor-dot {
    display: none !important;
  }

}

.glass-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  backdrop-filter: blur(0) saturate(1);
  background:
    radial-gradient(980px 560px at 50% 14%, rgba(64, 114, 181, 0.24), transparent 64%),
    radial-gradient(1000px 600px at 50% 100%, rgba(0, 0, 0, 0.88), rgba(4, 4, 6, 0.96));
  transition: opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1), backdrop-filter 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

html.light-mode .glass-transition {
  background:
    radial-gradient(980px 560px at 50% 14%, rgba(29, 79, 145, 0.2), transparent 64%),
    radial-gradient(1000px 600px at 50% 100%, rgba(230, 235, 243, 0.94), rgba(245, 247, 252, 0.96));
}

.glass-transition-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(580px, 88vw);
  border: 1px solid rgba(74, 127, 198, 0.48);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(52, 101, 171, 0.32), rgba(255, 255, 255, 0.09) 42%, rgba(10, 10, 13, 0.22));
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.52), 0 0 32px rgba(83, 132, 201, 0.28);
  color: #f6f7fb;
  padding: 18px;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

html.light-mode .glass-transition-card {
  border-color: rgba(36, 87, 157, 0.34);
  background: linear-gradient(165deg, rgba(36, 87, 157, 0.2), rgba(255, 255, 255, 0.9) 42%, rgba(227, 232, 241, 0.8));
  box-shadow: 0 24px 50px rgba(23, 31, 45, 0.16), 0 0 24px rgba(40, 93, 167, 0.18);
  color: #1c2535;
}

.glass-transition.kick {
  opacity: 1;
  backdrop-filter: blur(12px) saturate(1.16);
}

.glass-transition.kick .glass-transition-card {
  transform: translate(-50%, -50%) scale(1.02);
  opacity: 1;
}

.glass-transition.phase-deep {
  opacity: 1;
  backdrop-filter: blur(16px) saturate(1.24);
}

.glass-transition.phase-deep .glass-transition-card {
  transform: translate(-50%, -50%) scale(1.12);
  opacity: 1;
}

.glass-transition.leave {
  opacity: 0;
  backdrop-filter: blur(0) saturate(1);
}

.glass-transition.leave .glass-transition-card {
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0 !important;
  filter: blur(2px);
}

.glass-transition-card .small {
  font-family: var(--font-synapse-wordmark);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #0d3260;
  font-weight: 600;
}

.glass-transition-card .title {
  margin-top: 8px;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
}


@media (max-width: 980px) {
  .hero-intro-only {
    min-height: 92vh;
    padding: 20vh 0 10vh;
  }

  .hero-intro-only .hero-title.mega {
    max-width: 22ch;
  }

  .hero-intro-only .hero-title .hero-title-second {
    font-size: clamp(1.8rem, 8vw, 4.6rem);
  }

  .cta-card-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .module-kpi-strip,
  .module-grid,
  .module-flow,
  .module-actions {
    grid-template-columns: 1fr;
  }

  .preview-list {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .hero-title-synapse-overlay {
    font-size: clamp(2rem, 10.5vw, 4.2rem);
    letter-spacing: 0.12em;
    max-width: 94vw;
    padding: 0 8px;
  }

  .hero-intro-only .hero-title .hero-title-second {
    font-size: clamp(1.52rem, 10.8vw, 2.7rem);
  }

  .topbar-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    row-gap: 10px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .brand-logo svg {
    width: min(148px, 58vw);
    height: auto;
  }
}

@media (max-width: 768px) {
  .section-shell {
    margin: 38px 0 62px;
    padding: 22px 16px;
    border-radius: 18px;
  }

  section.section-shell-home.section-shell-home--cta-only {
    margin: 28px 0 40px;
    padding: 18px 14px 18px;
  }

  .module-lead .subtitle {
    margin-top: 14px;
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .module-flow {
    margin-top: 18px;
    gap: 12px;
  }

  .phase-step summary {
    padding: 15px 14px 13px;
    min-height: 50px;
  }

  .phase-step .step-label {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }

  .phase-step h4 {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .phase-step p {
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .phase-body {
    padding: 13px 14px 14px;
  }

  .phase-body ul {
    font-size: 0.82rem;
    line-height: 1.65;
    gap: 8px;
  }

  .module-actions-wrap {
    margin-top: 22px;
    padding-top: 14px;
  }
}

/* Footer: link a informative (injection JS) */
.footer-legal-links {
  margin: 10px 0 6px;
  font-size: 0.82rem;
}

.footer-legal-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--gold);
}

.footer-legal-links-sep {
  margin: 0 6px;
  color: var(--muted);
  opacity: 0.7;
}

/* Form preventivo: errori */
.form-error {
  margin-top: 10px;
  color: #fecaca;
  font-size: 0.84rem;
  display: none;
}

.form-error.is-visible {
  display: block;
}

html.light-mode .form-error {
  color: #b91c1c;
}

body.synapse-cookie-banner-open {
  padding-bottom: 120px;
}

@media (min-width: 720px) {
  body.synapse-cookie-banner-open {
    padding-bottom: 88px;
  }
}

/* Banner cookie */
.synapse-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 14px 16px;
  background: rgba(12, 12, 12, 0.94);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.synapse-cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

html.light-mode .synapse-cookie-banner {
  background: rgba(252, 250, 246, 0.97);
  border-top-color: var(--line);
  box-shadow: 0 -8px 28px rgba(26, 31, 24, 0.08);
}

.synapse-cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.synapse-cookie-banner-text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.synapse-cookie-banner-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.synapse-cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.synapse-cookie-btn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 16px;
  font-size: 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.synapse-cookie-btn:hover,
.synapse-cookie-btn:focus-visible {
  border-color: var(--gold);
  outline: none;
}

.synapse-cookie-btn-primary {
  background: rgba(90, 122, 145, 0.18);
  border-color: rgba(90, 122, 145, 0.45);
}

html.light-mode .synapse-cookie-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line-strong);
}

html.light-mode .synapse-cookie-btn-primary {
  background: rgba(90, 122, 145, 0.22);
  border-color: rgba(58, 84, 102, 0.4);
}

@media (max-width: 560px) {
  .synapse-cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .synapse-cookie-banner-actions {
    justify-content: stretch;
  }

  .synapse-cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* ─── Hub piattaforma (mappa neurale / sinaptica) ─── */
.synapse-hub-hero .subtitle {
  max-width: 58ch;
}

.synapse-hub-shell .section-title {
  letter-spacing: 0.02em;
}

.synapse-hub-intro {
  margin: 0 0 clamp(20px, 3vw, 28px);
  max-width: 62ch;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.65;
  color: var(--muted);
}

.synapse-hub-viz-wrap {
  position: relative;
  margin-top: 8px;
}

.synapse-hub-viz-frame {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  padding: 0;
}

html.light-mode .synapse-hub-viz-frame {
  border: none;
  background: transparent;
  box-shadow: none;
}

.synapse-hub-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: min(72vh, 620px);
}

.synapse-hub-orbit-ring {
  transform-origin: 0 0;
}

.synapse-hub-orbit-ring--cw {
  animation: synapse-hub-orbit-cw 155s linear infinite;
}

.synapse-hub-orbit-ring--ccw {
  animation: synapse-hub-orbit-ccw 210s linear infinite;
}

@keyframes synapse-hub-orbit-cw {
  to {
    transform: rotate(360deg);
  }
}

@keyframes synapse-hub-orbit-ccw {
  to {
    transform: rotate(-360deg);
  }
}

.synapse-hub-pulse-line {
  fill: none;
  stroke: var(--gold);
  pointer-events: none;
  opacity: 0.88;
}

.synapse-hub-pulse-line--a {
  stroke-width: 2.4;
  stroke-dasharray: 14 168;
  stroke-dashoffset: 0;
  animation: synapse-hub-dash-travel var(--hub-pulse-dur, 2.45s) linear infinite;
}

.synapse-hub-pulse-line--b {
  stroke-width: 1.35;
  stroke-dasharray: 9 188;
  stroke-dashoffset: 0;
  opacity: 0.5;
  animation: synapse-hub-dash-travel var(--hub-pulse-dur, 2.45s) linear infinite;
}

.synapse-hub-pulse--pl-1 {
  --hub-pulse-dur: 2.38s;
}

.synapse-hub-pulse--pl-2 {
  --hub-pulse-dur: 2.38s;
  animation-delay: -1.19s;
}

.synapse-hub-pulse--nx-1 {
  --hub-pulse-dur: 2.62s;
}

.synapse-hub-pulse--nx-2 {
  --hub-pulse-dur: 2.62s;
  animation-delay: -1.31s;
}

.synapse-hub-pulse--so-1 {
  --hub-pulse-dur: 2.5s;
}

.synapse-hub-pulse--so-2 {
  --hub-pulse-dur: 2.5s;
  animation-delay: -1.25s;
}

.synapse-hub-pulse--he-1 {
  --hub-pulse-dur: 2.72s;
}

.synapse-hub-pulse--he-2 {
  --hub-pulse-dur: 2.72s;
  animation-delay: -1.36s;
}

@keyframes synapse-hub-dash-travel {
  to {
    stroke-dashoffset: -220;
  }
}

html.light-mode .synapse-hub-axons-base path {
  stroke: rgba(55, 48, 38, 0.32);
}

.synapse-hub-core-label {
  font-family: var(--font-synapse-wordmark), Montserrat, sans-serif;
  font-size: clamp(30px, 5.5vw, 46px);
  font-weight: 400;
  fill: var(--gold);
  letter-spacing: 0.06em;
  pointer-events: none;
}

html.light-mode .synapse-hub-core-label {
  fill: var(--gold);
}

.synapse-hub-product-disk {
  fill: rgba(18, 18, 18, 0.72);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.2;
  transition:
    stroke 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    fill 0.45s ease,
    filter 0.45s ease;
}

.synapse-hub-product-inner {
  fill: url(#synapse-hub-node-grad);
  stroke: var(--gold);
  stroke-opacity: 0.22;
  stroke-width: 0.85;
  pointer-events: none;
}

.synapse-hub-product-name {
  font-family: var(--font-synapse-wordmark), Montserrat, sans-serif;
  font-size: clamp(14px, 2.4vw, 19px);
  font-weight: 400;
  fill: var(--text);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.synapse-hub-product-tag {
  font-family: Montserrat, Inter, sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  fill: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

.synapse-hub-link {
  cursor: pointer;
  outline: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.synapse-hub-link:hover .synapse-hub-product-disk,
.synapse-hub-link:focus-visible .synapse-hub-product-disk {
  stroke: rgba(90, 122, 145, 0.65);
  stroke-width: 1.45;
  fill: rgba(28, 26, 22, 0.88);
  filter: drop-shadow(0 0 12px rgba(90, 122, 145, 0.25));
}

.synapse-hub-link:hover .synapse-hub-product-name,
.synapse-hub-link:focus-visible .synapse-hub-product-name {
  fill: var(--gold-soft);
}

html.light-mode .synapse-hub-link:hover .synapse-hub-product-name,
html.light-mode .synapse-hub-link:focus-visible .synapse-hub-product-name {
  fill: var(--gold);
}

html.light-mode .synapse-hub-product-disk {
  fill: rgba(255, 255, 255, 0.88);
  stroke: rgba(55, 48, 38, 0.14);
}

html.light-mode .synapse-hub-link:hover .synapse-hub-product-disk,
html.light-mode .synapse-hub-link:focus-visible .synapse-hub-product-disk {
  fill: rgba(255, 252, 246, 0.98);
  stroke: rgba(58, 84, 102, 0.45);
}

.synapse-hub-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

.synapse-hub-footnote {
  margin: clamp(16px, 2.2vw, 22px) 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
}

.synapse-hub-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin-top: 6px;
}

.synapse-hub-cta-card {
  text-decoration: none;
  color: inherit;
  min-height: 140px;
}

@media (prefers-reduced-motion: reduce) {
  .synapse-hub-orbit-ring--cw,
  .synapse-hub-orbit-ring--ccw {
    animation: none;
  }

  .synapse-hub-pulse-line--a,
  .synapse-hub-pulse-line--b {
    animation: none;
    stroke-dashoffset: -40;
    opacity: 0.35;
  }
}

