/* TelematicsCore — design tokens
   Contrasti verificati (WCAG AA):
   --ink #0d1b30 su --paper #f6f8f4 ≈ 16:1 · --muted #3d4a5c su --paper ≈ 8.6:1
   --on-dark #eef3fa su --night #06101d ≈ 17:1 · --on-dark-muted #b6c3d4 su --night ≈ 10:1
   --signal #a5d64c su --night ≈ 11:1 · --signal-ink #3f6312 su --paper ≈ 6.6:1
   testo --night su --signal (bottone) ≈ 11:1 */
:root {
  --night: #06101d;
  --night-2: #0b1a2e;
  --navy: #13294a;
  --paper: #f6f8f4;
  --paper-2: #eaf0e3;
  --card: #ffffff;
  --ink: #0d1b30;
  --muted: #3d4a5c;
  --line: #d6dde4;
  --line-dark: rgba(238, 243, 250, .14);
  --on-dark: #eef3fa;
  --on-dark-muted: #b6c3d4;
  --signal: #a5d64c;
  --signal-ink: #3f6312;
  --signal-soft: #e5f2cf;
  --sky: #93c5fd;
  --sky-soft: #dbeafe;
  --sky-ink: #1d4ed8;
  --radius: 14px;
  --f-display: "IBM Plex Sans", "Segoe UI", sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 1.125rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
code { font-family: var(--f-mono); font-size: .88em; background: var(--sky-soft); color: var(--sky-ink); padding: .1em .4em; border-radius: 6px; }
.mono { font-family: var(--f-mono); }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.12; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 600; margin-bottom: .5em; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .4em; }
h1 em, h2 em { font-style: normal; color: var(--signal-ink); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 40em; line-height: 1.6; }
.eyebrow { font-family: var(--f-mono); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--signal-ink); margin-bottom: 1rem; font-weight: 600; }

