:root {
  --ink: #111827;
  --muted: #5b6475;
  --soft: #f6f7fb;
  --line: #e5e7ef;
  --border: #e5e7ef;
  --navy: #1f2a63;
  --red: #d7382d;
  --gold: #c6a552;
  --white: #fff;
  --shadow: 0 24px 70px rgba(17, 24, 39, .10);
  --shadow-soft: 0 24px 70px rgba(17, 24, 39, .10);
  --radius: 26px;
  --container: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--soft); line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 999; padding: .75rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; transition: top .2s ease; }
.skip-link:focus { top: 1rem; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 820px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.91); border-bottom: 1px solid rgba(229,231,239,.9); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: max-content; }
.brand img { width: 196px; height: 45px; object-fit: contain; display: block; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: .92rem; color: #283247; white-space: nowrap; }
.main-nav a { padding: 9px 11px; border-radius: 999px; }
.main-nav a:hover, .main-nav a:focus-visible { background: #eef1f7; outline: none; }
.main-nav a[aria-current="page"] { color: var(--navy); background: #eef1f7; font-weight: 750; }
.menu-toggle { display: none; border: 0; background: var(--navy); width: 44px; height: 44px; border-radius: 14px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 99px; }
.hero { position: relative; overflow: hidden; min-height: calc(100vh - 74px); display: grid; align-items: center; padding: 82px 0; background: radial-gradient(circle at 8% 16%, rgba(31,42,99,.14), transparent 30%), radial-gradient(circle at 88% 18%, rgba(215,56,45,.10), transparent 28%), linear-gradient(135deg, #fff 0%, #f6f7fb 58%, #edf1f8 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 8px; background: linear-gradient(90deg, var(--navy) 0 33%, #fff 33% 66%, var(--red) 66% 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr); gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: #a92822; font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(3rem, 6.2vw, 6.2rem); line-height: .94; letter-spacing: -.075em; }
h2 { margin-bottom: 15px; font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1.04; letter-spacing: -.055em; }
h3 { margin-bottom: 9px; font-size: 1.12rem; line-height: 1.25; letter-spacing: -.025em; }
p { color: var(--muted); }
.lead, .hero-text { color: #3e485a; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--navy); color: #fff; box-shadow: 0 16px 34px rgba(31,42,99,.22); }
.button.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.hero-card, .card, .contact-card, .score-panel, .notice, .table-card { border: 1px solid rgba(229,231,239,.95); border-radius: var(--radius); background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.hero-card { padding: 30px; backdrop-filter: blur(16px); }
.hero-logo { width: min(360px, 100%); margin: 0 0 24px; object-fit: contain; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.stat-grid div { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.stat-grid strong { display: block; color: var(--navy); font-size: 1.45rem; line-height: 1; }
.stat-grid span { color: var(--muted); font-size: .88rem; }
.section { padding: 88px 0; }
.page-hero { padding: 86px 0 56px; background: linear-gradient(135deg, #fff, #eef1f8); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 30px; }
.card-grid { display: grid; gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card, .contact-card { padding: 26px; }
.card a { color: var(--navy); font-weight: 800; }
.table-card { overflow-x: auto; padding: 10px; }
.table-card.wide { margin-bottom: 28px; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
caption { text-align: left; padding: 14px 16px; color: var(--navy); font-weight: 850; font-size: 1.08rem; }
th, td { padding: 15px 16px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: #f3f5fa; color: #283247; font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; }
tbody th { color: var(--navy); }
.score-panel { margin-top: 28px; padding: 28px; }
.score-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.score-grid div { padding: 18px; border-radius: 18px; background: #f7f8fc; border: 1px solid var(--line); }
.score-grid strong, .score-grid span { display: block; }
.score-grid span { color: var(--red); font-weight: 850; }
.check-list { margin: 0; padding-left: 1.15rem; color: var(--muted); }
.check-list li { margin: .35rem 0; }
.check-list.compact { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-left: 1rem; }
.check-list.columns { columns: 2; }
.top-gap { margin-top: 28px; }
.price-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
.price-card { padding: 28px 18px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(17,24,39,.07); text-align: center; }
.price-card span { display: block; color: var(--navy); font-weight: 850; font-size: 1.4rem; }
.price-card strong { display: block; margin-top: 8px; font-size: 2rem; letter-spacing: -.04em; }
.notice { margin-top: 24px; padding: 22px 24px; color: #3e485a; }
.table-tools { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.table-tools label { font-weight: 800; }
.table-tools input { width: min(360px, 100%); border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; background: #fff; }

.section-heading { max-width: 860px; margin-bottom: 34px; }
.section-heading .lead { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button-primary { background: var(--navy); color: #fff; box-shadow: 0 16px 34px rgba(31,42,99,.22); }
.button-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.locations-page { background: radial-gradient(circle at 7% 7%, rgba(31,42,99,.08), transparent 28%), var(--soft); }
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 28px;
  border-bottom: 1px solid var(--border);
}
.panel-header h2 { margin-bottom: 10px; }
.panel-header p { margin-bottom: 0; max-width: 680px; }
.search-label { display: block; flex: 0 0 min(340px, 100%); }
.search-label input {
  width: min(340px, 100%);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.locations-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.locations-table th {
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f4f6fb;
  padding: 18px 20px;
}
.locations-table td {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.locations-table td:first-child {
  font-weight: 800;
  color: var(--ink);
}
.no-results {
  padding: 20px 28px 28px;
  color: var(--muted);
}
.legal-office-card strong { color: var(--ink); }
.legal-office-card a { color: var(--navy); font-weight: 800; }
.steps { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 18px; padding: 22px; border-radius: 24px; border: 1px solid var(--line); background: #fff; }
.step span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: var(--navy); color: #fff; font-weight: 900; }
.form-wrap { max-width: 860px; }
.mail-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.mail-form label { display: grid; gap: 7px; color: #283247; font-weight: 750; }
.mail-form .full { grid-column: 1 / -1; }
.mail-form input, .mail-form select, .mail-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: #fbfcff; color: var(--ink); }
.prose { color: var(--muted); }
.site-footer { background: #0f172a; color: #fff; padding: 54px 0 24px; }
.site-footer p, .site-footer address { color: #cbd5e1; font-style: normal; }
.footer-grid { display: grid; grid-template-columns: minmax(280px, 1fr) 1.3fr; gap: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 850; }
.footer-brand img { width: 196px; height: 45px; object-fit: contain; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 20px; }
.footer-links a { color: #e2e8f0; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #cbd5e1; }
@media (max-width: 1060px) {
  .main-nav { position: fixed; inset: 74px 16px auto; display: none; flex-direction: column; align-items: stretch; padding: 16px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); white-space: normal; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 15px; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .card-grid.three, .price-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .score-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .panel-header {
    display: block;
  }

  .search-label input {
    width: 100%;
    margin-top: 18px;
  }

  .locations-table {
    min-width: 0;
  }

  .locations-table thead {
    display: none;
  }

  .locations-table,
  .locations-table tbody,
  .locations-table tr,
  .locations-table td {
    display: block;
    width: 100%;
  }

  .locations-table tr {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
  }

  .locations-table tbody tr:first-child {
    border-top: 0;
  }

  .locations-table td {
    border-top: 0;
    padding: 4px 0;
  }

  .locations-table td::before {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 2px;
  }

  .locations-table td:nth-child(1)::before { content: "Città"; }
  .locations-table td:nth-child(2)::before { content: "Regione"; }
  .locations-table td:nth-child(3)::before { content: "Indirizzo"; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--container)); }
  .hero, .section { padding: 58px 0; }
  .page-hero { padding: 58px 0 42px; }
  h1 { font-size: clamp(2.45rem, 16vw, 4.2rem); }
  .card-grid.two, .card-grid.three, .price-grid, .footer-grid, .mail-form, .score-grid { grid-template-columns: 1fr; }
  .check-list.columns { columns: 1; }
  .table-tools { display: grid; align-items: start; }
  .footer-links { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
}

.section-soft { background: #f0f3f9; }
.test-centre-hero { background: radial-gradient(circle at 12% 18%, rgba(31,42,99,.12), transparent 30%), radial-gradient(circle at 86% 10%, rgba(215,56,45,.09), transparent 26%), linear-gradient(135deg, #fff 0%, #f4f6fb 58%, #e9edf6 100%); }
.hero-note { margin: 18px 0 0; max-width: 760px; color: #3e485a; font-size: .98rem; }
.download-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .34fr); gap: 34px; align-items: center; padding: clamp(26px, 4vw, 44px); border: 1px solid rgba(31,42,99,.12); border-radius: 32px; background: linear-gradient(135deg, #fff 0%, #fff 62%, #f6f8fc 100%); box-shadow: var(--shadow); }
.download-card p { max-width: 780px; }
.document-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 26px 0 0; }
.document-meta div { padding: 15px 16px; border: 1px solid var(--line); border-radius: 18px; background: #f8f9fd; }
.document-meta dt { color: var(--muted); font-size: .76rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.document-meta dd { margin: 4px 0 0; color: var(--ink); font-weight: 800; }
.download-actions { display: grid; gap: 12px; align-content: center; }
.process-steps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.step-card { position: relative; display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 16px 42px rgba(17,24,39,.07); }
.step-card span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 20px; background: var(--navy); color: #fff; font-size: 1.15rem; font-weight: 900; }
.step-card p { margin-bottom: 0; }
.requirements-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.requirements-grid .card { box-shadow: 0 14px 36px rgba(17,24,39,.07); }
.requirements-grid .card p { margin-bottom: 0; }
.requirements-grid-large { grid-template-columns: repeat(3, minmax(0,1fr)); }
.feature-card { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; border-top: 5px solid var(--navy); }
.document-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 18px; margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); list-style: none; }
.document-list li { position: relative; padding-left: 28px; color: #3e485a; }
.document-list li::before { content: ""; position: absolute; left: 0; top: .58em; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(215,56,45,.10); }
.faq-list { display: grid; gap: 14px; }
.faq-list details { border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 14px 34px rgba(17,24,39,.06); overflow: hidden; }
.faq-list summary { cursor: pointer; padding: 20px 24px; color: var(--ink); font-weight: 850; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--navy); font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 24px 22px; }
.final-cta { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.38fr); gap: 30px; align-items: stretch; padding: clamp(28px, 5vw, 48px); border-radius: 34px; background: linear-gradient(135deg, var(--navy), #2c3b86); color: #fff; box-shadow: var(--shadow); }
.final-cta h2, .final-cta p, .final-cta .eyebrow { color: #fff; }
.final-cta p { max-width: 720px; color: rgba(255,255,255,.86); }
.final-cta .button-secondary { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.contact-box { padding: 24px; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.88); font-style: normal; }
.contact-box strong { color: #fff; font-size: 1.18rem; }
.contact-box a { color: #fff; font-weight: 800; }

@media (max-width: 1060px) {
  .download-card, .final-cta { grid-template-columns: 1fr; }
  .process-steps, .requirements-grid, .requirements-grid-large { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .download-card, .final-cta { border-radius: 26px; }
  .document-meta, .process-steps, .requirements-grid, .requirements-grid-large, .document-list { grid-template-columns: 1fr; }
  .step-card { grid-template-columns: 1fr; }
  .document-list { padding: 22px; }
}
