/* Pensione senza sorprese 0.4.7 — check-up XML e guida, con lo stile della landing CONQUADRI. */
:root {
  --navy: #052d46;
  --navy-2: #0b3d5c;
  --blue: #0047bb;
  --cyan: #38b6e0;
  --yellow: #f2d014;
  --yellow-2: #ffe866;
  --ink: #102434;
  --muted: #5e7486;
  --line: #dceaf3;
  --bg: #f4f9fd;
  --soft: #edf7fd;
  --soft-line: #cfe6f4;
  --danger: #d9472b;
  --warning: #d89a00;
  --ok: #0c9c66;
  --shadow: 0 22px 70px rgba(5, 45, 70, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
button,
input,
a {
  font: inherit;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* Testata e piè di pagina come la landing. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 234, 243, 0.95);
}
.nav {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-national {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 950;
}
.brand-national img {
  height: 82px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
  display: block;
}
.brand-national .brand-copy {
  font-size: 16px;
  line-height: 1.15;
}
.brand-national .brand-copy span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.035em;
  margin-top: 4px;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  font-weight: 950;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.18s transform, 0.18s box-shadow;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-blue {
  background: linear-gradient(135deg, var(--blue), #087fd1);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 71, 187, 0.25);
}
.btn-soft {
  background: var(--soft);
  color: var(--navy);
  border: 1px solid var(--soft-line);
}
.site-footer {
  margin-top: 72px;
  background: #052236;
  color: #a8c3d4;
  padding: 42px 0 48px;
  font-size: 13px;
}
.site-footer .note {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  color: #d2e5ef;
}

/* Contenuto. */
main {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 0;
}
.guide-shell {
  width: min(900px, calc(100% - 40px));
}
h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--navy);
}
h2 {
  margin: 6px 0 10px;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 950;
}
p {
  line-height: 1.6;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 34px;
  padding: 48px;
  color: #fff;
  background:
    radial-gradient(620px 380px at 88% 0%, rgba(56, 182, 224, 0.44), transparent 62%),
    radial-gradient(480px 360px at 0% 110%, rgba(242, 208, 20, 0.24), transparent 62%),
    linear-gradient(135deg, #05263c 0%, #073653 42%, #0f5b86 100%);
  box-shadow: var(--shadow);
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
}
.eyebrow,
.step {
  margin: 0;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(242, 208, 20, 0.45);
  border-radius: 999px;
  background: rgba(242, 208, 20, 0.16);
  color: var(--yellow-2);
  padding: 8px 14px;
  letter-spacing: 0.06em;
}
.hero h1 {
  max-width: 17ch;
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 1000;
}
.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
}
.hero .lead {
  color: #d5ecf8;
}
.card {
  border: 1px solid #e7f0f6;
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}
.small-note {
  color: var(--muted);
  font-size: 14px;
}

/* Pulsanti. */
.primary,
.upload {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
  color: #17324b;
  padding: 14px 22px;
  font-weight: 950;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(242, 208, 20, 0.38);
  transition: 0.18s transform, 0.18s box-shadow;
  white-space: nowrap;
}
.primary:hover,
.upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(242, 208, 20, 0.5);
}
.secondary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  padding: 12px 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.secondary:hover {
  background: #e1f1fb;
}
.link-button {
  text-decoration: none;
}
.upload {
  position: relative;
}
.upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
.upload:focus-within {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* Accesso riservato e caricamento. */
.members-gate {
  border-top: 5px solid var(--yellow);
}
.import-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.status {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid #e7f0f6;
  padding-top: 16px;
  color: var(--muted);
  font-weight: 700;
}
.status.success {
  color: var(--ok);
}
.status.error {
  color: var(--danger);
}

/* Risultato. */
.result {
  margin-top: 24px;
}
.result,
.card {
  scroll-margin-top: 120px;
}
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.result-head.card {
  margin-bottom: 14px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 14px;
}
.metrics .metric-wide {
  grid-column: span 2;
}
.metrics small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.metrics article {
  border: 1px solid #e7f0f6;
  border-radius: 22px;
  background: #fff;
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--blue);
  font-size: 32px;
  font-weight: 1000;
  line-height: 1.1;
}
.readiness-note {
  border-left: 4px solid var(--cyan);
  border-radius: 14px;
  background: #fff;
  padding: 14px 18px;
  line-height: 1.6;
}
.result-section {
  margin-top: 14px;
}
.projection-section {
  border-top: 5px solid var(--cyan);
}
.projection-range {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.projection-range article {
  border-radius: 22px;
  background: linear-gradient(135deg, #04345a, #0a4f7d);
  color: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}
.projection-range span,
.projection-range small {
  display: block;
  color: #cfe6f4;
  font-weight: 700;
}
.projection-range strong {
  display: block;
  margin: 7px 0;
  color: var(--yellow);
  font-size: 30px;
  font-weight: 1000;
  line-height: 1.1;
}
.projection-badge {
  display: inline-block;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
}
.projection-assumptions {
  border: 1px solid #e4f0f8;
  border-left: 4px solid var(--cyan);
  border-radius: 14px;
  background: #f7fbfe;
  padding: 14px 16px;
  margin: 12px 0;
}
.projection-assumptions ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.projection-assumptions li {
  margin: 4px 0;
}
.projection-warning,
.projection-unavailable {
  border-left: 4px solid var(--yellow);
  border-radius: 14px;
  background: #fffbe2;
  padding: 14px 16px;
  margin: 12px 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 850;
}
.chip.warning {
  border-color: #f4c9bd;
  background: #fff1ed;
}
.issue-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.issue {
  border: 1px solid #e4f0f8;
  border-left: 4px solid var(--muted);
  border-radius: 16px;
  background: #f7fbfe;
  padding: 14px 16px;
}
.issue.warning {
  border-left-color: var(--warning);
}
.issue.blocking {
  border-left-color: var(--danger);
}
.issue div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.issue div span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.issue p {
  margin: 7px 0 0;
}
.issue small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.technical-details > summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 950;
}
.technical-details[open] > summary {
  margin-bottom: 22px;
}
.technical-info {
  margin-top: 18px;
  border-top: 1px solid #e7f0f6;
  padding-top: 14px;
}
.technical-info > summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}
.info-summary {
  margin-top: 10px;
  border: 1px solid #e4f0f8;
  border-radius: 14px;
  background: #f7fbfe;
  padding: 12px 14px;
}
.info-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.info-summary span {
  min-width: 28px;
  border-radius: 999px;
  background: var(--yellow);
  color: #17324b;
  font-weight: 900;
  padding: 2px 9px;
  text-align: center;
}
.info-summary p {
  margin: 6px 0 0;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  border-bottom: 1px solid #e7f0f6;
  padding: 11px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scheme-period {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  border-bottom: 1px solid #e7f0f6;
  padding: 12px 0;
}
pre {
  max-height: 520px;
  overflow: auto;
  margin: 24px 0 0;
  border-radius: 14px;
  background: var(--navy);
  color: #d5ecf8;
  padding: 20px;
  font-size: 13px;
  line-height: 1.55;
}

/* Invio facoltativo all'archivio. */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  line-height: 1.6;
}
.consent-row input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--blue);
}
.receipt {
  overflow-wrap: anywhere;
  font-size: 14px;
}

