/* LongME — Ideato e realizzato da Michele Pisano (creatore e ideatore). © 2026 Acaia Hub S.r.l. */
/* Percorso «Inizia»: una schermata alla volta, pensato per il telefono. */
.fx-body { background: var(--bg); min-height: 100svh; }
.fx { min-height: 100svh; display: grid; }
.fx-scr { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; max-width: 560px; width: 100%; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom)); animation: fxin .35s ease both; }
.fx-scr.warm { max-width: none; background: var(--sunset); color: #fff; }
.fx-scr.warm > * { max-width: 520px; width: 100%; margin-left: auto; margin-right: auto; }
@keyframes fxin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.fx-back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.warm .fx-back { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
.fx-logo { height: 26px; width: auto; }
.fx-prog { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; max-width: 260px; }
.fx-prog i { display: block; height: 100%; background: var(--brown); border-radius: 6px; transition: width .3s ease; }
.fx-pct { font-size: 12px; color: var(--ink3); font-weight: 700; min-width: 34px; text-align: right; }
.fx-lang { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 12px; cursor: pointer; color: inherit; }
.warm .fx-lang { border-color: rgba(255,255,255,.4); }
.fx-main { padding: 18px 0 12px; align-self: start; display: grid; gap: 14px; }
.fx-main.mid { align-self: center; }
.fx h1 { font-size: clamp(30px, 8vw, 42px); line-height: 1.08; letter-spacing: -.02em; margin: 0; font-weight: 750; }
.fx h2 { font-size: clamp(24px, 6.4vw, 30px); line-height: 1.15; letter-spacing: -.015em; margin: 0; font-weight: 720; }
.fx p.sub { margin: 0; color: var(--ink2); font-size: 16px; }
.warm p.sub { color: #fdeedd; }
.fx-foot { display: grid; gap: 10px; padding-top: 10px; }
.fx-foot .btn { width: 100%; padding: 16px 22px; font-size: 16px; }
.fx-foot .btn[disabled] { opacity: .45; transform: none; cursor: not-allowed; }
.fx-link { background: none; border: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer; padding: 6px; }
.fx-dots { display: flex; justify-content: center; gap: 6px; } .fx-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); } .fx-dots i.on { background: #fff; width: 20px; border-radius: 6px; }
.fx-opts { display: grid; gap: 10px; }
.fx-opt { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 15px 16px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.fx-opt:hover { border-color: #cdb79c; }
.fx-opt[aria-pressed="true"] { border-color: var(--brown); background: #f6e8d6; }
.fx-opt .em { font-size: 20px; width: 26px; text-align: center; flex: none; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chips .fx-opt { width: auto; padding: 10px 14px; font-size: 15px; border-radius: 999px; }
.fx-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.fx-scale button { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.fx-scale button[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: #fff; }
.fx-scale-lab { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink3); }
.fx-fields { display: grid; gap: 12px; }
.fx-fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.fx-fields input, .fx-fields select { font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.fx-fields input:focus, .fx-fields select:focus { outline: none; border-color: var(--brown); }
.fx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fx-check { display: grid !important; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400 !important; font-size: 14px !important; }
.fx-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brown); }
.fx-note { font-size: 13px; color: var(--ink3); margin: 0; }
.warm .fx-note { color: #fbe3c6; }
.fx-err { color: #9b1c1c; font-size: 14px; min-height: 1em; }
.fx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fx-hero-ill { display: grid; place-items: center; padding: 8px 0; }
.fx-orbit { position: relative; width: min(300px, 78vw); aspect-ratio: 1; }
.fx-orbit .tube { position: absolute; left: 50%; top: 50%; width: 46px; height: 150px; margin: -75px 0 0 -23px; border-radius: 14px 14px 23px 23px; background: linear-gradient(#fff 0 22%, #f3dcc0 22% 100%); box-shadow: 0 20px 40px -14px rgba(0,0,0,.45); }
.fx-orbit .tube::before { content: ""; position: absolute; left: -4px; right: -4px; top: -10px; height: 30px; border-radius: 8px; background: var(--dusk); }
.fx-orbit span { position: absolute; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); white-space: nowrap; transform: translate(-50%, -50%); }
.fx-orbit span.hl { background: #fff; color: var(--dusk); }
.fx-plan { display: grid; gap: 10px; }
.fx-plan div { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 16px; padding: 14px 16px; }
.fx-plan b { font-size: 15px; } .fx-plan small { display: block; color: #fbe3c6; font-size: 13px; }
.fx-plan .em { font-size: 22px; }
.fx .doc-card { background: rgba(255,250,242,.96); color: var(--ink); }
.fx-insight { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 12px; }
.fx-insight .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.fx-insight p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink2); }
.fx-insight small { color: var(--ink3); }
.fx-radar { width: min(320px, 82vw); margin: 4px auto 0; display: block; }
.fx-radar text { font: 600 12px var(--f); fill: #fff; }
.fx-cards { display: grid; gap: 10px; }
.fx-cards div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 16px; padding: 14px 16px; }
.fx-cards b { display: block; margin-bottom: 2px; } .fx-cards p { margin: 0; font-size: 14px; color: #fdeedd; }
.fx-curve { width: 100%; height: auto; display: block; }
.fx-curve text { font: 700 12px var(--f); fill: var(--dusk); }
.fx-steps { display: grid; gap: 10px; }
.fx-steps div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.fx-steps em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--amber); letter-spacing: .08em; text-transform: uppercase; }
.fx-steps b { display: block; margin: 2px 0; } .fx-steps p { margin: 0; color: var(--ink2); font-size: 14px; }
.fx-sum { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: 14px; color: var(--ink2); }
.fx-sum dt { font-weight: 700; color: var(--ink); margin-top: 8px; } .fx-sum dd { margin: 0; }
@media print {
  .fx-top, .fx-foot, .fx-noprint { display: none !important; }
  .fx-scr, .fx-scr.warm { background: #fff !important; color: #000; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .fx-scr { animation: none; } }
.fx-hero-ill { gap: 10px; }
.fx-plus { font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--dusk); }
.fx-scale { grid-template-columns: repeat(5, 1fr); }
.fx-scale button { aspect-ratio: auto; height: 52px; font-size: 17px; }
.fx-foot { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 22%); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
.warm .fx-foot { background: none; }
.fx-radar { width: min(380px, 94vw); }
.fx-radar text { font-size: 15px; font-weight: 700; }
.fx-scale.s11 { grid-template-columns: repeat(6, 1fr); }
.fx-stepper { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 24px 0 4px; }
.fx-stepper button { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 30px; cursor: pointer; color: var(--brown); }
.fx-stepper output { font-size: 56px; font-weight: 750; min-width: 110px; text-align: center; letter-spacing: -.02em; }
.fx-opt small { font-size: 13px; }
.muted { color: var(--ink3); }
.warm .fx-foot { background: linear-gradient(rgba(43,26,16,0), #3a2214 30%); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
