/* beyondgeometry — landing page, "option 8" (field.io visual language).
   White page, one sans-serif family, weight 400 everywhere. No external fonts, scripts or images:
   system fonts only (no data sent to a font provider, MISSIONE_E_SITO.md §6 item 4). */

:root {
  --bg: #fff;
  --fg: #000;
  --mute: #8f8f8f;      /* nav, small labels (decorative / large text) */
  --sub: #555;          /* secondary body text */
  --acc: #0000ff;
  --foot: #f7f7f7;
  --line: #e6e6e6;
  --soft: #f3f3f3;
  --on-acc: #fff;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1600px;
  --gutter: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --fg: #f2f2f2;
    --mute: #a3a3a3;
    --sub: #bdbdbd;
    --acc: #8fa8ff;
    --foot: #151517;
    --line: #2b2b2e;
    --soft: #151517;
    --on-acc: #0b0b0c;
  }
}

* { 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(--fg);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p a, .legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--fg); color: var(--bg); padding: 6px 10px; z-index: 20; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; height: 50px; background: var(--bg); }
.top .wrap { display: flex; align-items: center; height: 50px; max-width: none; }
.brand { font-size: 19px; letter-spacing: .42em; text-transform: none; font-weight: 400; white-space: nowrap; }
.brand:hover { color: var(--fg); }
.nav { display: flex; gap: 48px; margin-left: auto; font-size: 18px; color: var(--mute); }
.nav a:hover { color: var(--fg); }
.lang { display: flex; gap: 10px; margin-left: 40px; font-size: 12px; color: var(--mute); }
.lang a:hover { color: var(--fg); }
.lang strong { font-weight: 400; color: var(--fg); }
.top .brand + .lang { margin-left: auto; }
@media (max-width: 760px) {
  .nav { display: none; }
  .brand { font-size: 15px; }
  .lang { margin-left: auto; }
}

/* ---------- shared type ---------- */
.label { font-size: 13px; line-height: 1.4; color: var(--mute); }
h1, h2, h3 { font-family: var(--sans); font-weight: 400; margin: 0; }
h2 { font-size: 36px; line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }
b, strong { font-weight: 400; }
.intro { font-size: 18px; color: var(--sub); max-width: 44em; margin-top: 18px; }

