/* seomcp — landing. Nessuna risorsa esterna: font di sistema, niente tracker. */

:root {
  --primary: #1B3A5C;
  --accent: #2E75B6;
  --success: #22C55E;
  --bg: #ffffff;
  --bg-soft: #F4F7FB;
  --surface: #ffffff;
  --text: #16263A;
  --muted: #56677D;
  --border: #DCE3EC;
  --code-bg: #0F2238;
  --code-text: #E6EEF7;
  --heading: var(--primary);
  --radius-card: 0.75rem;
  --radius-btn: 0.5rem;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #5B9BE0;
    --bg: #0B1624;
    --bg-soft: #102033;
    --surface: #132740;
    --text: #E3EAF3;
    --muted: #9AABBF;
    --border: #22384F;
    --code-bg: #060E18;
    --heading: #F2F6FB;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }

code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 4px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.top { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--heading); text-decoration: none; }
.brand svg { color: var(--accent); }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:not(.btn):hover { color: var(--heading); }
@media (max-width: 640px) { .top nav a:not(.btn) { display: none; } }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius-btn); font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.92rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--primary); }
.btn-ghost { border-color: var(--border); color: var(--heading); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .hero { padding: 96px 0; } }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.accent { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.meta { font-size: 0.9rem; color: var(--muted); }

/* Chat di esempio */
.chat { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 20px 50px -24px rgba(27, 58, 92, 0.35); overflow: hidden; }
.chat-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.chat-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.chat-bar em { margin-left: 8px; font-style: normal; font-size: 0.85rem; color: var(--muted); }
.msg { margin: 16px; padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; }
.msg p:last-child { margin-bottom: 0; }
.msg-user { background: var(--bg-soft); margin-left: 15%; }
.msg-ai { border: 1px solid var(--border); }
.tool-call { font-size: 0.82rem; color: var(--muted); }
.chat table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 12px; }
.chat th, .chat td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.chat th { color: var(--muted); font-weight: 600; }
.chat td:nth-child(n+2), .chat th:nth-child(n+2) { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chat figcaption { font-size: 0.78rem; color: var(--muted); padding: 0 16px 14px; }

/* Sezioni */
section { padding: 72px 0; }
.band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--muted); max-width: 42em; font-size: 1.08rem; margin-bottom: 36px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; }
.card h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-right: 10px; vertical-align: middle; }
.card p { color: var(--muted); margin: 0; }

.prompts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.prompts li { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 14px 16px; background: var(--surface); }
.prompts li::before { content: "“"; color: var(--accent); font-weight: 700; margin-right: 2px; }
.prompts li::after { content: "”"; color: var(--accent); font-weight: 700; }

.tool-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
.tools { margin: 0 0 28px; }
.tools dt { margin-top: 14px; }
.tools dd { margin: 4px 0 0; color: var(--muted); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 28px; max-width: 820px; }
.steps > li { counter-increment: step; position: relative; padding-left: 56px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; }
.links a { margin-right: 18px; font-weight: 600; }

.code { position: relative; background: var(--code-bg); color: var(--code-text); border-radius: var(--radius-card); padding: 16px 18px; overflow-x: auto; font: 0.86rem/1.6 var(--mono); margin: 0 0 12px; }
.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.copy { position: absolute; top: 8px; right: 8px; font: 600 0.75rem var(--sans); color: var(--code-text); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, 0.16); }
.small { font-size: 0.9rem; color: var(--muted); }

.gift { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .gift { grid-template-columns: 1.1fr 1fr; } }

/* Footer */
.foot { padding: 36px 0 48px; border-top: 1px solid var(--border); }
.foot-inner p { margin: 0 0 6px; }

/* Gli elementi di griglia non devono allargarsi per contenere i blocchi di codice. */
.hero-grid > *, .steps > li, .gift > *, .tool-grid > *, .cards > *, .prompts > li { min-width: 0; }

/* Tema scuro: testo scuro sull'azzurro chiaro, per un contrasto sufficiente. */
@media (prefers-color-scheme: dark) {
  .btn-primary, .btn-primary:hover, .steps > li::before { color: #06101C; }
  .btn-primary:hover { background: #7DB2EA; }
}
.foot .made { font-weight: 600; color: var(--heading); margin-bottom: 10px; }

.notice { border: 1px solid var(--accent); border-left-width: 4px; background: var(--surface); border-radius: 8px; padding: 14px 18px; margin: -12px 0 32px; max-width: 820px; }
.notice p { margin: 0; }

/* Le ancore del menu non devono finire sotto l'intestazione fissa. */
section[id] { scroll-margin-top: 72px; }
.foot .made { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; }
.foot .made .lic { font-weight: 400; color: var(--text); white-space: nowrap; margin-left: auto; }
.foot .promo { margin-top: 14px; }
.foot .promo a { font-weight: 600; }


/* Pagine di guida (installa/*) */
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); margin-top: 8px; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.doc-block { padding: 0; margin-top: 44px; }
.doc-block h2 { font-size: 1.45rem; }
.checklist, .tips { padding-left: 1.2em; }
.checklist li, .tips li { margin-bottom: 8px; }
.doc .steps { margin-top: 20px; }
.doc .prompts { grid-template-columns: 1fr; }
kbd { font-family: var(--mono); font-size: 0.85em; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--bg-soft); }


/* Spazio per il pulsante Copia sopra il codice, così non copre il testo. */
.code:has(.copy) { padding-top: 40px; }

/* Lista degli assistenti (partial clients.html): semplice e leggera. */
.ai-list { list-style: none; padding: 0; margin: 16px 0; max-width: 420px; border-top: 1px solid var(--border); }
.ai-list li { border-bottom: 1px solid var(--border); }
.ai-list a { display: flex; justify-content: space-between; align-items: center; padding: 11px 4px; text-decoration: none; color: var(--heading); font-weight: 600; }
.ai-list a::after { content: "→"; color: var(--accent); font-weight: 400; transition: transform 0.15s; }
.ai-list a:hover { color: var(--accent); }
.ai-list a:hover::after { transform: translateX(3px); }
