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

:root {
  --bg:        #faf6f3;  /* avorio caldo */
  --surface:   #ffffff;
  --ink:       #211915;  /* bruno-antracite (testo) */
  --ink-soft:  #5d5048;  /* bruno tenue — testo secondario */
  --line:      #ece0d8;  /* hairline */
  --muted:     #928378;  /* testo tenue (footer, etichette) */
  --accent:    #9a3f28;  /* mattone/ruggine — link, pulsante, dettagli */
  --accent-dk: #7e3220;  /* accento scuro — hover */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Satoshi', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 880px; margin: 0 auto; padding: 0 2rem; }

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.wordmark {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}

nav { display: flex; gap: 2rem; }

nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
}

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

/* ── HERO ── */
.hero { padding: 64px 0 52px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 1.75rem;
}

.hero h1 em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-soft);
}

.lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ── SECTIONS ── */
section { padding: 48px 0; border-top: 1px solid var(--line); }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.3px;
  margin-bottom: 1.5rem;
}

.prose { max-width: 620px; }
.prose p { margin-bottom: 1.25rem; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }

/* ── PROGETTI (lavori realizzati) ── */
.projects-intro {
  margin-top: 3rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.projects {
  list-style: none;
  margin-top: 1.5rem;
  max-width: 620px;              /* allineata alla larghezza del testo (.prose) */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;                      /* le "fughe" diventano le linee sottili */
  background: var(--line);
  border: 1px solid var(--line);
}

.projects li {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.4rem;
  background: var(--bg);         /* cella: copre lo sfondo, lascia le fughe */
}

.proj-s {
  order: 1;                      /* etichetta sopra la descrizione */
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.proj-d {
  order: 2;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.5;
}

.proj-d strong { font-weight: 600; }

/* ── PRODOTTO ── */
.product { max-width: 640px; }

.product-tagline {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.link-arrow {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.link-arrow:hover { color: var(--accent-dk); }

/* ── CONTATTI ── */
.email {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}

.email:hover { color: var(--accent); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wordmark-sm {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-legal { font-size: 0.85rem; color: var(--muted); }
.footer-copy  { font-size: 0.85rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  header { padding: 0 1.25rem; }
  .container { padding: 0 1.25rem; }
  nav { gap: 1.25rem; }
  nav a { font-size: 0.85rem; }
  .hero { padding: 44px 0 36px; }
  section { padding: 38px 0; }
  .projects { grid-template-columns: 1fr; }
  footer .container { flex-direction: column; align-items: flex-start; }
}
