/* Nuova home: le 40 aziende ascoltate e le tre situazioni di partenza (scelte il 26/10/2026,
   prototipo in docs/concepts/home-design/home-sezione-osservazioni.html con ?v=p&k=2).
   Caricato solo da index.php via $extraCss; lo scorrimento lo guida js/pages/home-situations.js. */

/* Il palco è sticky: con overflow hidden su main (public-site-shell.css) non resterebbe fermo.
   clip taglia lo stesso in orizzontale senza creare un contenitore di scorrimento. */
body.public-site.homepage main {
    overflow: clip visible;
}

/* Quando un'animazione tiene ferma la pagina (js/pages/home-situations.js e home-percorso.js) la radice va in overflow
   hidden: si fermano anche l'inerzia del tocco e la barra. Lo spazio della barra resta, così la pagina non si sposta. */
html:has(body.public-site.homepage) {
    scrollbar-gutter: stable;
}

html.is-holding-scenes,
html.is-holding-light {
    overflow: hidden;
}

.home-situations {
    --sit-font-ui: var(--public-font-body);
    --sit-red: 242, 82, 74;
    --b: var(--public-blue-rgb);

    position: relative;
    height: 260vh;
    background: #000;
}

.home-situations--scenes {
    height: 920vh;
}

/* Le situazioni partono mentre le 40 aziende salgono via: niente vuoto nero in mezzo. */
.home-situations--tiles + .home-situations--scenes {
    margin-top: -60vh;
}

.home-situations .bridge__stage {
    position: sticky;
    top: 0;
    display: grid;
    place-items: center;
    height: 100svh;
    padding: 0 var(--home-gutter);
}

.home-situations .stack {
    display: grid;
    width: 100%;
    max-width: 1180px;
}

.home-situations .stack > * {
    grid-area: 1 / 1;
    align-self: center;
    opacity: 0;
    will-change: opacity, transform, filter;
}

/* ---------- Parole che si accendono scorrendo (--t da 0 a 1) ---------- */

.home-situations .w {
    --t: 0;
    color: rgba(255, 255, 255, calc(.14 + .86 * var(--t)));
}

/* La premessa della frase finale resta più spenta, la risposta piena. */
.home-situations .bridge__seq .w {
    color: rgba(255, 255, 255, calc(.14 + .48 * var(--t)));
}

.home-situations .bridge__seq .is-full .w,
.home-situations .bridge__seq strong .w {
    color: rgba(255, 255, 255, calc(.14 + .86 * var(--t)));
}

/* ---------- 40 aziende: il numero e quaranta tessere, una per azienda ---------- */

.home-situations--tiles .stack {
    max-width: none;
}

.home-situations--tiles .stack > * {
    justify-self: center;
    min-width: 0;
}

.home-situations .tiles40 {
    display: grid;
    grid-template-columns: auto minmax(0, 520px);
    align-items: center;
    justify-content: center;
    gap: clamp(48px, 8vw, 140px);
}

.home-situations .big-num {
    margin: 0;
    color: #fff;
    font-family: var(--public-font-heading);
    font-size: min(13vw, 28vh, 11.5rem);
    font-weight: 500;
    line-height: .9;
    letter-spacing: -.055em;
    font-variant-numeric: tabular-nums;
}

/* Il «+» è disegnato con due tratti sottili; il carattere resta per chi legge con lo screen reader. */
.home-situations .big-num .plus {
    position: relative;
    display: inline-block;
    width: .44em;
    height: .9em;
    margin-left: .04em;
    color: transparent;
    vertical-align: top;
}

.home-situations .big-num .plus::before,
.home-situations .big-num .plus::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 40%;
    border-radius: 99px;
    background: rgba(255, 255, 255, .62);
    transform: translate(-50%, -50%);
}

.home-situations .big-num .plus::before {
    width: .4em;
    height: .035em;
}

.home-situations .big-num .plus::after {
    width: .035em;
    height: .4em;
}

.home-situations .noun {
    margin: .12em 0 0;
    color: #fff;
    font-family: var(--public-font-heading);
    font-size: min(5.2vw, 11vh, 4.6rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.045em;
}

.home-situations .noun__soft {
    color: rgba(255, 255, 255, .42);
}

.home-situations .numcap {
    max-width: 22em;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .5);
    font-family: var(--public-font-heading);
    font-size: clamp(1rem, .8rem + .5vw, 1.3rem);
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: -.01em;
}

