body {
  margin: 0;
}
.page {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #13254d;
  background: #f9fafc;
  --deep: #2448a5;
  --aqua: #73dcea;
  --ink: #13254d;
  --muted: #465778;
  --mist: #eaf1fd;
  --line: #d4dff1;
  line-height: 1.6;
  font-size: 17px;
}
.page * {
  box-sizing: border-box;
}
h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  margin: 0;
  line-height: 1.15;
  color: inherit;
}
p {
  margin: 0;
}
a {
  color: var(--deep);
  text-decoration: none;
}
a:hover {
  color: #13254d;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 0;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 6px;
}
nav a {
  padding: 8px 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink);
}
nav a:hover {
  background: var(--mist);
}
nav a.cta {
  background: var(--deep);
  color: #fff;
}
nav a.cta:hover {
  background: var(--ink);
}
nav a.blog {
  border: 1.5px solid var(--deep);
  color: var(--deep);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  background: var(--deep);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.btn:hover {
  background: var(--ink);
  color: #fff;
}
.btn.alt {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid var(--deep);
}
.btn.alt:hover {
  background: var(--mist);
  color: var(--ink);
}
.btn.w {
  background: #fff;
  color: #13254d;
}
.btn.w:hover {
  background: var(--mist);
  color: #13254d;
}
.eyebrow {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--deep);
}
.ph {
  background: linear-gradient(100deg, #2448a5 0%, #2448a5 70%, #126a87 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.ph .wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ph h1 {
  font-size: clamp(38px, 5vw, 58px);
}
.ph p {
  color: #f4f8ff;
  max-width: 680px;
  font-size: 19px;
}
.crumb {
  font-size: 14px;
  color: #f4f8ff;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.g2 {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card.top::before {
  content: "";
  width: 48px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(100deg, #2448a5, #126a87);
}
.card h3 {
  font-size: 23px;
}
.card p,
.post p,
.muted {
  color: var(--muted);
}
.sec {
  padding: 80px 0;
}
.sh {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.sh h2,
.two h2 {
  font-size: clamp(30px, 4vw, 42px);
}
.sh p {
  color: var(--muted);
}
.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dk {
  background: var(--deep);
  color: #fff;
}
.dk .eyebrow {
  color: var(--aqua);
}
.dk p {
  color: #f4f8ff;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step h3 {
  font-size: 24px;
}
.num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--aqua);
  color: #13254d;
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-size: 22px;
}
.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list li {
  padding-left: 28px;
  position: relative;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--aqua);
}
.img {
  min-height: 380px;
  border-radius: 32px;
  background: linear-gradient(200deg, var(--mist), var(--aqua) 60%, #126a87);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 500;
}
.rows div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.rows strong {
  font-weight: 700;
}
.rows span {
  color: var(--muted);
}
.faq div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.faq h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.note {
  background: var(--mist);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post .b {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post .t {
  height: 130px;
  background: linear-gradient(100deg, #2448a5, #238fb1, #126a87);
}
.post h3 {
  font-size: 22px;
}
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--mist);
  color: #234b82;
  font-size: 13px;
  font-weight: 700;
  align-self: flex-start;
}
.small {
  font-size: 14px;
  color: var(--muted);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--ink);
}
.pill.on {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-weight: 700;
  font-size: 15px;
}
.inp {
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  width: 100%;
}
.art {
  max-width: 740px;
  margin: 0 auto;
}
.art p {
  margin: 0 0 22px;
  font-size: 19px;
  line-height: 1.75;
}
.art h2 {
  font-size: 30px;
  margin: 44px 0 16px;
}
.quote {
  background: var(--mist);
  border-radius: 24px;
  padding: 28px 32px;
  margin: 32px 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  line-height: 1.35;
}
.ctabox {
  background: linear-gradient(135deg, #2448a5 0%, #2448a5 55%, #126a87 100%);
  border-radius: 40px;
  padding: clamp(32px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.ctabox p {
  color: #fff;
}
.fc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fc strong {
  color: #fff;
  margin-bottom: 4px;
}
footer a {
  color: #d4e1fa;
}
footer a:hover {
  color: #fff;
}
@media (max-width: 700px) {
  .ph,
  .ctabox {
    background: #2448a5;
  }
  .g2 {
    grid-template-columns: 1fr;
  }
}

/* --- Home page --- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
  padding: 40px 0 80px;
}
.chip {
  background: #fff;
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
}
.chip span {
  font-size: 15px;
  color: var(--muted);
}
.home .post div {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home .post h3 {
  font-size: 23px;
}
/* --- Voce di menù attiva --- */
nav a[aria-current] {
  background: var(--mist);
}
nav a.cta[aria-current] {
  background: var(--ink);
  color: #fff;
}
nav a.blog[aria-current] {
  background: var(--mist);
}

/* Responsive and accessibility refinements: original visual identity retained. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
[hidden] {
  display: none !important;
}
body {
  background: #f9fafc;
}
.page {
  min-height: 100vh;
  --deep: #2448a5;
}
.wrap {
  width: 100%;
}
.brand {
  display: block;
  flex-shrink: 0;
  max-width: 100%;
}
.brand img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
header .bar {
  gap: 16px;
  align-items: center;
}
header nav {
  flex: 1;
}
header nav a {
  padding: 8px 11px;
  font-size: 15px;
}
nav.crumb {
  justify-content: flex-start;
  gap: 10px;
}
.crumb a {
  color: inherit;
  text-decoration: underline;
  padding: 0;
  min-height: 44px;
}
.hero-copy {
  gap: 22px;
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
}
.hero-copy > p {
  color: var(--muted);
  font-size: 18px;
}
.hero-visual {
  margin: 0;
  min-width: 0;
}
.hero-arch {
  height: clamp(300px, 37vw, 460px);
  border-radius: 240px 240px 36px 36px;
  background: linear-gradient(160deg, var(--aqua), #126a87 45%, #2448a5);
  overflow: hidden;
}
.hero-caption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.credentials {
  background: var(--mist);
  padding: 40px 0;
}
.credentials .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.intro {
  max-width: 760px;
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}
.reading {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.reading .btn {
  align-self: flex-start;
}
.grid > * {
  min-width: 0;
}
.card {
  height: 100%;
}
.card p,
.step p,
.reading p,
.intro p {
  hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
  overflow-wrap: break-word;
}
.card h3 {
  min-height: 2.3em;
}
.card .text-link {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
}
.card-subtitle {
  font-weight: 700;
  color: var(--ink) !important;
}
.statement {
  font-family: "Fraunces", Georgia, serif;
  font-size: 25px;
  line-height: 1.45;
  margin: 32px 0;
}
.dk .statement {
  max-width: 850px;
}
.dk .btn {
  margin-top: 8px;
}
.ctabox .col {
  max-width: 650px;
}
.ctabox h2 {
  font-size: clamp(30px, 4vw, 42px);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.faq details {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-family: "Fraunces", Georgia, serif;
  font-size: 23px;
  line-height: 1.4;
  min-height: 44px;
  padding: 5px 8px;
}
.faq details > div {
  padding: 16px 8px 0;
  display: grid;
  gap: 14px;
}
.faq details > div p {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
.field {
  margin-bottom: 18px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  font-weight: 700;
  margin-bottom: 18px;
}
fieldset[disabled] .inp {
  background: #f1f4fb;
  color: #52617e;
}
button:disabled {
  background: #52617e;
  cursor: not-allowed;
}
.pending {
  font-size: 14px;
  margin-top: 10px;
}
footer {
  background: var(--ink);
  color: #d4e1fa;
  border-top: 6px solid #238fb1;
  padding: 64px 0 40px;
}
.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-bottom {
  border-top: 1px solid #50678f;
  margin-top: 40px;
  padding-top: 24px;
  font-size: 14px;
  display: grid;
  gap: 12px;
}
:focus-visible {
  outline: 3px solid #13254d;
  outline-offset: 5px;
  border-radius: 5px;
}
.dk :focus-visible,
footer :focus-visible,
.ph :focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 7px #13254d;
}
.skip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: #fff;
  color: #13254d;
  padding: 14px 20px;
  border-radius: 12px;
  transform: translateY(-200%);
}
.skip:focus {
  transform: translateY(0);
}
.menu-toggle {
  gap: 12px;
  min-height: 44px;
  padding: 8px 20px;
}
@media (max-width: 1100px) {
  header .bar {
    flex-wrap: wrap;
  }
  header nav {
    justify-content: flex-start;
    flex-basis: 100%;
  }
  .hero {
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  header .bar {
    justify-content: space-between;
  }
  header nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
  header nav a {
    justify-content: center;
  }
  .credentials .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand img {
    height: 64px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }
  .hero h1 {
    max-width: 720px;
  }
  .two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .sec {
    padding-top: 52px;
    padding-bottom: 52px;
  }
  .hero {
    padding-top: 26px;
    padding-bottom: 52px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .grid,
  .g2 {
    grid-template-columns: 1fr;
  }
  .credentials .grid {
    grid-template-columns: 1fr 1fr;
  }
  .chip {
    padding: 16px;
  }
  .chip strong {
    font-size: 16px;
  }
  .chip span {
    font-size: 14px;
  }
  .card {
    padding: 24px;
  }
  .card h3 {
    min-height: 0;
  }
  .card p,
  .step p,
  .reading p,
  .intro p {
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .ph {
    padding: 34px 0 44px;
  }
  .ph h1 {
    font-size: 36px;
    overflow-wrap: break-word;
  }
  .ph p {
    font-size: 18px;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .actions .btn {
    padding: 12px 20px;
  }
  .sh {
    margin-bottom: 28px;
  }
  .btn {
    white-space: normal;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .ctabox {
    border-radius: 28px;
  }
  header .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand {
    max-width: calc(100% - 100px);
  }
  .brand img {
    height: auto;
    max-height: 64px;
    width: 100%;
    object-position: left;
  }
  .menu-toggle {
    padding: 8px 13px;
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  header nav,
  .menu-toggle,
  .skip,
  .actions {
    display: none !important;
  }
  .sec {
    padding: 20px 0;
  }
  .page {
    background: white;
    color: black;
  }
  .dk,
  .ph,
  footer {
    background: white;
    color: black;
  }
  .dk p,
  .ph p {
    color: black;
  }
  .grid {
    display: block;
  }
  .card {
    break-inside: avoid;
    margin: 15px 0;
  }
  .hero-visual {
    display: none;
  }
  .wrap {
    max-width: none;
  }
}

/* Theme control and full-site dark palette. */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.theme-toggle {
  gap: 9px;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 15px;
  white-space: nowrap;
}
.theme-icon {
  font-size: 21px;
  line-height: 1;
}
html {
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
  background: #101a30;
}
html[data-theme="dark"] body {
  background: #101a30;
}
html[data-theme="dark"] .page {
  background: #101a30;
  color: #eaf1ff;
  --ink: #eaf1ff;
  --deep: #82d8f3;
  --aqua: #82d8f3;
  --muted: #bccbe5;
  --mist: #202f4b;
  --line: #415578;
}
html[data-theme="dark"] header {
  background: #14213b;
}
html[data-theme="dark"] .brand {
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
}
html[data-theme="dark"] .band,
html[data-theme="dark"] .card,
html[data-theme="dark"] .post,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .pill {
  background: #192740;
}
html[data-theme="dark"] .credentials,
html[data-theme="dark"] .note {
  background: #202f4b;
}
html[data-theme="dark"] .ph,
html[data-theme="dark"] .dk {
  background: #1b3265;
  color: #f1f6ff;
}
html[data-theme="dark"] .ph p,
html[data-theme="dark"] .dk p,
html[data-theme="dark"] .crumb {
  color: #dce8ff;
}
html[data-theme="dark"] .ctabox {
  background: linear-gradient(135deg, #1b3265, #1b486c);
  color: #f1f6ff;
}
html[data-theme="dark"] .ctabox p {
  color: #f1f6ff;
}
html[data-theme="dark"] .btn,
html[data-theme="dark"] nav a.cta {
  background: #82d8f3;
  color: #10223e;
}
html[data-theme="dark"] .btn:hover,
html[data-theme="dark"] nav a.cta:hover {
  background: #b4eafa;
  color: #10223e;
}
html[data-theme="dark"] .btn.alt {
  background: transparent;
  color: #a6e5fb;
  border-color: #70bcd9;
}
html[data-theme="dark"] .btn.alt:hover {
  background: #283d62;
  color: #eaf1ff;
}
html[data-theme="dark"] .btn.w {
  background: #eaf1ff;
  color: #10223e;
}
html[data-theme="dark"] nav a[aria-current] {
  background: #294366;
}
html[data-theme="dark"] nav a.cta[aria-current] {
  background: #b4eafa;
  color: #10223e;
}
html[data-theme="dark"] a:hover {
  color: #c3edff;
}
html[data-theme="dark"] .tag {
  color: #c8ebff;
  background: #294366;
}
html[data-theme="dark"] .num {
  color: #10223e;
}
html[data-theme="dark"] .inp {
  background: #111e36;
  color: #eaf1ff;
  border-color: #607ba4;
}
html[data-theme="dark"] fieldset[disabled] .inp {
  background: #21314e;
  color: #c5d1e7;
}
html[data-theme="dark"] button:disabled {
  background: #4c6081;
  color: #edf3ff;
}
html[data-theme="dark"] footer {
  background: #0c1529;
  color: #c9daf5;
}
html[data-theme="dark"] :focus-visible {
  outline-color: #b4edff;
}
html[data-theme="dark"] .skip {
  background: #eaf1ff;
  color: #10223e;
}
html[data-theme="dark"] .skip:focus-visible {
  outline-color: #10223e;
}
@media (max-width: 600px) {
  .header-tools {
    gap: 6px;
  }
  .theme-toggle {
    padding: 8px 10px;
  }
  .theme-label {
    max-width: 58px;
    white-space: normal;
    line-height: 1.15;
  }
  .brand {
    max-width: calc(100% - 195px);
  }
  html[data-theme="dark"] .brand {
    padding: 5px;
  }
  .theme-icon {
    font-size: 18px;
  }
}
@media print {
  html[data-theme="dark"] .page,
  html[data-theme="dark"] .card,
  html[data-theme="dark"] .ph,
  html[data-theme="dark"] .dk,
  html[data-theme="dark"] footer {
    background: #fff;
    color: #000;
  }
  .header-tools {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .brand {
    max-width: 100%;
    width: 210px;
  }
  .header-tools {
    margin-left: 0;
  }
}

/* Keep the theme switch at the right edge of the header on every layout. */
header .brand {
  order: 0;
}
header nav {
  order: 1;
}
header .header-tools {
  order: 2;
  margin-left: auto;
}
.header-tools .menu-toggle {
  order: 0;
}
.header-tools .theme-toggle {
  order: 1;
}
@media (max-width: 1100px) {
  header nav {
    order: 3;
  }
}
