/*Slider*/
.slider {
  position: relative;
  height: 80vh;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  z-index: 0;
}

.slide {
  opacity: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.aparecer {
  opacity: 1;
  transform: translateY(0);
}

  
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10%;
  z-index: 1;
}
  
.overlay h2 {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 0 0 5px #000;
}

.destaque-laranja {
  color: #dac187;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 3px solid #dac187;
  width: fit-content; 
  white-space: nowrap; 
}

.sublinhado{
  display: inline-block;
  font-weight: 700;
  padding-bottom: 5px;
  border-bottom: 3px solid white;
  color: white;
}

/*Botões*/
.botoes .btn {
  display: inline-block;
  background-color: rgba(0,0,0,0.6);
  color: white;
  padding: 12px 24px;
  margin: 10px 5px;
  text-decoration: none;
  font-size: 1.1em;
  border-radius: 5px;
  transition: background 0.3s;
  cursor: default;
}
  
.botoes .btn:hover {
  background-color: rgba(0,0,0,0.8);
}

.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);
}
  
.navegacao .seta {
  position: absolute;
  top: 50%;
  font-size: 2em;
  color: white;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  z-index: 2;
}
  
.seta.esquerda { left: 10px; }
.seta.direita { right: 10px; }

/*Card-Zone*/
.card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 por linha */
  gap: 4rem 0rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-right: 8rem;
  padding-left: 8rem;
  margin-bottom: 4rem;
  justify-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Cartões individuais */
.card {
  position: relative;
  background-color: #0e0f2c;
  color: white;
  width: 300px;
  height: 300px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card .mais-info {
  color: #dac187;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Conteúdo dos cartões */
.card-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.card-content.default {
  opacity: 1;
  z-index: 1;
}

.card-content.hover {
  opacity: 0;
  z-index: 2;
}

.card:hover .card-content.default {
  opacity: 0;
}

.card:hover .card-content.hover {
  opacity: 1;
}

.card h2 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Efeito hover cor */
.card1:hover,
.card3:hover,
.card4:hover {
  background-color: #dac187;
  transition: background-color 0.3s ease;
}

/* Cartão 2 com divisão especial */
.card-content.hover.grid4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  padding: 0; /* remove o padding para encaixar bem */
}

.card-content.hover.grid4 .card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  margin: 0;       /* remove espaçamentos internos */
  text-align: center;
  text-decoration: none;
  transition: background 0.3s;
  height: 100%;
  width: 100%;
}

/* Cada quadrado ocupa exatamente 25% */
.card-content.hover.grid4 a:nth-child(1) { background-color: #0e0f2c; }
.card-content.hover.grid4 a:nth-child(2) { background-color: #0e0f2c; }
.card-content.hover.grid4 a:nth-child(3) { background-color: #0e0f2c; }
.card-content.hover.grid4 a:nth-child(4) { background-color: #0e0f2c; }

.card-content.hover.grid4 .card-link:hover {
  background-color: #dac187;;
}

/*Zona de Contagem de Números*/
.numeros {
  background-image: url('../img/img_index/fundo.svg'); 
  background-size: cover;
  background-position: center;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}
  
.container-numeros h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
  
.numeros-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 0.1rem;
  margin-top: 3rem;
}
  
.item {
  flex: 1 1 200px;
}
  
.item i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
  
.valor {
  font-size: 3rem;
  font-weight: bold;
  margin: 0.3rem 0;
}
  
h3.text-center i {
  font-size: 1.3rem;
}

.descricao {
  font-size: 1rem;
}

/*Bloco Informativo*/
.bloco-info {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  text-align: justify;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #444;
}
  
.bloco-info p {
  margin-bottom: 1.5rem;
}


/* Responsivo para mobile: 1 por linha */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVO GERAL */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  .overlay h2 {
    font-size: 2.2em;
  }

  .botao-sobre {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  .card-container {
    padding: 2rem;
    gap: 2rem;
  }

  .numeros-wrapper {
    flex-direction: column;
    align-items: center;
    row-gap: 2rem;
  }

  .item {
    max-width: 100%;
    text-align: center;
  }

  .valor {
    font-size: 2.5rem;
  }
}

/* Telemóveis (≤ 768px) */
@media (max-width: 768px) {
  .slider {
    height: 60vh;
  }

  .overlay {
    padding: 5% 10%;
    align-items: flex-start;
  }

  .overlay h2 {
    font-size: 1.8em;
  }

  .destaque-laranja {
    font-size: 1.2rem;
    border-bottom: 2px solid #dac187;
  }

  .sublinhado {
    font-size: 1rem;
    border-bottom: 2px solid white;
  }

  .botoes .btn {
    font-size: 1rem;
    padding: 10px 16px;
  }

  .botao-sobre {
    font-size: 0.8rem;
    max-width: 90%;
  }

  .card-container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .card {
    width: 90%;
    height: auto;
    min-height: 260px;
  }

  .numeros {
    padding: 3rem 1rem;
  }

  .valor {
    font-size: 2rem;
  }

  .bloco-info {
    padding: 1.5rem;
    font-size: 1rem;
  }
}

/* Telemóveis pequenos (≤ 480px) */
@media (max-width: 480px) {
  .overlay h2 {
    font-size: 1.5em;
  }

  .destaque-laranja {
    font-size: 1rem;
  }

  .botao-sobre {
    font-size: 0.75rem;
    padding: 8px 14px;
  }

  .card h2 {
    font-size: 1rem;
  }

  .card a {
    font-size: 0.8rem;
  }

  .valor {
    font-size: 1.8rem;
  }

  .descricao {
    font-size: 0.9rem;
  }
}