/* Home: percorsi a imbuto. Usa i mattoni di famiglie.css (schermate, strade, tessere, barra).
   Contrasti: testo normale almeno 7:1 sullo sfondo. Niente maiuscolo, niente scritte sotto 13 px. */

.home-start { display: grid; gap: 22px; }
.flow-on .home-start > .screen { min-height: 0; }
.home-flow .screen-head { margin-bottom: clamp(18px, 3vw, 28px); }

/* Apertura: la domanda e le quattro porte */
.home-hero { padding-top: clamp(30px, 6vw, 60px); padding-bottom: clamp(24px, 4vw, 44px); }
.home-hero h1 { font-size: clamp(2.7rem, 10vw, 5.2rem); line-height: 1; }
.home-hero h1 em { text-decoration: underline; text-decoration-color: rgb(201 249 129 / 45%); text-decoration-thickness: .1em; text-underline-offset: .12em; }
.home-hero .lead { max-width: 30ch; color: #fff; font-size: clamp(1.18rem, 2.8vw, 1.6rem); font-weight: 650; line-height: 1.32; }
.home-hero .doors-title { margin: clamp(22px, 4vw, 34px) 0 12px; color: #fff; font-size: 1.12rem; font-weight: 800; line-height: 1.3; letter-spacing: 0; }
.home-flow .screen h2 em { color: var(--lime-soft); font-style: normal; }
.doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doors .road-a { grid-column: 1 / -1; }
.road-d { --r: var(--navy-deep); }
.door-sm { grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; align-items: start; }
.door-sm .road-go { grid-column: 1 / -1; justify-content: center; align-self: end; }

/* Fasce chiare fra le schermate colorate */
.band { padding: clamp(6px, 2vw, 16px) clamp(4px, 1.6vw, 14px); }
.band-top { margin-bottom: clamp(16px, 3vw, 24px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(16px, 3vw, 32px); align-items: end; }
.band-head { max-width: 680px; }
.band-figure { position: relative; margin: 0; overflow: hidden; border-radius: 24px; box-shadow: 0 14px 40px rgb(11 47 71 / 18%); }
.band-figure img { display: block; width: 100%; height: clamp(170px, 21vw, 240px); object-fit: cover; object-position: 50% 62%; }
.band-figure figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 11px; border-radius: 99px; color: #fff; background: rgb(11 47 71 / 88%); font-size: .85rem; font-weight: 700; }
.band .kicker { color: #fff; background: var(--navy-deep); }
.band h2 { margin: 0; color: var(--navy-deep); font-size: clamp(1.9rem, 5.6vw, 3.2rem); font-weight: 850; line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.band .lead { margin: 12px 0 0; color: var(--ink-strong); font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.45; }
.band .tile { box-shadow: 0 8px 24px rgb(11 47 71 / 12%); }
.band .tile:nth-child(1) .tile-ic { background: var(--green-deep); }
.band .tile:nth-child(2) .tile-ic { background: var(--crimson); }
.band .tile:nth-child(3) .tile-ic { background: var(--petrol); }
.band .tile:nth-child(4) .tile-ic { background: var(--navy-deep); }
.band .tile :focus-visible { outline: 3px solid var(--navy-deep); outline-offset: 3px; }
.band .src { margin: 16px 4px 0; max-width: 82ch; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }

/* Percorso per chi è in terza media: tre passi */
.steps { margin: 0; padding: 0; display: grid; gap: 14px; list-style: none; counter-reset: passo; }
.step-card { position: relative; padding: 18px 20px 18px 88px; border-radius: 24px; color: var(--navy-deep); background: #fff; box-shadow: 0 14px 34px rgb(0 40 20 / 34%); }
.step-card::before { counter-increment: passo; content: counter(passo); position: absolute; left: 18px; top: 18px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--navy-deep); font-size: 1.6rem; font-weight: 900; }
.step-card + .step-card::after { content: ""; position: absolute; left: 43px; top: -14px; width: 4px; height: 14px; border-radius: 2px; background: rgb(255 255 255 / 70%); }
.step-card:first-child { background: var(--lime-soft); }
.step-card h3 { margin: 2px 0 4px; font-size: clamp(1.22rem, 2.6vw, 1.55rem); line-height: 1.15; letter-spacing: -.025em; }
.step-card p { margin: 0 0 14px; max-width: 58ch; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.step-card:first-child p { color: #1d3d17; }
.step-card .btn svg { width: 1.2em; height: 1.2em; transition: transform var(--motion-base) var(--ease-standard); }
.step-card .btn:hover svg { transform: translateX(4px); }
.steps + .calm { margin-top: 18px; }
.calm + .roads { margin-top: 18px; }
.s-green .calm li { border-color: rgb(255 255 255 / 60%); background: #00522a; }

@media (max-width: 900px) {
  .doors { grid-template-columns: 1fr; }
  .door-sm { grid-template-columns: auto 1fr auto; grid-template-rows: auto; align-items: center; }
  .door-sm .road-go { grid-column: auto; align-self: center; }
}
@media (max-width: 700px) {
  .home-start { gap: 18px; }
  .home-hero { padding-top: 28px; }
  .doors { gap: 10px; }
  .doors .road { padding: 14px; gap: 12px; }
  .doors .road-go { grid-column: 1 / -1; }
  .door-sm { grid-template-columns: auto 1fr auto; }
  .door-sm .road-go { grid-column: auto; padding: 0; width: 44px; height: 44px; justify-content: center; border-radius: 50%; font-size: 0; }
  .door-sm .road-go svg { width: 22px; height: 22px; }
  .door-sm .road-ic { width: 46px; height: 46px; border-radius: 14px; }
  .band { padding-inline: 6px; }
  .band-top { grid-template-columns: 1fr; }
  .band-figure img { height: 170px; }
  .step-card { padding: 16px 16px 16px 72px; }
  .step-card::before { left: 14px; top: 16px; width: 46px; height: 46px; font-size: 1.35rem; }
  .step-card + .step-card::after { left: 35px; }
  .step-card .btn { width: 100%; justify-content: center; }
}
