/* ============================================================
   ALMANACCO PM — Stylesheet
   Stile: editoriale, magazine italiano
   by Immobilitics
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0a1f44;
  --navy-dark:  #071535;
  --gold:       #956824;
  --gold-light: #b07e2d;
  --gold-pale:  #f5eddd;
  --white:      #ffffff;
  --off-white:  #f8f7f4;
  --bg-light:   #f2f0eb;
  --text:       #0a1f44;
  --text-body:  #2c3e50;
  --text-muted: #7a8499;
  --border:     #d8d4ca;
  --border-light: #ece9e2;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --max-w:      1160px;
  --radius:     2px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--navy);
  line-height: 1.3;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.625rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 400; }
h4 { font-size: 0.9375rem; font-weight: 700; }

p { margin-bottom: 1rem; color: var(--text-body); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 88px 0; }
.section--sm { padding: 56px 0; }
.section--xs { padding: 36px 0; }

.section--navy {
  background: var(--navy);
}
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--white); }
.section--navy .lead { color: rgba(255,255,255,0.6); }
.section--navy p { color: rgba(255,255,255,0.7); }

.section--light { background: var(--off-white); }
.section--pale  { background: var(--bg-light); }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 68px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  gap: 32px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo-by {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-top: 3px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav a:hover, .nav a.active { color: var(--navy); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  border: 1.5px solid transparent;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.btn-lg { padding: 13px 28px; font-size: 0.9375rem; }
.btn-sm { padding: 7px 14px; font-size: 0.75rem; }

/* --- Top banner --- */
.cta-banner {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 11px 24px;
  font-size: 0.8125rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  letter-spacing: 0.01em;
}
.cta-banner a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.cta-banner a:hover { color: var(--gold-light); }

/* --- Section labels --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}

.section-label--light {
  color: rgba(255,255,255,0.45);
}
.section-label--light::before {
  background: rgba(255,255,255,0.3);
}

.section-header { margin-bottom: 56px; }

.section-header--ruled {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.section-header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

/* --- Hero --- */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero h1 { margin-bottom: 28px; max-width: 780px; }
.hero .lead { max-width: 560px; margin-bottom: 40px; }

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-footnote {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* --- Stats strip --- */
.stats-strip {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 0 32px;
  border-right: 1px solid var(--border);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* --- Gold accent number --- */
.stat-number--gold { color: var(--gold); }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px;
  transition: border-color 0.18s;
}

.card:hover { border-color: var(--navy); }

.card-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.card-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.cards-grid .card { border: none; }

/* --- Big number / dato card --- */
.dato-card {
  background: var(--navy);
  padding: 48px 40px;
}

.dato-number {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.dato-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
}

.dato-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.dato-fonte {
  margin-top: 24px;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* --- Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table thead {
  border-bottom: 2px solid var(--navy);
}

.data-table th {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  padding: 14px 20px 14px 0;
  text-align: left;
}

.data-table th:last-child { padding-right: 0; }

.data-table td {
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  color: var(--text-body);
}

.data-table td:last-child { padding-right: 0; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--off-white); }

.table-number {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
}

/* --- Form --- */
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.form-group label span { color: var(--gold); }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-body);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,31,68,0.07);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230a1f44' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

/* --- Form card --- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px;
}

.form-card h3 {
  font-size: 1.375rem;
  margin-bottom: 6px;
}

.form-card .form-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* --- Rubrica badge --- */
.rubrica-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 10px;
}

.rubrica-dato    { background: var(--gold-pale); color: var(--gold); }
.rubrica-norma   { background: #e8edf5; color: var(--navy); }
.rubrica-bench   { background: #f0ece8; color: #6b4f2a; }
.rubrica-mercato { background: #e9f0e9; color: #2d5a2d; }

/* --- Highlight box --- */
.highlight-box {
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  background: var(--gold-pale);
  margin: 28px 0;
}

.highlight-box p { font-size: 0.9375rem; color: var(--text-body); }

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 56px 0;
}

.divider--gold {
  height: 2px;
  background: var(--gold);
  width: 48px;
  margin: 24px 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-logo .logo-name { color: var(--white); font-size: 1.5rem; }
.footer-logo .logo-by { color: var(--gold); }

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
  margin-top: 16px;
}

.footer-col h4 {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.25);
}

.footer-network {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-network a {
  color: rgba(255,255,255,0.35);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-network a:hover { color: rgba(255,255,255,0.7); }

/* --- Rubriche 2x2 --- */
.rubriche-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.rubrica-block {
  background: var(--white);
  padding: 40px;
  transition: background 0.15s;
}

.rubrica-block:hover { background: var(--off-white); }

.rubrica-index {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}

.rubrica-block h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.rubrica-block p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Archive list --- */
.archive-list { list-style: none; }

.archive-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.archive-item:last-child { border-bottom: none; }

.archive-meta {
  flex-shrink: 0;
  width: 110px;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 3px;
  line-height: 1.4;
}

.archive-content h4 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.3;
}

.archive-content h4 a { color: var(--navy); text-decoration: none; }
.archive-content h4 a:hover { color: var(--gold); }

.archive-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: var(--border); }

/* --- Action box (normativa) --- */
.action-box {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin-top: 16px;
}

.action-box-title {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 12px;
}

.action-box ul { list-style: none; padding: 0; }

.action-box ul li {
  font-size: 0.875rem;
  color: var(--text-body);
  padding: 5px 0;
  display: flex;
  gap: 10px;
}

.action-box ul li::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
  font-weight: 700;
}

