/* Fundo escuro */
main.parceiros .title{
  text-align: left;
  font-size: 7.609vh;
  font-family:"figtree", sans-serif;
  text-transform: uppercase;
  padding: 10.87vh 10.417vw 5.435vh;
  color: #000;
  
}
main.parceiros {
  min-height: 92vh;
}

.hero-parceiros {
  position: relative;
  background-image:linear-gradient(to right, #ae752d, transparent 100%), url("../images/aperto.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 23.914vh;
  display: flex;
}

.hero-parceiros .title {
  position: relative;
  font-size: 7.609vh;
  font-family: "figtree", sans-serif;
  text-transform: uppercase;
  color: #000;
  font-weight: 900;
  -webkit-text-stroke: 0.217vh #000;

}

aperto{
  display: flexbox;

}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.logo_win {
  max-width: 32.609vh;
  width: 100%;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.modal.card {
  background: #f2f1ee;
  padding: 40px;
  border-radius: 50px;
  width: 450px;
  text-align: center;
  font-family:"figtree", sans-serif;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  animation: fadeIn 0.3s ease;
  height: 54.348vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;}

.modal.card h1 {
  font-size: 42px;
  font-weight: 800;
  margin: 0;
}

.modal.card h1 span {
  display: block;
  font-size: 24px;
  font-weight: 400;
}

.slogan {
  margin: 1.087vh 0 2.717vh;
  font-size: 1.957vh;
  color: #333;
}

.info p {
  margin: 0.87vh 0;
  font-size: 1.739vh;
  color: #444;
}

.info a {
  color: #333;
  text-decoration: none;
}

.info a:hover {
  color: #b69d7f;
  text-decoration: underline;
}
.info {
  text-align: left;
  margin: 1.63vh auto 0 auto;
  max-width: 15.625vw;
  font-family:"figtree", sans-serif;
}


.modal button {
  margin-top: 20px;
  padding: 10px 20px;
  background: #b69d7f;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}


.modal button:hover {
  background: #9c8367;
}

/* animação */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 40px;
  justify-items: center;
  padding: 0 10.417vw;
}

.partner-card {
  background: #fff;
  padding: 15px;
  border-radius: 12px;

  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 180px;
}

.partner-card img {
  max-width: 100%;
  max-height: 14.13vh;
  object-fit: contain;
}

.partner-card:hover {
  transform: translateY(-5px);
}

/* Responsividade */
@media (max-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

/* Botão fechar (X) */
.close-btn {
  position: absolute;
  top: 100px;
  right: 90px;
  font-size: 100px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
  font-weight: bold;
}
.close-btn:hover {
  color: #b69d7f;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #333;
  font-size: 24px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.3s ease, color 0.3s ease;
  z-index: 1001;

}

.nav-arrow.left {
  left: 100px;
}

.nav-arrow.right {
  right: 100px;
}

.nav-arrow:hover {
  background: #b69d7f;
  color: #fff;
}

/* Responsividade */
@media (max-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Adiciona padding lateral para o grid não colar na borda */
    padding: 0 5vw; 
  }

  /* TÍTULOS */
  main.parceiros .title {
    /* 1. Troca 'vh' por 'rem' para um tamanho estável */
    font-size: 2.5rem; 
    /* 2. Troca 'vh' por 'px' para um padding estável */
    padding: 40px 20px;
    text-align: center; /* Fica melhor centralizado no mobile */
  }

  .hero-parceiros {
    /* 3. Define uma altura fixa e razoável */
    height: 180px; 
  }

  .hero-parceiros .title {
    font-size: 2.2rem; /* Tamanho estável */
    /* 4. Troca 'vh' por 'px' para um contorno estável */
    -webkit-text-stroke: 2px #000; 
    padding: 0 20px;
    text-align: center;
    width: 100%; /* Garante que o text-align funcione */
  }

  /* MODAL (o popup) */
  .modal.card {
    /* 5. Faz o modal ocupar 90% da tela e ter altura automática */
    width: 90vw;
    height: auto; 
    max-height: 85vh; /* Evita que o modal seja maior que a tela */
    overflow-y: auto; /* Permite rolar o modal se o conteúdo for grande */
    padding: 25px;
    border-radius: 25px;
  }

  .logo_win {
    /* 6. Define um tamanho máximo estável para o logo */
    max-width: 150px; 
  }

  /* Fontes dentro do Modal */
  .modal.card h1 {
    font-size: 2rem; /* (aprox. 32px) */
  }
  .modal.card h1 span {
    font-size: 1.2rem; /* (aprox. 19px) */
  }
  .slogan, .info p, .info a {
    font-size: 1rem; /* (aprox. 16px) - muito mais legível que 'vh' */
  }

  .info {
    /* 7. O 'max-width' em 'vw' estava quebrando tudo. */
    max-width: 100%; 
    text-align: center;
  }

  /* Imagem do Card */
  .partner-card img {
    /* 8. Define uma altura máxima estável */
    max-height: 80px;
  }

  /* Botões de Navegação do Modal */
  .close-btn {
    /* 9. Diminui o botão 'X' e reposiciona */
    font-size: 3rem; /* (era 100px) */
    top: 20px;
    right: 20px;
  }

  .nav-arrow {
    /* 10. Coloca as setas mais próximas das bordas */
    left: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: 1fr; /* Correto, uma coluna */
    padding: 0 10vw; /* Mais padding em telas bem pequenas */
  }

  /* Ajuste fino dos títulos para celulares */
  main.parceiros .title,
  .hero-parceiros .title {
    font-size: 1.8rem;
  }

  .hero-parceiros {
    height: 150px; /* Um pouco menor */
  }

  .modal.card h1 {
    font-size: 1.8rem;
  }

  .nav-arrow {
  display: none;
  }
}