.skip { position: absolute; left: -999px; top: 1rem; z-index: 100; background: var(--signal); color: var(--night); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
#main:focus { outline: none; }


/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1rem; color: var(--on-dark); transition: background .3s, box-shadow .3s, color .3s; }
@media (min-width: 640px) { .nav { padding: 1rem 2rem; } }
.nav.solid { background: var(--night); box-shadow: 0 1px 0 var(--line-dark); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand b { color: var(--signal); font-weight: 700; }
.brand img { width: 34px; height: auto; filter: drop-shadow(0 0 10px rgba(165, 214, 76, .35)); }
#menu { display: none; }
#menu a { text-decoration: none; font-weight: 500; font-size: 1rem; padding: .5rem .9rem; border-radius: 999px; color: var(--on-dark-muted); transition: color .2s, background .2s; }
#menu a:hover, #menu a.active { color: var(--on-dark); background: rgba(238, 243, 250, .08); }
#menu a.nav-cta { background: var(--signal); color: var(--night); font-weight: 600; margin-left: .4rem; }
#menu a.nav-cta:hover { background: #b8e365; }
.burger { background: none; border: 0; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--on-dark); transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.nav.open #menu { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--night); padding: 1rem; gap: .3rem; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.nav.open #menu a { font-size: 1.15rem; padding: .8rem 1rem; }
@media (min-width: 900px) {
  .burger { display: none; }
  #menu { display: flex; align-items: center; gap: .2rem; }
}

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 1.05rem var(--f-body); padding: .95rem 1.5rem; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .2s; min-height: 48px; }
.btn-primary { background: var(--signal); color: var(--night); box-shadow: 0 8px 30px rgba(165, 214, 76, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(165, 214, 76, .4); background: #b8e365; }
.btn-ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(238, 243, 250, .35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-dark); transform: translateY(-2px); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: radial-gradient(1200px 700px at 75% 30%, #12305a 0%, transparent 60%), radial-gradient(800px 600px at 10% 90%, #102a1c 0%, transparent 60%), var(--night);
  color: var(--on-dark); display: flex; align-items: center; overflow: hidden; padding: 6.5rem 0 4rem; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-in { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1rem; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 640px) { .hero-in { padding: 0 2rem; } }
@media (min-width: 1000px) { .hero-in { grid-template-columns: 1.1fr .9fr; } }
.hero h1 em { color: var(--signal); }
.hero .lead { color: var(--on-dark-muted); margin: 1.5rem 0 2rem; }
.kicker { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--f-mono); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin-bottom: 1.5rem; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(165,214,76,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(165,214,76,0); } 100% { box-shadow: 0 0 0 0 rgba(165,214,76,0); } }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.chips { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-family: var(--f-mono); font-size: .82rem; color: var(--on-dark-muted); border: 1px solid var(--line-dark); padding: .35rem .8rem; border-radius: 999px; }

.decoder { background: #0b1a2e; border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05); overflow: hidden; min-width: 0; }
.dec-head { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line-dark); font-size: .8rem; color: var(--on-dark-muted); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2b3d57; }
.live { margin-left: auto; color: var(--signal); font-weight: 600; letter-spacing: .1em; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hex { padding: 1rem; font-size: .8rem; line-height: 1.7; word-break: break-all; color: #5f7290; min-height: 7.5em; border-bottom: 1px solid var(--line-dark); }
.hex span { transition: color .3s, background .3s; border-radius: 3px; }
.hex span.on { color: var(--night); background: var(--signal); }
.hex span.done { color: var(--on-dark-muted); }
.fields { list-style: none; margin: 0; padding: .6rem 1rem; font-size: .85rem; min-height: 15.5em; }
.fields li { display: flex; justify-content: space-between; gap: 1rem; padding: .28rem 0; border-bottom: 1px dashed rgba(238,243,250,.07); animation: fieldIn .35s var(--ease) both; }
.fields li span:first-child { color: var(--on-dark-muted); }
.fields li span:last-child { color: var(--on-dark); text-align: right; }
.fields li.hl span:last-child { color: var(--signal); }
@keyframes fieldIn { from { opacity: 0; transform: translateX(-8px); } }
.dec-foot { display: flex; justify-content: space-between; padding: .8rem 1rem; font-size: .8rem; color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); }
.ack { color: var(--signal); font-weight: 600; }
.scroll-hint { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(238,243,250,.35); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--signal); border-radius: 2px; animation: scrollhint 1.8s infinite; }
@keyframes scrollhint { to { transform: translateY(14px); opacity: 0; } }

/* ---------- NUMBERS ---------- */
.numbers { background: var(--night-2); color: var(--on-dark); padding: 4rem 0; border-top: 1px solid var(--line-dark); }
.grid-3 { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.num b { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; color: var(--signal); letter-spacing: -.03em; }
.num b small { font-size: .45em; margin-left: .1em; color: var(--on-dark); }
.num > span { display: block; margin-top: .8rem; color: var(--on-dark-muted); max-width: 22em; }

/* ---------- COME FUNZIONA ---------- */
.how { padding-top: 6rem; padding-bottom: 2rem; }
.how-steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 860px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }
.how-steps li { padding: 1.8rem 0 1.8rem; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .how-steps li { padding: 1.8rem 2rem 1.8rem 0; border-bottom: 0; } .how-steps li + li { padding-left: 2rem; border-left: 1px solid var(--line); } }
.how-n { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--signal-ink); margin-bottom: 1rem; }
.how-steps p { color: var(--muted); margin: 0; }
.compat { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; padding: 1.2rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.compat > span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.compat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.compat li { font-weight: 600; font-size: 1rem; padding: .3rem .9rem; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }

/* hero delle pagine interne: griglia tecnica + marchio in filigrana */
.page-hero { position: relative; }
.page-hero::after { content: ""; position: absolute; z-index: -1; top: 3rem; right: -5rem; width: min(40vw, 460px); aspect-ratio: 1; pointer-events: none;
  background: url("/assets/logo_icon.png") center / 55% no-repeat, linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 60% 45%, #000 0%, transparent 68%); mask-image: radial-gradient(circle at 60% 45%, #000 0%, transparent 68%); opacity: .2; }
@media (max-width: 859px) { .page-hero::after { display: none; } }
#main { position: relative; z-index: 0; }

/* ---------- SPLIT ---------- */
.split { display: grid; gap: 3rem; padding-top: 6rem; padding-bottom: 5rem; }
@media (min-width: 960px) { .split { grid-template-columns: .9fr 1.1fr; align-items: start; } .split-l { position: sticky; top: 7rem; } }
.split-l p { color: var(--muted); max-width: 34em; }
.versus { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .versus { grid-template-columns: 1fr 1fr; } }
.vs-card { padding: 1.8rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.vs-card ul { margin: 0; padding: 0; list-style: none; }
.vs-card li { padding: .7rem 0 .7rem 1.8rem; position: relative; border-top: 1px solid var(--line); }
.vs-card li:first-child { border-top: 0; }
.vs-card.bad li::before { content: "×"; position: absolute; left: 0; top: .6rem; font-weight: 700; color: #a3361f; }
.vs-card.good { background: var(--night); color: var(--on-dark); border-color: var(--night); transform: translateY(1.5rem); }
.vs-card.good h3 { color: var(--signal); }
.vs-card.good li { border-color: var(--line-dark); color: var(--on-dark-muted); }
.vs-card.good li b { color: var(--on-dark); }
.vs-card.good li::before { content: "✓"; position: absolute; left: 0; top: .6rem; color: var(--signal); font-weight: 700; }

/* ---------- MANIFESTO ---------- */
.manifesto { background: var(--paper-2); padding: 6rem 0; border-block: 1px solid var(--line); }
.manifesto blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; max-width: 26em; }
.manifesto blockquote span { color: var(--signal-ink); }

/* ---------- AUDIENCE ---------- */
.audience { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.aud-grid { display: grid; gap: 1.2rem; }
@media (min-width: 860px) { .aud-grid { grid-template-columns: repeat(3, 1fr); } .aud:nth-child(2) { margin-top: 2.5rem; } .aud:nth-child(3) { margin-top: 5rem; } }
.aud { position: relative; display: block; text-decoration: none; padding: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.aud:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(13, 27, 48, .12); border-color: var(--signal); }
.aud p { color: var(--muted); margin: 0; }
.aud-n { display: block; color: var(--signal-ink); font-size: .9rem; margin-bottom: 2.5rem; font-weight: 600; }
.aud .arrow { position: absolute; top: 1.6rem; right: 1.8rem; font-size: 1.5rem; transition: transform .3s var(--ease); }
.aud:hover .arrow { transform: translateX(6px); }

/* ---------- CTA BAND ---------- */
.cta-band { background: radial-gradient(700px 400px at 80% 50%, #1b3d1e 0%, transparent 70%), var(--night); color: var(--on-dark); padding: 5.5rem 0; }
.cta-in h2 { max-width: 16em; }
.cta-in p { color: var(--on-dark-muted); max-width: 34em; margin-bottom: 2rem; }

/* ---------- INNER PAGES ---------- */
.page-hero { padding-top: 9rem; padding-bottom: 4rem; }
.page-hero .lead { margin-top: 1.5rem; }
body[data-view] .nav:not(.solid) { background: var(--night); }
.page-top { background: var(--night); }

.arch { display: grid; gap: 1rem; padding-bottom: 5rem; align-items: center; }
@media (min-width: 1000px) { .arch { grid-template-columns: 1fr 90px 1.3fr 90px 1fr; } }
.arch-col { display: grid; gap: 1rem; }
.node { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; }
.node p { margin: 0; color: var(--muted); font-size: 1rem; }
.tag-s { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: var(--sky-ink); background: var(--sky-soft); padding: .15rem .55rem; border-radius: 6px; margin-bottom: .7rem; }
.arch-flow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; color: var(--muted); font-size: .8rem; }
.flow-line { position: relative; width: 4px; height: 50px; background: var(--line); border-radius: 2px; overflow: hidden; }
@media (min-width: 1000px) { .flow-line { width: 100%; height: 4px; } }
.flow-line i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); top: -3px; left: -3px; animation: flowY 1.8s linear infinite; }
.flow-line i:nth-child(2) { animation-delay: .6s; } .flow-line i:nth-child(3) { animation-delay: 1.2s; }
@keyframes flowY { from { transform: translateY(-10px); } to { transform: translateY(60px); } }
@media (min-width: 1000px) { @keyframes flowY { from { transform: translateX(-10px); } to { transform: translateX(100px); } } }
.arch-core { background: var(--night); color: var(--on-dark); border-radius: 18px; padding: 2rem; box-shadow: 0 40px 80px rgba(6, 16, 29, .3); position: relative; overflow: hidden; }
.arch-core::before { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -100px; background: radial-gradient(circle, rgba(165,214,76,.25), transparent 70%); }
.core-logo { width: 64px; margin-bottom: 1rem; position: relative; }
.arch-core h3 { font-size: 1.6rem; color: var(--on-dark); }
.core-list { list-style: none; padding: 0; margin: 1rem 0 0; position: relative; }
.core-list li { padding: .7rem 0; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: 1rem; line-height: 1.5; }
.core-list b { display: block; color: var(--signal); font-weight: 600; }

.feat-grid { display: grid; gap: 1.2rem; padding-bottom: 5rem; }
@media (min-width: 800px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.feat h2 { font-size: 1.6rem; }
.feat p { color: var(--muted); margin: 0; }
.tree { margin-top: 1.4rem; font-size: .92rem; color: var(--ink); background: var(--paper); border-radius: 12px; padding: 1rem 1.2rem; line-height: 1.8; }
.tree .t0 { color: var(--signal-ink); font-weight: 600; }

.status { padding-bottom: 6rem; }
.status-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) { .status-grid { grid-template-columns: 1fr 1fr; } }
.status-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; color: var(--muted); font-size: 1rem; }
.st { display: inline-block; font-family: var(--f-mono); font-size: .78rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; margin-bottom: .7rem; }
.st.on { background: var(--signal-soft); color: var(--signal-ink); }
.st.next { background: var(--sky-soft); color: var(--sky-ink); }
.status-grid > div > .st { display: table; }

.channels { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 6rem; }
@media (min-width: 700px) { .channels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .channels { grid-template-columns: repeat(3, 1fr); } }
.ch { background: var(--card); padding: 2rem; transition: background .3s; }
.ch:hover { background: var(--signal-soft); }
.ch > span { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--signal-ink); border: 1.5px solid currentColor; padding: .1rem .55rem; border-radius: 6px; margin-bottom: 1.2rem; }
.ch p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.code-demo { display: grid; gap: 2.5rem; align-items: center; padding-bottom: 6rem; }
@media (min-width: 960px) { .code-demo { grid-template-columns: .85fr 1.15fr; } }
.code-demo > div p { color: var(--muted); }
.code { margin: 0; background: var(--night); color: var(--on-dark); border-radius: var(--radius); padding: 1.6rem; font: .9rem/1.75 var(--f-mono); overflow-x: auto; box-shadow: 0 30px 60px rgba(6,16,29,.25); }
.code code { background: none; color: inherit; padding: 0; font-size: inherit; }
.code .c { color: #8193ab; } .code .k { color: var(--sky); } .code .s { color: var(--signal); } .code .n { color: #fcd27b; }

.story { padding-bottom: 5rem; }
.timeline { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 1.2rem; counter-reset: s; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { position: relative; padding: 1.6rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; border-top: 4px solid var(--signal); }
.timeline li > span { color: var(--signal-ink); font-weight: 600; font-size: .9rem; }
.timeline h3 { margin-top: .6rem; }
.timeline p { margin: 0; color: var(--muted); font-size: 1rem; }

.duo { display: grid; gap: 1.2rem; padding-bottom: 6rem; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.duo-card p, .duo-card li { color: var(--muted); }
.duo-card ul { margin: 0; padding-left: 1.2rem; }
.duo-card li { margin-bottom: .5rem; }
.duo-card.accent { background: var(--night); color: var(--on-dark); border-color: var(--night); }
.duo-card.accent h3 { color: var(--signal); }
.duo-card.accent li { color: var(--on-dark-muted); }
.duo-card.accent li::marker { color: var(--signal); }

.cert { display: grid; gap: 1.5rem; padding-bottom: 6rem; }
@media (min-width: 900px) { .cert { grid-template-columns: 320px 1fr; } }
.cert-steps { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (min-width: 900px) { .cert-steps { flex-direction: column; flex-wrap: nowrap; } }
.cs { font: 600 1.05rem var(--f-body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1.1rem; text-align: left; cursor: pointer; display: flex; gap: .8rem; align-items: center; transition: all .25s var(--ease); min-height: 48px; }
.cs span { color: var(--muted); font-size: .85rem; }
.cs:hover { border-color: var(--signal-ink); }
.cs.active { background: var(--night); color: var(--on-dark); border-color: var(--night); }
.cs.active span { color: var(--signal); }
@media (min-width: 900px) { .cs.active { transform: translateX(8px); } }
.cert-panel { background: var(--night); color: var(--on-dark); border-radius: 18px; padding: 2.5rem; min-height: 280px; position: relative; overflow: hidden; }
.cert-panel h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; color: var(--signal); margin: 1.5rem 0 1rem; }
.cert-panel p { color: var(--on-dark); font-size: 1.2rem; line-height: 1.7; max-width: 32em; margin: 0; }
.cert-panel.swap h3, .cert-panel.swap p { animation: fieldIn .45s var(--ease) both; }
.cert-bar { height: 4px; background: var(--line-dark); border-radius: 2px; overflow: hidden; }
.cert-bar i { display: block; height: 100%; background: var(--signal); width: 14%; transition: width .5s var(--ease); }

.triad { padding-bottom: 5rem; }
.triad-grid { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
@media (min-width: 860px) { .triad-grid { grid-template-columns: repeat(3, 1fr); } }
.tri { padding: 2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.tri b { font-family: var(--f-display); font-size: 1.5rem; display: block; margin-bottom: .6rem; }
.tri:nth-child(2) { background: var(--signal-soft); border-color: transparent; }
.tri:nth-child(3) { background: var(--sky-soft); border-color: transparent; }
.tri p { margin: 0; color: var(--muted); }

.phases { padding-bottom: 5rem; }
.ph-row { display: grid; gap: 1rem; }
@media (min-width: 700px) { .ph-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ph-row { grid-template-columns: repeat(5, 1fr); } }
.ph { padding: 1.5rem; border-left: 3px solid var(--signal); background: var(--card); border-radius: 0 14px 14px 0; }
.ph > span { font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; color: var(--signal-ink); line-height: 1; }
.ph h3 { margin-top: .6rem; }
.ph p { margin: 0; color: var(--muted); font-size: 1rem; }

.contact-hero { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-hero { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.contact-lines { margin-top: 2rem; display: grid; gap: .6rem; max-width: 28rem; }
.cline { display: flex; align-items: center; gap: 1rem; text-decoration: none; font-size: 1.15rem; font-weight: 500; padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, transform .25s var(--ease); }
.cline:hover { border-color: var(--signal-ink); transform: translateX(4px); }
.cline span { font-size: .78rem; color: var(--signal-ink); width: 2.5rem; font-weight: 600; }
.form { background: var(--night); color: var(--on-dark); border-radius: 18px; padding: 2rem; display: grid; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-weight: 500; font-size: 1rem; }
.form input, .form textarea { font: 1.05rem var(--f-body); color: var(--on-dark); background: rgba(238,243,250,.06); border: 1.5px solid rgba(238,243,250,.22); border-radius: 10px; padding: .8rem 1rem; min-height: 48px; }
.form input::placeholder, .form textarea::placeholder { color: #9fadbf; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--signal); background: rgba(238,243,250,.1); }
.form input[aria-invalid="true"] { border-color: #f59e8b; }
.form .btn { justify-self: start; margin-top: .4rem; }
.form-note { font-size: .92rem; color: var(--on-dark-muted); margin: 0; }
.spec { padding-bottom: 6rem; }
.spec-list { margin: 2rem 0 0; display: grid; border-top: 1px solid var(--line); }
.spec-list > div { display: grid; gap: .3rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .spec-list > div { grid-template-columns: 220px 1fr; gap: 2rem; } }
.spec-list dt { font-weight: 600; }
.spec-list dd { margin: 0; color: var(--muted); }

/* ---------- FOOTER ---------- */
.foot { background: var(--night); color: var(--on-dark-muted); padding: 4rem 0 0; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 0 1rem 3rem; display: grid; gap: 2rem; }
@media (min-width: 640px) { .foot-in { padding: 0 2rem 3rem; } }
@media (min-width: 800px) { .foot-in { grid-template-columns: 1fr auto; } }
.foot-logo { width: 240px; margin-bottom: 1rem; filter: brightness(0) invert(1) opacity(.92); }
.foot a { color: var(--on-dark); }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: .6rem 2.5rem; align-content: start; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--signal); }
.foot-bar { border-top: 1px solid var(--line-dark); max-width: 1180px; margin: 0 auto; padding: 1.2rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; font-size: .9rem; }
@media (min-width: 640px) { .foot-bar { padding: 1.2rem 2rem; } }

/* ---------- MOBILE NATIVO ---------- */
html { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
a, button { touch-action: manipulation; }
.nav { padding-top: max(.8rem, env(safe-area-inset-top)); padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
.m-cta { font: 600 .92rem var(--f-body); text-decoration: none; background: var(--signal); color: var(--night); padding: .55rem 1rem; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; }
.tabbar { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: .35rem max(.4rem, env(safe-area-inset-right)) calc(.35rem + env(safe-area-inset-bottom)) max(.4rem, env(safe-area-inset-left));
  background: rgba(6, 16, 29, .92); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--line-dark); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: .4rem 0 .3rem; text-decoration: none; color: #8d9db2; font-size: .7rem; font-weight: 600; letter-spacing: .02em; min-height: 52px; border-radius: 12px; transition: color .2s, transform .15s; }
.tabbar svg { width: 24px; height: 24px; fill: currentColor; transition: transform .25s var(--ease); }
.tabbar a.active { color: var(--signal); }
.tabbar a.active svg { transform: translateY(-2px) scale(1.08); }
.tabbar a:active { transform: scale(.92); }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .tabbar, .m-cta { display: none; } body { padding-bottom: 0; } }

/* feedback al tocco */
.btn:active, .aud:active, .cline:active, .cs:active, .ch:active { transform: scale(.97); transition-duration: .1s; }
@media (hover: none) { .aud:hover, .btn-primary:hover, .btn-ghost:hover, .cline:hover { transform: none; box-shadow: none; } }

/* caroselli a scorrimento con snap su telefono */
@media (max-width: 859px) {
  .swipe { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: .9rem; margin-left: -1rem; margin-right: -1rem; padding: .5rem 1rem 1.2rem; scrollbar-width: none; overscroll-behavior-x: contain; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 82%; scroll-snap-align: center; margin-top: 0 !important; }
  .aud-n { margin-bottom: 1.2rem; }
}
@media (max-width: 639px) {
  .hero { padding-top: 5.5rem; align-items: flex-start; }
  .hero .lead { font-size: 1.15rem; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .decoder .hex { font-size: .72rem; min-height: 6.5em; }
  .fields { font-size: .8rem; min-height: 13em; }
  .scroll-hint { display: none; }
  .vs-card.good { transform: none; }
  .page-hero { padding-top: 7rem; padding-bottom: 2.5rem; }
  .cert-steps { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1rem; padding: 0 1rem .3rem; scrollbar-width: none; }
  .cert-steps::-webkit-scrollbar { display: none; }
  .cs { flex: 0 0 auto; scroll-snap-align: start; }
  .cert-panel { padding: 1.8rem 1.4rem; }
  .form { padding: 1.4rem; }
  .form .btn { justify-self: stretch; justify-content: center; }
  .form input, .form textarea { font-size: 16px; } /* niente zoom automatico su iOS */
  .foot { padding-top: 3rem; }
}

/* transizioni di pagina native (View Transitions API) */
::view-transition-old(root) { animation: vt-out .2s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateX(-24px); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(24px); } }
.tabbar, .nav { view-transition-name: none; }

/* ---------- REVEAL & TRANSITIONS ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
#main.leaving { opacity: 0; transform: translateY(10px); transition: opacity .22s, transform .22s; }
#main { transition: opacity .3s, transform .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- copy v2 ---------- */
.decoder { margin: 0; }
.dec-cap { padding: .9rem 1rem 1rem; font-size: 1rem; font-weight: 600; color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.num > span strong { display: block; color: var(--on-dark); font-size: 1.15rem; margin-bottom: .2rem; }
.soon { font-style: normal; font-size: .8rem; font-weight: 600; background: var(--sky-soft); color: var(--sky-ink); padding: .1rem .5rem; border-radius: 6px; margin-left: .3rem; white-space: nowrap; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
@media (min-width: 1000px) { .hero-in { grid-template-columns: 1.2fr .8fr; } }

/* ---------- COS'È ---------- */
.hero .lead .def { color: var(--on-dark); font-weight: 600; }
.whatis { padding: 6rem 0 5rem; background: var(--paper); }
.whatis h2 { max-width: 22em; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.flow { margin: 3.5rem 0 0; display: grid; gap: .6rem; align-items: center; }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr 110px 1.1fr 110px 1fr; gap: 0; } }
.flow-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; display: grid; justify-items: center; text-align: center; gap: .3rem; color: var(--ink); }
.flow-box svg { width: 72px; height: 46px; margin-bottom: .6rem; }
.flow-box b { font-size: 1.2rem; }
.flow-box span { color: var(--muted); font-size: 1rem; }
.flow-box.core { background: var(--night); border-color: var(--night); color: var(--on-dark); box-shadow: 0 30px 60px rgba(6,16,29,.25); padding: 2rem 1.4rem; }
.flow-box.core img { width: 56px; margin-bottom: .6rem; filter: drop-shadow(0 0 14px rgba(165,214,76,.4)); }
.flow-box.core b { color: var(--signal); font-size: 1.35rem; }
.flow-box.core span { color: var(--on-dark-muted); }
.flow-arrow { position: relative; height: 54px; display: flex; align-items: center; justify-content: center; }
.flow-arrow::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--signal-ink) 0 6px, transparent 6px 12px); animation: dashY 1s linear infinite; }
.flow-arrow span { position: relative; background: var(--paper); padding: .1rem .6rem; font: 600 .78rem var(--f-mono); color: var(--signal-ink); letter-spacing: .06em; }
@keyframes dashY { to { background-position: 0 12px; } }
@media (min-width: 900px) {
  .flow { grid-template-columns: 1fr 140px 1.1fr 140px 1fr; }
  .flow-arrow { height: auto; padding: 0 .9rem; }
  .flow-arrow span { background: none; padding: 0; transform: translateY(-1rem); font-size: .72rem; letter-spacing: .02em; white-space: nowrap; }
  .flow-arrow::before { left: .9rem; right: .9rem; top: 50%; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(to right, var(--signal-ink) 0 6px, transparent 6px 12px); animation-name: dashX; }
  @keyframes dashX { to { background-position: 12px 0; } }
}
.three { margin-top: 5rem; text-align: center; }
.three-intro { font-size: 1.25rem; color: var(--muted); margin-bottom: 1.8rem; }
.three-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) { .three-grid { grid-template-columns: repeat(3, 1fr); } }
.three-grid > div { padding: 1.8rem 1rem; border-top: 3px solid var(--signal); background: var(--card); border-radius: 0 0 var(--radius) var(--radius); }
.three-grid b { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.015em; }
.three-grid span { color: var(--muted); font-size: 1.15rem; }
.three-punch { margin: 2.5rem auto 0; font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -.015em; max-width: 24em; line-height: 1.3; }
.three-punch em { font-style: normal; color: var(--signal-ink); }

/* ---------- PERSONE ---------- */
.people { background: var(--night); color: var(--on-dark); padding: 6rem 0; position: relative; overflow: hidden; }
.people::before { content: ""; position: absolute; width: 700px; height: 700px; right: -250px; top: -250px; background: radial-gradient(circle, rgba(165,214,76,.14), transparent 65%); pointer-events: none; }
.people .eyebrow { color: var(--signal); }
.people h2 em { color: var(--signal); }
.people .lead { color: var(--on-dark-muted); }
.people-grid { position: relative; display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 700px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .people-grid { grid-template-columns: repeat(4, 1fr); } }
.pp { background: var(--night-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.8rem 1.5rem; }
.pp svg { width: 40px; height: 40px; fill: var(--signal); margin-bottom: 1.2rem; }
.pp.sos svg circle { fill: #e2553c; }
.pp h3 { color: var(--on-dark); font-size: 1.3rem; }
.pp p { color: var(--on-dark-muted); margin: 0; font-size: 1.05rem; }
.people-note { position: relative; margin: 2rem 0 0; padding: 1.1rem 1.3rem; border-left: 3px solid var(--signal); background: rgba(165,214,76,.07); border-radius: 0 12px 12px 0; color: var(--on-dark-muted); max-width: 46em; }
.people-note b { color: var(--on-dark); }
.people-punch { position: relative; margin: 3rem 0 0; font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -.015em; }
.people-punch em { font-style: normal; color: var(--signal); }

.pp svg.ln { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cert-head { padding: 0 0 2.2rem; }
.cert-head h2 { max-width: 22em; }
.cert-head .lead { margin-top: .8rem; }

/* ---------- SPUNTI SU MISURA ---------- */
.ideas { padding-top: 1rem; padding-bottom: 5.5rem; }
.idea-grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 700px) { .idea-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .idea-grid { grid-template-columns: repeat(3, 1fr); } }
.idea { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--signal); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.idea h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.idea p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- LINGUA + 6 VOCI ---------- */
.tabbar { grid-template-columns: repeat(6, 1fr); }
.tabbar a { font-size: .66rem; }
.m-right { display: flex; align-items: center; gap: .5rem; }
.lang { font: 600 .8rem var(--f-mono); letter-spacing: .06em; text-decoration: none; color: var(--on-dark-muted); border: 1px solid var(--line-dark); border-radius: 8px; padding: .35rem .55rem; min-height: 32px; display: inline-flex; align-items: center; }
.lang:hover { color: var(--on-dark); border-color: var(--on-dark-muted); }
#menu a.lang { border-radius: 8px; padding: .35rem .55rem; font-size: .8rem; margin-left: .3rem; }
@media (min-width: 900px) { .m-right { display: none; } }
@media (min-width: 900px) and (max-width: 1180px) { #menu a { padding: .5rem .6rem; font-size: .95rem; } }

/* ---------- DOCUMENTAZIONE ---------- */
.docs { display: grid; gap: 2rem; padding-bottom: 6rem; }
@media (min-width: 960px) { .docs { grid-template-columns: 230px 1fr; align-items: start; } }
.docs-toc { display: flex; flex-wrap: wrap; gap: .4rem; }
.docs-toc a { font-size: .95rem; text-decoration: none; color: var(--muted); padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.docs-toc a:hover { color: var(--ink); border-color: var(--signal-ink); }
@media (min-width: 960px) { .docs-toc { position: sticky; top: 6.5rem; flex-direction: column; flex-wrap: nowrap; gap: .1rem; } .docs-toc a { border: 0; background: none; padding: .35rem .6rem; border-left: 2px solid var(--line); border-radius: 0; } .docs-toc a:hover { border-left-color: var(--signal-ink); } }
.doc-body { min-width: 0; }
.doc-sec { padding: 2rem 0; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.doc-sec:first-child { border-top: 0; padding-top: 0; }
.doc-sec h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0 0 .8rem; }
.doc-sec h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.doc-sec p, .doc-sec li { color: var(--muted); max-width: 46em; }
.doc-sec ul { padding-left: 1.2rem; }
.doc-sec pre { background: var(--night); color: var(--on-dark); border-radius: 12px; padding: 1rem 1.2rem; overflow-x: auto; font: .85rem/1.6 var(--f-mono); }
.doc-sec pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.doc-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; display: block; overflow-x: auto; }
.doc-table th, .doc-table td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.doc-table td:first-child { white-space: nowrap; }
.m { font: 600 .75rem var(--f-mono); padding: .15rem .45rem; border-radius: 6px; background: var(--signal-soft); color: var(--signal-ink); margin-right: .4rem; }
.m.post { background: var(--sky-soft); color: var(--sky-ink); }
.m.del { background: #fde8e4; color: #9b2c1c; }
.doc-note { border-left: 3px solid var(--sky-ink); background: var(--sky-soft); color: var(--ink); padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; max-width: 46em; }
.badge-soon { font: 600 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--sky-ink); background: var(--sky-soft); padding: .15rem .5rem; border-radius: 6px; vertical-align: middle; margin-left: .4rem; }

.doc-ver { margin-top: 1rem; font-size: .95rem; color: var(--muted); }
.doc-ver .mono { color: var(--signal-ink); font-weight: 600; }

/* ---------- DISPOSITIVI ---------- */
.dev-grid { display: grid; gap: 1.2rem; padding-bottom: 2rem; }
@media (min-width: 900px) { .dev-grid { grid-template-columns: repeat(2, 1fr); } }
.dev { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.3rem; }
.dev h2 { font-size: 1.35rem; margin: 0 0 .3rem; }
.dev-who { color: var(--muted); margin: 0 0 1.1rem; font-size: 1rem; }
.dev-rec { background: var(--paper); border-left: 3px solid var(--signal-ink); border-radius: 0 10px 10px 0; padding: .8rem 1rem; }
.dev-rec .mono { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink); font-weight: 600; }
.dev-rec b { display: block; font-size: 1.2rem; margin: .1rem 0 .3rem; }
.dev-rec p { margin: 0; font-size: 1rem; color: var(--ink); }
.dev-alt-t { margin: 1.1rem 0 .4rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dev-alt { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.dev-alt li { font-size: .98rem; color: var(--muted); }
.dev-alt b { color: var(--ink); }
.dev-foot { padding-bottom: 6rem; }

/* ---------- casi d'uso ---------- */
.uc-wrap { padding-bottom: 4rem; }
.uc-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.8rem; }
.uc-chip { font: inherit; font-size: .95rem; padding: .5rem 1rem; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.uc-chip:hover { border-color: var(--signal-ink); }
.uc-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.uc-chip:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.uc-grid { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .uc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .uc-grid { grid-template-columns: repeat(3, 1fr); } }
.uc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.uc[hidden] { display: none; }
.uc img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.uc-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.uc-cat { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink); font-weight: 600; margin: 0 0 .4rem; }
.uc h2 { font-size: 1.2rem; margin: 0 0 .45rem; line-height: 1.3; }
.uc-body > p:not(.uc-cat) { color: var(--muted); margin: 0 0 1rem; font-size: 1rem; }
.uc-dev { margin-top: auto; align-self: flex-start; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--signal-soft); border-radius: 8px; padding: .35rem .7rem; font-size: .95rem; }
.uc-dev .mono { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--signal-ink); margin-right: .3rem; }
.uc-dev:hover { text-decoration: underline; }
.uc-note { margin-top: 2rem; }
.uc-tiles { display: grid; gap: 1rem; margin: 2.2rem 0 1.8rem; }
@media (min-width: 700px) { .uc-tiles { grid-template-columns: repeat(3, 1fr); } }
.uc-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; }
.uc-tile img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.uc-tile:hover img { transform: scale(1.04); }
.uc-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .9rem; font-weight: 600; font-size: 1.08rem; background: linear-gradient(transparent, rgba(8, 18, 34, .85)); }
@media (prefers-reduced-motion: reduce) { .uc-tile img { transition: none; } }

/* ---------- foto ---------- */
.photo { margin: 0 auto 3.5rem; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); background: var(--line); }
@media (max-width: 699px) { .photo img { aspect-ratio: 3 / 2; } }
.people-photo { margin: 2.5rem 0 0; position: relative; }
.people-photo img { opacity: .92; }
.split-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-top: 1.8rem; background: var(--line); }

.dev-rec { overflow: hidden; }
.dev-img { float: right; width: 128px; height: 96px; object-fit: contain; margin: -.2rem -.2rem .4rem 1rem; }
@media (max-width: 420px) { .dev-img { width: 96px; height: 72px; } }
.dev-credit { font-size: .85rem; color: var(--muted); margin-top: .8rem; }

/* ---------- home classica: foto larga + decoder chiaro ---------- */
.hero2 { position: relative; min-height: min(84vh, 780px); display: flex; align-items: flex-end; overflow: hidden; background: var(--night); color: #fff; padding: 9rem 0 4.5rem; }
.hero2-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero2::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,16,29,.85) 0%, rgba(6,16,29,.6) 42%, rgba(6,16,29,.1) 78%), linear-gradient(0deg, rgba(6,16,29,.45), transparent 45%); }
@media (max-width: 699px) { .hero2 { min-height: 88svh; padding-bottom: 3rem; } .hero2::after { background: linear-gradient(0deg, rgba(6,16,29,.92) 0%, rgba(6,16,29,.7) 55%, rgba(6,16,29,.3) 100%); } }
.hero2-in { position: relative; z-index: 1; }
.hero2 h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); max-width: 22em; color: #fff; }
.hero2 h1 em { color: var(--signal); }
.hero2 .lead { color: rgba(238,243,250,.9); max-width: 34em; margin: 1.3rem 0 2rem; }

.decode-sec { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 5.5rem 0; }
.decode-in { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .decode-in { grid-template-columns: 1fr 1fr; } }
.decode-copy h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.decode-copy > p { color: var(--muted); max-width: 32em; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.7rem; font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--signal-ink); }