/* --- Filter bar --- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 7px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* --- Bar chart --- */
.bar-chart { padding: 28px 28px 16px; }

.bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.bar-label {
  width: 80px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
  font-weight: 500;
}

.bar-track {
  flex: 1;
  background: var(--off-white);
  height: 30px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.bar-fill {
  height: 100%;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.bar-fill span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

/* --- Report landing specifics --- */
.report-hero {
  background: var(--navy);
  padding: 96px 0;
}

.report-hero h1 { color: var(--white); max-width: 680px; }
.report-hero .lead { color: rgba(255,255,255,0.6); }

.report-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 24px;
}

.report-badge::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}

.report-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: start;
}

.toc-list { list-style: none; }

.toc-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
}

.toc-list li:last-child { border-bottom: none; }

.toc-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  opacity: 0.6;
}

.toc-text strong { display: block; color: var(--white); margin-bottom: 2px; font-size: 0.9375rem; }

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  margin-top: 40px;
}

.preview-stat {
  background: rgba(255,255,255,0.03);
  padding: 20px;
  text-align: center;
}

.preview-stat .n {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.preview-stat .l {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 5px;
  letter-spacing: 0.05em;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.source-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* --- Trust items --- */
.trust-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}

.trust-item::before {
  content: '✓';
  color: #6dbf7a;
  font-weight: 700;
  font-size: 0.75rem;
}

/* --- Network page --- */
.eco-node {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px 36px;
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
  transition: border-color 0.15s;
}

.eco-node:hover { border-color: var(--navy); }

.eco-node.active {
  border-color: var(--gold);
  border-width: 2px;
  background: var(--gold-pale);
}

.eco-arrow {
  text-align: center;
  color: var(--border);
  font-size: 1.25rem;
  padding: 6px 0;
  line-height: 1;
}

.eco-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.eco-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.eco-node h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.eco-node p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.eco-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  margin-top: 12px;
  border: 1px solid currentColor;
}

.tag-tofu    { color: #2d6a2d; }
.tag-mofu    { color: var(--navy); }
.tag-bofu    { color: var(--gold); }
.tag-media   { color: #5a1e78; }

/* --- Glossario --- */
.glossario-search {
  position: relative;
  max-width: 480px;
  margin-bottom: 40px;
}

.glossario-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  background: var(--white);
  transition: border-color 0.15s;
  color: var(--text-body);
}

.glossario-search input:focus {
  outline: none;
  border-color: var(--navy);
}

.glossario-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 48px;
}

.alpha-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}

.alpha-nav a:hover, .alpha-nav a.has-terms {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--off-white);
}

.alpha-nav a.empty { opacity: 0.3; pointer-events: none; }

.glossario-group { margin-bottom: 56px; }

.glossario-letter {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}

.glossario-term {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.glossario-term:last-child { border-bottom: none; }

.glossario-term h4 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.glossario-term p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.term-hidden { display: none; }

/* --- City metrics --- */
.city-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}

.city-metric:last-child { border-bottom: none; }
.city-metric .label { color: var(--text-muted); }
.city-metric .value { font-weight: 700; color: var(--navy); }
.city-metric .value.gold { color: var(--gold); }

/* --- Newsletter preview --- */
.nl-preview {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}

.nl-preview-header {
  background: var(--navy);
  padding: 20px 24px;
  border-bottom: 3px solid var(--gold);
}

.nl-preview-header .ep {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 6px;
}

.nl-preview-header h3 {
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
}

