.heuro-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 10px 0 4px;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: Medium, Arial, sans-serif;
  line-height: 1;
  position: relative;
  z-index: 102;
}

.heuro-language-switch.on-dark {
  color: #fff;
}

.heuro-language-switch.on-light {
  color: #003;
}

.heuro-language-switch button {
  min-width: 30px;
  height: 26px;
  margin: 0 !important;
  padding: 0 7px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: inherit !important;
  font: 12px/26px Medium, Arial, sans-serif !important;
  letter-spacing: .02em;
  box-shadow: none !important;
}

.heuro-login {
  cursor: pointer;
}

header .web-nav > .web-button.head-language:not(.heuro-login) {
  visibility: hidden;
}

header .web-nav > .web-button.head-language.heuro-login {
  visibility: visible;
}

.heuro-login:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex='-1']):focus-visible {
  outline: 3px solid #f5b800 !important;
  outline-offset: 4px !important;
}

header .app-nav .heuro-mobile-login {
  display: inline-flex;
  min-width: 72px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #003;
  font: 14px/1 Medium, Arial, sans-serif;
  text-decoration: none;
}

app-index button,
app-cards button,
app-ramps button,
app-about button,
footer .foot-infos .float-right {
  display: none !important;
}

footer .foot-infos .white-logo {
  width: auto;
  height: 7.2rem !important;
}

.heuro-contact-details {
  min-width: 0;
  font-family: Medium, Arial, sans-serif;
}

.heuro-contact-details__title {
  margin: 0;
  font-family: DemiBold, Arial, sans-serif;
  font-size: 2.8rem;
  line-height: 3.4rem;
}

.heuro-contact-details__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 2.4rem;
  margin-top: 2.4rem;
}

.heuro-contact-details__item {
  min-width: 0;
}

.heuro-contact-details__label,
.heuro-contact-details__value {
  display: block;
}

.heuro-contact-details__label {
  margin-bottom: .8rem;
  font-family: Regular, Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 2rem;
}

.heuro-contact-details__value {
  min-height: 2.8rem;
  overflow-wrap: anywhere;
  font-size: 1.8rem;
  line-height: 2.8rem;
  text-decoration: none;
}

.heuro-contact-details--about {
  width: min(100%, 72rem);
  margin-top: 3.2rem;
  padding-top: 3.2rem;
  border-top: 1px solid #d7dcff;
  color: #003;
}

.heuro-contact-details--about .heuro-contact-details__label {
  color: #6a6a84;
}

.heuro-contact-details--about .heuro-contact-details__value {
  color: #003;
}

.heuro-contact-details--about a.heuro-contact-details__value:hover {
  color: #374bfe;
  text-decoration: underline;
  text-underline-offset: .4rem;
}

.heuro-contact-details--footer {
  max-width: 72rem;
  margin-top: 5.6rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgb(210 235 255 / 35%);
  color: #fff;
}

.heuro-contact-details--footer .heuro-contact-details__label {
  color: #d2ebff;
}

.heuro-contact-details--footer .heuro-contact-details__value {
  color: #fff;
}

.heuro-contact-details--footer a.heuro-contact-details__value:hover {
  color: #d2ebff;
  text-decoration: underline;
  text-underline-offset: .4rem;
}

/* The original marketing cards use fixed heights sized for the English copy.
   Let localized cards grow with their text while keeping paired cards aligned. */
app-choose-ouitrust .part-3 > .row:not(:first-child) > .col-12 {
  display: flex;
}

app-choose-ouitrust .panel {
  flex: 1 1 auto;
  width: 100%;
  height: auto !important;
  min-width: 0;
}

app-choose-ouitrust .panel .title,
app-choose-ouitrust .panel .content {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

app-choose-ouitrust .panel.flex-column > .title,
app-choose-ouitrust .panel.flex-column > .content {
  flex: 0 0 auto !important;
}

@media (max-width: 768px) {
  app-choose-ouitrust .panel1,
  app-choose-ouitrust .panel4,
  app-choose-ouitrust .panel5 {
    flex-direction: column;
  }

  app-choose-ouitrust .panel1 {
    min-height: 25.4rem;
  }

  app-choose-ouitrust .panel2 {
    min-height: 19.6rem;
  }

  app-choose-ouitrust .panel3 {
    min-height: 30rem;
  }

  app-choose-ouitrust .panel4 {
    min-height: 19.2rem;
  }

  app-choose-ouitrust .panel5 {
    min-height: 25.2rem;
  }

  app-choose-ouitrust .panel1 .title {
    flex: 0 0 auto;
    width: 100%;
  }

  app-choose-ouitrust .panel6 {
    height: auto;
    min-height: 32rem;
  }
}

@media (min-width: 1024px) {
  html[lang='it'] app-choose-ouitrust .panel1 {
    column-gap: 2.4rem;
  }

  html[lang='it'] app-choose-ouitrust .panel1 .title {
    flex: 0 0 auto;
    width: 24rem;
    font-size: 3.6rem;
    line-height: 3.9rem;
  }

  html[lang='it'] app-choose-ouitrust .panel1 .content {
    padding-left: 0;
  }

  html[lang='it'] app-choose-ouitrust .panel5,
  html[lang='it'] app-choose-ouitrust .panel6 {
    min-height: 32rem;
  }
}

.heuro-language-switch.on-dark button.is-active {
  background: #fff !important;
  color: #003 !important;
}

.heuro-language-switch.on-light button.is-active {
  background: #003 !important;
  color: #fff !important;
}

/* The prebuilt desktop navigation is 1060px wide. Keep its actions reachable
   on tablets by using the existing compact navigation below 1200px. */
@media (min-width: 576px) and (max-width: 1199.98px) {
  header > .container {
    display: none !important;
  }

  header > .app-container {
    display: block !important;
  }

  header .app-nav {
    padding: 1.6rem 2.4rem;
  }
}

@media (max-width: 575.98px) {
  header .app-nav {
    padding: 1.6rem 1.2rem;
  }

  header .app-nav .display-flex {
    align-items: center;
    gap: 6px;
  }

  header .app-nav .heuro-mobile-login {
    min-width: 68px;
    height: 44px;
    padding: 0 13px;
  }

  header .app-nav .menu-button {
    width: 44px;
    height: 44px;
  }

  header .app-nav .menu-button .mr-4 {
    display: none;
  }

  .heuro-language-switch {
    margin: 0;
    background: rgb(255 255 255 / 12%);
  }

  .heuro-language-switch button {
    min-width: 27px;
    height: 24px;
    padding: 0 5px !important;
    font-size: 11px !important;
    line-height: 24px !important;
  }

  .heuro-contact-details__title {
    font-size: 2.4rem;
    line-height: 3rem;
  }

  .heuro-contact-details__list {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }

  .heuro-contact-details--about {
    margin-top: 2.4rem;
    padding-top: 2.4rem;
  }

  .heuro-contact-details--footer {
    margin-top: 3.2rem;
    padding-top: 2.4rem;
  }

footer .foot-infos .white-logo {
    height: 5.6rem !important;
  }
}

/* Keep the server-rendered home layout stable until Angular selects the
   responsive illustration during hydration. */
.part-two .row.img_text > .col-md-6:first-child {
  aspect-ratio: 1186 / 1190;
}

.part-two .row.img_text > .col-md-6:first-child img {
  display: block;
  width: 100%;
  height: auto;
}

/* Skip layout and paint work for marketing sections that are far below the
   viewport. The intrinsic size preserves scroll geometry until they approach. */
.part-three-bg,
.part-fore,
.part-five,
.part-six,
.part-seven,
footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