.decode-sec .decoder { background: var(--card); border-color: var(--line); box-shadow: 0 18px 40px rgba(13,27,48,.10); }
.decode-sec .dec-head, .decode-sec .dec-foot { color: var(--muted); border-color: var(--line); }
.decode-sec .dots i { background: var(--line); }
.decode-sec .live, .decode-sec .ack { color: var(--signal-ink); }
.decode-sec .hex { color: #8592a3; border-color: var(--line); }
.decode-sec .hex span.done { color: var(--ink); }
.decode-sec .fields li { border-bottom-color: var(--line); }
.decode-sec .fields li span:first-child { color: var(--muted); }
.decode-sec .fields li span:last-child { color: var(--ink); }
.decode-sec .fields li.hl span:last-child { color: var(--signal-ink); font-weight: 600; }
.decode-sec .dec-cap { color: var(--ink); border-color: var(--line); }

.ideas .btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.ideas .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- fatto in Italia ---------- */
.hero2-kicker { font-family: var(--f-mono); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin: 0 0 1.2rem; font-weight: 600; }
.italy { padding-top: 5.5rem; padding-bottom: 5rem; }
.italy .eyebrow { display: inline-flex; align-items: center; gap: .6rem; }
.flag { display: inline-flex; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.flag i { width: 7px; height: 12px; display: block; }
.flag i:nth-child(1) { background: #009246; } .flag i:nth-child(2) { background: #fff; } .flag i:nth-child(3) { background: #ce2b37; }
.it-grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 860px) { .it-grid { grid-template-columns: repeat(3, 1fr); } }
.it-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.it-card h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.it-card p { color: var(--muted); margin: 0; }

/* ---------- il problema: testo + foto, poi confronto riga per riga ---------- */
.split2 { padding-top: 6rem; padding-bottom: 5.5rem; }
.split2-top { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .split2-top { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split2 .split-l p { color: var(--muted); max-width: 34em; }
.split2 .split-img { margin-top: 0; }
.cmp { margin-top: 3.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 1fr 1fr; }
.cmp-head span { padding: 1rem 1.5rem; font-weight: 700; font-size: 1.1rem; }
.cmp-head span:first-child { color: var(--ink); }
.cmp-head span:last-child { background: var(--signal-soft); color: var(--signal-ink); }
.cmp-row { border-top: 1px solid var(--line); }
.cmp-row p { margin: 0; padding: 1.1rem 1.5rem 1.1rem 3.1rem; position: relative; line-height: 1.55; }
.cmp-bad { color: var(--muted); }
.cmp-good { background: #f3f9ea; color: var(--ink); }
.cmp-bad::before, .cmp-good::before { position: absolute; left: 1.5rem; top: 1.1rem; font-weight: 700; }
.cmp-bad::before { content: "✕"; color: #b42318; }
.cmp-good::before { content: "✓"; color: var(--signal-ink); }
@media (max-width: 699px) {
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-row + .cmp-row { border-top: 6px solid var(--paper); }
}

.photo-products img { border: 1px solid var(--line); }
@media (max-width: 699px) { .photo-products img { aspect-ratio: 21 / 9; } }
.photo figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
