/* PROPULSORE · Kura — stile Indaco (token del Design System) */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --surface-100: #f7f8fc;
  --surface-200: #ffffff;
  --line: #dfe2ee;
  --ink: #12162b;
  --ink-muted: #4b5270;
  --brand: #5b4bff;
  --brand-ink: #ffffff;
  --brand-strong: #4538d6;
  --brand-soft: #e9e7ff;
  --danger: #c0264a;
  --success: #0f7a55;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface-100: #0e1020;
    --surface-200: #171a30;
    --line: #2a2f4d;
    --ink: #eef0ff;
    --ink-muted: #a9b0d0;
    --brand: #8a7dff;
    --brand-ink: #0e1020;
    --brand-strong: #a69cff;
    --brand-soft: #25224f;
    --danger: #ff7a93;
    --success: #4fd1a1;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background: var(--surface-100);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand-strong); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }

.skip { position: absolute; left: 16px; top: -64px; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: var(--radius-md); font-weight: 700; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 1180px; }

/* Testata e navigazione della sezione */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.04em; font-size: 16px; color: var(--ink); text-decoration: none; }
.logo svg path, .logo svg rect { fill: var(--brand); }
.site-head .home { color: var(--ink-muted); font-size: 14px; text-decoration: none; }
.site-head .home:hover { color: var(--ink); text-decoration: underline; }

.subnav { border-bottom: 1px solid var(--line); background: var(--surface-100); position: sticky; top: 0; z-index: 5; }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 14px 12px; font-size: 15px; color: var(--ink-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--brand); }

/* Pulsanti e link d'azione */
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius-md); font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Landing: apertura */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); display: grid; gap: 28px; align-items: end; }
.hero h1 { font-size: clamp(76px, 17vw, 176px); line-height: 0.88; letter-spacing: -0.045em; font-weight: 700; }
.hero .lead { font-size: 20px; line-height: 1.55; max-width: 34em; }
.hero .fine { margin-top: 20px; color: var(--ink-muted); font-size: 15px; max-width: 36em; }
@media (min-width: 880px) {
  .hero { grid-template-columns: auto minmax(0, 1fr); gap: 72px; }
}
.shot { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-200); }
.shot.big { box-shadow: 0 40px 80px -48px color-mix(in srgb, var(--brand) 55%, transparent); }

/* Sezioni della landing e delle guide */
.block { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 20px; max-width: 22em; }
.block p { max-width: 38em; color: var(--ink-muted); }
.block p + p { margin-top: 14px; }
.block p strong { color: var(--ink); }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.pair { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 720px) { .pair { grid-template-columns: 1fr 1fr; } }

.facts { list-style: none; display: grid; gap: 28px 48px; margin-top: 8px; }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { border-top: 1px solid var(--line); padding-top: 14px; }
.facts b { display: block; font-size: 18px; margin-bottom: 4px; }
.facts span { color: var(--ink-muted); display: block; max-width: 30em; }

.files { list-style: none; border-top: 1px solid var(--line); margin-top: 8px; }
.files a { display: grid; gap: 2px 24px; padding: 18px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.files a:hover { background: var(--brand-soft); }
.files strong { font-size: 18px; }
.files .what { color: var(--ink-muted); font-size: 15px; }
.files code { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); word-break: break-all; }
@media (min-width: 720px) { .files a { grid-template-columns: 1fr auto; align-items: baseline; } .files .what { grid-column: 1; } .files code { grid-column: 2; grid-row: 1 / span 2; align-self: center; } }
.steps-it { margin-top: 28px; display: grid; gap: 20px; }
@media (min-width: 720px) { .steps-it { grid-template-columns: 1fr 1fr; gap: 48px; } }
.steps-it h3 { font-size: 18px; margin-bottom: 6px; }
.steps-it p { font-size: 16px; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; }

/* Pagine di documentazione */
.doc-head { padding: clamp(36px, 6vw, 64px) 0 12px; }
.doc-head h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; max-width: 16em; }
.doc-head .lead { margin-top: 16px; color: var(--ink-muted); font-size: 19px; max-width: 36em; }
.doc { padding-bottom: 72px; }
.layout { display: grid; gap: 24px; }
@media (min-width: 1040px) { .layout.has-toc { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; } }
.toc { font-size: 14px; }
.toc ul { list-style: none; }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--ink-muted); text-decoration: none; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--brand); }
.toc strong { display: block; margin-bottom: 8px; font-size: 14px; }
@media (min-width: 1040px) { .toc { position: sticky; top: 64px; align-self: start; } }
@media (max-width: 1039px) { .toc { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 18px; background: var(--surface-200); } .toc ul { columns: 2; column-gap: 24px; } }

