:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #dbe2ea;
  --primary: #123b66;
  --primary-hover: #0f3154;
  --shadow: 0 10px 30px rgba(18, 59, 102, 0.08);
  --radius: 16px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  padding: 72px 0 48px;
  background:
    linear-gradient(180deg, rgba(18, 59, 102, 0.06), rgba(18, 59, 102, 0.02)),
    #ffffff;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--primary);
}

h2 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.7rem;
}

h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.25rem;
}

.lead {
  max-width: 800px;
  font-size: 1.12rem;
  color: var(--muted);
}

.header-actions,
.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.header-actions {
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
}

main {
  padding: 38px 0 60px;
}

.intro-card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: 28px;
  margin-bottom: 28px;
}

.archive-section {
  margin-bottom: 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  padding: 24px;
}

.card p {
  color: var(--muted);
  min-height: 70px;
}

.site-footer {
  padding: 24px 0 42px;
  border-top: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
}

.page-layout {
  padding: 42px 0 60px;
}

.breadcrumb {
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.solution-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.download-box {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Sezione materiali di supporto */
.support-section {
  background: #eef5f3;
  border: 1px solid #d8e7e2;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
}

.support-section h2 {
  margin-top: 0;
}

.support-card {
  background: #f7fbfa;
  border: 1px solid #d8e7e2;
}

/* Box licenza in giallo pastello */
.license-box {
  background: #fff8d9;
  border: 1px solid #eadb96;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.license-box h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #8a6d1f;
  font-size: 1.3rem;
}

.license-box p {
  margin-bottom: 8px;
  color: #5a4a1a;
  font-size: 0.92rem;
  line-height: 1.6;
}

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

.license-box a {
  color: #7a5f16;
  font-weight: 700;
  text-decoration: none;
}

.license-box a:hover {
  text-decoration: underline;
}

/* Layout semplificato per eventuali pagine minimali */
.page-simple {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.simple-box {
  background: #ffffff;
  border: 1px solid #d9e1e8;
  border-radius: 14px;
  padding: 40px 30px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.simple-box h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 2rem;
  color: var(--primary);
}

.simple-box p {
  margin-bottom: 30px;
  font-size: 1.05rem;
  color: #4b5563;
}

.pdf-button {
  display: inline-block;
  padding: 12px 22px;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.pdf-button:hover {
  background: var(--primary-hover);
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 52px;
  }

  .intro-card,
  .card,
  .solution-box,
  .simple-box,
  .support-section,
  .license-box {
    padding: 20px;
  }

  .header-actions,
  .card-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn,
  .pdf-button {
    width: 100%;
    text-align: center;
  }
}
