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

:root {
  --ink: #111827;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --surface: #F9FAFB;
  --line: #E5E7EB;
  --brand: #16233D;
  --brand-light: #EFF2F7;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand); text-decoration: underline; }
a:hover { opacity: 0.75; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-header nav a:hover { color: var(--ink); }

/* ── Hero (home) ─────────────────────────────────────────────────────────── */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 1.5rem;
  max-width: 44rem;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--brand);
  margin-bottom: 1rem;
}

.hero p { font-size: 1.125rem; color: var(--muted); margin-bottom: 0.75rem; }
.hero .contact { font-size: 1rem; margin-top: 2rem; }

/* ── Legal pages ─────────────────────────────────────────────────────────── */

.legal {
  flex: 1;
  padding: 3rem 1.5rem;
  max-width: 44rem;
  margin: 0 auto;
  width: 100%;
}

.bozza {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border-radius: 0 4px 4px 0;
}

.legal h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: var(--brand);
}

.legal .subtitle {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal p, .legal li { color: var(--muted); margin-bottom: 0.5rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: 0.5rem; }
.legal li { margin-bottom: 0.25rem; }

.placeholder {
  background: var(--surface);
  border: 1px dashed var(--line);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-style: italic;
  color: var(--muted);
  font-size: 0.875rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.site-footer a { color: var(--muted); }
