/* Pagina intermediaria dos servicos VEM. */
#top.gr-internal-page:has(.gr-vem-page) .title_container {
  display: block;
  min-height: 75px;
  border-top: 1px solid #d7e0eb;
  border-bottom: 1px solid #d7e0eb;
  background: #f7f9fb;
}

#top.gr-internal-page:has(.gr-vem-page) .title_container .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: calc(100% - 54px);
  min-height: 75px;
  margin: 0 auto;
  padding: 0;
}

#top.gr-internal-page:has(.gr-vem-page) .title_container .main-title {
  margin: 0;
  color: #073e73;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

#top.gr-internal-page:has(.gr-vem-page) .title_container .main-title a {
  color: inherit;
}

#top.gr-internal-page:has(.gr-vem-page) .title_container .breadcrumb {
  margin: 0;
  color: #506584;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

#top.gr-internal-page:has(.gr-vem-page) .title_container .breadcrumb a,
#top.gr-internal-page:has(.gr-vem-page) .title_container .breadcrumb .trail-before {
  color: inherit;
}

#top.gr-internal-page .gr-vem-page {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #ffffff;
}

#top.gr-internal-page .gr-vem-page-header {
  position: relative;
  box-sizing: border-box;
  width: calc(100% - clamp(64px, 7.3vw, 112px));
  max-width: 1422px;
  min-height: 320px;
  height: clamp(320px, 23.5vw, 360px);
  margin: 42px auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d5dfed;
  border-radius: 20px;
  background: linear-gradient(118deg, #f0f4fa 0%, #e9eff7 100%);
}

#top.gr-internal-page .gr-vem-page-header .container {
  position: relative;
  z-index: 1;
  width: calc(100% - 48px);
  max-width: 1140px;
  height: 100%;
  margin: 0 auto;
  padding: 0;
}

#top.gr-internal-page .gr-vem-page-header .content {
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

#top.gr-internal-page .gr-vem-page-header .entry-content-wrapper {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  column-gap: clamp(72px, 8.1vw, 125px);
  height: 100%;
}

#top.gr-internal-page .gr-vem-page-header .entry-content-wrapper::before,
#top.gr-internal-page .gr-vem-page-header .entry-content-wrapper::after {
  display: none;
}

#top.gr-internal-page .gr-vem-page-header .entry-content-wrapper > .flex_column {
  float: none;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  clear: none;
}

#top.gr-internal-page .gr-vem-page-logo {
  display: block;
  width: 268px;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#top.gr-internal-page .gr-vem-page-logo .avia-image-container-inner,
#top.gr-internal-page .gr-vem-page-logo .avia-image-overlay-wrap {
  display: block;
  width: 100%;
}

#top.gr-internal-page .gr-vem-page-logo img {
  display: block;
  width: 100%;
  height: auto;
}

#top.gr-internal-page .gr-vem-page-eyebrow {
  margin: 0 0 42px;
  color: #506584;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 700;
  letter-spacing: 0.26em;
  line-height: 1.2;
  text-transform: uppercase;
}

#top.gr-internal-page .gr-vem-page-eyebrow p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

#top.gr-internal-page .gr-vem-page-header .gr-vem-page-title .av-special-heading-tag {
  margin: 0;
  color: #123c72 !important;
  font-size: clamp(44px, 4.7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-transform: uppercase;
}

#top.gr-internal-page .gr-vem-page-header .gr-vem-page-title .special-heading-border {
  display: none;
}

#top.gr-internal-page .gr-vem-page-intro {
  margin: 28px 0 0;
  color: #506584;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.35;
}

#top.gr-internal-page .gr-vem-page-intro p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

#top.gr-internal-page .gr-vem-services-grid {
  display: block;
  padding: 42px 0;
  border: 0;
  background: #ffffff;
}

#top.gr-internal-page .gr-vem-services-grid .container {
  width: calc(100% - 64px);
  max-width: 1375px;
  margin: 0 auto;
  padding: 0;
}

#top.gr-internal-page .gr-vem-services-grid .content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

#top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper::before,
#top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper::after {
  display: none;
}

#top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper > .flex_column {
  float: none;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  clear: none;
}

#top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper > .gr-vem-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: auto;
  min-height: 280px;
  margin: 0;
  padding: 24px 32px 28px;
  overflow: hidden;
  border: 1px solid #d5dfed;
  border-radius: 14px;
  background: #ffffff;
  color: #1b3863;
  text-decoration: none;
  box-shadow: none;
}

#top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper > .gr-vem-service-card::before {
  display: none;
}

#top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper > .gr-vem-service-card:hover,
#top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper > .gr-vem-service-card:focus-within {
  border-color: #123c72;
  color: #1b3863;
  box-shadow: none;
  transform: none;
}

#top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper > .gr-vem-service-card:focus-within {
  outline: 3px solid #f2ad3d;
  outline-offset: 3px;
}

#top.gr-internal-page .gr-vem-service-kicker.avia_textblock {
  display: none;
}

