/* WeLivy · stile della bozza «Sito» (canvas WeLivy, 2026-11-13): salvia e oro, Geist e Geist Mono, foglia a circuito. */
@font-face {
  font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

:root {
  --bg: #F1F4EE; --surface: #FCFDF9; --sunken: #E4EADF;
  --ink: #16231B; --text: #45554A; --muted: #5E6F63; --line: #D9E2D3; --border: #D9E2D3; --chip: #CBD7C6;
  --accent: #3E7A57; --accent-hover: #2F6646; --accent-ink: #FFFFFF; --gold: #A8841F;
  --leaf: #3E7A57; --vein: #A8841F; --node: var(--bg);
  --wm-leaf: #C9D9C4; --wm-vein: #E6D6A6;
  --band: #16231B; --band-ink: #E9F0E8; --band-muted: #B5C2B7; --band-line: #2C3D33; --band-gold: #E2C46A;
  --shadow: rgba(22, 35, 27, 0.18);
  --fill: var(--accent);
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: var(--sans);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B110E; --surface: #131B17; --sunken: #1B2620;
    --ink: #E9F0E8; --text: #B5C2B7; --muted: #9DAE9F; --line: #24322A; --border: #24322A; --chip: #2C3D33;
    --accent: #8FC4A0; --accent-hover: #B9DDB9; --accent-ink: #0B1A11; --gold: #E2C46A;
    --leaf: #8FC4A0; --vein: #E2C46A;
    --wm-leaf: #1C2A22; --wm-vein: #2E2A1A;
    --band: #131B17; --band-line: #24322A;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Foglia: i colori seguono il tema */
.leaf { display: block; overflow: visible; }
.leaf .blade { fill: none; stroke: var(--leaf); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.leaf .veins path { stroke: var(--vein); stroke-width: 2.2; stroke-linecap: round; }
.leaf .veins circle { fill: var(--node); stroke: var(--vein); stroke-width: 2; }
.leaf .hub { fill: var(--vein); }

header.site { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent);
  position: sticky; top: 0; z-index: 10; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .leaf { width: 30px; height: 30px; }
.wordmark { font-family: var(--sans); font-weight: 300; font-size: 19px; letter-spacing: 0.32em; margin-right: -0.32em; line-height: 1; }
.wordmark .i { color: var(--gold); }
nav.site { display: flex; align-items: center; gap: 22px; font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }
nav.site a { text-decoration: none; color: var(--text); }
nav.site a:hover, nav.site a[aria-current] { color: var(--ink); }
nav.site a[aria-current] { font-weight: 500; }
nav.site .lang { font-family: var(--mono); font-size: 13px; }

h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(34px, 6vw, 52px); margin: 8px 0 14px; letter-spacing: -0.035em; }
h2 { font-size: 24px; margin: 0 0 10px; }
h3 { font-size: 18px; margin: 0 0 4px; letter-spacing: -0.015em; }
.narrow { max-width: 760px; margin: 0 auto; }
p { margin: 0 0 10px; }
.lead { font-size: 19px; color: var(--text); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.badge {
  display: inline-block; padding: 13px 22px; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none;
}
.badge:hover { color: var(--accent-ink); background: var(--accent-hover); }
.badge.soon { background: var(--ink); color: var(--bg); cursor: default; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; margin: 0 0 14px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 0 0 14px; }
.grid .card { margin: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
ul { padding-left: 20px; margin: 0 0 10px; }
li { margin: 0 0 6px; }

.note {
  border-left: 3px solid var(--accent); background: var(--sunken);
  padding: 12px 14px; border-radius: 0 12px 12px 0; margin: 0 0 14px; font-size: 15px;
}

footer.site { border-top: 1px solid var(--line); margin-top: 72px; padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer.site .brand { margin-bottom: 16px; }
footer.site .brand .leaf { width: 24px; height: 24px; }
footer.site .wordmark { font-size: 15px; }
footer.site a { color: var(--muted); }
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }

/* Su telefono il logo porta già alla home. */
@media (max-width: 560px) {
  nav.site a.home { display: none; }
  nav.site { gap: 14px; }
  .brand .wordmark { font-size: 16px; }
}

/* Home */
.eyebrow, .kicker, .trust, .toc a, .tag, .flow-step .n, .stop .time { font-family: var(--mono); }
.hero {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 72px 0 56px;
}
.hero .watermark { position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -80px; pointer-events: none; }
.watermark .blade { stroke: var(--wm-leaf); stroke-width: 1.2; }
.watermark .veins path { stroke: var(--wm-vein); stroke-width: 0.9; }
.watermark .veins circle { stroke: var(--wm-vein); stroke-width: 0.8; }
.watermark .hub { fill: var(--wm-vein); }
.eyebrow { font-size: 13px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.eyebrow.gold { color: var(--gold); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; margin: 0 0 20px; }
.grad { color: var(--accent); }
.hero .lead { margin: 0 0 26px; }
.cta-row { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; }
.ghost { font-weight: 500; text-decoration: none; color: var(--ink); }
.hero-phones { position: relative; height: 600px; }
.hero-phones .phone { position: absolute; width: 260px; margin: 0; }
.hero-phones .front { right: 6%; top: 0; z-index: 2; }
.hero-phones .back { left: 4%; top: 56px; }

.phone {
  margin: 0; border-radius: 40px; padding: 9px; background: #16231B;
  box-shadow: 0 30px 60px -30px var(--shadow);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 32px; }

.trust {
  list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--text);
}
.trust li { margin: 0; border: 1px solid var(--chip); border-radius: 999px; padding: 7px 12px; background: var(--surface); }

.section-head { margin: 88px 0 32px; max-width: 720px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; }
.section-head .lead { font-size: 18px; }

.feature {
  display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: center;
  max-width: 940px; margin: 0 auto 72px;
}
.feature.flip { grid-template-columns: 280px 1fr; }
.feature.flip .copy { order: 2; }
.feature .phone { width: 280px; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.kicker .num { color: var(--gold); }
.kicker .rule { height: 1px; width: 48px; background: var(--line); }
.feature h3 { font-size: clamp(24px, 3.2vw, 30px); letter-spacing: -0.025em; margin-bottom: 12px; }
.feature p { color: var(--text); }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--gold);
}

.why svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.center { text-align: center; }

.table-wrap { overflow-x: auto; padding: 8px 8px 14px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp tbody th { text-align: left; font-weight: 400; }
.cmp thead th { font-family: var(--mono); font-weight: 400; font-size: 13px; vertical-align: bottom; color: var(--muted); }
.cmp thead th.us { color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 16px; }
.cmp td.us { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.cmp td span[aria-hidden] { font-size: 18px; font-weight: 600; }
.cmp .yes, .legend .yes { color: var(--accent); }
.cmp .part, .legend .part { color: var(--gold); }
.cmp .no, .legend .no { color: var(--muted); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.legend { margin: 10px 10px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Privacy: fascia scura come nella bozza */
.private { background: var(--band); color: var(--band-ink); border-radius: 28px; padding: 48px; margin: 88px 0 0; }
.private-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.private-head .leaf { width: 64px; height: 64px; flex: none; --leaf: #8FC4A0; --vein: var(--band-gold); --node: var(--band); }
.private h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.03em; margin: 0; }
.private .card { background: transparent; border-color: var(--band-line); }
.private .card .muted { color: var(--band-muted); }
.private a { color: var(--band-gold); }

.final { text-align: center; margin: 72px auto 0; max-width: 640px; padding: 40px 24px; }
.final .final-leaf { width: 80px; height: 80px; margin: 0 auto; }
.final h2 { margin-top: 16px; font-size: 30px; letter-spacing: -0.03em; }
.final .badge { margin-top: 8px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero .watermark { width: 480px; height: 480px; right: -180px; top: -40px; }
  .hero-phones { height: 470px; max-width: 380px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: 210px; }
  .hero-phones .front { right: 0; }
  .hero-phones .back { left: 0; top: 40px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .feature.flip .copy { order: 0; }
  .feature .phone { width: 250px; margin: 0 auto; }
  .section-head { margin-top: 64px; }
  .private { padding: 28px 20px; border-radius: 22px; margin-top: 64px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .table-wrap { padding: 4px 2px 12px; }
  table.cmp { font-size: 13px; }
  .cmp th, .cmp td { padding: 10px 4px; }
  .cmp tbody th { padding-left: 8px; }
  .cmp thead th { font-size: 11px; line-height: 1.2; }
  .cmp thead th.us { font-size: 14px; }
  .cmp td { width: 54px; }
}

/* Il nome: foglia grande a sinistra, testo a destra */
.story { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: center;
  margin: 24px 0 0; padding: 56px 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }
.story .story-leaf { width: 200px; height: 200px; margin: 0 auto; }
.slogan { font-size: clamp(32px, 4.4vw, 44px); letter-spacing: -0.03em; margin: 0 0 14px; }
.story .lead { font-size: 18px; max-width: 40em; }
@media (max-width: 720px) {
  .story { grid-template-columns: 1fr; gap: 24px; padding: 32px 22px; }
  .story .story-leaf { width: 120px; height: 120px; margin: 0; }
}

/* Versione gratuita e Premium */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 860px; margin: 0 auto 10px; }
.plan { position: relative; margin: 0; }
.plan.featured { border: 2px solid var(--accent); }
.plan-badge {
  position: absolute; top: -12px; right: 18px; padding: 3px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600;
}
.plan h3 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.price { margin: 0 0 6px; }
.price strong { font-size: 30px; font-weight: 600; }
.plans-note { max-width: 860px; margin: 0 auto 10px; text-align: center; }

/* Guida */
.guide { max-width: 980px; margin: 0 auto; }
.guide-head { max-width: 760px; margin: 24px 0 28px; }
.guide h2 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 600; margin: 40px 0 14px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.guide .ticks li { margin-bottom: 10px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 14px; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.steps li {
  counter-increment: step; position: relative; margin: 0; padding: 18px 18px 18px 64px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600;
  background: var(--fill); color: var(--accent-ink);
}
.steps li p { margin: 0; }

/* Pagina Recap: tre schermate affiancate (scorrono in orizzontale sugli schermi stretti). */
.recap-head { text-align: center; margin: 40px auto 28px; max-width: 760px; }
.recap-head h1 { font-size: clamp(34px, 5.6vw, 56px); margin: 0 0 14px; }
.recap-head .lead { margin: 0 auto 18px; }
.shots3 { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto 40px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.shots3 .phone { margin: 0; scroll-snap-align: center; }

/* Guida completa: indice, etichette Gratis/Premium, riquadri a due colonne */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.toc a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; font-size: 15px; font-weight: 600; }
.guide h2[id] { scroll-margin-top: 16px; }
.guide .lead { margin: -4px 0 16px; font-size: 17px; max-width: 46em; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
@media (max-width: 420px) { .grid.two { grid-template-columns: 1fr; } }
.tag { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; background: var(--sunken); color: var(--muted); }
.tag.pro { background: var(--accent); color: var(--accent-ink); }
.card.promo { border: 2px solid var(--accent); }
.card.promo .badge { margin-top: 6px; }
.card.rescue { border-left: 4px solid #C0543C; }

/* Guida: la guida a colpo d'occhio (ritmo, gita, sport) */
.flow { display: grid; gap: 14px; margin: 8px 0 10px; }
.flow h2 { margin-bottom: 0; }
.flow .flow-h { font-size: 19px; margin: 14px 0 0; }
.flow a { color: inherit; text-decoration: none; }
.flow-legend { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.flow-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 18px; height: 12px; border-radius: 4px; background: var(--sunken); display: inline-block; }
.sw.pro { background: transparent; border: 1.5px solid var(--gold); }
.pro-tag { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; padding: 1px 6px; border-radius: 999px;
  background: var(--gold); color: var(--bg); margin-left: 2px; vertical-align: 1px; }
.flow .chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.flow .chips li { font-size: 14px; line-height: 1.3; padding: 6px 9px; border-radius: 10px; background: var(--sunken); margin: 0; }
.flow .chips li.pro { background: transparent; border: 1.5px solid var(--gold); }
.flow .chips li.pro a { display: block; }
.stop-h { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; }
.time { display: block; font-size: 13px; color: var(--muted); }
.loop { display: block; font-size: 12px; font-weight: 600; color: var(--accent); }
.metro { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.metro::before { content: ""; position: absolute; left: 20px; right: 20px; top: 19px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) 0 18%, var(--accent) 18% 100%); }
.stop-col { display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 0 12px 12px; margin-top: 0; position: relative; }
.stop { display: grid; gap: 2px; }
.dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display);
  font-weight: 600; font-size: 15px; background: var(--surface); border: 4px solid var(--accent); color: var(--accent);
  margin: 0 0 8px -2px; position: relative; z-index: 1; }
.stop.first .dot { border-color: var(--gold); color: var(--gold); }
.stop-col { background: transparent; border: 0; padding: 0; }
.stop-col .stop { padding: 0; }
.stop-col .chips { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px; }
.flow-trip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flow-step, .lane { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; display: grid; gap: 8px;
  align-content: start; position: relative; }
.flow-step .n { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 16px; color: var(--accent); font-weight: 600; background: var(--bg); }
.flow-branch { font-size: 14px; font-weight: 600; color: #C0543C; margin: -4px 0 -6px; text-align: center; }
.flow-sos { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; border: 2px solid #C0543C; border-radius: 18px;
  padding: 14px 16px; background: var(--surface); font-size: 15px; }
.badge112 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1; color: #C0543C; }
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lane .q { font-size: 13px; color: var(--muted); }
.merge { width: 100%; max-width: 760px; height: auto; color: var(--line); justify-self: center; margin-top: -6px; }
.flow-goal { justify-self: center; text-align: center; background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  padding: 10px 18px; font-weight: 600; margin: -6px 0 0; }
.flow a:hover .chips, .flow a.flow-step:hover, .flow a.lane:hover, .flow a.flow-sos:hover { border-color: var(--accent); }
@media (max-width: 860px) {
  .metro { grid-template-columns: 1fr; }
  .metro::before { left: 19px; right: auto; top: 20px; bottom: 20px; width: 4px; height: auto;
    background: linear-gradient(180deg, var(--gold) 0 14%, var(--accent) 14% 100%); }
  .stop-col { grid-template-columns: 42px 1fr; column-gap: 12px; }
  .stop-col .stop { display: contents; }
  .stop-col .dot { grid-row: 1 / span 4; }
  .stop-col .chips { grid-column: 2; }
  .flow-trip, .lanes { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { content: "↓"; right: auto; left: 18px; top: auto; bottom: -16px; }
  .merge { display: none; }
}
