/*
 * L'esperienza della Vedetta (docs/esperienza.md): la luce come linguaggio, fare invece di leggere,
 * tre scroll (Accendi, Guarda, Diventa), un ingresso solo. Prefisso lx- («luce»).
 * Il fascio, le scintille e le parole che si accendono si fermano con «riduci movimento».
 */

/* ---------- 1. Accendi: la notte, il fascio, l'ingresso unico ---------- */
.lx-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: calc(100svh - 104px);
    display: flex;
    align-items: center;
    padding: 40px 0 88px;
    color: #fff;
    background:
        radial-gradient(ellipse 70% 55% at 85% 8%, rgba(242, 169, 0, .16), transparent 62%),
        radial-gradient(ellipse 90% 70% at 15% 110%, rgba(27, 79, 140, .45), transparent 70%),
        linear-gradient(180deg, #060e1c 0%, #0b1a30 55%, #10264a 100%);
}
.lx-hero .wrap { position: relative; z-index: 2; width: 100%; }
.lx-hero__in { max-width: 44rem; }

/* Il cielo: pochi punti fermi, qualcuno che brilla. */
.lx-sky {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .7;
    background-image:
        radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 28% 42%, rgba(255, 255, 255, .7) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 63% 33%, rgba(255, 255, 255, .6) 50%, transparent 51%),
        radial-gradient(1px 1px at 72% 62%, rgba(255, 255, 255, .5) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 88% 46%, rgba(255, 255, 255, .8) 50%, transparent 51%),
        radial-gradient(1px 1px at 8% 70%, rgba(255, 255, 255, .5) 50%, transparent 51%),
        radial-gradient(1px 1px at 52% 78%, rgba(255, 255, 255, .4) 50%, transparent 51%),
        radial-gradient(1px 1px at 93% 14%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 36% 64%, rgba(255, 255, 255, .5) 50%, transparent 51%);
}

/* Il faro: la lanterna in alto a destra e il fascio che spazza la notte. */
.lx-lamp {
    position: absolute;
    z-index: 1;
    top: 9%;
    right: 9%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff6d8;
    box-shadow: 0 0 0 6px rgba(255, 214, 102, .25), 0 0 40px 14px rgba(255, 194, 51, .55), 0 0 120px 40px rgba(242, 169, 0, .3);
}
/* Il respiro della lanterna: un secondo alone che si accende e si spegne (opacità: animazione composta, niente ridisegno). */
.lx-lamp::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 9px rgba(255, 214, 102, .1), 0 0 54px 20px rgba(255, 194, 51, .22), 0 0 150px 50px rgba(242, 169, 0, .14);
    opacity: 0;
    animation: lx-lamp 4s ease-in-out infinite;
}
.lx-beam {
    position: absolute;
    z-index: 1;
    top: calc(9% + 7px);
    right: calc(9% + 7px);
    width: 170vmax;
    height: 170vmax;
    margin: -85vmax -85vmax 0 0;
    pointer-events: none;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 221, 140, .0) 196deg, rgba(255, 221, 140, .22) 214deg, rgba(255, 238, 190, .34) 220deg, rgba(255, 221, 140, .18) 228deg, transparent 246deg, transparent 360deg);
    mix-blend-mode: screen;
    filter: blur(6px);
    transform-origin: 50% 50%;
    animation: lx-sweep 9s ease-in-out infinite alternate;
}
@keyframes lx-sweep { from { transform: rotate(-26deg); } to { transform: rotate(34deg); } }
@keyframes lx-lamp { 50% { opacity: 1; } }

/* Il mare: due onde lente in fondo. */
.lx-hero .sea { z-index: 1; }

