/* Migliorie di leggibilità richieste per menu e paragrafi. */
:root {
  --copy-readable: clamp(15.5px, 0.22vw + 14.5px, 17px);
}

/* Palette dei percorsi in evidenza: limitata esclusivamente alla homepage. */
.pathway-cover.home-university-red-1 {
  background: linear-gradient(135deg, #e42a63, #a40d3e);
}

.pathway-cover.home-university-red-2 {
  background: linear-gradient(135deg, #cf104d, #7e0b32);
}

.pathway-cover.home-university-red-3 {
  background: linear-gradient(135deg, #b90e42, #4b1028);
}

.pathway-cover.home-eipass-blue {
  background: linear-gradient(135deg, #1686ca, #075e99);
}

.pathway-cover.home-support-green-1 {
  background: linear-gradient(135deg, #25bba4, #0b7565);
}

.pathway-cover.home-support-green-2 {
  background: linear-gradient(135deg, #0b6145, #032b20);
}

/* Tema EIPASS: limitato esclusivamente alla pagina Certificazioni. */
.eipass-theme {
  --deep: #063858;
  --deep-2: #04283f;
  --green: #075d97;
  --teal: #0870b7;
  --teal-dark: #075e99;
  --mint: #e8f4fb;
  --mint-2: #f4f9fd;
  --ink: #12384f;
  --copy: #5c7180;
  --line: #d9e8f2;
  --shadow: 0 18px 50px #0638581a;
}

.eipass-theme .inner-hero {
  background:
    radial-gradient(circle at 75% 30%, #0870b740, transparent 22%),
    linear-gradient(120deg, var(--deep-2), var(--deep));
}

.eipass-theme .inner-hero-copy > p:not(.eyebrow) {
  color: #c6dce9;
}

.eipass-theme .breadcrumb {
  color: #a9c7da;
}

.eipass-theme .topbar {
  color: #f7fbff;
}

.eipass-theme .main-nav a,
.eipass-theme .check-list li {
  color: #173f57;
}

.eipass-theme .inner-hero-art::before {
  border-color: #4da2d8a6;
  box-shadow:
    inset 0 0 0 28px #0870b714,
    inset 0 0 0 58px #f4c90008;
}

.eipass-theme .header-cta,
.eipass-theme .button-primary {
  box-shadow: 0 10px 24px #0870b738;
}

.eipass-theme .header-cta:hover,
.eipass-theme .button-primary:hover {
  box-shadow: 0 14px 28px #0870b74d;
}

.eipass-theme .main-nav a.is-active {
  box-shadow: inset 0 0 0 1px #0870b72e;
}

.eipass-theme .main-nav a.is-active:hover {
  background: #dceef9;
}

.eipass-theme .values-grid article {
  box-shadow: 0 9px 28px #0638580d;
}

.eipass-theme .wide-cta p {
  color: #d9effc;
}

/* Logo EIPASS completo al posto del precedente badge testuale. */
.eipass-theme .cert-page-image > .eipass-badge {
  width: clamp(175px, 17vw, 210px);
  min-width: 0;
  padding: 0;
  border: 3px solid var(--yellow);
  border-radius: 10px;
  background: var(--teal);
  box-shadow: var(--shadow);
  display: block;
  overflow: hidden;
  right: 18px;
  bottom: 18px;
}

.eipass-theme .cert-page-image .eipass-badge img {
  width: 100%;
  height: auto !important;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

@media (width <= 590px) {
  .eipass-theme .cert-page-image {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .eipass-theme .cert-page-image > img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }

  .eipass-theme .cert-page-image > .eipass-badge {
    position: static;
    width: min(220px, 78%);
    margin: 0 auto;
  }
}

.eipass-theme .footer-brand > p,
.eipass-theme footer > div:not(.footer-brand) a,
.eipass-theme footer > div:not(.footer-brand) p {
  color: #adc6d7;
}

/* Palette degli atenei: limitata esclusivamente alla pagina Universita online. */
.university-red-theme {
  --deep: #4b1028;
  --deep-2: #2d0918;
  --green: #a10d3d;
  --teal: #cf104d;
  --teal-dark: #be0f35;
  --mint: #fce8ef;
  --mint-2: #fff5f8;
  --ink: #3f1725;
  --copy: #745e67;
  --line: #efd8e0;
  --shadow: 0 18px 50px #4b10281a;
}

.university-red-theme .inner-hero {
  background:
    radial-gradient(circle at 75% 30%, #cf104d47, transparent 22%),
    linear-gradient(120deg, var(--deep-2), var(--deep));
}

.university-red-theme .inner-hero-copy > p:not(.eyebrow) {
  color: #eed2dc;
}

.university-red-theme .breadcrumb {
  color: #d9aebb;
}

.university-red-theme .topbar {
  color: #fff8fa;
}

.university-red-theme .main-nav a,
.university-red-theme .check-list li {
  color: #501b2d;
}

.university-red-theme .inner-hero-art::before {
  border-color: #e75c88a6;
  box-shadow:
    inset 0 0 0 28px #cf104d17,
    inset 0 0 0 58px #f4c90008;
}

.university-red-theme .header-cta,
.university-red-theme .button-primary {
  box-shadow: 0 10px 24px #cf104d38;
}

.university-red-theme .header-cta:hover,
.university-red-theme .button-primary:hover {
  box-shadow: 0 14px 28px #cf104d4d;
}

.university-red-theme .main-nav a.is-active {
  box-shadow: inset 0 0 0 1px #cf104d2e;
}

.university-red-theme .main-nav a.is-active:hover {
  background: #f9dfe7;
}

.university-red-theme .pathway-cover.mint {
  background: linear-gradient(135deg, #e42a63, #a40d3e);
}

.university-red-theme .pathway-cover.yellow {
  background: linear-gradient(135deg, #cf104d, #7e0b32);
}

.university-red-theme .pathway-cover.green {
  background: linear-gradient(135deg, #b90e42, #4b1028);
}

.university-red-theme .orientation-pole-lockup {
  width: min(680px, 100%);
  margin: 0 auto 46px;
  padding: clamp(20px, 3vw, 28px) clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, var(--mint-2));
  box-shadow: 0 14px 34px #4b102214;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 42px);
}

.university-red-theme .orientation-pole-lockup img {
  width: clamp(105px, 12vw, 145px);
  height: 82px;
  flex: 0 0 auto;
  object-fit: contain;
}

.university-red-theme .orientation-pole-lockup strong {
  min-height: 66px;
  padding-left: clamp(22px, 3vw, 38px);
  border-left: 1px solid #cf104d52;
  color: var(--deep);
  font-size: clamp(21px, 2.25vw, 32px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.025em;
  display: flex;
  align-items: center;
}

.university-red-theme .university-catalog .pathway-cover {
  min-height: 205px;
  padding: 34px 26px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, #fff 18%, var(--mint-2) 100%);
  align-items: center;
  justify-content: center;
}

.university-red-theme .university-catalog .pathway-cover::before {
  border-color: #cf104d24;
  box-shadow:
    inset 0 0 0 27px #cf104d08,
    inset 0 0 0 54px #cf104d05;
}

.university-red-theme .university-catalog .pathway-number {
  width: 34px;
  height: 34px;
  border: 1px solid #cf104d2e;
  border-radius: 50%;
  background: #fff;
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  top: 18px;
  left: 18px;
}

.university-red-theme .university-card-logo {
  position: relative;
  z-index: 1;
  width: min(100%, 255px);
  max-height: 122px;
  object-fit: contain;
}

.university-red-theme .logo-unipegaso,
.university-red-theme .logo-san-raffaele {
  max-height: 94px;
}

@media (width <= 590px) {
  .university-red-theme .orientation-pole-lockup {
    margin-bottom: 36px;
    padding: 22px 18px;
    gap: 18px;
  }

  .university-red-theme .orientation-pole-lockup img {
    width: 92px;
    height: 64px;
  }

  .university-red-theme .orientation-pole-lockup strong {
    min-height: 54px;
    padding-left: 18px;
    font-size: 19px;
  }
}

.university-detail-red-theme .university-detail-cover {
  min-height: 390px;
  margin-bottom: 55px;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  background: linear-gradient(145deg, #fff 12%, var(--mint-2) 100%);
  box-shadow: var(--shadow);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 4vw, 46px);
}

.university-detail-red-theme .university-detail-cover::before {
  border-color: #cf104d24;
  box-shadow:
    inset 0 0 0 45px #cf104d08,
    inset 0 0 0 90px #cf104d05;
}

.university-detail-red-theme .university-detail-logo {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  max-height: 150px;
  object-fit: contain;
}

.university-detail-red-theme .university-detail-logo.logo-unimercatorum {
  width: min(100%, 350px);
  max-height: 175px;
}

.university-detail-red-theme .detail-pole-lockup {
  position: relative;
  z-index: 1;
  width: min(100%, 510px);
  padding-top: 24px;
  border-top: 1px solid #cf104d42;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 30px);
}

.university-detail-red-theme .detail-pole-lockup img {
  width: 86px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
}

.university-detail-red-theme .detail-pole-lockup strong {
  min-height: 48px;
  padding-left: clamp(18px, 2.6vw, 28px);
  border-left: 1px solid #cf104d52;
  color: var(--deep);
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
}

@media (width <= 590px) {
  .university-detail-red-theme .university-detail-cover {
    min-height: 335px;
    margin-bottom: 42px;
    padding: 30px 20px;
    gap: 30px;
  }

  .university-detail-red-theme .university-detail-logo {
    max-height: 112px;
  }

  .university-detail-red-theme .university-detail-logo.logo-unimercatorum {
    max-height: 135px;
  }

  .university-detail-red-theme .detail-pole-lockup {
    padding-top: 20px;
    gap: 15px;
  }

  .university-detail-red-theme .detail-pole-lockup img {
    width: 70px;
    height: 45px;
  }

  .university-detail-red-theme .detail-pole-lockup strong {
    min-height: 42px;
    padding-left: 15px;
    font-size: 15px;
  }
}

.university-red-theme .pathway-card {
  box-shadow: 0 8px 25px #4b10220d;
}

.university-red-theme .pathway-card:hover {
  box-shadow: var(--shadow);
}

.university-red-theme .process-icon {
  box-shadow: 0 10px 25px #4b10220f;
}

.university-red-theme .wide-cta p {
  color: #ffe1ea;
}

.university-red-theme .footer-brand > p,
.university-red-theme footer > div:not(.footer-brand) a,
.university-red-theme footer > div:not(.footer-brand) p {
  color: #d7b3bf;
}

/* Quattro servizi sulla stessa riga nella pagina Supporto scolastico. */
.service-detail-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-detail-grid-four article {
  min-width: 0;
  padding-inline: clamp(24px, 2.4vw, 34px);
}

.service-detail-grid-four h3 {
  margin-top: 54px;
  font-size: clamp(20px, 1.65vw, 23px);
}

@media (width <= 1180px) {
  .service-detail-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 590px) {
  .service-detail-grid-four {
    grid-template-columns: 1fr;
  }
}

/* Pagina Graduatorie GPS e ATA: verde coordinato con Home e Supporto scolastico. */
.inner-hero-art-branded .inner-hero-logo {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.gps-ata-theme .gps-ata-hero {
  background:
    radial-gradient(circle at 75% 30%, #25bba440, transparent 23%),
    linear-gradient(120deg, var(--deep-2), var(--deep));
}

.gps-ata-theme .gps-ata-hero-art span:first-child,
.gps-ata-theme .gps-ata-hero-art span:last-child {
  letter-spacing: -0.04em;
}

.gps-ata-theme .gps-ata-hero-art span:first-child {
  font-size: 21px;
}

.gps-ata-theme .gps-ata-hero-art span:last-child {
  font-size: 30px;
}

.gps-ata-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 7vw, 105px);
}

.gps-ata-overview-copy > p:not(.section-tag),
.gps-ata-zone-heading p,
.gps-ata-course-card p {
  color: var(--copy);
  font-size: var(--copy-readable);
  line-height: 1.8;
}

.gps-ata-overview-copy > p:not(.section-tag) {
  max-width: 720px;
  margin: 24px 0 0;
}

.gps-ata-overview-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.gps-ata-overview-links button {
  min-height: 150px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mint-2);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 34px #032f220d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.gps-ata-overview-links button:last-child {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, var(--teal-dark), var(--deep));
}

.gps-ata-overview-links button:hover {
  border-color: #25bba470;
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.gps-ata-overview-links strong {
  color: var(--teal-dark);
  font-size: clamp(34px, 3.2vw, 48px);
  letter-spacing: -0.06em;
}

.gps-ata-overview-links button:last-child strong,
.gps-ata-overview-links button:last-child span {
  color: #fff;
}

.gps-ata-overview-links span {
  color: var(--copy);
  font-size: 14px;
  font-weight: 800;
}

.gps-ata-zone {
  position: relative;
  overflow: hidden;
}

.gps-zone {
  padding-top: clamp(70px, 7vw, 108px);
  background: var(--mint-2);
}

.ata-zone {
  background: linear-gradient(115deg, #eaf8f4, #f8fcfb);
}

.gps-ata-zone::before {
  content: "";
  width: 340px;
  height: 340px;
  border: 1px solid #25bba424;
  border-radius: 50%;
  position: absolute;
  top: -170px;
  right: -120px;
  box-shadow:
    inset 0 0 0 45px #25bba408,
    inset 0 0 0 90px #0a4a3505;
}

.gps-ata-zone-heading {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 35px;
  margin-bottom: 50px;
}

.gps-ata-zone-heading > div {
  max-width: 820px;
}

.gps-ata-zone-heading h2 {
  margin-bottom: 19px;
}

.gps-ata-zone-heading p:not(.section-tag) {
  max-width: 720px;
  margin: 0;
}

.gps-ata-zone-heading > span {
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  box-shadow: 0 16px 36px #032f2224;
}

.ata-zone .gps-ata-zone-heading > span {
  background: var(--teal);
}

.gps-ata-course-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gps-ata-course-card {
  min-width: 0;
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px #032f220d;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.gps-ata-course-card:hover {
  border-color: #25bba470;
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.gps-ata-course-card .course-number {
  color: var(--teal-dark);
  font-size: 37px;
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
}

.gps-ata-course-card h3 {
  color: var(--ink);
  margin: auto 0 14px;
  font-size: clamp(21px, 1.7vw, 25px);
  line-height: 1.25;
}

.gps-ata-course-card p {
  margin: 0;
}

.gps-ata-course-card.is-accredited {
  border-top-color: var(--yellow);
  background: linear-gradient(145deg, #fff, #fffdf1);
}

.accredited-label {
  align-self: flex-start;
  margin: -4px 0 24px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.gps-ata-course-card .course-kicker {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.gps-ata-course-card .course-kicker + h3 {
  margin-top: auto;
}

.gps-ata-cta {
  background: linear-gradient(110deg, var(--teal), var(--teal-dark));
}

@media (width <= 1500px) and (width > 1030px) {
  .site-header {
    grid-template-columns: 190px 1fr auto;
    gap: 12px;
    padding-inline: 30px;
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav a {
    padding-inline: 6px;
    font-size: 12px;
  }
}

@media (width <= 1030px) {
  .gps-ata-overview {
    grid-template-columns: 1fr;
  }

  .gps-ata-overview-links {
    max-width: 620px;
  }

  .gps-ata-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 590px) {
  .gps-ata-overview-links,
  .gps-ata-course-grid {
    grid-template-columns: 1fr;
  }

  .gps-ata-overview-links button {
    min-height: 125px;
  }

  .gps-ata-zone-heading {
    align-items: flex-start;
  }

  .gps-ata-zone-heading > span {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    font-size: 16px;
  }

  .gps-ata-course-card {
    min-height: 275px;
    padding: 27px 24px;
  }
}

.main-nav a {
  border-radius: 999px;
  padding: 12px 10px;
  font-size: 14px;
  transition: color .22s, background-color .22s, box-shadow .22s;
}

.main-nav a::after {
  bottom: 5px;
  left: 10px;
  right: calc(100% - 10px);
}

.main-nav a:hover:not(.is-active) {
  color: var(--teal-dark);
  background: transparent;
}

.main-nav a:hover:not(.is-active)::after {
  right: 10px;
  background: var(--teal);
}

.main-nav a.is-active {
  color: var(--deep);
  background: var(--mint);
  box-shadow: inset 0 0 0 1px #25bba42e;
}

.main-nav a.is-active::after {
  display: none;
}

.main-nav a.is-active:hover {
  color: var(--deep);
  background: #ddf4ee;
}

.header-cta.is-active {
  color: var(--deep);
  background: var(--yellow);
  box-shadow: 0 10px 24px #f4c90038;
}

.header-cta.is-active:hover {
  color: var(--deep);
  background: #e3b900;
}

.inner-hero-copy > p:not(.eyebrow),
.story-copy > p:not(.section-tag),
.values-grid p,
.catalog-intro > p,
.detail-main > p:not(.section-tag),
.service-detail-grid p,
.faq-intro > p:not(.section-tag),
.faq-list details p,
.hero-lead,
.about-copy > p:not(.section-tag),
.heading-copy,
.pathway-body > p,
.process-line p,
.cert-copy > p:not(.section-tag),
.support-cards p,
.promise-copy > p:not(.section-tag),
.contact-copy > p:not(.section-tag) {
  font-size: var(--copy-readable) !important;
}

.hero-proof p,
.form-note {
  font-size: 13px !important;
}

.footer-brand > p {
  font-size: 14px !important;
  line-height: 1.75 !important;
}

footer h3 {
  font-size: 15px !important;
}

footer > div:not(.footer-brand) a,
footer > div:not(.footer-brand) p {
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.copyright {
  align-items: center;
  font-size: 11px !important;
}

.back-to-top {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.back-to-top:hover {
  color: var(--deep);
}

.back-to-top:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}

.footer-legal a {
  font-size: 12px;
  font-weight: 800;
}

.footer-legal a:hover {
  color: var(--deep);
}

.wide-cta p,
.promo-band p,
.newsletter p,
.detail-cover p,
.sidebar-card p,
.about-photo-card p {
  font-size: 12px !important;
}

/* Il badge della consulenza deve contenere interamente entrambe le righe. */
.hero-badge {
  width: 220px;
  max-width: calc(100% - 44px);
  min-height: 96px;
  padding: 18px 20px;
}

.hero-badge span {
  flex: 1;
  min-width: 0;
}

/* Icona Instagram vettoriale, leggibile e fedele anche su display retina. */
.footer-social a[href*="instagram.com"] svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social a[href*="instagram.com"] .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-note {
  line-height: 1.6;
}

.form-note.is-error {
  color: #a4261d;
}

.form-note.is-success {
  color: #08715f;
  font-weight: 700;
}

.recaptcha-disclaimer {
  color: var(--copy);
  margin: -10px 0 0;
  font-size: 11px !important;
  line-height: 1.55;
}

.recaptcha-disclaimer a {
  color: var(--teal-dark);
  text-decoration: underline;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
}

.policy-page {
  background: var(--mint-2);
}

.policy-content {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.policy-intro {
  margin-bottom: 42px;
  padding: 24px 26px;
  border-left: 5px solid var(--yellow);
  border-radius: 6px;
  background: var(--mint);
}

.policy-intro strong {
  display: block;
  margin-bottom: 7px;
  color: var(--teal-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.policy-content h2 {
  margin: 44px 0 14px;
  color: var(--ink);
  font-size: clamp(23px, 2.6vw, 32px);
  line-height: 1.25;
}

.policy-content p,
.policy-content li {
  color: var(--copy);
  font-size: var(--copy-readable) !important;
  line-height: 1.8;
}

.policy-content p {
  margin: 0 0 16px;
}

.policy-content ul {
  margin: 8px 0 24px;
  padding-left: 24px;
  list-style: disc;
}

.policy-content li {
  margin-bottom: 8px;
}

.policy-content a {
  color: var(--teal-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-content code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--mint);
  color: var(--deep);
  font-size: .9em;
}

.policy-table-wrap {
  margin: 22px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
}

.policy-table th,
.policy-table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--copy);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.65;
}

.policy-table th {
  background: var(--deep);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.policy-table tr:last-child td {
  border-bottom: 0;
}

.policy-sources {
  margin-top: 52px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

/* Microtesti portati a una dimensione leggibile senza alterare i titoli. */
.topbar {
  font-size: 12px !important;
  line-height: 1.45;
}

.header-cta,
.button {
  font-size: 13px !important;
}

.eyebrow,
.section-tag {
  font-size: 12px !important;
  line-height: 1.45;
}

.breadcrumb {
  font-size: 11px !important;
  line-height: 1.5;
}

.hero-badge span,
.stats span,
.category-card small,
.pathway-cover p,
.pathway-number,
.cert-features small,
.image-label,
.story-image span,
.cert-page-image span,
.support-page-image span,
.service-detail-grid a,
.faq-list summary span,
.map-panel span,
.map-panel small {
  font-size: 12px !important;
  line-height: 1.55;
}

.category-card strong,
.cert-features strong,
.contact-list strong,
.check-list li {
  font-size: 14px !important;
  line-height: 1.45;
}

.pathway-meta,
.pathway-body > a,
.detail-points strong,
.sidebar-card span,
.sidebar-action > a:last-child,
.contact-social a {
  font-size: 13px !important;
  line-height: 1.55;
}

.promise-card {
  font-size: 13px !important;
  line-height: 1.5;
}

.contact-list span,
.contact-form label {
  font-size: 12px !important;
  line-height: 1.45;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-size: 15px !important;
}

.faq-list summary {
  font-size: 14px !important;
  line-height: 1.45;
}

.recaptcha-disclaimer,
.copyright,
.footer-legal a {
  font-size: 13px !important;
  line-height: 1.6;
}

.cookie-consent-banner[hidden],
.cookie-preferences-overlay[hidden] {
  display: none !important;
}

.cookie-consent-banner {
  position: fixed;
  z-index: 110;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 26px 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 66px 26px 28px;
  border: 1px solid #ffffff26;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--deep-2), var(--deep));
  color: #fff;
  box-shadow: 0 26px 70px #021c154d;
}

.cookie-consent-copy {
  max-width: 720px;
}

.cookie-consent-copy > span,
.cookie-preferences-kicker {
  display: block;
  margin: 0 0 7px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cookie-consent-copy h2,
.cookie-preferences-panel h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.12;
}

.cookie-consent-copy p {
  margin: 0 0 10px;
  color: #d5e9e3;
  font-size: 14px;
  line-height: 1.65;
}

.cookie-consent-copy a {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions,
.cookie-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-button {
  min-height: 45px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  transition: transform .2s, background-color .2s, border-color .2s;
}

.cookie-button:hover {
  transform: translateY(-2px);
}

.cookie-button-primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--deep);
}

.cookie-button-secondary {
  border-color: var(--line);
  background: var(--mint-2);
  color: var(--deep);
}

.cookie-button-outline {
  border-color: var(--teal);
  background: transparent;
  color: var(--teal-dark);
}

.cookie-consent-banner .cookie-button-outline {
  border-color: #ffffff73;
  color: #fff;
}

.cookie-consent-close,
.cookie-preferences-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  place-items: center;
  font-size: 25px;
  line-height: 1;
}

.cookie-preferences-overlay {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  padding: 20px;
  background: #021c15b8;
  place-items: center;
}

body.cookie-preferences-open {
  overflow: hidden;
}

.cookie-preferences-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(90vh, 780px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 46px);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px #00150f66;
}

.cookie-preferences-panel h2 {
  padding-right: 40px;
  color: var(--ink);
}

.cookie-preferences-kicker {
  color: var(--teal-dark);
}

.cookie-preferences-intro {
  margin: 0 0 24px;
  color: var(--copy);
  font-size: 15px;
  line-height: 1.7;
}

.cookie-preferences-close {
  border-color: var(--line);
  color: var(--deep);
}

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 13px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--mint-2);
}

.cookie-category strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.cookie-category p {
  margin: 5px 0 0;
  color: var(--copy);
  font-size: 13px;
  line-height: 1.55;
}

.cookie-category > span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.cookie-category-selectable {
  cursor: pointer;
  background: #fff;
}

.cookie-category-selectable input {
  width: 23px;
  height: 23px;
  accent-color: var(--teal);
}

.cookie-preferences-links {
  margin: 21px 0;
  color: var(--copy);
  font-size: 13px;
}

.cookie-preferences-links a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: underline;
}

.footer-cookie-settings {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.footer-cookie-settings:hover {
  color: var(--deep);
}

.recaptcha-disclaimer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
}

@media (width <= 1180px) and (width > 1030px) {
  .main-nav {
    gap: 8px;
  }

  .main-nav a {
    padding-inline: 7px;
    font-size: 13px;
  }
}

@media (width <= 1030px) {
  .main-nav a {
    padding: 12px 14px;
    font-size: 16px;
  }

  .main-nav a::after {
    left: 14px;
    right: calc(100% - 14px);
  }

  .main-nav a:hover:not(.is-active)::after,
  .main-nav a.is-active::after {
    right: 14px;
  }
}

@media (width <= 590px) {
  .footer-legal {
    justify-content: flex-start;
  }

  .policy-content {
    padding: 27px 20px;
  }

  .policy-intro {
    padding: 20px;
  }

  .cookie-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 22px;
  }

  .cookie-consent-copy h2 {
    padding-right: 34px;
  }

  .cookie-consent-actions,
  .cookie-preferences-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-button {
    width: 100%;
  }

  .cookie-preferences-overlay {
    align-items: end;
    padding: 10px;
  }

  .cookie-preferences-panel {
    width: 100%;
    max-height: 92vh;
    padding: 27px 20px;
  }

  .cookie-category {
    grid-template-columns: 1fr auto;
    padding: 17px;
  }
}
