/*Banner */
.header-banner {
  position: relative;
  background-image: url('../img/img_f_n_financiada/img_banner.jpg'); 
  background-position: center;
  height: 400px; 
  display: flex;
  align-items: center;
  justify-content: center;
  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); 
  z-index: 1;
}
  
.overlay-banner {
  background-color: transparent; 
  color: white;
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 1000px;
  position: relative;
  z-index: 2; 
}

/*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; /* ou outra cor de destaque */
  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;  
}

/*Texto*/
.texto {
  text-align: justify;
  line-height: 2.0; 
  font-size: 1.1rem;
  padding-left: 90px;
  padding-right: 90px;
  color: #333;
  padding-top: 30px;
}

/* Estilo dos blocos de categoria */
.categoria-box {
  padding: 2rem 1rem;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.categoria-box:hover {
  transform: scale(1.05);
}

.categoria-azul {
  background-color: #1f74c5;
}

.categoria-azul-escuro {
  background-color: #1c1540;
}

.categoria-box i {
  font-size: 2rem;
  margin-bottom: 10px;
}

.categoria-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.categoria-link:hover {
  transform: scale(1.03);
}

/*Botões Sobre*/
.botao-sobre {
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  background-color: #dac187;
  color: white;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 30px 30px 30px 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: auto;              
  max-width: 250px;          
  white-space: nowrap;       
  margin-top: 20px;
}
  
.botao-sobre i {
  margin-left: 10px;
  transition: transform 0.2s ease;
}
  
.botao-sobre:hover {
  background-color: #dcc592;
  transform: scale(1.08); 
}
  
.botao-sobre:hover i {
  transform: translateX(4px);
}

/* RESPONSIVO GERAL PARA f_n_financiada.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 40px;
    font-size: 1rem;
  }

  .caixa-guia {
    padding: 1.5rem;
  }

  .botao-sobre {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  .categoria-box {
    min-height: 160px;
    padding: 1.5rem 1rem;
  }
}

/* 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;
    margin-top: 0.3rem;
  }

  .texto {
    padding: 15px;
    font-size: 0.95rem;
  }

  .caixa-guia {
    padding: 1rem;
  }

  .botao-sobre {
    font-size: 0.8rem;
    max-width: 90%;
    padding: 10px 18px;
  }

  .categoria-box {
    min-height: auto;
    padding: 1rem;
    text-align: center;
  }

  .categoria-box i {
    font-size: 1.6rem;
  }
}

/* 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;
  }

  .caixa-guia {
    padding: 0.8rem;
    border-width: 3px;
  }

  .botao-sobre {
    font-size: 0.75rem;
    padding: 8px 14px;
  }
}