/* Talaris — foglio di stile unico, nessuna dipendenza esterna */

:root {
  --navy: #12314f;
  --navy-soft: #1d4a76;
  --ink: #1c1c1e;
  --muted: #5a6472;
  --line: #dfe4ea;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --accent: #a97328;
  --max: 880px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

/* ---------- Intestazione ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--navy);
  text-decoration: none;
}

.brand span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: var(--muted);
}

nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  margin-left: 20px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------- Blocchi ---------- */

section { padding: 44px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h1 {
  font-size: 30px;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 14px;
}

h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 12px;
}

h3 {
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--navy-soft);
}

p { margin: 0 0 14px; }

.lead {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 20px;
}

ul { padding-left: 20px; margin: 0 0 14px; }
li { margin-bottom: 6px; }

a { color: var(--navy-soft); }

/* ---------- Griglia servizi ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--bg);
}

.card p:last-child { margin-bottom: 0; }

/* ---------- Passaggi numerati ---------- */

ol.steps { padding-left: 0; list-style: none; counter-reset: s; margin: 20px 0 0; }

ol.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
}

ol.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 1px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Riquadro dati identificativi ---------- */

.identita {
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 22px;
  background: var(--bg);
}

.identita h2 { margin-bottom: 14px; }

dl.dati { margin: 0; }

dl.dati div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

dl.dati div:last-child { border-bottom: 0; }

dl.dati dt {
  flex: 0 0 190px;
  color: var(--muted);
  font-size: 15px;
}

dl.dati dd {
  margin: 0;
  flex: 1 1 240px;
  font-weight: 600;
}

/* ---------- Pulsanti ---------- */

.azioni { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

/* ---------- Piè di pagina ---------- */

footer.site {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 28px 0;
  font-size: 15px;
  color: var(--muted);
}

footer.site strong { color: var(--ink); }
footer.site p { margin: 0 0 8px; }
footer.site a { color: var(--navy-soft); }

/* ---------- Testo legale ---------- */

.legale h2 { margin-top: 30px; }
.legale { font-size: 16px; }

/* ---------- Telefono ---------- */

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 25px; }
  section { padding: 32px 0; }
  .head-inner { padding: 14px 20px; }
  nav a { margin-left: 0; margin-right: 16px; display: inline-block; }
  dl.dati dt { flex: 1 1 100%; }
}
