/*Banner */
.header-banner {
  position: relative;
  background-image: url('../img/img_parceiros/fundo_parceiros.jpg'); /* <-- 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;
}
  
.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 */
}

/*Banner- Texto*/  
.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;
}

/*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; 
}

.parceiros-logos {
  padding: 2rem 0;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: center;
}

.logos-grid a {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  padding: 10px;
  width: 100%;
  height: 120px;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.04);
}

.logos-grid a img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  filter: grayscale(40%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logos-grid a:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* RESPONSIVO GERAL PARA parceiros.css */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  .header-banner {
    height: 320px;
  }

  .overlay-banner h1 {
    font-size: 2rem;
  }

  .breadcrumb-nav {
    font-size: 0.95rem;
  }

  .caixa-guia {
    padding: 1.5rem;
  }

  .logos-grid a {
    height: 100px;
  }

  .logos-grid a img {
    max-height: 80%;
  }
}

/* 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;
  }

  .caixa-guia {
    padding: 1rem;
  }

  .logos-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
  }

  .logos-grid a {
    height: 90px;
  }

  .logos-grid a img {
    max-height: 70%;
  }
}

/* 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;
  }

  .caixa-guia {
    padding: 0.8rem;
    border-width: 3px;
  }

  .logos-grid a {
    height: 80px;
    padding: 8px;
  }

  .logos-grid a img {
    max-height: 60%;
  }
}