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

.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;
  }
}
