/* MyImplant — sito vetrina (statico). Nessun font o script esterno. */
:root {
  --blue: #1E4DB7;
  --blue-deep: #163A8C;
  --mint: #13DEB9;
  --ink: #0F1E3D;
  --text: #3F4A5E;
  --porcelain: #EEF2F8;
  --line: #D5DCE8;
  --white: #FFFFFF;
  --todo: #FFE58A;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--ink); font-family: var(--font-display); margin: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.todo { background: var(--todo); color: var(--ink); padding: 0 0.25em; border-radius: 3px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 0.98rem; }
.site-nav a:hover { color: var(--blue); }

/* Hero */
.hero { background: var(--porcelain); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-copy p { font-size: 1.2rem; color: var(--text); margin-top: 24px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--blue); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.btn-ghost { color: var(--blue); }
.btn-ghost:hover { background: var(--white); }

/* The hero object: the wallet pass resting on the implant label */
.artifact { position: relative; height: 470px; }
.label {
  position: absolute; left: -8px; bottom: 0; width: 272px; z-index: 2;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 16px 18px; transform: rotate(-5deg);
  box-shadow: 0 18px 40px -24px rgba(15, 30, 61, 0.45);
  font-size: 0.78rem; color: var(--ink);
}
.label-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; font-weight: 700; }
.label-head span:last-child { font-weight: 500; color: var(--text); }
.label-body { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; }
.label dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.label dt { color: var(--text); }
.label dd { margin: 0; font-variant-numeric: tabular-nums; }

.pass {
  position: absolute; right: 0; top: 0; width: 300px;
  background: var(--blue); color: var(--white); border-radius: 18px;
  padding: 20px 20px 22px; transform: rotate(3deg);
  box-shadow: 0 34px 60px -28px rgba(15, 30, 61, 0.7);
}
.pass-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pass-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.01em; }
.pass-brand img { width: 26px; height: 26px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,0.35); }
.pass-field small { display: block; font-size: 0.68rem; opacity: 0.75; }
.pass-field b { font-weight: 600; font-size: 0.95rem; }
.pass-status, .pass-right { text-align: right; }
.pass-status b { color: var(--mint); }
.pass-primary { margin: 22px 0 16px; }
.pass-primary b { font-size: 1.5rem; letter-spacing: -0.02em; }
.pass-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pass-qr { background: var(--white); border-radius: 10px; padding: 12px; width: 150px; margin: 0 auto; }
.pass-code { text-align: center; font-size: 0.78rem; margin-top: 8px; letter-spacing: 0.08em; opacity: 0.9; font-variant-numeric: tabular-nums; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--porcelain); }
.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head p { margin-top: 16px; font-size: 1.12rem; }
.intro { margin-top: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; padding: 22px 22px 0 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--blue); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.steps p { font-size: 0.98rem; margin-top: 10px; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.points { margin: 0; padding: 0; list-style: none; }
.points li { padding: 22px 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points p { margin: 8px 0 0; font-size: 0.98rem; }

.company { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; border-top: 2px solid var(--ink); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--text); padding-right: 32px; }
.facts dd { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.contact { background: var(--blue); color: var(--white); }
.contact h2 { color: var(--white); }
.contact p { color: rgba(255,255,255,0.86); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-lines { margin: 0; padding: 0; list-style: none; font-size: 1.15rem; }
.contact-lines li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.25); }
.contact-lines li:last-child { border-bottom: 1px solid rgba(255,255,255,0.25); }
.contact-lines .k { display: block; font-size: 0.85rem; opacity: 0.75; }
.contact a { color: var(--white); }
.contact a:hover { color: var(--mint); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); font-size: 0.9rem; padding: 36px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer p { margin: 0; max-width: none; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--white); }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.legal .updated { color: var(--text); margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal ul { padding-left: 1.2em; max-width: 64ch; }
.legal li { margin-bottom: 6px; }
.legal .facts { margin: 8px 0 24px; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .artifact { height: 440px; max-width: 460px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li { padding-bottom: 28px; }
  .split, .company, .contact .wrap { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .site-nav { display: none; }
  .section { padding: 64px 0; }
  .artifact { height: 420px; }
  .label { width: 236px; left: 0; }
  .label-body { grid-template-columns: 60px 1fr; }
  .pass { width: 250px; }
  .pass-qr { width: 128px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
}
