@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500&display=swap');

/* RESET E CONFIGURAÇÕES GERAIS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /*scroll-behavior: smooth;*/
  scroll-behavior: auto;
  
}

html, body {
  max-width: 100%;
  overflow: hidden;
  height: 100vh;
}

body {
  background-image: url('../images/8D2B8727.webp'); /* ou qualquer imagem que escolhas */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* para o efeito parallax */
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  padding-top: 80px; /* Ajusta com a altura do teu header */
  font-family: 'Rajdhani', sans-serif;
  background-color: #ffffff;
  color: #fff;
}

section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

#section {
  min-height: 400px; /* ou o valor que cubra o conteúdo sem shift */
}

section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3); /* overlay escuro */
  z-index: 0;
}

section > * {
  position: relative;
  z-index: 1;
}

section h2, section p, section a {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

#countdown {
  min-height: 30px;
}

/*.text-overlay2 {
  background-color: rgba(0, 0, 0, 0.4); 
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
}

.text-overlay-social {
  background-color: rgba(0, 0, 0, 0.4); 
  border-radius: 4px;
  margin-bottom: 8px;
  display: inline-block;
}*/


/* HEADER E MENU */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Para ficar acima de outros elementos */
  background-color: rgb(247 247 249 / 80%); /* Azul (#003366) com transparência */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  transition: background-color 0.3s;
}

.logo-container {
  flex: 0 0 auto;
}
/*
.logo-container img,
.logo {
  height: 100%;
  max-width: 100%;
}*/

/* Estilo base para todos os tamanhos de ecrã */
nav a {
  display: inline-block;
  margin: 5px 10px;
  padding: 6px 10px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
  position: relative;
  background-color: transparent;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: none;
}

nav {
  flex: 1;
  display: flex;
  justify-content: flex-end; /* ALINHA O MENU À DIREITA */
  gap: 15px;
}

/* Apenas efeito ao passar o mouse */
nav a:hover,
nav a:focus {
  outline: none;    
  color: #ff6600;
  background-color: rgba(255, 102, 0, 0.15); 
  border-color: #ff6600;
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}



/* SEÇÕES COM BACKGROUND */
section {
  min-height: 100vh;
  padding: 120px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  margin-bottom: 40px;
}

.section {
  overflow-y: auto; /* só esta área tem scroll vertical */
  max-height: calc(100vh - 80px);; /* ou altura fixa desejada */
}


.provas-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.provas-list li {
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    align-items: center;
    text-align: center;
    padding: 30px;
    min-height: 120px;
    /* background-color: rgba(255, 255, 255, 0.8); */
    border-radius: 8px;
}


.provas-list li div:first-child {
  margin-bottom: 10px;
}

.mais-info {
  background-color: #ff6600;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.mais-info:hover {
  background-color: #e65c00;
}

#contatos {
    position: relative;
}

#visitorCountMenu {
    display: none;
}

/* TIPOGRAFIA */
.timer {
  font-size: 2.0em;
  margin-bottom: 20px;
  color: #69ae97;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}


h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ff6600;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

p, li {
  font-size: 1.2em;
  line-height: 1.8em;
  max-width: 900px;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

ul {
  list-style: none;
  padding: 0;
}

/* FOOTER */
footer {
  background: #000;
  padding: 20px;
  text-align: center;
  color: #aaa;
}

/* CARROSSEL */
#carouselWrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-slide {
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.carousel-slide img {
  flex: 1 1 30%;
  max-width: 32%;
  height: auto;
  aspect-ratio: 3 / 2; /* ajusta conforme necessário */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(51, 51, 51, 0.7);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

#carouselContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 10px;
  overflow: hidden;
  /* Remover height fixa */
  /* height: 400px; */
  aspect-ratio: 4 / 3; /* opcional: mantém proporção mesmo antes do load */
  position: relative;
}

#carouselContainer img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3; /* garante espaço reservado */
  object-fit: contain; /* ou 'cover', se quiseres preencher todo o espaço */
  flex: 1;
}


/* LOADER DE IMAGENS */
.carousel-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-image-wrapper .loader {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

.carousel-image-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: none;
  z-index: 2;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#prevSlide, #nextSlide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10; /* Garante que ficam acima das imagens */
  background-color: rgba(0, 0, 0, 0.5); /* opcional para melhor visibilidade */
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

/* Posições desktop */
#prevSlide {
  left: -40px;
}
#nextSlide {
  right: -40px;
}

