/* Layout: hero con il logo del marchio su fondo ardesia,  fascia di principi, rail orizzontale dei servizi, processo in 5 passi, CTA ripetuta */
/* Layout: tema scuro unico, oro champagne su ardesia come il logo */
:root {
  --bg: #12161b;
  --surface: #1a1f25;
  --fg: #eceae4;
  --muted: #a3abb4;
  --line: #2c333b;
  --accent: #c9bea7;
  --accent-soft: #2b2a26;
  --accent-fg: #14181d;
  --band: #1a1f25;
  --band-fg: #efece4;
  --ok: #5cc592;
  --font-display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.65 var(--font-body);
  padding-block: 0 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 960px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1.1; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.9rem, 6.2vw, 3rem); font-weight: 500; letter-spacing: 0.04em; }
h2 { font-size: clamp(1.4rem, 4.4vw, 2rem); font-weight: 500; letter-spacing: 0.05em; }
h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: 0.03em; }
p { margin: 0; max-width: 62ch; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.label { font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.band .label { color: #c9bea7; }

header.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; flex-wrap: wrap; }
.brand { font: 400 1.05rem/1 var(--font-display); letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none; }
nav { display: flex; gap: 20px; font-size: 0.88rem; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--fg); }

.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); font: 500 0.88rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; padding: 16px 24px; border: 0; border-radius: 2px; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--fg); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero { padding-block: 32px 56px; display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }
.hero .copy { display: grid; gap: 22px; min-width: 0; }
.hero .lead { font-size: 1.1rem; color: var(--muted); }
.logo-wrap { margin: 0; min-width: 0; }
.logo-img { width: 100%; height: auto; display: block; border-radius: 4px; border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); border-block: 1px solid var(--line); }
.principle { padding: 26px 22px 26px 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.principle p { color: var(--muted); font-size: 0.93rem; }

section { padding-block: 56px 8px; display: grid; gap: 28px; }
section > .head { display: grid; gap: 12px; }
section > .head p { color: var(--muted); }

.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
.card { flex: 0 0 min(78%, 280px); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card p { color: var(--muted); font-size: 0.93rem; }
.tag { justify-self: start; font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; padding: 6px 8px; border-radius: 2px; background: var(--accent-soft); color: var(--accent); }
.hint-scroll { font-size: 0.8rem; color: var(--muted); }

ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); align-items: start; }
ol.steps li::before { content: counter(s, decimal-leading-zero); font: 400 1.9rem/1 var(--font-display); color: var(--accent); }
ol.steps li div { display: grid; gap: 4px; min-width: 0; }
ol.steps li p { color: var(--muted); font-size: 0.95rem; }

.band { background: var(--band); color: var(--band-fg); border-radius: 4px; padding: 36px 24px; display: grid; gap: 18px; justify-items: start; margin-top: 56px; }
.band p { color: inherit; opacity: 0.8; }
.band h2 { font-size: clamp(1.4rem, 4.4vw, 2rem); }
.band .btn { background: #c9bea7; color: #14181d; }

.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 20px; display: grid; gap: 12px; }
.sheet .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.sheet .row:first-of-type { border-top: 0; padding-top: 0; }
.sheet .val { font: 500 1.25rem/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet .val small { font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.sheet .ok { color: var(--ok); }
.sheet .note { font-size: 0.8rem; color: var(--muted); }
.label.mut { color: var(--muted); }

form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
.fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 13px 12px; }
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: 0.85rem; color: var(--muted); }
#result { display: none; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
#result.show { display: grid; }
#out { min-height: 190px; font: 400 0.88rem/1.5 var(--font-mono); }

