/* Home: percorso vero nella testata e sezione «sistema» con il cervello AI (dicembre 2026) */
.hero > .wrap > .lt-flow { margin: 60px auto 0; position: relative; z-index: 1; }

.sis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1160px; margin: 0 auto; }
.sis-grid > div { background: #fff; border-radius: var(--r); padding: 26px 24px; box-shadow: var(--sh); }
.sis-grid b { display: block; font: 800 13px var(--font); letter-spacing: .12em; color: var(--blue); margin-bottom: 12px; }
.sis-grid h3 { font-size: 18px; margin-bottom: 8px; }
.sis-grid p { color: var(--mu); font-size: 15.5px; }

.brain { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; max-width: 1160px; margin: 28px auto 0; padding: 48px; border-radius: var(--r-lg); background: var(--night); color: var(--night-mu); position: relative; overflow: hidden; isolation: isolate; }
.brain::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 160%; z-index: -1; background: radial-gradient(40% 40% at 60% 40%, rgba(61,111,224,.45), transparent 70%), radial-gradient(35% 35% at 30% 70%, rgba(47,165,150,.3), transparent 70%); }
.brain .kicker { color: var(--g-b); }
.brain h3 { color: #fff; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 18px; }
.brain-txt p { color: #c9d4e4; font-size: 17px; }
.brain-txt p + p { margin-top: 14px; }
.brain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.brain-list li { padding: 16px 18px; border-radius: var(--r-sm); background: rgba(255,255,255,.06); border: 1px solid var(--night-line); color: #c9d4e4; font-size: 15px; }
.brain-list b { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }
.sis-cta { text-align: center; margin-top: 40px; }

@media (max-width: 1080px) { .sis-grid { grid-template-columns: repeat(2, 1fr); } .brain { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .sis-grid { grid-template-columns: 1fr; } .brain { padding: 30px 22px; }  }
.brain-vis { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 460px; justify-self: center; }
.brain-vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 1080px) { .brain-vis { max-width: 380px; } }


/* pre-headline: etichetta piccola su una riga */
.hero .hero-txt p.hero-pre { display: inline-block; margin: 0 auto 22px; padding: 6px 14px; border-radius: 999px; background: rgba(61,111,224,.08); color: var(--blue); font-size: 13.5px; line-height: 1.3; font-weight: 600; letter-spacing: .01em; max-width: none; }
.hero-pre .ps { display: none; }
@media (max-width: 600px) { .hero .hero-txt p.hero-pre { font-size: 12.5px; padding: 5px 12px; margin-bottom: 16px; white-space: nowrap; } .hero-pre .pl { display: none; } .hero-pre .ps { display: inline; } }

/* come funziona: 4 passaggi a sinistra (schede numerate), telefono a destra */
.hero-stage { position: relative; max-width: 1100px; margin: 64px auto 0; padding: 52px 56px; border-radius: var(--r-lg); background: linear-gradient(160deg, #f3f6fd 0%, #eef6f5 100%); border: 1px solid var(--line); text-align: left; overflow: hidden; isolation: isolate; }
.hero-stage::before { content: ''; position: absolute; z-index: -1; right: -10%; top: -30%; width: 60%; height: 130%; background: radial-gradient(45% 45% at 50% 50%, rgba(61,111,224,.16), transparent 70%); }
.hero-stage .lt-flow { max-width: none; display: grid; grid-template-columns: 1fr 400px; grid-template-areas: "head phone" "nav phone" "tag phone"; grid-template-rows: auto auto 1fr; column-gap: 56px; align-items: start; }
.hs-head { grid-area: head; }
.hs-head h2 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.035em; margin: 8px 0 10px; }
.hs-head p { color: var(--ink2); font-size: 17px; margin: 0 0 26px; max-width: 460px; }
.hero-stage .lt-flow-cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.hero-stage .lt-flow-nav { grid-area: nav; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.hero-stage .lt-flow-nav li { list-style: none; }
.hero-stage .lt-flow-nav button { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; width: 100%; padding: 16px 18px 18px; border-radius: 16px; background: rgba(255,255,255,.55); border: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s; overflow: hidden; font-family: var(--font); }
.hero-stage .lt-flow-nav em { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-style: normal; font-weight: 700; font-size: 15px; color: var(--mu); transition: all .25s; }
.hero-stage .lt-flow-nav b { font-size: 17px; font-weight: 600; color: var(--ink2); line-height: 1.3; align-self: center; }
.hero-stage .lt-flow-nav small { font-size: 14.5px; line-height: 1.45; color: var(--mu); margin-top: 3px; }
.hero-stage .lt-flow-nav .sh { display: none; }
.hero-stage .lt-flow-nav small strong { display: none; }
.hero-stage .lt-flow-nav i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0; background: transparent; }
.hero-stage .lt-flow-nav li.ora button { background: #fff; border-color: var(--line); box-shadow: 0 10px 30px -14px rgba(30,50,100,.25); }
.hero-stage .lt-flow-nav li.ora em { background: var(--blue); border-color: var(--blue); color: #fff; }
.hero-stage .lt-flow-nav li.ora b { color: var(--ink); }
.hero-stage .lt-flow-nav li.fatto em { background: rgba(47,165,150,.14); border-color: transparent; color: var(--teal); }
.hero-stage .lt-flow-nav li.fatto i::after { transform: scaleX(0); }
.hero-stage .lt-phone { grid-area: phone; }
.hero-stage .lt-tag { grid-area: tag; justify-self: start; margin: 14px 0 0 4px; }
@media (max-width: 900px) {
  .hero-stage { padding: 30px 16px 24px; margin-top: 44px; }
  .hero-stage .lt-flow { grid-template-columns: 1fr; grid-template-areas: "head" "nav" "phone" "tag"; max-width: 440px; margin: 0 auto; }
  .hs-head { text-align: center; }
  .hs-head h2 { font-size: 25px; }
  .hs-head p { font-size: 15.5px; margin: 0 auto 18px; }
  /* sul telefono: 4 pulsanti numerati in fila, sotto la spiegazione del passaggio attivo */
  .hero-stage .lt-flow-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; padding-bottom: 76px; margin-bottom: 4px; }
  .hero-stage .lt-flow-nav li { position: static; }
  .hero-stage .lt-flow-nav button { position: static; grid-template-columns: 1fr; justify-items: center; row-gap: 5px; padding: 10px 4px 12px; text-align: center; border-radius: 12px; }
  .hero-stage .lt-flow-nav em { grid-row: auto; width: 30px; height: 30px; font-size: 13px; }
  .hero-stage .lt-flow-nav b { display: none; }
  .hero-stage .lt-flow-nav i { position: relative; left: auto; right: auto; bottom: auto; width: 100%; height: 3px; border-radius: 3px; margin-top: 2px; background: transparent; }
  .hero-stage .lt-flow-nav li.ora i { background: var(--line); }
  .hero-stage .lt-flow-nav .sh { display: block; text-transform: none; letter-spacing: 0; margin: 0; font-size: 12px; font-weight: 600; color: var(--mu); line-height: 1.2; }
  .hero-stage .lt-flow-nav li.ora .sh { color: var(--ink); }
  .hero-stage .lt-flow-nav small { display: none; }
  .hero-stage .lt-flow-nav li.ora small { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 68px; margin: 0; text-align: center; font-size: 14.5px; color: var(--ink2); }
  .hero-stage .lt-flow-nav li.ora small strong { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 2px; }
  .hero-stage .lt-tag { justify-self: center; margin: 10px auto 0; }
  .hero-stage .lt-phone { text-align: left; }
}
