/* ====== CARROSSEL / BANNER ====== */
.carousel-item {
  position: relative;
  height: 400px;          /* 🔹 altura fixa no desktop */
  overflow: hidden;
}

.carousel-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* preenche toda a área sem bordas pretas */
  object-position: center;
  display: block;
}

/* ====== CAPTION (TEXTO SOBRE O BANNER) ====== */
.carousel-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;  /* texto à direita no desktop */
  text-align: right;
  padding: 2rem;
  background: linear-gradient(
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15)
  );
  z-index: 2;
}

.text-section {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  margin: 0;
}

.sub-text-section {
  font-size: 1.1rem;
  color: #f1f1f1;
  font-weight: 400;
  margin-bottom: .5rem;
}

/* ====== REMOVER SETAS / ÍCONES ====== */
.carousel-control-prev,
.carousel-control-next,
.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: none !important;
}

/* ====== RESPONSIVIDADE ====== */

/* Tablet */
@media (max-width: 992px) {
  .carousel-caption {
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(
      rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.35)
    );
  }

  .text-section {
    font-size: 1.6rem;
  }

  .sub-text-section {
    font-size: 1rem;
  }
}

/* Celular — sem corte de imagem */
@media (max-width: 576px) {
  .carousel-item {
    height: auto;          /* 🔑 deixa a imagem ajustar altura automaticamente */
    overflow: visible;
  }

  .carousel-inner img {
    width: 100%;
    height: auto;          /* 🔑 mantém proporção natural */
    object-fit: contain;   /* mostra a imagem inteira, sem cortar */
    background: transparent;
  }

  .carousel-caption {
    align-items: flex-end; /* texto mais abaixo */
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.45)
    );
  }

  .text-section {
    font-size: 1.4rem;
  }

  .sub-text-section {
    font-size: .95rem;
  }
}