.lx-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 7px 14px 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    color: #fff;
    font: 600 .82rem/1.2 var(--mono);
    letter-spacing: .02em;
    text-decoration: none;
}
.lx-live:hover { background: rgba(255, 255, 255, .14); color: #fff; }
/* Il punto «in corso»: l'anello si allarga e svanisce (transform e opacità, animazione composta). */
.lx-dot { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #ff5a4a; }
.lx-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 90, 74, .7); animation: lx-ping 1.8s ease-out infinite; }
.lx-dot--ok { background: #5fd38a; }
.lx-dot--ok::after { background: rgba(95, 211, 138, .6); }
@keyframes lx-ping { from { transform: scale(1); opacity: 1; } 70%, to { transform: scale(3); opacity: 0; } }

.lx-title {
    margin: 0 0 22px;
    font-size: clamp(2.3rem, 7.2vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.03em;
    color: #fff;
    text-wrap: balance;
}
.lx-title em { font-style: normal; color: var(--lantern); text-shadow: 0 0 34px rgba(242, 169, 0, .35); }

/* L'ingresso unico: incolli quello che hai, capisce da solo cos'è. */
.lx-ask {
    position: relative;
    margin: 0;
    padding: 6px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 214, 102, .9), rgba(255, 255, 255, .25) 40%, rgba(255, 255, 255, .12) 60%, rgba(242, 169, 0, .75));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
}
.lx-ask__box { border-radius: 14px; background: #fff; color: #14202e; padding: 16px 16px 12px; }
/* I riquadri di carta (la domanda, l'iscrizione) restano chiari anche di notte: i campi e le scritte dentro prendono i colori della carta. */
.lx-ask__box, .lx-join { color-scheme: light; --surface: #ffffff; --bg-soft: #f2f5f9; --text: #14202e; --muted: #4b5563; --border: #dbe2ea; --primary: #1b4f8c; --primary-strong: #0f2238; --danger: #b3261e; --lantern-soft: #fff4d6; }
.lx-ask__label { display: block; margin: 0 0 6px; font-weight: 800; font-size: 1.05rem; color: #14202e; }
.lx-ask textarea {
    display: block;
    width: 100%;
    min-height: 3.6em;
    max-height: 14em;
    resize: none;
    border: 0;
    padding: 2px 0 6px;
    background: transparent;
    color: #14202e;
    font: 500 1.18rem/1.45 var(--font);
    outline: none;
    box-shadow: none;
}
.lx-ask textarea::placeholder { color: #6b7684; }
.lx-ask__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 1.5px solid #e6ebf1; padding-top: 12px; }
.lx-ask__bar button { margin-left: auto; padding: 14px 22px; font-size: 1.05rem; border-radius: 11px; }
.lx-kind {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #eef2f7;
    color: #33415a;
    font: 600 .82rem/1.2 var(--mono);
    transition: background .2s ease, color .2s ease;
}
.lx-kind svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lx-kind[data-kind="sito"] { background: #e3ebf5; color: #1b4f8c; }
.lx-kind[data-kind="numero"] { background: #fff4d6; color: #7a4f00; }
.lx-kind[data-kind="mittente"] { background: #e3f2e7; color: #1e6b3a; }
.lx-ask__more { margin-top: 10px; font-size: .95rem; }
.lx-ask__more summary { cursor: pointer; color: #4b5563; font-weight: 600; list-style: none; }
.lx-ask__more summary::-webkit-details-marker { display: none; }
.lx-ask__more summary::before { content: "+ "; color: var(--lantern-deep); font-weight: 800; }
.lx-ask__more[open] summary::before { content: "– "; }
.lx-ask__more .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.lx-ask__more input, .lx-ask__more select { flex: 1 1 200px; min-width: 0; margin: 0; }
.lx-ask .error { margin: 8px 0 0; color: var(--danger); font-weight: 700; }
.lx-ask.is-sending { animation: lx-send .5s ease-out; }
@keyframes lx-send { 40% { box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 6px rgba(255, 214, 102, .55), 0 0 90px 30px rgba(255, 194, 51, .45); } }

.lx-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.lx-try > span { color: #b9c6d6; font: 600 .8rem/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.lx-try button {
    padding: 8px 13px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.lx-try button:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.lx-trust { margin: 14px 0 0; color: #b9c6d6; font: 500 .85rem/1.4 var(--mono); }
.lx-trust b { color: #fff; font-weight: 600; }

/* L'app nella hero (partials/store-badges, variant hero): lo store dove c'è già è il pulsante di lanterna,
   l'altro aspetta «da un momento all'altro» (o con il conto alla rovescia). */
.lx-app { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 0; }
.lx-app__label { color: #b9c6d6; font: 600 .8rem/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.lx-app .store { min-width: 0; padding: 10px 18px 11px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
.lx-app .store strong { font-size: 1.12rem; }
.lx-app .store--live { background: var(--lantern); color: #0f2238; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22), 0 12px 32px rgba(242, 169, 0, .3); }
.lx-app .store--live:hover, .lx-app .store--live:focus-visible { background: #ffc233; color: #0f2238; }
.lx-app .store--live small { opacity: .8; }
.lx-app .store--soon { padding-left: 18px; }

/* ---------- Sezioni ---------- */
.lx-section { padding: 72px 0; }
.lx-section--night { background: linear-gradient(180deg, #0b1a30, #0f2238); color: #fff; }
.lx-section--soft { background: var(--bg-soft); }
.lx-h2 { margin: 0 0 8px; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.lx-h2 em { font-style: normal; color: var(--lantern-deep); }
.lx-section--night .lx-h2 em { color: var(--lantern); }
.lx-section--night .lx-h2 { color: #fff; }
.lx-sub { margin: 0 0 28px; color: var(--muted); font-size: 1.1rem; }
.lx-section--night .lx-sub { color: #b9c6d6; }
.lx-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 800; text-decoration: none; }
.lx-more::after { content: "→"; transition: transform .15s ease; }
.lx-more:hover::after { transform: translateX(4px); }

/* ---------- 2. Guarda: il radar ---------- */
.lx-stats { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 0 0 28px; }
.lx-stats div { display: flex; flex-direction: column-reverse; }
.lx-stats dt { color: var(--muted); font-size: .92rem; }
.lx-stats dd { margin: 0; font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.lx-stats dd small { font-size: 1rem; color: var(--muted); }
.lx-radar .scam-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lx-radar .scam-card { grid-template-columns: minmax(0, 1fr); align-content: start; }
.lx-radar .scam-card__thumb, .lx-radar .scam-card__bubble { width: 100%; height: 150px; }
.lx-radar .scam-card__bubble { font-size: .86rem; }
.lx-radar .scam-card--image { grid-template-columns: minmax(0, 1fr); }
.lx-empty { margin: 0; padding: 22px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); }

/* ---------- 3. Diventa: i poteri da provare, poi un campo solo ---------- */
.lx-powers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 30px; }
.lx-power {
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    color: #fff;
    transition: background .2s ease, box-shadow .2s ease;
}
.lx-power[open], .lx-power:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 214, 102, .45); }
.lx-power > summary, a.lx-power {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 20px;
    gap: 14px;
    align-items: center;
    padding: 18px;
    cursor: pointer;
    list-style: none;
    color: #fff;
    text-decoration: none;
}
.lx-power > summary::-webkit-details-marker { display: none; }
.lx-power__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(242, 169, 0, .16); color: var(--lantern); }
.lx-power__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lx-power b { display: block; font-size: 1.12rem; line-height: 1.25; }
.lx-power small { display: block; color: #b9c6d6; font-size: .92rem; line-height: 1.35; margin-top: 2px; }
.lx-power__chev { width: 20px; height: 20px; color: #b9c6d6; transition: transform .2s ease; }
.lx-power[open] .lx-power__chev { transform: rotate(90deg); }
.lx-power__body { padding: 0 18px 18px; }
.lx-power__body .pw-form { margin: 0; }
.lx-power__body label { color: #fff; }
.lx-power__body .hint, .lx-power__body .muted { color: #b9c6d6; }
.lx-power__body a:not(.button) { color: #ffd780; }

/* Truffa o vero? Una domanda, la risposta subito. */
.lx-quiz__msg { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: #fff; color: #14202e; font-size: 1rem; }
.lx-quiz__msg small { display: block; color: #6b7684; font: 600 .75rem/1.2 var(--mono); margin-bottom: 4px; }
.lx-quiz__answers { display: flex; flex-wrap: wrap; gap: 10px; }
.lx-quiz__answers button { flex: 1 1 120px; }
.lx-quiz__answers .is-right { background: #1e6b3a; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); color: #fff; }
.lx-quiz__answers .is-wrong { background: #b3261e; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); color: #fff; }
.lx-quiz__why { margin: 12px 0 0; color: #e8edf3; }
.lx-quiz__why b { color: var(--lantern); }

.lx-join { max-width: 40rem; padding: 22px; border-radius: 18px; background: #fff; color: #14202e; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.lx-join h3 { margin: 0 0 4px; font-size: 1.4rem; }
.lx-join p { margin: 0 0 12px; color: #4b5563; }
.lx-join .signup { display: flex; flex-wrap: wrap; gap: 10px; }
.lx-join .signup input { flex: 1 1 220px; min-width: 0; margin: 0; }
.lx-join .check { margin-top: 10px; font-size: .9rem; }

/* ---------- Sotto: la promessa, in quattro righe ---------- */
.lx-promise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 0 34px; padding: 0; list-style: none; }
.lx-promise li { display: flex; flex-direction: column; gap: 4px; }
.lx-promise b { font-size: 1.05rem; }
.lx-promise span { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.lx-promise svg { width: 26px; height: 26px; margin-bottom: 4px; fill: none; stroke: var(--lantern-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lx-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lx-foot h3 { margin-top: 0; }

/* ---------- La scansione: il fascio passa sul messaggio, le parti sospette si accendono ---------- */
.lx-scan { position: relative; margin: 0 0 22px; }
.lx-scan__msg {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 18px 20px;
    border-radius: 18px 18px 18px 6px;
    background: #fff;
    color: #14202e;
    box-shadow: inset 0 0 0 1.5px var(--border), 0 18px 50px rgba(15, 34, 56, .12);
    font-size: 1.12rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
/* Il messaggio è coperto dalla notte: il fascio la spazza via da sinistra a destra e dietro appare illuminato. */
.lx-scan__msg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .6) 50%, transparent 51%),
        radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, .45) 50%, transparent 51%),
        radial-gradient(1px 1px at 45% 80%, rgba(255, 255, 255, .5) 50%, transparent 51%),
        linear-gradient(180deg, #081426, #10264a);
    animation: lx-wipe 1.5s cubic-bezier(.55, .1, .45, .95) .3s both;
    pointer-events: none;
}
.lx-scan__msg::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: -30% auto -30% -17%;
    width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255, 214, 102, .45), rgba(255, 248, 228, .98) 50%, rgba(255, 214, 102, .45), transparent);
    filter: blur(3px);
    transform: skewX(-12deg);
    opacity: 0;
    animation: lx-scan 1.5s cubic-bezier(.55, .1, .45, .95) .3s 1 both;
    pointer-events: none;
}
@keyframes lx-wipe { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes lx-scan { 0% { left: -17%; opacity: 1; } 90% { opacity: 1; } 100% { left: 83%; opacity: 0; } }
.lx-scan__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; color: var(--muted); font: 600 .78rem/1.2 var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.lx-mark {
    border-radius: 5px;
    padding: 0 2px;
    background: transparent;
    color: inherit;
    box-shadow: none;
    animation: lx-light .5s ease-out both;
    animation-delay: calc(1.25s + var(--i, 0) * .14s);
}
.lx-mark--urgenza { --hl: rgba(242, 169, 0, .38); --line: #b37a00; }
.lx-mark--dati, .lx-mark--link { --hl: rgba(229, 72, 60, .28); --line: #b3261e; }
.lx-mark--pagamento { --hl: rgba(242, 169, 0, .3); --line: #8a5d00; }
.lx-mark--consegna, .lx-mark--familiare, .lx-mark--numero, .lx-mark--email { --hl: rgba(27, 79, 140, .18); --line: #1b4f8c; }
@keyframes lx-light {
    from { background: transparent; box-shadow: none; }
    to { background: var(--hl); box-shadow: inset 0 -2px 0 var(--line); }
}
.lx-mark[data-tip] { position: relative; cursor: help; }
.lx-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.lx-legend li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--bg-soft); font-size: .88rem; font-weight: 600; animation: lx-pop .4s ease-out both; animation-delay: calc(1.4s + var(--i, 0) * .14s); }
.lx-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--hl); box-shadow: inset 0 -2px 0 var(--line); }
.lx-legend a { text-decoration: none; }

/* Il timbro del verdetto. */
.lx-stamp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 8px 16px 8px 12px;
    border-radius: 10px;
    border: 3px solid currentColor;
    font: 800 1.5rem/1 var(--font);
    letter-spacing: .06em;
    text-transform: uppercase;
    transform: rotate(-2.5deg);
    animation: lx-stamp .42s cubic-bezier(.2, 1.4, .4, 1) 2s both;
}
.lx-stamp svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lx-stamp--danger { color: #b3261e; background: #fbe7e4; }
.lx-stamp--warning { color: #8a5d00; background: #fff4d6; }
.lx-stamp--unknown { color: #1b4f8c; background: #e3ebf5; }
@keyframes lx-stamp { from { opacity: 0; transform: rotate(-12deg) scale(2.2); } to { opacity: 1; transform: rotate(-2.5deg) scale(1); } }
@keyframes lx-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lx-after { animation: lx-pop .5s ease-out 2.2s both; }
.lx-why { margin: 0 0 18px; }
.lx-why summary { cursor: pointer; font-weight: 800; }

/* ---------- Telefono ---------- */
@media (max-width: 760px) {
    .lx-hero { min-height: calc(100svh - 120px); align-items: flex-start; padding: 26px 0 84px; }
    .lx-lamp { top: 4%; right: 6%; }
    .lx-beam { top: calc(4% + 7px); right: calc(6% + 7px); }
    .lx-ask textarea { font-size: 1.08rem; }
    .lx-ask__bar button { width: 100%; margin-left: 0; }
    .lx-section { padding: 52px 0; }
    .lx-radar .scam-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
    .lx-radar .scam-cards::-webkit-scrollbar { display: none; }
    .lx-radar .scam-card { flex: 0 0 82%; scroll-snap-align: start; }
    .lx-powers { grid-template-columns: minmax(0, 1fr); }
    .lx-promise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lx-foot { grid-template-columns: minmax(0, 1fr); }
    .lx-stats dd { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .lx-beam, .lx-lamp, .lx-lamp::after, .lx-dot, .lx-dot::after { animation: none; }
    .lx-beam { transform: rotate(4deg); }
    .lx-scan__msg::after, .lx-scan__msg::before { display: none; }
    .lx-mark { animation: none; background: var(--hl); box-shadow: inset 0 -2px 0 var(--line); }
    .lx-stamp, .lx-after, .lx-legend li { animation: none; }
}

@media (prefers-color-scheme: dark) {
    .lx-scan__msg { background: #142338; color: #eef1f5; box-shadow: inset 0 0 0 1.5px #2a3b52; }
    .lx-stamp--danger { background: rgba(179, 38, 30, .18); color: #ff8a80; }
    .lx-stamp--warning { background: rgba(242, 169, 0, .14); color: #ffc233; }
    .lx-stamp--unknown { background: rgba(156, 192, 255, .14); color: #9cc0ff; }
}

/* Sullo schermo largo il faro vero, fatto di granelli (lighthouse.js), prende il posto della lanterna disegnata. */
.lx-anchor { position: absolute; right: 4%; bottom: 0; width: 30%; height: 82%; pointer-events: none; }
.lx-canvas { z-index: 1; }
@media (min-width: 960px) {
    .lx-hero .lx-lamp, .lx-hero .lx-beam { display: none; }
    .lx-hero__in { max-width: 58rem; }
    .lx-hero .lx-ask, .lx-hero .lx-try, .lx-hero .lx-trust { max-width: 44rem; }
}
.lx-power small { font-weight: 500; }

/* Il risultato: prima il messaggio illuminato con il timbro sopra, poi le parole e i gesti. */
.lx-result { max-width: 46rem; margin: 0 auto; padding: 34px 0 10px; }
.lx-scan__paper { position: relative; }
.lx-scan__paper .lx-stamp { position: absolute; z-index: 2; top: -34px; right: 6px; margin: 0; box-shadow: 0 10px 30px rgba(15, 34, 56, .18); }
.lx-result__title { margin: 6px 0 6px; font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.08; letter-spacing: -.02em; }
.lx-result__line { margin: 0 0 18px; font-size: 1.12rem; }
.lx-result__line strong { font-weight: 800; }
.lx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.lx-actions form { display: contents; }
.lx-actions .button, .lx-actions button { flex: 1 1 220px; }
.lx-why { border-top: 1.5px solid var(--border); padding-top: 14px; }
.lx-why > summary { font-size: 1.1rem; list-style: none; }
.lx-why > summary::-webkit-details-marker { display: none; }
.lx-why > summary::after { content: " ↓"; color: var(--lantern-deep); }
.lx-why[open] > summary::after { content: " ↑"; }
.lx-why > *:not(summary) { margin-top: 14px; }
.lx-place { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.lx-place input { flex: 1 1 200px; min-width: 0; margin: 0; }

/* Un tocco salta l'animazione: chi controlla spesso non aspetta (scan.js aggiunge .lx-skip). */
.lx-skip .lx-scan__msg::before, .lx-skip .lx-scan__msg::after { display: none; }
.lx-skip .lx-mark { animation: none; background: var(--hl); box-shadow: inset 0 -2px 0 var(--line); }
.lx-skip .lx-stamp, .lx-skip .lx-after, .lx-skip .lx-legend li { animation: none; }

/* La porta in cui sei resta accesa, come nella barra in basso. */
.site-nav a[aria-current="page"] { border-bottom-color: var(--lantern); }

/* La CSP non accetta stili scritti nelle pagine: l'ordine in cui le parti si accendono lo dà la loro posizione. */
.lx-scan__msg mark:nth-of-type(2), .lx-legend li:nth-child(2) { --i: 1; }
.lx-scan__msg mark:nth-of-type(3), .lx-legend li:nth-child(3) { --i: 2; }
.lx-scan__msg mark:nth-of-type(4), .lx-legend li:nth-child(4) { --i: 3; }
.lx-scan__msg mark:nth-of-type(5), .lx-legend li:nth-child(5) { --i: 4; }
.lx-scan__msg mark:nth-of-type(6), .lx-legend li:nth-child(6) { --i: 5; }
.lx-scan__msg mark:nth-of-type(7), .lx-legend li:nth-child(7) { --i: 6; }
.lx-scan__msg mark:nth-of-type(8), .lx-legend li:nth-child(8) { --i: 7; }
.lx-scan__msg mark:nth-of-type(9), .lx-legend li:nth-child(9) { --i: 8; }
.lx-scan__msg mark:nth-of-type(10), .lx-legend li:nth-child(10) { --i: 9; }
.lx-scan__msg mark:nth-of-type(11), .lx-legend li:nth-child(11) { --i: 10; }
.lx-scan__msg mark:nth-of-type(12), .lx-legend li:nth-child(12) { --i: 11; }
.lx-scan__msg mark:nth-of-type(n+13), .lx-legend li:nth-child(n+13) { --i: 12; }

/* L'onda davanti ha il colore della sezione che segue. */
.lx-hero .sea__wave--front { fill: var(--bg-soft); }
.lx-trust a { color: inherit; }
.lx-squad { margin: 22px 0 0; text-align: center; color: var(--on-night-muted); font-weight: 600; }
.lx-squad a { color: var(--lantern); font-weight: 800; }

/* ---------- I miei dati: lo strumento in alto, le spiegazioni chiuse sotto ---------- */
.lx-tool { margin-top: 22px; max-width: 40rem; }
.lx-tool .lx-ask__label { margin-bottom: 8px; }
.lx-ask__box label, .lx-ask__box .check { color: #14202e; }
.lx-ask__box .hint, .lx-ask__box .muted { color: #4b5563; }
.lx-ask__box a:not(.button) { color: #1b4f8c; }
.lx-ask__box .signup { margin: 0 0 10px; }
.lx-tool .lx-ask__more { border-top: 1.5px solid #e6ebf1; margin-top: 12px; padding-top: 10px; }
.lx-tool .pw-form { margin-top: 10px; }
.lx-steps { display: grid; gap: 8px; margin: 0 0 40px; }
.lx-steps details { border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); padding: 0 16px; }
.lx-steps details[open] { box-shadow: inset 0 0 0 1.5px var(--lantern); }
.lx-steps summary { padding: 14px 0; font-weight: 800; cursor: pointer; list-style: none; }
.lx-steps summary::-webkit-details-marker { display: none; }
.lx-steps summary::before { content: "→ "; color: var(--lantern-deep); }
.lx-steps details p { margin: 0 0 14px; }
.lx-powers--light .lx-power { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); color: var(--text); }
.lx-powers--light .lx-power[open], .lx-powers--light .lx-power:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--lantern); }
.lx-powers--light .lx-power > summary, .lx-powers--light a.lx-power { color: var(--text); }
.lx-powers--light .lx-power small, .lx-powers--light .lx-power__body .hint, .lx-powers--light .lx-power__body .muted { color: var(--muted); }
.lx-powers--light .lx-power__body label { color: var(--text); }
.lx-powers--light .lx-power__body a:not(.button) { color: var(--primary); }
.lx-powers--light .lx-power__icon { color: var(--lantern-deep); }
.lx-ask__box .signup input { flex: 1 1 200px; width: auto; min-width: 0; }
.lx-ask__box .check { font-size: .95rem; line-height: 1.45; }

/* ---------- Radiografia di un sito: durante la scansione la pagina è sua ---------- */
body:has(.scan--full) { overflow-x: clip; }
main:has(> .scan--full) { padding-top: 0; }
.scan--full {
    margin: 0 calc(50% - 50vw);
    padding: 26px max(16px, calc(50vw - 34rem)) 30px;
    border: 0;
    border-radius: 0;
    min-height: calc(100svh - 110px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(ellipse 55% 45% at 18% 35%, rgba(242, 169, 0, .13), transparent 70%), linear-gradient(180deg, #071224 0%, #0d2240 100%);
}
.scan__title { margin: 0 0 18px; text-align: center; color: #fff; font-size: clamp(1.5rem, 4.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; }
.scan__title span { display: block; margin-top: 6px; color: var(--lantern); font: 600 .6em/1.2 var(--mono); letter-spacing: 0; overflow-wrap: anywhere; }
.scan--full .scan__stage { grid-template-columns: 110px minmax(0, 1fr) 220px; min-height: 340px; }
.scan--full .scan__lighthouse { width: 110px; height: 281px; }
.scan--full .scan__beam { left: 55px; top: calc(50% - 54px); width: calc(100% - 55px - 220px - 18px); height: 440px; margin-top: -220px; }
.scan--full .scan__screen { height: 330px; }
.scan--full .scan__tags li { font-size: .9rem; }
.scan__screen { position: relative; }
.scan__verdict { position: absolute; inset: 34px 0 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.scan__verdict .lx-stamp { margin: 0; animation-delay: 0s; font-size: clamp(1.3rem, 4.6vw, 1.9rem); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.lx-stamp--ok { color: #1e6b3a; background: #e3f4e8; }
.scan.is-read .scan__page { transition: filter .5s ease; filter: saturate(.55) brightness(.6); }
/* I passi: una fila di luci, si legge solo quello in corso. */
.scan--full .scan__steps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; max-width: none; }
.scan--full .scan__steps li { display: contents; }
.scan--full .scan__steps li span { display: none; }
.scan--full .scan__steps li.is-on:not(.is-done) span { display: block; order: 10; flex-basis: 100%; text-align: center; color: var(--on-night); }
.scan--full .scan__status { font-size: 1.05rem; }
/* Arrivato il risultato, la scena resta in alto con il timbro e lascia il posto alle parole. */
.scan--full.is-over { min-height: 0; padding-bottom: 18px; animation: none; }
.scan--full.is-over .scan__steps, .scan--full.is-over .scan__hint, .scan--full.is-over .scan__status { display: none; }
.scan--full.is-over .scan__beam, .scan--full.is-over .scan__band { opacity: 0; transition: opacity .6s ease; }
.scan__again { margin: 26px 0 40px; }
@media (max-width: 760px) {
    .scan--full { min-height: calc(100svh - 150px); padding-top: 20px; }
    .scan--full .scan__stage { grid-template-columns: 64px minmax(0, 1fr); }
    .scan--full .scan__lighthouse { width: 64px; height: 164px; }
    .scan--full .scan__beam { left: 32px; top: calc(50% - 31px); width: calc(100% - 32px - 10px); height: 300px; margin-top: -150px; }
    .scan--full .scan__screen { height: 290px; }
    .scan--full .scan__tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .scan__verdict .lx-stamp { animation: none; } }
.scan--full.is-done { animation: lx-scan-glow .7s ease-out; }
@keyframes lx-scan-glow { 30% { box-shadow: inset 0 0 0 4px rgba(242, 169, 0, .5), inset 0 0 120px rgba(242, 169, 0, .35); } }

/* Radar e Impara: le altre viste come tessere, sopra l'elenco. */
.lx-powers--three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 26px; }
.lx-powers--light a.lx-power { grid-template-columns: 46px minmax(0, 1fr); }
.lx-h2--small { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 30px 0 14px; }
@media (max-width: 760px) { .lx-powers--three { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* «Tu»: il campo dentro la notte, cosa ricevi sotto. */
.join-page { padding: 0; }
.lx-join-hero { padding-bottom: 46px; }
.lx-join-hero .notice { max-width: 40rem; }
.lx-join-body { padding-top: 28px; padding-bottom: 40px; }
.lx-power--static { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px; }
.lx-powers--light .lx-power--static:hover { box-shadow: inset 0 0 0 1.5px var(--border); }

/* Il bollino dei servizi (Toolbox): accanto alle truffe in corso, porta a /servizi. */
.lx-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.lx-pills .lx-live { margin: 0; }
.lx-live--tools { background: rgba(242, 169, 0, .16); box-shadow: inset 0 0 0 1px rgba(255, 214, 102, .55); color: #ffd780; }
.lx-live--tools:hover { background: rgba(242, 169, 0, .26); color: #fff; }
.lx-live--tools svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lx-doors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lx-doors a { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: #fff; font-weight: 700; text-decoration: none; }
.lx-doors a:hover { background: rgba(255, 255, 255, .14); }
.lx-doors small { margin-left: 4px; color: var(--lantern); font-family: var(--mono); }
.lx-door { scroll-margin-top: 90px; }
.lx-door .lx-sub { margin-bottom: 14px; }

/* Le feste del sito (App\Support\Seasons): la frase del giorno accanto ai bollini, e il cartellino dell'anteprima
   (solo per il team o con il link firmato), in basso, che riporta alla home di oggi. Gli effetti stanno in css/seasons/. */
.lx-live--season { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 238, 190, .34); color: #fff1c9; font: 600 .86rem/1.3 var(--font); letter-spacing: 0; }
a.lx-live--season { text-decoration: underline; text-decoration-color: rgba(255, 238, 190, .45); text-underline-offset: 3px; }
a.lx-live--season:hover { background: rgba(255, 238, 190, .12); color: #fff; text-decoration-color: currentColor; }
.sz-preview {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    width: max-content;
    max-width: calc(100% - 32px);
    margin: 0;
    padding: 10px 16px;
    border-radius: 14px;
    background: #fff4d6;
    box-shadow: 0 8px 28px rgba(6, 14, 28, .45), inset 0 0 0 1.5px #f2a900;
    color: #14202e;
    font-size: .92rem;
    transform: translateX(-50%);
}
.sz-preview a { color: #0f2238; font-weight: 700; }