.prose { max-width: 46rem; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h1 { display: none; }
.prose h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.prose h2:first-child, .prose > p:first-child + h2 { margin-top: 1.6em; }
.prose h3 { font-size: 20px; line-height: 1.3; margin-top: 1.8em; scroll-margin-top: 72px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li > ul, .prose li > ol { margin-top: 0.4em; }
.prose strong { font-weight: 700; }
.prose blockquote { border-left: 3px solid var(--brand); background: var(--brand-soft); padding: 14px 18px; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose code { font-family: var(--font-mono); font-size: 0.86em; background: var(--brand-soft); padding: 0.12em 0.4em; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.prose pre { position: relative; background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 76px 16px 18px; overflow-x: auto; line-height: 1.5; }
.prose pre code { background: none; padding: 0; font-size: 14px; overflow-wrap: normal; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; background: var(--surface-200); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { white-space: nowrap; }
.copy { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 13px; color: var(--ink-muted); background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 3px 10px; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--brand); }

/* Guida con schermate */
.tour-row { display: grid; gap: 20px; padding: 40px 0; border-top: 1px solid var(--line); align-items: start; }
.tour-row:first-child { border-top: 0; padding-top: 16px; }
@media (min-width: 900px) { .tour-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } .tour-row .shot { order: 2; } }
.tour-row .prose { max-width: 34rem; }
.tour-row .prose h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.tour-row .prose > *:first-child { margin-top: 0; }

footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--ink-muted); font-size: 14px; }
footer .wrap { display: grid; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--ink-muted); }
footer a:hover { color: var(--ink); }
footer p { max-width: 46em; }

@media print { .subnav, .skip, .copy { display: none; } }

.steps { max-width: 40em; margin-top: 20px; padding-left: 1.4em; color: var(--ink-muted); }
.steps li { padding-left: 6px; }
.steps li + li { margin-top: 14px; }
.steps strong { color: var(--ink); }
.langnote { color: var(--ink-muted); font-size: 15px; margin-bottom: 8px; }
.prose blockquote p { color: var(--ink); }
.steps + p { margin-top: 22px; }
.head-links { display: flex; gap: 20px; }

picture { display: block; }

/* Home */
.intro { padding: clamp(40px, 7vw, 80px) 0 clamp(32px, 5vw, 56px); }
.intro h1 { font-size: clamp(38px, 7vw, 68px); line-height: 1.06; letter-spacing: -0.025em; max-width: 14em; }
.intro em { font-style: normal; color: var(--brand); }
.intro p { margin-top: 20px; color: var(--ink-muted); font-size: 19px; max-width: 32em; }
.feature { display: grid; background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature-text { padding: clamp(24px, 4vw, 40px); align-self: center; }
.feature h2 { font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; margin: 14px 0 10px; }
.feature .fine { margin-top: 12px; color: var(--ink-muted); font-size: 15px; }
.feature .actions { gap: 10px; margin-top: 24px; }
.feature .btn { padding: 11px 18px; font-size: 15px; }
.feature-shot { display: block; background: #000; min-height: 240px; position: relative; }
.feature-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1fr; min-height: 460px; } }
.tag { display: inline-block; font-size: 13px; line-height: 1; padding: 6px 12px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand-strong); }
.soon { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 720px) { .soon { grid-template-columns: 1fr 1fr; } }
.soon article { border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 24px; }
.soon h2 { font-size: 21px; line-height: 1.3; margin: 14px 0 4px; }
.soon p:last-child { color: var(--ink-muted); font-size: 15px; }
.contact { margin-top: 64px; padding: 48px 0 64px; border-top: 1px solid var(--line); }
.contact h2 { font-size: 26px; margin-bottom: 8px; }
.contact p { color: var(--ink-muted); }
.contact a { display: inline-block; margin-top: 12px; font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.shot img { width: 100%; }

/* Foto e video dal telefono */
.phones { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 32px; }
.phones img { width: 100%; scroll-snap-align: center; }
.phones img, .phone video { display: block; height: auto; background: #000; border: 1px solid var(--line); border-radius: 22px; }
.phone { width: min(100%, 300px); justify-self: center; }
.phone video { width: 100%; }
@media (min-width: 720px) { .phones { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 280px)); justify-content: center; gap: 28px; overflow: visible; margin-bottom: 56px; } }
.feature-shot { display: flex; justify-content: center; align-items: flex-start; gap: 16px; padding: 28px 20px 0; background: var(--brand-soft); height: 360px; overflow: hidden; }
.feature-shot img { position: static; width: calc(50% - 8px); max-width: 220px; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.feature-shot img + img { margin-top: 40px; }
@media (min-width: 860px) { .feature-shot { height: 460px; } }
.shot .credit { margin: 0; max-width: none; padding: 6px 12px; font-size: 12px; color: var(--ink-muted); }
