/* LIFEX Sign — brand kit v1.0: blu notte #081D36, electric #067AEB, cyan #00CFF3, ice #F2F7FC. E.R.U. solo in fondo come garante. */
body.lx {
  --lx-bg: #081D36;
  --lx-ink: #FFFFFF;
  --lx-soft: #C3D3E6;
  --lx-muted: #8EA4BF;
  --lx-line: rgba(242,247,252,.12);
  --lx-glass: rgba(242,247,252,.05);
  --lx-indigo: #067AEB;
  --lx-mint: #00CFF3;
  --lx-grad: linear-gradient(120deg, #067AEB 0%, #0A9CF0 50%, #00CFF3 100%);
  margin: 0; min-height: 100vh; background: var(--lx-bg); color: var(--lx-ink);
  font-family: "Geist", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lx .fx { display: none; }
body.lx a { color: var(--lx-mint); }

/* aurora */
.lx-aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lx-aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.lx-aurora .a1 { width: 620px; height: 620px; left: -180px; top: -220px; background: #067AEB; animation: lxDrift 18s ease-in-out infinite alternate; }
.lx-aurora .a2 { width: 520px; height: 520px; right: -200px; top: 120px; background: #00CFF3; opacity: .35; animation: lxDrift 22s ease-in-out infinite alternate-reverse; }
.lx-aurora .a3 { width: 480px; height: 480px; left: 30%; bottom: -300px; background: #0A3D87; opacity: .3; animation: lxDrift 26s ease-in-out infinite alternate; }
@keyframes lxDrift { to { transform: translate(60px, 40px) scale(1.1); } }

/* testata */
.lx-top { position: relative; z-index: 2; max-width: 1140px; margin: 0 auto; padding: 20px 20px 0; display: flex; align-items: center; justify-content: space-between; }
.lx-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--lx-ink) !important; }
.lx-logo { width: 36px; height: 36px; }
.lx-word { font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.lx-word b { font-weight: 600; background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-cta-sm { font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--lx-line); color: var(--lx-ink) !important; text-decoration: none; background: var(--lx-glass); }
.lx-cta-sm:hover { border-color: rgba(255,255,255,.25); }

.lx-main { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; padding: 24px 20px 40px; }
.lx-main.narrow { max-width: 640px; }
.lx-flash { margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: rgba(0,207,243,.12); border: 1px solid rgba(0,207,243,.35); color: #CFF6FF; }
.lx-flash.is-error { background: rgba(229,72,77,.14); border-color: rgba(229,72,77,.55); color: #FFD6D6; }
.lx-flash.is-info { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #E6EDF5; }

/* hero */
.lx-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 40px 0 30px; }
.lx-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lx-soft); padding: 6px 12px; border: 1px solid var(--lx-line); border-radius: 999px; background: var(--lx-glass); margin: 0 0 18px; }
.lx-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lx-mint); box-shadow: 0 0 12px var(--lx-mint); animation: lxBlink 2s infinite; }
@keyframes lxBlink { 50% { opacity: .35; } }
.lx-hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 0 0 18px; }
.lx-grad { background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-lead { font-size: 18px; line-height: 1.6; color: var(--lx-soft); max-width: 560px; margin: 0 0 26px; }
.lx-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lx-btn, body.lx .lx-form button[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: var(--lx-grad); color: #FFFFFF !important; border: 0; text-decoration: none; box-shadow: 0 10px 40px rgba(6,122,235,.35); transition: transform .2s, box-shadow .2s;
}
.lx-btn:hover, body.lx .lx-form button[type=submit]:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(0,207,243,.35); color: #081D36; background: var(--lx-grad); }
.lx-btn.ghost { background: var(--lx-glass); color: var(--lx-ink) !important; border: 1px solid var(--lx-line); box-shadow: none; }
.lx-btn.ghost:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.lx-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 26px 0 0; color: var(--lx-muted); font-size: 14px; }
.lx-trust li::before { content: "✓"; color: var(--lx-mint); margin-right: 6px; font-weight: 700; }

/* telefono */
.lx-phone { justify-self: center; width: 280px; height: 560px; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #12345C, #06162A); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 120px rgba(6,122,235,.4), inset 0 0 0 2px rgba(255,255,255,.04); transform: rotate(-4deg); animation: lxFloat 6s ease-in-out infinite; }
@keyframes lxFloat { 50% { transform: rotate(-4deg) translateY(-12px); } }
.lx-screen { height: 100%; border-radius: 34px; background: #F2F7FC; padding: 26px 18px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.lx-doc { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 9px; }
.lx-doc .l { height: 7px; border-radius: 4px; background: #E3E5EE; }
.lx-doc .l.w80 { width: 80%; background: #A9D4FF; height: 9px; } .lx-doc .w95 { width: 95%; } .lx-doc .w70 { width: 70%; } .lx-doc .w90 { width: 90%; } .lx-doc .w60 { width: 60%; }
.lx-pad { position: relative; background: #fff; border-radius: 14px; border: 1.5px dashed #C9CCDA; height: 110px; display: grid; place-items: center; }
.lx-pad svg { width: 92%; height: auto; }
.lx-ink { fill: none; stroke: #0A1E38; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: lxDraw 4.5s ease-in-out infinite; }
@keyframes lxDraw { 0% { stroke-dashoffset: 600; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.lx-pad-line { position: absolute; left: 10%; right: 10%; bottom: 18px; height: 1px; background: #D6D8E3; }
.lx-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.lx-otp span { background: #fff; border: 1.5px solid #DADCE8; border-radius: 10px; text-align: center; padding: 10px 0; font-family: "Geist Mono", monospace; font-weight: 600; color: #0A1E38; }
.lx-otp span:nth-child(-n+3) { border-color: #067AEB; }
.lx-signed { margin-top: auto; text-align: center; padding: 12px; border-radius: 12px; font-weight: 700; color: #FFFFFF; background: linear-gradient(120deg, #067AEB, #00CFF3); animation: lxPop 4.5s ease-in-out infinite; }
@keyframes lxPop { 0%, 50% { opacity: 0; transform: translateY(8px); } 60%, 100% { opacity: 1; transform: none; } }

/* striscia numeri */
.lx-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--lx-line); border-radius: 22px; overflow: hidden; background: var(--lx-line); margin: 30px 0 10px; }
.lx-strip div { background: rgba(8,29,54,.85); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.lx-strip b { font-size: 26px; letter-spacing: -.02em; background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-strip span { color: var(--lx-muted); font-size: 14px; }

/* sezioni */
.lx-section { padding: 70px 0 10px; }
.lx-eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--lx-mint); margin: 0 0 10px; font-weight: 600; }
.lx-section h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 28px; font-weight: 700; }
.lx-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.lx-steps li, .lx-grid article { position: relative; padding: 24px; border-radius: 22px; background: var(--lx-glass); border: 1px solid var(--lx-line); backdrop-filter: blur(8px); transition: transform .3s, border-color .3s; }
.lx-steps li:hover, .lx-grid article:hover { transform: translateY(-4px); border-color: rgba(0,207,243,.45); }
.lx-steps .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--lx-grad); color: #FFFFFF; font-weight: 700; margin-bottom: 14px; }
.lx-steps h3, .lx-grid h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.lx-steps p, .lx-grid p { margin: 0; color: var(--lx-soft); line-height: 1.55; font-size: 15px; }
.lx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lx-grid svg { width: 30px; height: 30px; fill: none; stroke: var(--lx-mint); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.lx-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lx-chips li { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--lx-line); background: var(--lx-glass); color: var(--lx-soft); }
.lx-note { color: var(--lx-muted); margin-top: 18px; }
.lx-faq details { border-bottom: 1px solid var(--lx-line); padding: 18px 0; }
.lx-faq summary { cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lx-faq summary::-webkit-details-marker { display: none; }
.lx-faq summary::after { content: "+"; color: var(--lx-mint); font-size: 22px; line-height: 1; transition: transform .2s; }
.lx-faq details[open] summary::after { transform: rotate(45deg); }
.lx-faq p { color: var(--lx-soft); line-height: 1.6; margin: 12px 0 0; max-width: 820px; }

/* modulo */
.lx-form { max-width: 760px; margin: 0 auto; }
.lx-form form { padding: 28px; border-radius: 26px; background: var(--lx-glass); border: 1px solid var(--lx-line); }
body.lx .pub-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
body.lx .pub-cols > div { display: flex; flex-direction: column; gap: 6px; }
body.lx label { color: var(--lx-soft); }
body.lx input:not([type=checkbox]):not([type=file]), body.lx select, body.lx textarea { background: rgba(3,12,26,.45); border: 1px solid rgba(255,255,255,.12); color: var(--lx-ink); border-radius: 12px; }
body.lx input:focus, body.lx select:focus, body.lx textarea:focus { border-color: var(--lx-indigo); box-shadow: 0 0 0 3px rgba(6,122,235,.3); outline: 0; }

/* piè di pagina: E.R.U. garante */
.lx-foot { position: relative; z-index: 1; max-width: 1140px; margin: 50px auto 0; padding: 28px 20px 40px; border-top: 1px solid var(--lx-line); text-align: center; color: var(--lx-muted); font-size: 14px; }
.lx-foot p { margin: 6px 0; }
.lx-foot strong { color: var(--lx-soft); font-weight: 600; }
.lx-guard { display: inline-block; opacity: .85; }
.lx-fine { font-size: 12px; opacity: .7; }

/* pagina di firma con il marchio LIFEX Sign */
body.lx .pub-card { background: rgba(255,255,255,.05); border: 1px solid var(--lx-line); color: var(--lx-ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); border-radius: 26px; backdrop-filter: blur(10px); }
body.lx .pub-card h1 { font-family: "Geist", sans-serif; text-transform: none; letter-spacing: -.02em; font-size: 28px; }
body.lx .pub-eyebrow, body.lx .pub-card .muted { color: var(--lx-muted); }
body.lx .pub-steps h2 { color: var(--lx-ink); }
body.lx .pub-steps li.on { border-color: rgba(0,207,243,.5); }
body.lx .button.press, body.lx button.press { background: var(--lx-grad); color: #FFFFFF; border: 0; border-radius: 999px; }
body.lx .button.ghost, body.lx button.ghost { border-radius: 999px; }
body.lx .selfie-box { background: rgba(6,122,235,.1); border-color: rgba(0,207,243,.5); }
body.lx .ok-line { color: var(--lx-mint); }
body.lx .done-mark { background: var(--lx-grad); color: #FFFFFF; }
body.lx .lifex-mark { display: none; }

@media (max-width: 900px) {
  .lx-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 20px; }
  .lx-phone { width: 240px; height: 470px; }
  .lx-steps { grid-template-columns: 1fr 1fr; }
  .lx-grid { grid-template-columns: 1fr 1fr; }
  .lx-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .lx-steps, .lx-grid, body.lx .pub-cols { grid-template-columns: 1fr; }
  .lx-section { padding-top: 50px; }
  .lx-lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-aurora span, .lx-phone, .lx-ink, .lx-signed, .lx-kicker .dot { animation: none; }
  .lx-ink { stroke-dashoffset: 0; } .lx-signed { opacity: 1; }
}

/* correzioni rispetto agli stili di base della centrale */
body.lx .lx-section h2 { color: var(--lx-ink); text-transform: none; letter-spacing: -.03em; font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
body.lx .check.consent { background: rgba(255,255,255,.04); border-color: var(--lx-line); color: var(--lx-ink); }
body.lx .pub-steps h2 { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--lx-ink); }

/* logo ufficiale (brand kit v1.0) */
.lx-logo-img { height: 40px; width: auto; display: block; }
.lx-foot-logo { display: block; margin: 0 auto 18px; height: 50px; width: auto; opacity: .95; }
@media (max-width: 560px) { .lx-logo-img { height: 32px; } }

/* area dell'azienda */
.lx-nav { display: flex; align-items: center; gap: 14px; }
.lx-nav a:not(.lx-cta-sm) { color: var(--lx-soft) !important; text-decoration: none; font-weight: 500; font-size: 15px; }
.lx-nav form { margin: 0; }
.lx-nav button.lx-cta-sm { cursor: pointer; font-family: inherit; }
.lx-area-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 20px 0 22px; }
.lx-area-head h1, .lx-h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; margin: 0; font-weight: 700; }
.lx-sub { color: var(--lx-soft); margin: 8px 0 20px; }
.lx-back a { color: var(--lx-muted) !important; text-decoration: none; font-size: 14px; }
.lx-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.lx-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--lx-line); color: var(--lx-soft) !important; text-decoration: none; font-size: 14px; background: var(--lx-glass); }
.lx-tabs a.on { border-color: var(--lx-mint); color: var(--lx-ink) !important; }
.lx-tabs b { margin-left: 4px; }
.lx-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--lx-line); border-radius: 20px; overflow: hidden; background: var(--lx-glass); }
.lx-list li + li { border-top: 1px solid var(--lx-line); }
.lx-list a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--lx-ink) !important; text-decoration: none; }
.lx-list a:hover { background: rgba(242,247,252,.05); }
.lx-li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lx-li-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-li-main small { color: var(--lx-muted); }
.lx-dot { width: 10px; height: 10px; border-radius: 50%; background: #F5A524; flex: none; }
.lx-dot.firmato { background: var(--lx-mint); box-shadow: 0 0 10px var(--lx-mint); } .lx-dot.annullato { background: var(--lx-muted); }
.lx-badge { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(245,165,36,.15); color: #FFC861; white-space: nowrap; margin-right: 6px; }
.lx-badge.firmato { background: rgba(0,207,243,.15); color: #7BE6FF; } .lx-badge.annullato { background: rgba(142,164,191,.15); color: var(--lx-muted); }
.lx-empty { text-align: center; padding: 50px 20px; border: 1px dashed var(--lx-line); border-radius: 22px; color: var(--lx-soft); }
.lx-card { padding: 24px; border-radius: 22px; background: var(--lx-glass); border: 1px solid var(--lx-line); margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.lx-card.lx-ok { border-color: rgba(0,207,243,.45); }
.lx-h2 { font-size: 18px; margin: 10px 0 0; color: var(--lx-ink); text-transform: none; letter-spacing: 0; }
.lx-signer { border: 1px solid var(--lx-line); border-radius: 16px; padding: 14px 16px; margin: 0; }
.lx-signer legend { padding: 0 6px; color: var(--lx-soft); font-weight: 600; }
.lx-signrow { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--lx-line); }
.lx-signrow:first-of-type { border-top: 0; }
.lx-signrow p { margin: 4px 0; color: var(--lx-soft); }
.lx-btn.sm { padding: 8px 14px; font-size: 14px; }
.lx-hash { font-family: "Geist Mono", monospace; font-size: 12px; color: var(--lx-muted); word-break: break-all; margin: 4px 0 0; }
body.lx .lx-card label { color: var(--lx-soft); }
body.lx .lx-actions form { margin: 0; }
body.lx button.lx-btn { cursor: pointer; font-family: inherit; }
body.lx .lifex-qr .qr { background: #fff; }
body.lx .card.narrow { background: var(--lx-glass); border: 1px solid var(--lx-line); border-radius: 24px; }
body.lx .card.narrow button[type=submit] { background: var(--lx-grad); color: #FFFFFF; border: 0; border-radius: 999px; font-weight: 600; }
body.lx .card.narrow button[type=submit]:hover { color: #081D36; }
body.lx .lifex-qr .qr { width: 160px; height: auto; padding: 6px; border-radius: 12px; }
.lx-fine a { color: inherit; }
