/*
  BANNER v 2.0;
  Estrutura do mockup v3: hero com texto à esquerda e imagem/vídeo à direita.
  Base: BANNER v 1.1 (João Diogo Pereira, 05/2023).
*/

.banner {
  --bannerFrom: #0f2a4d;
  --bannerTo: #1b4d86;
  --bannerText: #ffffff;
  --bannerAccent: #1f9fb3;
  position: relative;
  background-color: var(--bannerFrom);
}

.banner .owl-stage {
  display: flex;
}

.banner .owl-item {
  display: flex;
}

.banner__item {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 480px;
  min-height: min(calc(90vh - 89px), 720px);
  min-height: min(calc(90svh - 89px), 720px);
  padding: 56px 0 72px;
  background-image: linear-gradient(135deg, var(--bannerFrom), var(--bannerTo));
}

.banner__item__container {
  position: relative;
  z-index: 1;
}

.banner__item__title {
  margin: 0 0 16px;
  font-family: var(--headingFont, Georgia, "Times New Roman", serif);
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-align: left;
  color: var(--bannerText);
}

.banner__item__content {
  max-width: 52ch;
  margin: 0 0 24px;
  font-family: var(--primaryTextFont);
  font-size: 18px;
  font-weight: normal;
  line-height: 1.6;
  text-align: left;
  color: rgba(255, 255, 255, .85);
}

.banner__item__content *:last-child {
  margin-bottom: 0;
}

.banner__item__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Botões dentro do banner (fundo escuro) */
.banner .btns--inline {
  display: inline-block;
  padding: 12px 22px;
  border: 1.5px solid #fff;
  border-radius: 6px;
  background-color: #fff;
  color: #0f2a4d;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s, color .2s;
}

.banner .btns--inline:hover,
.banner .btns--inline:focus-visible {
  border: 1.5px solid #fff;
  background-color: transparent;
  color: #fff;
}

.banner .btns--outline {
  display: inline-block;
  padding: 12px 22px;
  border: 1.5px solid #fff;
  border-radius: 6px;
  background-color: transparent;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s, color .2s;
}

.banner .btns--outline:hover,
.banner .btns--outline:focus-visible {
  background-color: #fff;
  color: #0f2a4d;
}

/* Imagem ou vídeo (coluna da direita) */
.banner__item__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, .08);
}

.banner__item__img,
.banner__item__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Setas e pontos do Owl Carousel */
.banner .owl-nav {
  margin: 0;
}

.banner .owl-nav button.owl-prev,
.banner .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .85);
  color: #0f2a4d;
  font-size: 26px;
  line-height: 1;
}

.banner .owl-nav button.owl-prev {
  left: 12px;
}

.banner .owl-nav button.owl-next {
  right: 12px;
}

.banner .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
}

.banner .owl-dots .owl-dot span {
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: transparent;
}

.banner .owl-dots .owl-dot.active span {
  background-color: #fff;
}

.banner .owl-nav button:focus-visible,
.banner .owl-dots .owl-dot:focus-visible {
  outline: 3px solid var(--bannerAccent);
  outline-offset: 2px;
}

@media only screen and (max-width: 991px) {
  .banner__item__media {
    aspect-ratio: 16 / 10;
  }
}

@media only screen and (max-width: 767px) {
  .banner__item {
    min-height: 0;
    padding: 40px 0 64px;
  }

  .banner__item__content {
    font-size: 16px;
  }

  .banner .owl-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner .btns--outline {
    transition: none;
  }
}