.carousel-button:hover {
  background-color: rgba(85, 85, 85, 0.9);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 40px;
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
}

#lightboxPrev {
  left: 40px;
}

#lightboxNext {
  right: 40px;
}

.lightbox-nav:hover,
.close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.social-icons a {
  color: #ff6600;
  font-size: 60px; /* AUMENTA O TAMANHO DO ÍCONE */
  transition: transform 0.3s ease, color 0.3s ease;
  text-align: center;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #ffa94d;
}

.map-container {
  margin-top: 0; /* remove espaço antes do mapa */
}

.map-container {
  width: 100%;
  max-width: 100%;
  height: 40vh;
  border: 2px solid #ccc;
  border-radius: 10px;
}

#map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.btn-inscricao {
  display: inline-block;
  margin: 5px 10px;
  padding: 6px 10px;
  color: #ff6600; /* texto laranja original */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 3.4rem;
  white-space: nowrap;
  position: relative;
  background-color: transparent;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: none;
  cursor: pointer;
}

.btn-inscricao:hover {
  color: white; /* texto branco no hover */
  background-color: rgba(255, 102, 0, 0.15); /* fundo laranja suave */
  border-color: #ff6600;
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.btn-inscricao-prova {
  display: inline-block;
  margin: 5px 10px;
  padding: 6px 10px;
  color: #ff6600; /* texto laranja original */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 2.4rem;
  white-space: nowrap;
  position: relative;
  background-color: transparent;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: none;
  cursor: pointer;
}

.btn-inscricao-prova:hover {
  color: white; /* texto branco no hover */
  background-color: rgba(255, 102, 0, 0.15); /* fundo laranja suave */
  border-color: #ff6600;
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}




.social-links-home {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social-link-home {
  color: #ff6600;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.social-link-home:hover {
  color: white;
  text-decoration: underline;
}

.social-link-home i {
  font-size: 1.8em; /* Tamanho do ícone */
  transition: transform 0.3s ease;
}

.social-link-home:hover i {
  transform: scale(1.2);
}


.botao-inscricao {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgb(255 255 255 / 60%);
  color: #1b333f;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Sombra discreta para contraste */
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: none;
  z-index: 999;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;

  /* Inicialmente oculto mas ocupa espaço fixo */
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Evita cliques quando oculto */
}

/* Quando visível */
.botao-inscricao.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.botao-inscricao:hover,
.botao-inscricao:focus {
  outline: none;    
  background-color: rgba(255, 102, 0, 0.15); 
  border-color: #ff6600;
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}


/* carousel desktop*/

@media (min-width: 992px) {
  .carousel-slide img {
    width: 30%;
    height: 350px; /* ou 400px para ainda maior */
  }

  .carousel-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover; /* preenche melhor o espaço */
  }

  #prevSlide {
    left: -50px;
  }

  #nextSlide {
    right: -50px;
  }
}



/* Layout mobile */
@media (max-width: 768px) {
    
   body {
        background-position: 20% center; /* mostra mais do lado esquerdo (20% do total) */
        background-attachment: scroll;
      }

  .container,
  .wrapper {
    max-width: 1200px;
    margin: 0 auto;
  }


  h2 {
  font-size: 1.5em;
    }

.timer {
  font-size: 1.5em;

}


  body,
  html {
    margin: 0;
    padding: 0;
  }

  header {
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 5px;
    transition: background-color 0.3s;
  }

  .logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  .logo {
    image-rendering: auto;
    display: block;
  }

   nav {
    gap: 2px 1px; /* menos espaço entre os itens */
    justify-content: flex-end;
    transition: all 0.3s ease-in-out;
  }

  nav a {
    font-size: 12px;      /* ligeiramente menor */
    padding: 10px 2px;     /* menos padding interno */
    margin: 0 2px;        /* menos margem externa */
  }

  
  .map-container {
    height: 200px; /* ou outro valor mais pequeno conforme o design desejado */
   }
   
   .social-icons {
    display: flex;
    justify-content: center;
    gap: 10px; /* espaçamento entre os ícones */
    flex-wrap: wrap; /* para não estourar se forem muitos */
  }
  
  .social-icons a {
    display: inline-block;
  }
  
  .social-links-home {
    align-items: center;  
    gap: 14px; 
  }

  .social-link-home {
    justify-content: center; /* centraliza o conteúdo interno de cada link */
    width: 100%; /* opcional: pode dar largura total */
  }
  
  #prevSlide {
    left: -20px;
  }
  #nextSlide {
    right: -20px;
  }
  
  .provas-list {
    display: block;
  }

  .provas-list li {
    padding: 0;
    margin-bottom: 20px; /* opcional para separar os blocos */
    min-height: 80px;
  }
  
  .btn-inscricao {
    padding: 0px 11px;
    font-size: 2.4rem;
  }
  
  .botao-inscricao {
    padding: 8px 3px;
  }
  
}

