/* Opaque surfaces keep text contrast independent of photos and gradients. */
main .btn-primary,
main .btn-primary:hover,
main .btn-primary:focus-visible { background: #0060b6 !important; border-color: #0060b6 !important; color: #fff !important; }
.page-home #features9-5 > .mbr-overlay { opacity: .72 !important; background: #000 !important; }
#contacts1-9 .item-wrapper,
#contacts1-9 .item-wrapper:hover { background: #fff !important; }
#contacts1-9 .card-title,
#contacts1-9 .card-text,
#contacts1-9 .card-text a,
#contacts1-9 .item-wrapper:hover .card-title,
#contacts1-9 .item-wrapper:hover .card-text { color: #12344d !important; }
#contacts1-9 a { overflow-wrap: anywhere; }
.tabs01 .tab-content .text-wrapper,
#slider1-0 .title-block {
  background: #00315e;
  color: #fff;
  border-radius: .75rem;
  padding: 1.25rem;
}
.tabs01 .tab-content .text-wrapper *,
#slider1-0 .title-block * { color: #fff !important; }
.document-html-link a { text-decoration: underline; }
.custom-section .image-container { height: auto; min-height: 34rem; }
.custom-section .image-container > img { position: absolute; inset: 0; }
.custom-section .overlay-text {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 2rem auto;
  background: #00315e;
  backdrop-filter: none;
}
.custom-section h1.mbr-section-title {
  background: #00315e;
  color: #fff;
  border-radius: .75rem;
  padding: .25em .4em;
  width: fit-content;
}
#bootstrap-accordion_61 .panel-title-edit {
  background: #00315e;
  color: #fff;
  text-shadow: none;
  border-radius: .5rem;
  padding: .35rem;
}
main a:focus-visible,
main button:focus-visible,
main summary:focus-visible {
  outline: 3px solid #0060b6 !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff !important;
}
.media-description {
  background: #fffff0;
  color: #12344d;
  padding: .75rem 1rem;
  font: 1rem/1.6 Inter, Arial, sans-serif;
}
.media-description summary { cursor: pointer; font-weight: 600; }
.media-description p { margin: .75rem 0 0; }
.media-description a { color: #0060b6; text-decoration: underline; }
@media (max-width: 768px) {
  .custom-section .image-container { height: auto; min-height: 24rem; }
  .custom-section .overlay-text { margin: 1.2rem auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Shared veil on decorative parallax photographs. */
section.mbr-parallax-background > .mbr-overlay {
  background-color: #fff !important;
  opacity: .12 !important;
}

@media (max-width: 972px) {
  section.mbr-parallax-background {
    display: block !important;
    position: relative;
    min-height: clamp(8rem, 37vw, 13rem);
    padding-block: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .page-home #header3-d, .page-home #header1-d { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  section.mbr-parallax-background {
    background: #00315e url('../../images/vap_lia_alto.jpg') center / cover no-repeat !important;
  }
  section.mbr-parallax-background > [id^="jarallax-container-"] { display: none !important; }
}

#contacts1-9 .item-wrapper {
  height: auto;
  min-height: 234px;
}

#contacts1-9 .contact-cards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
}
#contacts1-9 .contact-cards-grid::before,
#contacts1-9 .contact-cards-grid::after { content: none; }
#contacts1-9 .contact-cards-grid > .item {
  display: flex;
  width: 100%;
  min-width: 0;
}
#contacts1-9 .contact-cards-grid .item-wrapper { flex: 1; min-width: 0; }
@media (min-width: 768px) {
  #contacts1-9 .contact-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  #contacts1-9 .contact-cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

a.service-home-link,
a.service-home-link:hover,
a.service-home-link:focus-visible {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: #00315e;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a.service-home-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #00315e;
}
