/*
  BANNER v2.2 — Loureiro B&B
  O escurecimento da imagem é feito aqui (::before) e não no style inline,
  para garantir contraste AA do texto branco sobre qualquer fotografia.
*/

.banner__item {
  position: relative;
  height: clamp(480px, calc(100svh - var(--header-h)), 780px);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--secondaryColor);
}

.banner__item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .10) 45%, rgba(0, 0, 0, .0) 100%)
}

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

.banner__item__title {
  font-family: var(--primaryTextFont), sans-serif;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: left;
  color: var(--primaryTextColor);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.banner__item__content {
  max-width: 40rem;
  font-family: var(--secondaryTextFont), sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: left;
  color: var(--primaryTextColor);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.banner__item__content,
.banner__item__content * {
  text-align: left;
  color: var(--primaryTextColor);
}

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

.banner__item__content h3,
.banner__item__content h3 * {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  margin-bottom: 1rem;
}

.banner__item {
  overflow: hidden;
}

/* o vídeo ocupa só o próprio slide (antes era position:fixed e ficava atrás da página) */
.banner__item__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* o escurecimento é feito pelo ::before */
.banner__item__overlay {
  display: none;
}

.banner-wrap {
  position: relative;
}

/* bolinhas de navegação: brancas com contorno, legíveis sobre qualquer foto */
.banner.owl-theme .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: .25rem;
}

.banner.owl-theme .owl-dots .owl-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.banner.owl-theme .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  margin: 0;
  background: transparent;
  border: 2px solid var(--primaryColor);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
  transition: background-color .25s ease-in-out, transform .25s ease-in-out;
}

.banner.owl-theme .owl-dots .owl-dot:hover span {
  transform: scale(1.25);
}

.banner.owl-theme .owl-dots .owl-dot.active span,
.banner.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--primaryColor);
}

.banner.owl-theme .owl-dots .owl-dot:focus-visible {
  outline: 3px solid var(--primaryColor);
  outline-offset: 0;
  box-shadow: 0 0 0 5px var(--terciaryColor);
}

/* botão pausar / retomar (WCAG 2.2.2) */
.banner-toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--primaryTextColor);
  background: rgba(0, 0, 0, .65);
  border: 2px solid var(--primaryColor);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .25s ease-in-out, color .25s ease-in-out;
}

.banner-toggle[hidden] {
  display: none;
}

.banner-toggle:hover {
  color: var(--secondaryTextColor);
  background: var(--primaryColor);
}

.banner-toggle:focus-visible {
  outline: 3px solid var(--primaryColor);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--terciaryColor);
}

.banner-toggle__play,
.banner-toggle.is-paused .banner-toggle__pause {
  display: none;
}

.banner-toggle.is-paused .banner-toggle__play {
  display: block;
}

@media only screen and (max-width: 767px) {
  .banner__item__content {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 767px) and (orientation: landscape) {
  .banner__item {
    height: auto;
    min-height: calc(100svh - var(--header-h));
  }
}