@media (max-width: 1200px) {
    .provas-list {
        flex-direction: column;
        gap: 10px;
  }
  
  .provas-list li{
     min-height: auto;
     padding: 10px;
  }
  
      .btn-inscricao-prova {
        padding: 0px 11px;
        font-size: 1.4rem;
    }
}


/* Para tablets e telas médias (até 1024px) */
@media (max-width: 1024px) {
  header {
    padding: 0px 15px;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 1.2rem;
    margin: 4px 8px;
    padding: 5px 8px;
  }

  section {
    padding: 100px 15px 30px;
  }
  
  /*.provas-list li {
    min-height: 100px;
    padding: 20px;
  }*/

  /* Carousel: diminuir espaço das imagens */
  .carousel-slide img {
    max-width: 45%;
    flex-basis: 45%;
  }

  #carouselContainer {
    height: 250px;
  }

  .timer {
    font-size: 1.8em;
  }

  h2 {
    font-size: 2em;
  }

  p, li {
    font-size: 1.1em;
  }
}

/* Para smartphones (até 768px) */
@media (max-width: 768px) {
  header {
    padding: 0px 10px;
  }

  nav a {
    font-size: 1.2rem;
    margin: 3px 6px;
    padding: 5px 7px;
  }

  section {
    padding: 90px 10px 25px;
  }

  /*.provas-list {
    flex-direction: column;
    gap: 12px;
  }

  .provas-list li {
    min-height: auto;
    padding: 15px;
  }*/

  .carousel-slide img {
    max-width: 80%;
    flex-basis: 80%;
  }

  #carouselContainer {
    height: 200px;
  }

  .timer {
    font-size: 1.6em;
  }

  h2 {
    font-size: 1.8em;
  }

  p, li {
    font-size: 1rem;
  }
}

/* Para celulares pequenos (até 480px) */
@media (max-width: 480px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0px 10px;
  }

  .logo-container {
    height: 50px;
    margin-bottom: 8px;
  }

  nav a {
    font-size: 1.2rem;
    margin: 2px 4px;
    padding: 4px 6px;
  }

  section {
    padding: 80px 8px 20px;
  }

  .provas-list {
    flex-direction: column;
    gap: 10px;
  }

  .provas-list li {
    padding: 10px;
  }

  .carousel-slide img {
    max-width: 95%;
    flex-basis: 95%;
  }

  #carouselContainer {
    height: 180px;
  }

  .timer {
    font-size: 1.4em;
  }

  h2 {
    font-size: 1.5em;
  }

  p, li {
    font-size: 0.95rem;
  }
}

/* Header principal
header {
  color: #fff;
  padding: 10px 20px;
} */

/* Container do header */
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}


/* Navegação */
nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  position: relative;
}

/* Links principais
.nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
} */

.nav-links li a {
  color: #1b333f;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Sombra discreta para contraste */
  text-decoration: none;
  font-weight: 1000;
  padding: 8px 12px;
  transition: background 0.3s ease;
}

.nav-links li a:hover {
  background-color: rgba(255, 102, 0, 0.15); /* fundo laranja suave     
  background-color: #004d4d;*/
  border-radius: 5px;
}

/* Ícone menu hambúrguer */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001; /* Acima do menu */
  margin-left: auto;
  position: fixed;
  right: 20px;
  top: 20px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #15313e;
  transition: 0.3s;
}

/* Mostrar quando o toggle é ativado */
.nav-links.active {
  display: flex;
}

/* Exibir sempre no desktop */
@media (min-width: 768px) {
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 2rem;
    background: transparent;
    padding: 0;
  }

  .menu-toggle {
    display: none;
  }
}

/* Responsivo */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    background-color: rgb(247 247 249 / 80%);
    color: #1b333f;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Sombra discreta para contraste */
    position: fixed;
    top: 0;
    right: -250px;
    height: 100%;
    width: 180px;
    padding: 60px 20px;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }
}

@media (max-height: 600px) and (orientation: landscape) {

  .nav-links {
    padding: 10px 20px;
      
  }
  
  html, body {
  overflow: auto;
    }
}