/* ---------- hero (always daylight: hard-coded colours, also in dark mode) ---------- */
.hero { min-height: 100vh; background: #eef3fa; color: #0b0d12; display: flex; }
.hero .wrap {
  max-width: none; width: 100%; margin: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 60px var(--gutter) 40px;
}
.hero .label { color: #6b6f78; }
.hero h1 { font-size: 72px; line-height: .95; letter-spacing: .005em; max-width: 15ch; margin-top: 18px; color: #0b0d12; font-weight: 400; }
.hero h1 em { font-style: normal; font-weight: 400; color: #0b0d12; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border: 1px solid var(--fg); border-radius: 0;
  font-size: 15px; font-weight: 400; background: transparent; color: var(--fg);
}
.btn.solid { background: var(--fg); color: var(--bg); }
.btn:hover { color: var(--bg); background: var(--acc); border-color: var(--acc); }
.hero .btn { border-color: #000; color: #000; background: rgba(255,255,255,.6); }
.hero .btn.solid { background: #000; color: #fff; }
.hero .btn:hover { background: #0000ff; border-color: #0000ff; color: #fff; }
@media (min-width: 761px) { .hero { min-height: max(100vh, 620px); } }
@media (max-width: 760px) {
  .hero { min-height: max(86vh, 520px); }
  .hero .wrap { padding: 30px 16px 28px; }
  .hero h1 { font-size: 40px; }
}

.statement {
  padding: 200px var(--gutter) 50px; font-size: 36px; line-height: 1.2; letter-spacing: -.01em;
  max-width: 1160px;
}
@media (min-width: 1700px) { .statement { margin-left: calc((100% - var(--wrap)) / 2); } }

/* ---------- sections ---------- */
.sec { padding: 90px 0 60px; }
.sec-head { display: grid; grid-template-columns: 120px 1fr; gap: 24px; margin-bottom: 56px; }
.sec-num { font-size: 13px; line-height: 1.4; color: var(--mute); padding-top: 12px; border-top: 1px solid var(--line); align-self: start; }
.sec-head h2 { max-width: 20ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { padding: 18px 0 28px; border-top: 1px solid var(--line); }
.card h3 { margin: 12px 0 10px; }
.card p { color: var(--sub); }
.card .label { color: var(--acc); font-size: 16px; }
.aside-note { margin-top: 36px; padding-left: 144px; font-size: 20px; line-height: 1.4; color: var(--sub); max-width: 52em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.steps li { padding: 18px 24px 0 0; border-top: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 13px; color: var(--acc); margin-bottom: 14px; }
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p { color: var(--sub); font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; margin-top: 80px; }
.rigor, .offer { border-top: 1px solid var(--fg); padding-top: 18px; }
.rigor h3, .offer h3 { margin-bottom: 14px; }
.rigor p { color: var(--sub); max-width: 44em; }
.scale { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 13px; color: var(--mute); }
.scale i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), var(--acc)); }
.offer dl { margin: 0; }
.offer dt { color: var(--acc); margin-top: 16px; font-size: 16px; }
.offer dt:first-child { margin-top: 0; }
.offer dd { margin: 2px 0 0; color: var(--sub); }

/* ---------- demos ---------- */
.demos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; }
.demo { border-top: 1px solid var(--fg); padding-top: 18px; display: flex; flex-direction: column; }
.demo .label { color: var(--acc); font-size: 16px; }
.demo h3 { font-size: 28px; margin: 12px 0 14px; }
.demo > p { color: var(--sub); }
.demo .tested { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--sub); }
.demo .tested strong { display: block; color: var(--fg); margin-bottom: 4px; }
.demo .foot { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.status { font-size: 13px; color: var(--acc); display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.status.wait { color: var(--mute); }
.status.wait::before { background: transparent; border: 1px solid var(--mute); }
.demo.soon { border-top-style: dashed; border-top-color: var(--mute); }
.ai-note { margin-top: 28px; font-size: 13px; color: var(--mute); display: flex; gap: 10px; letter-spacing: .02em; }
.ai-note b { color: var(--fg); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 48px; }
.portrait { aspect-ratio: 4 / 5; background: var(--soft); display: grid; place-items: center; position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait span { font-size: 48px; color: var(--mute); }
.portrait small { position: absolute; bottom: 10px; left: 12px; right: 12px; font-size: 11px; color: var(--mute); }
.who h3 { font-size: 28px; }
.who .role { margin-top: 6px; color: var(--acc); font-size: 16px; }
.who .bio p { margin-top: 18px; max-width: 40em; color: var(--sub); }
.who .bio p.lead-in { font-size: 22px; line-height: 1.35; color: var(--fg); }
.facts { margin: 34px 0 0; display: grid; grid-template-columns: 140px 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; line-height: 1.9; color: var(--mute); }
.facts dd { font-size: 15.5px; }

/* ---------- contact (light, like option 8) ---------- */
.contact { padding-bottom: 100px; }
.mail { display: inline-block; margin-top: 36px; font-size: 48px; line-height: 1.05; letter-spacing: -.01em; border-bottom: 1px solid currentColor; padding-bottom: 6px; word-break: break-word; }
.mail:hover { color: var(--acc); }
.contact .label { margin-top: 24px; font-size: 15px; }

/* ---------- footer ---------- */
.foot-site { background: var(--foot); padding: 40px 0 60px; font-size: 24px; line-height: 1.5; color: var(--fg); }
.foot-site .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: none; align-items: start; }
.foot-site nav { display: flex; flex-direction: column; gap: 0; }
.foot-site nav a:hover { color: var(--acc); }
.foot-site span { color: var(--sub); }
.foot-site .quiet { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: var(--sub); margin-top: 30px; max-width: 70em; }

/* ---------- legal pages ---------- */
.legal { padding: 70px 0 90px; }
.legal .wrap { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: 44px; line-height: 1.05; margin-bottom: 28px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--fg); margin-top: 10px; }
.legal .todo { background: color-mix(in srgb, var(--acc) 14%, transparent); padding: 0 4px; }
.draft { background: var(--acc); color: var(--on-acc); font-size: 13px; line-height: 1.5; padding: 10px var(--gutter); text-align: center; }
.top .brand:hover { color: var(--fg); }

.acc-s { stroke: var(--acc); }
.acc-f { fill: var(--acc); }

/* ---------- tablet / phone ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .cards.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .cards, .demos, .split { grid-template-columns: 1fr; }
  .split { gap: 40px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .cards.four { grid-template-columns: 1fr; }
  .statement { padding: 90px var(--gutter) 36px; font-size: 24px; }
  .sec { padding: 60px 0 36px; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; }
  .sec-num { width: 56px; }
  h2 { font-size: 28px; }
  .aside-note { padding-left: 0; font-size: 18px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 220px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .mail { font-size: 28px; }
  .foot-site { font-size: 18px; padding: 30px 0 40px; }
  .foot-site .wrap { grid-template-columns: 1fr; }
  .legal h1 { font-size: 32px; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- demo page ---------- */
.demo .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.dm { padding: 70px 0 90px; }
.dm .wrap { max-width: 900px; margin: 0 auto; }
.dm .back { font-size: 14px; color: var(--mute); display: inline-block; margin-bottom: 28px; }
.dm h1 { font-size: 44px; line-height: 1.05; letter-spacing: -.01em; }
.dm .intro { margin-top: 16px; }
.dm .lang-note { margin-top: 12px; font-size: 14px; color: var(--sub); }
.dm form { margin-top: 36px; }
.dm label { display: block; font-size: 14px; color: var(--sub); margin-bottom: 8px; }
.dm textarea {
  display: block; width: 100%; min-height: 120px; resize: vertical; padding: 12px 14px;
  font: inherit; font-size: 16px; line-height: 1.5; color: var(--fg); background: var(--bg);
  border: 1px solid var(--fg); border-radius: 0;
}
.dm .ex-h { margin-top: 22px; }
.dm .ex { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.dm .ex button {
  width: 100%; text-align: left; padding: 10px 14px; font: inherit; font-size: 15px; line-height: 1.45;
  color: var(--sub); background: transparent; border: 1px solid var(--line); border-radius: 0; cursor: pointer;
}
.dm .ex button:hover { color: var(--acc); border-color: var(--acc); }
.dm .actions { margin-top: 22px; }
.dm button.btn { font: inherit; font-size: 15px; cursor: pointer; }
.dm .locked { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line); background: var(--soft); }
.dm .locked p { margin-bottom: 14px; }
.dm .locked[hidden], .dm .busy[hidden] { display: none; }
.dm .busy { margin-top: 22px; color: var(--sub); }
.dm .ai-note { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.dm .advice { margin-top: 6px; font-size: 13px; color: var(--mute); }
.dm .res { margin-top: 24px; overflow-wrap: anywhere; }
.dm .res h2 { font-size: 24px; margin-bottom: 12px; }
.dm .res h3 { font-size: 18px; margin: 22px 0 8px; color: var(--sub); }
.dm .res .state { color: var(--acc); }
.dm .res p, .dm .res li { color: var(--sub); }
.dm .res ul { margin: 0; padding-left: 20px; }
.dm .res .err { color: var(--fg); border-left: 2px solid var(--acc); padding-left: 12px; }
.dm .res ul.voci { list-style: none; padding: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.dm .voce { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 2px; }
.dm .voce .cod { color: var(--acc); font-size: 14px; }
.dm .voce .meta { font-size: 14px; color: var(--mute); }
@media (max-width: 760px) { .dm { padding: 40px 0 60px; } .dm h1 { font-size: 32px; } }
.dm .ai-note { color: var(--sub); }
.dm .ai-note b { white-space: nowrap; }
.dm .ai-note span { color: var(--sub); }

.cookie-prefs summary{cursor:pointer;text-decoration:underline}
.cookie-prefs p{margin:.4em 0 0;max-width:60ch}
.booking{margin-top:32px}
.book-btn{display:inline-block;padding:16px 28px;font-size:20px;border:1px solid currentColor;border-radius:999px;transition:background .2s,color .2s}
.book-btn:hover{background:var(--fg);color:var(--bg,#fff)}
.booking .label{margin-top:10px;font-size:14px}