/* Avvertenze in fondo. */
.notice {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  margin-top: 16px;
  border: 1px solid #e4f0f8;
  border-radius: 18px;
  background: #fff;
  padding: 18px 20px;
  color: var(--muted);
}
.notice strong {
  color: var(--navy);
}

/* Guida XML INPS. */
.guide-steps ol {
  display: grid;
  gap: 12px;
  padding-left: 24px;
}
.guide-steps a {
  color: var(--blue);
  font-weight: 800;
}
.guide-steps ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

/* Guida: un passaggio per schermata. */
.guide-flow {
  display: grid;
  gap: 26px;
  padding-left: 24px;
}
.guide-flow p {
  margin: 0 0 10px;
}
.guide-flow img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 8px;
  border: 1px solid #e7f0f6;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Come scaricare l'XML, nel riquadro di caricamento. */
.xml-help {
  margin-top: 14px;
  border-left: 4px solid var(--yellow);
  border-radius: 12px;
  padding: 14px 18px;
  background: #f6fafc;
}
.xml-help-title {
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 800;
}
.xml-help ol {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding-left: 20px;
}
.xml-help a {
  color: var(--blue);
  font-weight: 800;
}
.guide-gallery {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.guide-gallery figure {
  margin: 0;
  border: 1px solid #e7f0f6;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.guide-gallery img {
  display: block;
  width: 100%;
  height: auto;
}
.guide-gallery figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav {
    min-height: 0;
    padding: 12px 0;
  }
  .navlinks .btn-soft {
    display: none;
  }
  .brand-national img {
    height: 66px;
    max-width: 285px;
  }
  .brand-national .brand-copy {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  main,
  .guide-shell {
    width: min(100% - 26px, 1140px);
    padding-top: 22px;
  }
  .wrap {
    width: min(100% - 26px, 1140px);
  }
  .hero,
  .card {
    border-radius: 24px;
    padding: 24px;
  }
  .import-card,
  .projection-range,
  .scheme-period,
  .notice {
    grid-template-columns: 1fr;
  }
  .status {
    grid-column: 1;
  }
  .scheme-period,
  .notice {
    gap: 4px;
  }
  .result-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .upload,
  .actions .primary,
  .actions .secondary {
    width: 100%;
  }
}
@media (max-width: 520px) {
  .navlinks .btn-blue {
    display: none;
  }
  .brand-national img {
    height: 54px;
    max-width: 220px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metrics .metric-wide {
    grid-column: auto;
  }
}

/* Strade di uscita (0.5.0) */
.exits-section {
  border-top: 5px solid var(--yellow);
}
.exit-channel {
  border: 1px solid var(--soft-line);
  border-left: 5px solid var(--cyan);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  margin: 12px 0;
}
.exit-channel.unavailable {
  border-left-color: var(--soft-line);
  background: var(--soft);
}
.exit-channel > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.exit-channel p {
  margin: 6px 0;
}
.exit-channel ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
.exit-first {
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
}
.exit-amount {
  color: var(--navy);
  font-size: 22px;
  font-weight: 1000;
}
.exit-amount small {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  opacity: 0.75;
}
.exit-form {
  border: 1px solid #e4f0f8;
  border-radius: 16px;
  background: #f7fbfe;
  padding: 16px;
  margin: 18px 0 12px;
}
.exit-form h3 {
  margin: 0 0 6px;
}
.exit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.exit-fields label span {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}
.exit-fields input,
.exit-fields select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}
.exit-summary {
  border-left: 4px solid var(--yellow);
  border-radius: 12px;
  background: #fffbe2;
  padding: 12px 14px;
}
.exit-table th,
.exit-table td {
  vertical-align: top;
}
@media (max-width: 700px) {
  .exit-fields {
    grid-template-columns: 1fr;
  }
}

/* 0.7.0: composizione della pensione per gestione */
.projection-breakdown { margin-top: 18px; }
.breakdown-table th { font-weight: 500; text-align: left; text-transform: none; letter-spacing: normal; font-size: 14px; color: var(--ink); }
.breakdown-table td { text-align: right; white-space: nowrap; font-weight: 700; }
/* 0.30.0: le quote gestione per gestione */
.quota-table thead th { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.quota-table td { text-align: left; white-space: normal; font-weight: 400; }
.quota-table td:nth-child(3) { white-space: nowrap; }
.quota-table td:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.quota-table thead th:last-child { text-align: right; }
@media (max-width: 640px) {
  .quota-details .table-wrap { overflow: visible; }
  .quota-table, .quota-table tbody, .quota-table tr, .quota-table th, .quota-table td { display: block; width: auto; }
  .quota-table thead { display: none; }
  .quota-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .quota-table tbody th { padding: 0 0 6px; border: 0; font-weight: 700; }
  .quota-table td, .quota-table td:nth-child(3), .quota-table td:last-child { display: flex; gap: 12px; justify-content: space-between; padding: 3px 0; border: 0; text-align: right; white-space: normal; }
  .quota-table td::before { content: attr(data-label); flex: 0 0 38%; color: var(--muted); font-size: 13px; font-weight: 400; text-align: left; }
}

/* 0.7.0: avviso «non è una certificazione» in massima evidenza */
.certification-alert {
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 3px solid var(--danger);
  border-left-width: 12px;
  border-radius: 14px;
  background: #fff1ee;
  color: var(--ink);
}
.certification-alert strong {
  display: block;
  color: var(--danger);
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.certification-alert p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; }
.certification-alert.compact { padding: 12px 16px; border-width: 2px; border-left-width: 8px; }
.certification-alert.compact strong { font-size: 16px; }

/* 0.9.0: avviso della fase di test, prima della scelta del file */
.storage-notice {
  margin: 14px 0;
  padding: 14px 18px;
  border: 2px solid var(--warning);
  border-left-width: 10px;
  border-radius: 14px;
  background: #fff8e1;
  color: var(--ink);
}
.storage-notice strong { display: block; font-size: 16px; font-weight: 900; color: #7a5200; }
.storage-notice p { margin: 6px 0 0; line-height: 1.5; }

/* 0.9.0: netto con le aliquote di oggi */
.exit-net { margin: 4px 0 0; font-weight: 700; }
.exit-net small { font-weight: 500; color: var(--muted); }

/* Con il netto le schede sono quattro: due per riga, una su telefono. */
.projection-range:has(.net-article) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .projection-range:has(.net-article) { grid-template-columns: 1fr; }
}

/* Due cifre affiancate: proiezione e pensione maturata; la principale ha il bordo giallo. */
.two-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}
.figure-card {
  border-radius: 22px;
  background: linear-gradient(135deg, #04345a, #0a4f7d);
  color: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 3px solid transparent;
}
.figure-card.figure-main { border-color: var(--yellow); }
.figure-card span,
.figure-card small { display: block; color: #cfe6f4; font-weight: 700; }
.figure-card .figure-kicker {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.figure-card strong {
  display: block;
  margin: 7px 0;
  color: var(--yellow);
  font-size: 30px;
  font-weight: 1000;
  line-height: 1.1;
}
.figure-card .figure-net-label { margin-top: 14px; }
.figure-card strong.figure-net { font-size: 24px; color: #fff; }
.figure-card:not(.figure-main) strong { font-size: 24px; }
.figure-card:not(.figure-main) strong.figure-net { font-size: 20px; }
.figure-warning {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(242, 208, 20, 0.16);
  color: #fff;
  font-weight: 700;
  line-height: 1.45;
}
.projection-range.two-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .two-figures,
  .projection-range.two-cards { grid-template-columns: 1fr; }
}

/* Documenti obbligatori della stessa pratica. */
.import-card { grid-template-columns: 1fr; }
.document-uploads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.document-choice { padding: 20px; border: 1px solid var(--soft-line); border-radius: 16px; background: var(--soft); min-width: 0; }
.document-choice h3 { margin-top: 0; }
.document-choice p { overflow-wrap: anywhere; }
.document-choice .upload { white-space: normal; text-align: center; }
.document-actions { margin-top: 0; }
@media (max-width: 680px) { .document-uploads { grid-template-columns: 1fr; } }

.current-montante-section { border-top: 5px solid var(--cyan); }
.current-capital { padding: 22px; margin: 18px 0; border-radius: 16px; background: var(--navy); color: white; }
.current-capital span { display: block; font-weight: 750; }
.current-capital strong { display: block; margin-top: 8px; font-size: clamp(26px, 5vw, 38px); color: var(--yellow); overflow-wrap: anywhere; }
.current-capital-unavailable { border-left: 4px solid var(--yellow); padding: 12px; background: var(--soft); }

/* Consenso facoltativo al campione anonimo, sotto «Avvia il check-up» (0.18.0). */
.sample-consent {
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.sample-consent .consent-row { margin-top: 12px; }
.sample-consent .small-note { margin: 6px 0 0 32px; }

/* 0.20.0: importo annuo accanto a quello mensile e nota di prudenza. */
.figure-card .amount-annual,
.projection-range .amount-annual { display: block; margin: 0 0 8px; color: #fff; font-size: 18px; font-weight: 900; }
.figure-card:not(.figure-main) .amount-annual { font-size: 16px; }
.exit-annual { display: block; margin-top: 2px; color: var(--navy); font-size: 17px; font-weight: 900; }
.prudent-note { font-weight: 700; }

/* 0.21.0: misto Fondo Poste senza F.Q.1, prima il dato del cedolino e poi le cifre. */
.projection-warning.fq1-gate { border-left-color: var(--blue); background: #eef5ff; }
.projection-warning.fq1-gate strong { font-size: 18px; color: var(--navy); }
.missing-retributive { margin: 12px 0; padding: 10px 12px; border-left: 4px solid var(--yellow); border-radius: 12px; background: #fffbe2; color: var(--navy); font-weight: 800; line-height: 1.45; }
.exit-pending { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #fffbe2; color: var(--navy); font-weight: 800; }

/* 0.22.0: dallo stipendio alla pensione. Barre piatte con i colori del sito, riquadri arrotondati sotto. */
.salary-chart-svg { display: block; width: 100%; max-width: 640px; height: auto; margin: 10px auto 4px; }
.salary-chart-axis { stroke: var(--line); stroke-width: 2; }
.salary-chart-reference { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; }
.salary-bar-salary { fill: var(--navy); }
.salary-bar-pension { fill: var(--cyan); }
.salary-chart-value { fill: var(--navy); font-size: 19px; font-weight: 800; }
.salary-chart-label { fill: var(--ink); font-size: 15px; font-weight: 700; }
.salary-chart-sub { fill: var(--muted); font-size: 12.5px; }
.salary-chart-badge { fill: var(--navy); }
.salary-chart-badge-text { fill: #fff; font-size: 16px; font-weight: 800; }
.salary-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 10px; }
.salary-boxes article { padding: 16px 18px; border: 1px solid var(--soft-line); border-radius: 18px; background: var(--soft); }
.salary-boxes span,
.salary-boxes small { display: block; color: var(--muted); font-weight: 700; }
.salary-boxes span { font-size: 13px; }
.salary-boxes small { margin-top: 4px; font-size: 12px; font-weight: 500; }
.salary-boxes strong { display: block; margin-top: 4px; color: var(--navy); font-size: 26px; line-height: 1.2; }
@media (max-width: 760px) {
  .salary-boxes { grid-template-columns: 1fr; }
}
/* Sul telefono il disegno si rimpicciolisce: testi più grandi in unità del disegno, entro le colonne. */
@media (max-width: 520px) {
  .salary-chart-value { font-size: 24px; }
  .salary-chart-label { font-size: 18px; }
  .salary-chart-sub { font-size: 14px; }
  .salary-chart-badge-text { font-size: 19px; }
}

/* 0.23.0: consulenza facoltativa in fondo al risultato. */
.consultation-list { margin: 12px 0 16px; padding-left: 22px; }
.consultation-list li { margin: 6px 0; line-height: 1.5; }
.consultation-panel a { font-weight: 800; }
.consultation-note { border: 1px solid #cfe6f4; border-left: 5px solid #38b6e0; border-radius: 14px; background: #edf7fd; padding: 14px 18px; }
.consultation-note strong { color: #052d46; }
.consultation-note p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; }

/* 0.24.0: netto dello stipendio, due domande e quattro riquadri. */
.salary-options { margin: 14px 0 4px; }
.salary-options .consent-row { margin: 6px 0; }
.salary-boxes.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .salary-boxes.four { grid-template-columns: 1fr; } }

/* 0.27.0: righe stimate della cronologia contributiva (periodo fino alla pensione). */
.estimated-row td { font-style: italic; }

/* 0.28.0: «Dopo l'uscita» (anche Fondo di solidarietà Poste) occupa tutta la riga del modulo di uscita */
.exit-fields label:nth-child(3) { grid-column: 1 / -1; }
/* 0.34.0 (Sergio): differenza in euro sotto la percentuale, nel grafico e nei riquadri; totali della tabella delle quote. */
.salary-chart-badge-sub { fill: #fff; font-size: 13px; font-weight: 700; }
.salary-boxes .salary-delta { display: block; margin-top: 2px; color: var(--navy); font-size: 16px; font-weight: 800; }
.quota-totals .quota-total th, .quota-totals .quota-total td { font-weight: 800; }
