/*Banner */
.header-banner {
  position: relative;
  background-image: url('../img/img_recomendacoes/fundo_recomendacoes.png'); /* <-- muda para a tua imagem */
  background-size: cover;
  background-position: center;
  height: 400px; /* ou mais, conforme preferires */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-repeat: no-repeat;     
  background-size: cover; 
}

.header-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* ← escurece a imagem */
  z-index: 1;
}

/*Banner- Texto*/
.overlay-banner {
  background-color: transparent; /* ou simplesmente remove esta linha */
  color: white;
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 1000px;
  position: relative;
  z-index: 2; /* ← garante que o texto fique por cima da camada escura */
}

.overlay-banner h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.breadcrumb-nav {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.breadcrumb-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-nav span {
  margin: 0 0.3rem;
  color: #dac187;
}

.breadcrumb-nav .active {
  color: #dac187; 
  font-weight: 700;
}

/*Texto-Subtitulo*/
.comment {
  padding-top: 10px;
  font-size: 1.1rem;
  text-align: center;
}

/*Linha da caixa do texto*/
.caixa-guia {
  border: 1px solid #e2d9c4; 
  padding: 2rem;
  position: relative;
  background-color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  border: 4px solid #e2d9c4;  
}

/*Texto*/
.texto {
  text-align: justify;
  font-size: 1.1rem;
  line-height: 2.0rem;
  color: #333;
  padding: 30px;
}

/*Card*/
.card, .alert, .list-group-item {
  transition: all 0.3s ease-in-out;
}

.card:hover {
  transform: scale(1.01);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.list-group-item {
  background-color: transparent;
  border: 0;
  padding-left: 1rem;
}

/*Card Verde*/
.card.verde-claro {
  background-color: #e6f4ea; /* verde claro suave */
  border-left: 5px solid #198754; /* detalhe opcional */
}

.card.verde-claro .card-title,
.card.verde-claro li {
  color: #198754;
}

/*Card Vermelho*/
.card.vermelho-claro {
  background-color: #fdecea; /* vermelho claro suave */
  border-left: 5px solid #dc3545; /* vermelho bootstrap */
}

.card.vermelho-claro .card-title,
.card.vermelho-claro li {
  color: #dc3545;
}

/* RESPONSIVO GERAL PARA recomendacoes.css */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  .header-banner {
    height: 320px;
  }

  .overlay-banner h1 {
    font-size: 2rem;
  }

  .breadcrumb-nav {
    font-size: 0.95rem;
  }

  .texto {
    padding: 20px;
    font-size: 1rem;
  }

  .comment {
    font-size: 1rem;
  }

  .caixa-guia {
    padding: 1.5rem;
  }
}

/* Telemóveis (≤ 768px) */
@media (max-width: 768px) {
  .header-banner {
    height: 260px;
  }

  .overlay-banner {
    padding: 1.5rem;
  }

  .overlay-banner h1 {
    font-size: 1.6rem;
  }

  .breadcrumb-nav {
    font-size: 0.9rem;
  }

  .texto {
    padding: 15px;
    font-size: 0.95rem;
  }

  .comment {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .caixa-guia {
    padding: 1rem;
  }
}

/* Telemóveis pequenos (≤ 480px) */
@media (max-width: 480px) {
  .header-banner {
    height: 220px;
  }

  .overlay-banner h1 {
    font-size: 1.4rem;
  }

  .breadcrumb-nav {
    font-size: 0.85rem;
  }

  .texto {
    padding: 10px;
    font-size: 0.9rem;
  }

  .comment {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .caixa-guia {
    padding: 0.8rem;
    border-width: 3px;
  }
}