.home-situations .tiles40__field {
    position: relative;
    isolation: isolate;
    padding: 28px;
}

/* La luce dietro: compare con il conteggio e si muove piano, così il vetro ha qualcosa da piegare. */
.home-situations .tiles40__light {
    position: absolute;
    inset: -10%;
    z-index: -1;
    /* Niente filter: blur(30px) (21/11/2026): una sfocatura larga su un livello che si muove si ricalcola a ogni
       fotogramma. Le stesse due luci hanno ora il profilo già morbido (le fermate seguono la curva che la sfocatura
       dava al cono lineare; differenza massima 11/255 su schermata a doppia densità). */
    background:
        radial-gradient(52% 56% at 58% 42%, rgba(var(--public-blue-rgb), .64), rgba(var(--public-blue-rgb), .5) 18%, rgba(var(--public-blue-rgb), .27) 46%, rgba(var(--public-blue-rgb), .09) 66%, transparent 84%),
        radial-gradient(40% 44% at 28% 72%, rgba(var(--public-blue-rgb), .46), rgba(var(--public-blue-rgb), .36) 18%, rgba(var(--public-blue-rgb), .19) 46%, rgba(var(--public-blue-rgb), .06) 66%, transparent 82%);
    opacity: calc(var(--k, 0) * .6);
    animation: sit-tiles-drift 14s ease-in-out infinite alternate;
}

@keyframes sit-tiles-drift {
    100% { transform: translate(4%, -3%) scale(1.06); }
}

/* Sugli schermi touch la luce resta ferma: una sfocatura larga che si muove va ridisegnata a ogni fotogramma, e sui
   telefoni economici fa scattare lo scorrimento. */
@media (pointer: coarse) {
    .home-situations .tiles40__light {
        animation: none;
    }
}

.home-situations .tiles40__grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    width: min(500px, 56vh, 100%);
}

.home-situations .tiles40__grid i {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
}

.home-situations .tiles40__grid b {
    width: calc(var(--s) * 100%);
    aspect-ratio: 1;
    border-radius: 22%;
    background: rgba(255, 255, 255, .04);
    opacity: .5;
    transform: scale(.7);
    transition: background .6s var(--home-ease), box-shadow .6s var(--home-ease), opacity .6s var(--home-ease), transform .6s var(--home-ease);
}

.home-situations .tiles40__grid i.on b {
    background: rgba(255, 255, 255, .26);
    opacity: 1;
    transform: none;
}

/* Le medie in blu, una su tre in bianco pieno, le più grandi in vetro chiaro. */
.home-situations .tiles40__grid i.on.m b {
    background: rgba(var(--public-blue-rgb), .9);
    box-shadow: 0 0 14px -6px rgba(var(--public-blue-rgb), .9);
}

.home-situations .tiles40__grid i.on.w b {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 0 14px -6px rgba(255, 255, 255, .8);
}

/* Le tessere grandi: vetro clear (guida Apple: molto trasparente, sopra un fondo ricco), qui la luce blu che si muove
   dietro; più chiare quando si accendono. */
.home-situations .tiles40__grid b.liquid {
    --g-tint: rgba(255, 255, 255, .05);
    --g-blur: 4px;
    --g-bright: 1.35;
    --g-drop: 0 0 0 transparent;
    background: var(--g-tint);
}

.home-situations .tiles40__grid i.on.l b.liquid {
    --g-tint: rgba(255, 255, 255, .16);
    --g-drop: 0 10px 24px -14px rgba(0, 0, 0, .9);
}

/* ---------- Frasi tra le scene ---------- */

.home-situations .bridge__text {
    display: grid;
    justify-self: center;
    width: 100%;
    max-width: 1180px;
    margin: 0;
    font-family: var(--public-font-heading);
    font-size: min(3.6vw, 4.2rem);
    font-weight: 500;
    line-height: 1.07;
    letter-spacing: -.045em;
    text-align: center;
    text-wrap: balance;
}