.nl-preview-body { padding: 4px 0; }

.nl-preview-item {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
}

.nl-preview-item:last-child { border-bottom: none; }

.nl-preview-item .item-tag {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.nl-preview-item p {
  font-size: 0.875rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.55;
}

.nl-preview-footer {
  padding: 12px 24px;
  background: var(--off-white);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .report-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 0 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .rubriche-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 24px; }
  .preview-stats { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-item { padding: 0; border-right: none; border-bottom: 1px solid var(--border-light); padding-bottom: 20px; }
  .stat-item:last-child { border-bottom: none; }
  .header-inner { padding: 0 20px; }
  h1 { font-size: 2rem; }
  .dato-number { font-size: 3.5rem; }
}

/* ===== MOBILE OTTIMIZZATO (max 480px) ===== */
@media (max-width: 480px) {

  /* Header */
  .site-header { height: 56px; }
  .header-inner { height: 56px; padding: 0 16px; }
  .logo-name { font-size: 1rem; }
  .logo-by { display: none; }
  .btn.btn-primary { font-size: 0.75rem; padding: 8px 14px; }

  /* Container */
  .container { padding: 0 16px; }

  /* Tipografia */
  h1 { font-size: 1.75rem; line-height: 1.15; }
  h2 { font-size: 1.5rem; line-height: 1.2; }
  h3 { font-size: 1.125rem; }
  .lead { font-size: 0.9375rem; }

  /* Sezioni */
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
  .section-label { font-size: 0.5625rem; }

  /* Hero / intro */
  .intro-headline { font-size: clamp(2.5rem, 12vw, 4rem); }
  .intro-sub { font-size: 0.625rem; letter-spacing: 0.15em; }
  .intro-scroll-label { font-size: 0.5625rem; }

  /* Report CTA strip */
  .report-cta-strip { padding: 48px 0; }
  .report-cta-inner { flex-direction: column; align-items: center; gap: 28px; }
  .report-cta-inner img { width: 130px !important; }
  .report-cta-text h2 { font-size: 1.5rem; }
  .report-cta-text p { font-size: 0.875rem; }

  /* Pilastri */
  .pilastri-home { padding: 48px 0; }
  .pilastri-home-header { text-align: center; margin-bottom: 32px; }
  .pilastri-home-header h2 { font-size: 1.5rem; }
  .pc { grid-template-columns: 1fr !important; min-height: auto; }
  .pc-visual { display: none !important; }
  .pc-content { padding: 28px 20px !important; }
  .pc-num { font-size: 4rem !important; top: 8px; left: 16px; }
  .pc-name { font-size: 1.25rem !important; }
  .pc-desc { font-size: 0.8125rem; }
  .pc-cta { flex-direction: column !important; padding: 28px 20px !important; gap: 16px; }
  .pc-cta-num { font-size: 2.5rem !important; }

  /* Topic pills */
  .topic-pill { font-size: 0.75rem; padding: 7px 14px; }

  /* Rubriche / motivi */
  .rubriche-section { padding: 48px 0; }
  .rubriche-grid { grid-template-columns: 1fr !important; gap: 0; }
  .rubrica-block { padding: 24px 20px; }
  .rubrica-index { font-size: 2.5rem; }
  .rubrica-block h3 { font-size: 1rem; }

  /* Sezioni conversione */
  section[style*="padding:96px"] { padding: 56px 0 !important; }
  section[style*="padding:96px"] h2 { font-size: 1.75rem !important; white-space: normal !important; }
  section[style*="padding:96px"] img { width: 220px !important; }
  .btn-gold.btn-lg { padding: 14px 28px; font-size: 0.9375rem; }

  /* Network services */
  .ns-hero { padding: 56px 0 40px; }
  .ns-hero h1 { font-size: 1.5rem; }
  .ns-grid { grid-template-columns: 1fr !important; }
  .ns-card { padding: 28px 20px; }
  .ns-num { font-size: 2rem; margin-bottom: 12px; }
  .ns-cta { padding: 48px 0; }
  .ns-cta img { width: 220px !important; }

  /* Modal */
  #almanaccoOverlay > div { padding: 0 !important; max-width: 100% !important; }
  #almanaccoOverlay > div > div:first-child { padding: 24px 20px 20px !important; }

  /* Footer */
  .site-footer { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-col h4 { font-size: 0.625rem; }
  .footer-bottom { font-size: 0.6875rem; text-align: center; }
  .footer-desc { font-size: 0.8125rem; }
}
