/* ============================================================
   Delibo — landing page
   Nessuna dipendenza, nessun build step.
   ============================================================ */

:root {
  --ink: #0b1020;
  --ink-soft: #141b33;
  --paper: #ffffff;
  --paper-warm: #f7f7f4;
  --line: #e4e6ee;
  --line-dark: rgba(255, 255, 255, 0.14);
  --text: #151a29;
  --muted: #5c6478;
  --muted-dark: #a7b0c6;
  --accent: #2d5bff;
  --gold: #ffb020;
  --radius: 16px;
  --maxw: 1120px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 80px; } /* header sticky: evita che il titolo finisca sotto la barra */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-warm { background: var(--paper-warm); }

.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.dark .kicker { color: var(--gold); }

.h2 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em;
  font-size: clamp(32px, 4.6vw, 52px); margin: 14px 0 0;
}
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 62ch; margin-top: 18px; }
.dark { background: var(--ink); color: #fff; }
.dark .lead { color: var(--muted-dark); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; letter-spacing: -0.02em; color: #fff; font-size: 19px;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--gold); color: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 15px; font-family: var(--serif);
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted-dark); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }

.lang {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 3px;
}
.lang button {
  border: 0; background: transparent; color: var(--muted-dark); font: inherit;
  font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
}

/* ---------------- hero ---------------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  padding: clamp(72px, 10vw, 132px) 0 clamp(56px, 6vw, 84px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 460px at 12% -10%, rgba(45, 91, 255, 0.36), transparent 62%),
    radial-gradient(700px 420px at 96% 8%, rgba(255, 176, 32, 0.16), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(760px 420px at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(760px 420px at 50% 0%, #000, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500;
  color: var(--muted-dark); border: 1px solid var(--line-dark); border-radius: 999px; padding: 7px 15px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 4px rgba(57, 217, 138, 0.16); }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.6vw, 78px);
  margin: 26px 0 0; max-width: 17ch; letter-spacing: -0.015em;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-lead { margin-top: 22px; max-width: 60ch; font-size: clamp(17px, 1.7vw, 20px); color: #c9d0e2; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-weight: 600; font-size: 15.5px; padding: 14px 24px; border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--ink); }
.btn-ghost { border: 1px solid var(--line-dark); color: #fff; }
.hero-note { margin-top: 26px; font-size: 14.5px; color: var(--muted-dark); }

/* ---------------- stats ---------------- */
.stats { background: var(--ink); color: #fff; padding: 0 0 clamp(56px, 7vw, 88px); }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--ink); padding: 30px 26px; }
.stat-value { font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); line-height: 1; color: var(--gold); }
.stat-label { margin-top: 12px; font-size: 14.5px; color: var(--muted-dark); max-width: 26ch; }
.stats-foot { margin-top: 18px; font-size: 13px; color: #6e7893; }

@media (max-width: 820px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } }

/* ---------------- griglie e card ---------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 52px; }
@media (max-width: 960px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--paper);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover { box-shadow: 0 14px 40px -22px rgba(15, 22, 45, 0.4); transform: translateY(-2px); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-num { font-family: var(--serif); font-size: 22px; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.dark .card { background: var(--ink-soft); border-color: var(--line-dark); }
.dark .card p { color: var(--muted-dark); }

.quote {
  margin-top: 44px; border-left: 3px solid var(--gold); padding: 6px 0 6px 24px;
  font-family: var(--serif); font-size: clamp(21px, 2.5vw, 29px); line-height: 1.35; max-width: 44ch;
}

/* ---------------- flusso ---------------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 56px; position: relative; }
.step { position: relative; padding-top: 34px; }
.step::before { content: ""; position: absolute; top: 9px; left: 0; right: -18px; height: 1px; background: var(--line); }
.step:last-child::before { right: 0; }
.step-dot { position: absolute; top: 3px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--paper-warm); border: 3px solid var(--accent); }
.step-n { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
.step h3 { font-size: 17.5px; margin: 8px 0; }
.step p { color: var(--muted); font-size: 15px; }

@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .step { padding-top: 0; padding-left: 30px; }
  .step::before { top: 14px; bottom: -26px; left: 6px; right: auto; width: 1px; height: auto; }
  .step:last-child::before { display: none; }
  .step-dot { top: 8px; }
}

.note { margin-top: 40px; font-size: 15.5px; color: var(--muted); max-width: 66ch; }
.dark .note { color: var(--muted-dark); }

/* ---------------- richiamo (dati personali) ---------------- */
.callout {
  margin-top: 28px; max-width: 72ch; background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 22px 26px;
}
.callout-label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.callout p { color: var(--muted); font-size: 15.5px; }
.dark .callout { background: var(--ink-soft); border-color: var(--line-dark); border-left-color: var(--gold); }
.dark .callout-label { color: var(--gold); }
.dark .callout p { color: var(--muted-dark); }

/* ---------------- scala ---------------- */
.scale-metric {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; margin-top: 52px;
  border-top: 1px solid var(--line-dark); padding-top: 34px;
}
.scale-metric b { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.5vw, 64px); color: var(--gold); line-height: 1; }
.scale-metric span { color: var(--muted-dark); font-size: 16.5px; max-width: 34ch; }

/* ---------------- applicazioni ---------------- */
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: rgba(45, 91, 255, 0.08); border-radius: 999px; padding: 5px 11px; margin-bottom: 14px;
}
.uses-foot {
  margin-top: 40px; padding: 24px 26px; background: var(--paper-warm); border-radius: var(--radius);
  color: var(--muted); font-size: 16px; max-width: 72ch;
}

/* ---------------- domande ---------------- */
.qlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 52px; }
@media (max-width: 760px) { .qlist { grid-template-columns: 1fr; } }
.q {
  display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line-dark);
  border-radius: 14px; padding: 20px 22px; background: rgba(255, 255, 255, 0.03); font-size: 16.5px;
}
.q svg { flex: none; margin-top: 5px; color: var(--gold); }

/* ---------------- numeri ---------------- */
.rows { margin-top: 52px; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.row b { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.01em; }
.row span { color: var(--muted); font-size: 16px; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: 8px; } }

/* ---------------- stato ---------------- */
.status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
@media (max-width: 860px) { .status { grid-template-columns: 1fr; } }
.st { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--paper); }
.st-head { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; }
.st-live .st-head { color: #128a54; } .st-live .st-dot { background: #39d98a; }
.st-wip .st-head { color: #b57900; }  .st-wip .st-dot { background: var(--gold); }
.st-next .st-head { color: var(--muted); } .st-next .st-dot { background: #c4cad8; }
.st ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.st li + li { margin-top: 8px; }

/* ---------------- infrastruttura ---------------- */
.bullets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
@media (max-width: 760px) { .bullets { grid-template-columns: 1fr; } }
.bullet { display: flex; gap: 13px; align-items: flex-start; font-size: 16px; color: #d5dae8; }
.bullet::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 10px; }

/* ---------------- contatti ---------------- */
.contact { text-align: center; padding: clamp(72px, 9vw, 128px) 0; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.8vw, 56px); max-width: 20ch; margin: 16px auto 0; }
.contact .lead { margin: 20px auto 0; text-align: center; }
.mailto {
  display: inline-block; margin-top: 34px; font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 38px); text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 4px;
}

.site-footer { border-top: 1px solid var(--line-dark); background: var(--ink); color: var(--muted-dark); font-size: 14px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding: 26px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