.home-situations .bridge__seq {
    grid-area: 1 / 1;
    align-self: center;
    margin: 0;
    will-change: opacity, transform, filter;
}

/* «una direzione chiara.» resta tutta su una riga: è la risposta, e come le altre parti evidenziate è più spessa. */
.home-situations .bridge__text strong {
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Le tre scene: la frase, la piccola interfaccia che si muove, il testo ---------- */

.home-situations .scene {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
}

.home-situations--scenes .stack {
    max-width: 1400px;
}

.home-situations .scene__text {
    margin: 0;
    color: #fff;
    font-family: var(--public-font-heading);
    font-size: clamp(2.2rem, 1rem + 2.6vw, 3.8rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.home-situations .scene__body {
    margin: 1.1em 0 0;
    color: rgba(255, 255, 255, .58);
    font-family: var(--sit-font-ui);
    font-size: clamp(1.1rem, .75rem + .65vw, 1.6rem);
    font-weight: 300;
    line-height: 1.55;
    opacity: 0;
}

/* Parola chiave del titolo: evidenziatore a mano in rosso, disegnato come sfondo
   così segue il testo anche quando va a capo (un tratto per riga). */
.home-situations .kw {
    font-weight: 600;
    padding: 0 .06em;
    margin: 0 -.06em;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'><path fill='%23D83B3B' fill-opacity='.9' d='M1.5 2.6 C 18 1.4, 44 2.2, 70 1.2 C 84 0.8, 94 1.6, 98.8 2.4 C 99.6 4.4, 98.6 6.6, 99.2 8.6 C 80 9.6, 54 8.4, 30 9.2 C 18 9.6, 8 9.4, 0.8 8.8 C 1.6 6.6, 0.6 4.6, 1.5 2.6 Z'/></svg>");
    background-repeat: no-repeat;
    background-position: 0 calc(100% - .06em);
    background-size: 0% .5em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-size .9s cubic-bezier(.6, 0, .2, 1) .45s;
}

.home-situations .is-on .kw {
    background-size: 100% .5em;
}

/* Interfacce: parti comuni. */
.home-situations .viz {
    position: relative;
    display: grid;
    gap: .8em;
    justify-self: end;
    width: 100%;
    max-width: 32em;
    padding: 1.1em;
    border-radius: var(--public-radius-md);
    background: rgba(10, 10, 14, .72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -40px rgba(var(--b), .55);
    color: rgba(255, 255, 255, .85);
    font-family: var(--sit-font-ui);
    font-size: clamp(13px, 1.2vw, 17px);
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
}

.home-situations .viz__head {
    display: flex;
    align-items: center;
    gap: .6em;
    color: rgba(255, 255, 255, .45);
    font-size: .8em;
}

.home-situations .viz__dots {
    display: flex;
    gap: .35em;
}

.home-situations .viz__dots i {
    width: .55em;
    height: .55em;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}

.home-situations .viz__field {
    display: flex;
    align-items: center;
    min-height: 2.9em;
    padding: 0 .9em;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    font-size: .92em;
}

.home-situations .caret {
    width: 2px;
    height: 1.15em;
    margin-left: 2px;
    background: #fff;
    animation: sit-blink 1s steps(1) infinite;
}

@keyframes sit-blink {
    50% { opacity: 0; }
}

@keyframes sit-show {
    100% { opacity: 1; transform: none; }
}

.home-situations .aico {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 1.9em;
    height: 1.9em;
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .55);
}

.home-situations .aico svg {
    width: 1.1em;
    height: 1.1em;
}

/* Scena 1: le notifiche arrivano una dopo l'altra, la domanda si scrive e si cancella. */
.home-situations .noise {
    display: grid;
    gap: .5em;
}

.home-situations .note {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75em;
    margin: 0;
    padding: .6em .8em;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    font-size: .875rem;
    opacity: 0;
    transform: translateY(-14px) scale(.97);
}

.home-situations .note b {
    overflow: hidden;
    font-size: .9em;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-situations .note small {
    color: rgba(255, 255, 255, .35);
    font-size: .72em;
}

.home-situations .note__ico {
    width: 1.9em;
    height: 1.9em;
    border-radius: 8px;
    background: rgba(var(--b), .25);
    box-shadow: inset 0 0 0 1px rgba(var(--b), .6);
}

.home-situations .note:nth-child(2n) .note__ico {
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.home-situations .is-on .note {
    animation: sit-show .28s var(--home-ease) forwards;
    animation-delay: calc(.08s + var(--i) * .19s);
}

.home-situations .typed {
    display: inline-block;
    overflow: hidden;
    width: 0;
    white-space: nowrap;
}

.home-situations .is-on .typed {
    animation: sit-type 6s steps(26) 1.16s infinite;
}

@keyframes sit-type {
    0% { width: 0; }
    40%, 78% { width: 15.5em; }
    92%, 100% { width: 0; }
}

/* La domanda nel campo resta testo normale; il rosso è solo nel cursore che lampeggia. */
.home-situations .viz--noise .caret {
    background: rgb(var(--sit-red));
}

/* Scena 2: la chat. A sinistra le conversazioni recenti, a destra la mail da riscrivere. */
.home-situations .chatwrap {
    display: grid;
    grid-template-columns: 9.8em minmax(0, 1fr);
    gap: .9em;
    min-height: 16.5em;
}

.home-situations .recents {
    display: grid;
    align-content: start;
    gap: .2em;
    padding-right: .7em;
    border-right: 1px solid rgba(255, 255, 255, .07);
    font-size: .74em;
}

.home-situations .recents small {
    margin: 0 0 .3em .65em;
    color: rgba(255, 255, 255, .32);
    font-size: .9em;
}

.home-situations .recents span {
    overflow: hidden;
    padding: .5em .65em;
    border-radius: 8px;
    color: rgba(255, 255, 255, .42);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-situations .recents .is-cur {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.home-situations .convo {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .6em;
}

.home-situations .msg {
    position: relative;
    max-width: 92%;
    padding: .65em .85em;
    border-radius: 14px;
    font-size: .84em;
    opacity: 0;
    transform: translateY(10px);
}

.home-situations .msg--me {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: rgba(255, 255, 255, .09);
}

.home-situations .mail {
    display: flex;
    align-items: center;
    gap: .5em;
    margin-bottom: .5em;
    padding: .45em .65em;
    border-radius: 8px;
    background: rgba(0, 0, 0, .35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .62);
    font-size: .9em;
}

.home-situations .mail svg {
    width: 1.2em;
    height: 1.2em;
}

.home-situations .msg--ai {
    display: grid;
    gap: .15em;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    background: rgba(var(--b), .14);
    box-shadow: inset 0 0 0 1px rgba(var(--b), .4);
}

/* Ogni riga della risposta si scopre da sinistra. */
.home-situations .ln {
    display: block;
    clip-path: inset(0 100% 0 0);
}

.home-situations .typing {
    position: absolute;
    top: .95em;
    left: .85em;
    display: flex;
    gap: .3em;
}

.home-situations .typing i {
    width: .4em;
    height: .4em;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
}

.home-situations .msg-actions {
    display: flex;
    gap: .5em;
    color: rgba(255, 255, 255, .4);
    font-size: .72em;
    opacity: 0;
}

.home-situations .msg-actions span {
    padding: .3em .7em;
    border-radius: 99px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
    white-space: nowrap;
}

/* Sul telefono la colonna della chat è stretta (circa 175 px) e i tre tasti non ci stavano: andavano a capo dentro il
   tasto. Si toglie «Copia» e restano «Rigenera» e il segnale rosso, che è quello che conta. */
.home-situations .convo {
    container-type: inline-size;
}

@container (max-width: 210px) {
    .home-situations .msg-actions span:first-child {
        display: none;
    }
}

.home-situations .msg-actions .msg-flag {
    margin-left: auto;
    background: rgba(var(--sit-red), .1);
    box-shadow: inset 0 0 0 1px rgba(var(--sit-red), .45);
    color: rgb(var(--sit-red));
}

.home-situations .field__ph {
    color: rgba(255, 255, 255, .35);
}

.home-situations .viz--chat .caret {
    order: -1;
    margin: 0 4px 0 0;
}

.home-situations .is-on .msg--me {
    animation: sit-show .28s var(--home-ease) .17s forwards;
}

.home-situations .is-on .msg--ai {
    animation: sit-show .28s var(--home-ease) .61s forwards;
}

.home-situations .is-on .typing {
    animation: sit-typing-out .11s linear 1.1s forwards;
}

.home-situations .is-on .typing i {
    animation: sit-blink .9s steps(1) infinite;
}

.home-situations .is-on .typing i:nth-child(2) {
    animation-delay: .17s;
}

.home-situations .is-on .typing i:nth-child(3) {
    animation-delay: .33s;
}

@keyframes sit-typing-out {
    100% { opacity: 0; }
}

.home-situations .is-on .ln {
    animation: sit-write .39s steps(18) forwards;
    animation-delay: calc(1.16s + var(--i) * .39s);
}

@keyframes sit-write {
    100% { clip-path: inset(0); }
}

.home-situations .is-on .msg-actions {
    animation: sit-show .22s var(--home-ease) 2.75s forwards;
}

/* Scena 3: il cursore sceglie le aree, poi il «Come ?» resta senza risposta. */
.home-situations .viz--pick {
    --x1: 26%;
    --y1: 40%;
    --x2: 74%;
    --y2: 59%;
    --x3: 89%;
    --y3: 87%;
}

.home-situations .pick__q {
    margin: .1em 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: .9em;
}

.home-situations .picks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5em;
}

.home-situations .pick {
    position: relative;
    display: flex;
    align-items: center;
    gap: .6em;
    padding: .6em .7em;
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .6);
    font-size: .86em;
}

.home-situations .pick__ok {
    display: grid;
    place-items: center;
    width: 1.3em;
    height: 1.3em;
    margin-left: auto;
    border-radius: 50%;
    background: rgb(var(--b));
    opacity: 0;
}

.home-situations .pick__ok svg {
    width: .9em;
}

.home-situations .pick:nth-child(1) {
    --d: .72s;
}

.home-situations .pick:nth-child(4) {
    --d: 1.24s;
}

.home-situations .is-on .pick.is-target {
    animation: sit-pick .22s var(--home-ease) forwards;
    animation-delay: var(--d);
}

@keyframes sit-pick {
    to {
        background: rgba(var(--b), .2);
        box-shadow: inset 0 0 0 1px rgba(var(--b), .9), 0 0 22px -8px rgba(var(--b), .95);
        color: #fff;
    }
}

.home-situations .is-on .pick.is-target .pick__ok {
    animation: sit-pop .22s var(--home-ease) forwards;
    animation-delay: var(--d);
}

@keyframes sit-pop {
    0% { opacity: 0; transform: scale(.4); }
    70% { opacity: 1; transform: scale(1.12); }
    100% { opacity: 1; transform: none; }
}

.home-situations .pick__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    margin-top: .5em;
    padding-top: .9em;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.home-situations .psteps {
    display: flex;
    gap: .5em;
    font-size: .78em;
}

.home-situations .pstep {
    padding: .35em .75em;
    border-radius: 99px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .7);
}

.home-situations .pstep--q {
    border: 1px dashed rgba(var(--sit-red), .55);
    box-shadow: none;
    color: rgb(var(--sit-red));
}

.home-situations .is-on .pstep--q {
    animation: sit-q-red 2.4s ease-in-out 1.98s infinite;
}

@keyframes sit-q-red {
    50% {
        border-color: rgba(var(--sit-red), 1);
        box-shadow: 0 0 22px -8px rgba(var(--sit-red), .8);
    }
}

.home-situations .pbtn {
    padding: .55em 1.2em;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .4);
    font-size: .82em;
}

.home-situations .is-on .pbtn {
    animation: sit-nope .28s ease-in-out 1.81s;
}

@keyframes sit-nope {
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.home-situations .cursor {
    position: absolute;
    left: 92%;
    top: 104%;
    width: 1.5em;
    height: 1.5em;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6));
    opacity: 0;
    pointer-events: none;
}

.home-situations .cursor svg {
    display: block;
    width: 100%;
    height: 100%;
}

.home-situations .is-on .cursor {
    animation: sit-cursor 1.76s cubic-bezier(.45, 0, .25, 1) .11s forwards;
}

.home-situations .is-on .cursor svg {
    animation: sit-click 1.76s linear .11s forwards;
}

@keyframes sit-cursor {
    0% { left: 92%; top: 104%; opacity: 0; }
    8% { opacity: 1; }
    30%, 36% { left: var(--x1); top: var(--y1); opacity: 1; }
    60%, 66% { left: var(--x2); top: var(--y2); opacity: 1; }
    92%, 100% { left: var(--x3); top: var(--y3); opacity: 1; }
}

@keyframes sit-click {
    0%, 32%, 38%, 62%, 68%, 94%, 100% { transform: none; }
    35%, 65%, 97% { transform: scale(.8); }
}

/* La frase finale sta su due righe, spezzata dopo il punto, a ogni larghezza da desktop. */
@media (min-width: 861px) {
    .home-situations .bridge__text:last-child {
        max-width: none;
    }

    .home-situations .bridge__text:last-child .bridge__seq {
        white-space: nowrap;
    }
}

@media (max-width: 860px) {
    .home-situations--tiles {
        overflow-x: clip;
    }

    /* Il palco si centra nello spazio sotto la barra (alta 66 px dal bordo), non in tutto lo schermo: prima titolo e
       contenuto stavano troppo in alto, vicini alla barra e lontani dal fondo (Luca, 1/11/2026). */
    .home-situations .bridge__stage {
        padding-top: 80px;
    }

    .home-situations--scenes {
        height: 780vh;
    }

    /* 40+: il numero resta il protagonista anche sul telefono. */
    .home-situations .tiles40 {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 32px;
        text-align: center;
    }

    .home-situations .big-num {
        font-size: min(34vw, 17vh);
    }

    .home-situations .noun {
        font-size: min(9vw, 4.6vh);
    }

    .home-situations .tiles40__field {
        width: 100%;
        padding: 0;
    }

    .home-situations .tiles40__grid {
        width: 100%;
    }

    .home-situations .bridge__text {
        font-size: clamp(1.7rem, 7vw, 2.3rem);
    }

    /* Situazioni: titolo, poi interfaccia, poi il testo del corpo. */
    .home-situations .scene {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 24px;
        text-align: center;
    }

    .home-situations .scene__copy {
        display: contents;
    }

    .home-situations .scene__text {
        order: 0;
        max-width: 22ch;
        margin-inline: auto;
        font-size: clamp(1.5rem, 6.4vw, 2rem);
    }

    /* La parte evidenziata resta su una riga: spezzata, il tratto rosso si divideva a metà («non è / chiaro»). */
    .home-situations .scene__text .kw {
        white-space: nowrap;
    }

    /* Con la parte evidenziata intera, su due righe la seconda era larga il doppio della prima: su tre righe si legge
       «L'AI interessa, / ma non è chiaro / cosa può fare». */
    .home-situations .scene__text--tre-righe {
        max-width: 8.8em;
    }

    .home-situations .scene .viz {
        order: 1;
        justify-self: center;
        font-size: 13px;
    }

    .home-situations .scene__body {
        order: 2;
        max-width: 34ch;
        margin: 0 auto;
        font-size: 1rem;
        text-wrap: balance;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-situations .w {
        --t: 1;
    }

    .home-situations .viz *,
    .home-situations .viz ::before {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Sugli schermi touch anche il resto si alleggerisce (Luca, 1/11/2026: sull'iPhone le 40 aziende e le scene
   scattavano). La luce dietro le tessere resta, senza sfocatura: i due gradienti sfumano già da soli. Le tessere grandi
   tengono la tinta chiara senza sfocare il fondo, che lì è solo la luce, e le scene non preparano un filtro che sul
   touch non usano. In fondo al file, così vince sulle regole di base. */
@media (pointer: coarse) {
    .home-situations .stack > *,
    .home-situations .bridge__seq {
        will-change: opacity, transform;
    }

    .home-situations .tiles40__light {
        filter: none;
    }

    .home-situations .tiles40__grid b {
        transition: background .6s var(--home-ease), opacity .6s var(--home-ease), transform .6s var(--home-ease);
    }

    .home-situations .tiles40__grid b.liquid {
        --g-tint: rgba(255, 255, 255, .08);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .home-situations .tiles40__grid i.on.l b.liquid {
        --g-tint: rgba(255, 255, 255, .22);
    }
}
