/* immigrazione.us — stylesheet condiviso
   Approccio: mobile-first, system fonts, zero dipendenze esterne */

:root {
  --bg: #fdfcfa;
  --bg-soft: #f4f1ec;
  --bg-card: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --border: #e5e1da;
  --accent: #1d3557;
  --accent-dark: #142845;
  --accent-soft: #e8edf5;
  --red: #c1121f;
  --red-soft: #fce8ea;
  --gold: #b8860b;
  --max-w: 1100px;
  --max-w-prose: 720px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }

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

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

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.4em; }
h3 { font-size: 1.25rem; margin-top: 2em; }
h4 { font-size: 1.05rem; margin-top: 1.6em; }

p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .35em; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(29,53,87,.35);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
a:hover { text-decoration-color: var(--accent); }

strong { color: var(--ink); }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.prose {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(253,252,250,.92);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand span { color: var(--red); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: .92rem;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  font-size: .85rem;
  color: var(--muted);
  margin: 1.5rem auto 0;
  max-width: var(--max-w-prose);
  padding: 0 1.25rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin: 0 .4em; opacity: .6; }

/* ---------- Hero (homepage) ---------- */

.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: .5em;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 1.6em;
}
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ---------- Page header (pillar pages) ---------- */

.page-header {
  padding: 2.5rem 0 1.5rem;
}
.page-header h1 { margin-top: .3em; }
.page-header .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 680px;
}
.meta {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 1.2rem;
}

/* ---------- Card grid ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.grid.cols-2 { grid-template-columns: 1fr; }
.grid.cols-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.card h3 {
  font-size: 1.15rem;
  margin: 0 0 .4em;
  color: var(--accent);
}
.card p {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.card .tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--red);
  margin-bottom: .6em;
}

/* ---------- Article list (inside pillars) ---------- */

.article-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  border-top: 1px solid var(--border);
}
.article-list li {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin: 0;
}
.article-list a {
  font-weight: 600;
  text-decoration: none;
  font-size: 1.02rem;
}
.article-list .desc {
  display: block;
  font-size: .9rem;
  color: var(--muted);
  margin-top: .25em;
  font-weight: 400;
}
.article-list .soon {
  display: inline-block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--bg-soft);
  color: var(--muted);
  padding: .15em .5em;
  border-radius: 4px;
  margin-left: .5em;
  vertical-align: middle;
  font-weight: 600;
}

/* ---------- Callouts ---------- */

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5em 0;
  font-size: .95rem;
}
.callout.warn {
  background: var(--red-soft);
  border-left-color: var(--red);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent-dark); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 1.5em 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
th, td {
  text-align: left;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--accent-dark);
}
tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { margin-top: 1em; }

/* ---------- Newsletter box ---------- */

.newsletter {
  background: var(--accent);
  color: #fff;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  margin: 3rem 0;
  text-align: center;
}
.newsletter h2 {
  color: #fff;
  margin-top: 0;
}
.newsletter p {
  color: rgba(255,255,255,.85);
  max-width: 500px;
  margin: 0 auto 1.5em;
}
.newsletter form {
  display: flex;
  gap: .5rem;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter input[type="email"] {
  flex: 1 1 200px;
  padding: .8rem 1rem;
  border: 0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
.newsletter button {
  padding: .8rem 1.4rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.newsletter button:hover { background: #a00f1a; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 2.5rem 0;
  margin-top: 4rem;
  color: var(--muted);
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 {
  font-family: inherit;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  margin: 0 0 .8em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4em; }
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: .82rem;
  text-align: center;
}

/* ---------- Utility ---------- */

.section-intro {
  max-width: var(--max-w-prose);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}
.section-intro p {
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.cta-row {
  margin: 1.5rem 0;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: background .15s;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn.secondary:hover { background: var(--accent-soft); }