#top.gr-internal-page .gr-vem-services-grid .gr-vem-service-title,
#top.gr-internal-page .gr-vem-services-grid .gr-vem-service-description {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper > .gr-vem-service-card h2 {
  margin: 0 0 12px;
  color: #123c72;
  font-size: clamp(22px, 1.8vw, 29px);
  font-weight: 800;
  line-height: 1.28;
  text-transform: uppercase;
}

#top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper > .gr-vem-service-card h2 .special-heading-border {
  display: none;
}

#top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper > .gr-vem-service-card p {
  margin: 0 0 16px;
  color: #506584;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.52;
}

#top.gr-internal-page .gr-vem-service-action {
  display: flex;
  width: 100%;
  margin-top: 10px;
}

#top.gr-internal-page .gr-vem-service-action--primary {
  margin-top: auto;
}

#top.gr-internal-page .gr-vem-services-grid .gr-vem-service-action .avia-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  height: 56px;
  min-height: 56px !important;
  padding: 12px 20px;
  border: 2px solid #123c72;
  border-radius: 7px;
  background: transparent;
  color: #123c72;
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 180ms ease, color 180ms ease;
}

#top.gr-internal-page .gr-vem-services-grid .gr-vem-service-action .avia-button .avia_button_icon {
  display: none;
}

#top.gr-internal-page .gr-vem-services-grid .gr-vem-service-action .avia-button:hover,
#top.gr-internal-page .gr-vem-services-grid .gr-vem-service-action .avia-button:focus-visible {
  background: #123c72;
  color: #ffffff;
  transform: none;
}

/* Texto ampliado do Ally: o painel e os cards acompanham o reflow sem cortar
   o titulo, a marca ou a descricao. */
@media only screen and (min-width: 990px) {
  #top.gr-internal-page.gr-internal-a11y-normalized .gr-vem-page-header {
    height: auto !important;
    min-height: 320px;
    padding: 0;
    overflow: visible;
  }

  #top.gr-internal-page.gr-internal-a11y-normalized .gr-vem-page-header .container,
  #top.gr-internal-page.gr-internal-a11y-normalized .gr-vem-page-header .content,
  #top.gr-internal-page.gr-internal-a11y-normalized .gr-vem-page-header .entry-content-wrapper {
    height: auto !important;
  }

  #top.gr-internal-page.gr-internal-a11y-normalized .gr-vem-page-header .entry-content-wrapper {
    min-height: 0;
  }

  #top.gr-internal-page.gr-internal-a11y-normalized .gr-vem-services-grid .entry-content-wrapper > .gr-vem-service-card {
    min-height: 0;
    overflow: visible;
  }

  #top.gr-internal-page.gr-internal-a11y-normalized .gr-vem-services-grid .gr-vem-service-action .avia-button {
    height: auto;
    min-height: 56px !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media only screen and (max-width: 989px) {
  #top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper {
    grid-template-columns: 1fr;
  }

  #top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper > .gr-vem-service-card {
    min-height: 0;
  }
}

@media only screen and (max-width: 620px) {
  #top.gr-internal-page:has(.gr-vem-page) .title_container .container {
    display: block;
    padding: 18px 0;
  }

  #top.gr-internal-page:has(.gr-vem-page) .title_container .breadcrumb {
    margin-top: 10px;
    text-align: left;
  }

  #top.gr-internal-page .gr-vem-page-header {
    width: calc(100% - 32px);
    height: auto;
    min-height: 0;
    margin: 28px auto;
    padding: 28px 0 30px;
    border-radius: 16px;
  }

  #top.gr-internal-page .gr-vem-page-header .container {
    width: calc(100% - 36px);
    height: auto;
  }

  #top.gr-internal-page .gr-vem-page-header .content {
    height: auto;
  }

  #top.gr-internal-page .gr-vem-page-header .entry-content-wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    height: auto;
    text-align: center;
  }

  #top.gr-internal-page .gr-vem-page-logo {
    width: min(190px, 64vw);
  }

  #top.gr-internal-page .gr-vem-page-eyebrow {
    margin-bottom: 16px;
    font-size: 14px;
  }

  #top.gr-internal-page .gr-vem-page-header .gr-vem-page-title .av-special-heading-tag {
    font-size: clamp(34px, 10vw, 48px);
  }

  #top.gr-internal-page .gr-vem-page-intro {
    margin-top: 14px;
    font-size: 18px;
  }

  #top.gr-internal-page .gr-vem-services-grid {
    padding: 28px 0;
  }

  #top.gr-internal-page .gr-vem-services-grid .container {
    width: calc(100% - 32px);
  }

  #top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper > .gr-vem-service-card {
    padding: 30px 24px;
  }

  #top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper > .gr-vem-service-card h2 {
    margin-bottom: 18px;
    font-size: 25px;
  }

  #top.gr-internal-page .gr-vem-services-grid .entry-content-wrapper > .gr-vem-service-card p {
    margin-bottom: 24px;
    font-size: 18px;
  }
}
