/* GLOBAL / GERAL ------------------------------------------- */
body {
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: #1772b6;
}
h2 {
  color: #1772b6;
}
h2.white {
  color: #ffffff;
  font-size: 40px;
}
.azulbd {
  color: black;
}
.card-top {
  margin-top: 1rem;
}

/* CAROUSEL -------------------------------------------------- */
.carousel {
  margin-bottom: 4rem;
}

/* Slide do carrossel (cada item) */
.carousel-item {
  height: 100vh; /* altura total da viewport */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Container do conteúdo - resetar classes Bootstrap que podem interferir */
.carousel-item .d-flex {
  height: 100%;
  width: 100%;
  position: relative;
}

/* Legenda do carrossel */
.carousel-caption {
  position: absolute !important; /* Forçar para sobrescrever Bootstrap */
  top: 50% !important;
  left: 50% !important;
  right: auto !important; /* Resetar Bootstrap */
  bottom: auto !important; /* Resetar Bootstrap */
  transform: translate(-50%, -50%) !important;
  width: 90%;
  max-width: 1200px;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  text-align: center;
  z-index: 10;
  margin: 0; /* Remover qualquer margin */
}

/* Remover duplicação de estilos - simplificar */
.carousel-text-block {
  padding: 2rem;
  max-width: 90vw;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

/* Fundo escurecido atrás do texto */
.bg-opacity {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Texto do carrossel */
.carousel .p {
  font-size: 20px;
}

/* Controles do carousel - setas */
.carousel-control-prev,
.carousel-control-next {
  z-index: 20 !important; /* Muito maior que o caption e forçar com !important */
  opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Ajustar no mobile */
@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    z-index: 20 !important;
    width: 20%; /* Área maior para facilitar toque */
    opacity: 0.9; /* Mais visível no mobile */
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 40px !important;
    height: 40px !important;
    background-color: rgba(0, 0, 0, 0.8); /* Fundo mais escuro */
    border-radius: 50%;
    padding: 8px;
  }
  
  /* Reduzir um pouco o z-index do caption no mobile se necessário */
  .carousel-caption {
    z-index: 10 !important;
  }
}

/* BACKGROUNDS -------------------------------------------------- */
.bg-image-1 {
  background-image: url('https://storage.googleapis.com/staging.bluedesk-p3.appspot.com/rsz_1carousel.jpg');
}
.bg-image-2 {
  background-image: url('https://storage.googleapis.com/staging.bluedesk-p3.appspot.com/rsz_2recursos_abrangentes.jpg');
}
.bg-image-3 {
  background-image: url('https://storage.googleapis.com/staging.bluedesk-p3.appspot.com/rsz_1consultoria.jpg');
}

/* FEATURETTES -------------------------------------------------- */
.featurette-divider {
  margin: 2rem 2rem;
}
.featurette-heading {
  letter-spacing: -.05rem;
}
.featurette-heading.desc-focus {
  font-size: 40px;
}

/* RESPONSIVO -------------------------------------------------- */
@media (min-width: 40em) {
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }
  .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    min-height: 100vh; /* Garantir altura mínima no mobile */
    height: 100vh;
  }
  .carousel-caption {
    width: 95% !important;
    padding: 1.5rem !important;
    /* Manter centralização no mobile */
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
  .carousel-caption h1 {
    font-size: 1.3rem;
  }
  .carousel-caption h4 {
    font-size: 1rem;
  }
  .carousel-caption p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}