:root {
  --bg: #0B0B0C;
  --bg-alt: #121214;
  --line: #232326;
  --text: #F2F2F0;
  --muted: #A3A3A8;
  --accent: #C9A86A;
  --wrap: 72rem;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s6: 3rem; --s8: 4rem; --s12: 6rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s3); }

.skip { position: absolute; left: var(--s2); top: -4rem; background: var(--text); color: var(--bg); padding: var(--s1) var(--s2); z-index: 10; }
.skip:focus { top: var(--s2); }

.top { border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.brand__mark { width: 1.5rem; height: 1.5rem; fill: var(--text); }
.nav { display: flex; gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--muted); font-size: .9375rem; }
.nav a:hover { color: var(--text); }

.hero { padding: var(--s12) 0 var(--s8); }
.eyebrow { margin: 0 0 var(--s2); color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.125rem, 5.4vw, 3.75rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 650; max-width: 22ch; }
h2 { margin: 0 0 var(--s6); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.015em; font-weight: 600; }
h3 { margin: 0 0 var(--s1); font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 var(--s2); }
.lead { color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 40rem; margin-top: var(--s3); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s4); }
.btn {
  display: inline-block; padding: .875rem 1.5rem; background: #FFFFFF; color: #000000;
  text-decoration: none; font-weight: 600; border-radius: 2px; transition: background-color .15s ease;
}
.btn:hover { background: var(--accent); }
.link { color: var(--muted); text-underline-offset: 4px; }
.link:hover { color: var(--text); }

.section { padding: var(--s12) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: var(--s4); }
.card__num { display: block; margin-bottom: var(--s3); color: var(--accent); font-size: 1rem; font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.card p, .steps p { color: var(--muted); margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; max-width: 44rem; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 var(--s6) var(--s8); }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: "0" counter(s); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--accent); border-radius: 50%; background: var(--bg-alt);
  color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .05em; font-variant-numeric: tabular-nums;
}
.steps li::after { content: ""; position: absolute; left: 1.25rem; top: 2.5rem; bottom: 0; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { padding-top: .5rem; }

.contact .lead { margin-top: 0; }
.mail { display: inline-block; margin-top: var(--s2); font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -.015em; text-decoration: none; border-bottom: 2px solid var(--accent); }
.mail:hover { color: var(--accent); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); margin-top: var(--s4); }
.contact__direct { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line); }
.contact__direct .mail { margin-top: 0; overflow-wrap: anywhere; }
button.btn { border: 0; margin: 0; font: inherit; font-weight: 600; line-height: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn[disabled], .btn[disabled]:hover { background: #FFFFFF; color: #000000; opacity: .6; cursor: progress; }
button.btn--ghost { background: transparent; color: var(--text); border: 1px solid #262626; border-radius: 6px; padding: .625rem 1.25rem; }
button.btn--ghost:hover { background: transparent; border-color: #525252; color: var(--text); }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); width: 100%; }
.field { display: grid; gap: var(--s1); min-width: 0; }
.field label { font-size: .9375rem; font-weight: 600; color: var(--text); }
.field input, .field textarea {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box; margin: 0;
  padding: 12px 16px; background: #111111; color: #FFFFFF;
  border: 1px solid #262626; border-radius: 6px; font: inherit;
  -webkit-appearance: none; appearance: none; transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder, .field textarea::placeholder { color: #737373; opacity: 1; }
.field input:hover, .field textarea:hover { border-color: #3A3A3A; }
.field input:focus, .field textarea:focus { outline: none; border-color: #FFFFFF; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: #FFFFFF; box-shadow: 0 0 0 1px #FFFFFF; }
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill {
  -webkit-text-fill-color: #FFFFFF; caret-color: #FFFFFF;
  -webkit-box-shadow: 0 0 0 1000px #111111 inset; box-shadow: 0 0 0 1000px #111111 inset;
  transition: background-color 9999s ease-out 0s;
}
.field input:autofill { background: #111111; color: #FFFFFF; }
.form .btn { justify-self: start; margin-top: var(--s1); }
.form__stato { margin: 0; min-height: 1.6em; color: var(--muted); }
.form__stato:empty { min-height: 0; }
.form__stato.ok { color: var(--text); }
.form__stato.ok::before { content: "✓ "; color: var(--accent); }
.form__stato.errore { color: #F0A8A0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.foot { border-top: 1px solid var(--line); padding: var(--s4) 0; color: var(--muted); font-size: .875rem; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (min-width: 48rem) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 36rem) {
  .nav { gap: var(--s2); }
  .nav li:not(:last-child) { display: none; }
  .hero { padding: var(--s8) 0 var(--s6); }
  .section { padding: var(--s8) 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