.contacts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.contacts div { display: grid; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.story { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.story .texts { display: grid; gap: 18px; min-width: 0; }
.story .texts p { color: var(--muted); }
.story .sign { color: var(--fg); font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.story blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 4.6vw, 2.1rem); line-height: 1.25; color: var(--accent); min-width: 0; text-wrap: balance; }
.btn.small { padding: 12px 16px; font-size: 0.78rem; }
.svc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.svc p { color: var(--muted); font-size: 0.93rem; }
.svc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 0.9rem; }
.svc li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; color: var(--fg); }
.svc li::before { content: ""; width: 6px; height: 6px; margin-top: 0.55em; background: var(--accent); transform: rotate(45deg); }
.transparency { display: grid; gap: 8px; border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; max-width: 70ch; }
.transparency p { color: var(--muted); font-size: 0.95rem; }
.site-foot { margin-top: 56px; border-radius: 4px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--accent-soft)); padding: 40px 20px 24px; display: grid; gap: 32px; justify-items: center; text-align: center; }
.f-brand { display: grid; gap: 10px; justify-items: center; text-decoration: none; }
.f-brand svg { width: 38px; height: 38px; }
.f-brand .f-mark { stroke: var(--accent); fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.f-brand span { font: 500 1.35rem/1 var(--font-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg); }
.f-social { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.f-social a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface); }
.f-social a:hover { color: var(--accent); border-color: var(--accent); }
.f-social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.f-cols { display: grid; gap: 28px; width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.f-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.f-title { font: 600 0.84rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg); }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.f-col a { text-decoration: none; color: var(--muted); font-size: 0.98rem; overflow-wrap: anywhere; }
.f-col a:hover { color: var(--fg); }
.f-legal { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 0.8rem; width: 100%; }
.f-legal p { max-width: 70ch; margin: 0 auto; }
header.top { position: relative; }
header.top nav { order: 2; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--fg); cursor: pointer; place-items: center; padding: 0; margin-left: auto; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.only-mobile, .wa-menu { display: none; }
@media (max-width: 720px) {
  .menu-btn { display: grid; }
  header.top { flex-wrap: nowrap; }
  header.top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 8px 0; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14); font-size: 1rem; }
  header.top nav.open { display: flex; }
  header.top nav a { padding: 14px 20px; color: var(--fg); }
  header.top nav a:hover { color: var(--accent); }
  header.top nav a.wa-menu { display: block; margin: 8px 16px; padding: 14px 20px; text-align: center; color: var(--accent-fg); }
  header.top nav a.wa-menu:hover { color: var(--accent-fg); }
  header.top nav a.only-mobile { display: block; }
  #wa-top { display: none; }
}
.notice { background: var(--accent-soft); color: var(--fg); border-radius: 4px; padding: 14px 16px; font-size: 0.95rem; max-width: none; }
.chk { display: flex; gap: 10px; align-items: flex-start; font: 400 0.9rem/1.45 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.chk input { width: auto; margin-top: 3px; }
.ok-msg { color: var(--ok); font-weight: 500; }

/* ---- pagine separate ---- */
header.top nav a[aria-current="page"] { color: var(--fg); }
@media (min-width: 721px) { header.top nav a[aria-current="page"] { box-shadow: 0 1px 0 var(--accent); } }
section > .head h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 500; letter-spacing: 0.05em; }
.teasers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.teaser { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; min-width: 0; }
.teaser:hover { border-color: var(--accent); }
.teaser p { color: var(--muted); font-size: 0.93rem; }
.more { font: 500 0.82rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.gallery { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.case { display: grid; gap: 10px; align-content: start; min-width: 0; }
.case p { color: var(--muted); font-size: 0.93rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph { aspect-ratio: 4 / 3; max-width: 100%; border: 1px dashed var(--line); border-radius: 4px; background: var(--surface); display: grid; place-items: center; text-align: center; color: var(--muted); font: 500 0.78rem/1.5 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 8px; }
.case img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.quote-block { display: grid; gap: 14px; justify-items: start; }
.faq { display: grid; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.faq details { border-top: 1px solid var(--line); padding: 0 20px; }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font: 500 1.2rem/1 var(--font-mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 16px; font-size: 0.95rem; max-width: none; }

.todo { background: var(--accent-soft); padding: 0 4px; border-radius: 2px; }
.legal { display: grid; gap: 14px; padding-block: 24px 8px; }
.legal h2 { font-size: 1.15rem; margin-top: 14px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; max-width: 62ch; }
.band .btn { color: #14181d; }
