@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeInSite 0.5s ease-out forwards;
    opacity: 0; 

}

@keyframes fadeInSite {
    from {
        opacity: 0;
        transform: translateY(10px); /* Dá um leve efeito de subir enquanto surge */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hamburger{
  display: none;
  font-size: 35px;
  color: #023A86;
  cursor: pointer;
  z-index: 1001;
}


.header {
  background: rgb(243, 242, 242);
  width: 100%;
  padding: 4px 30px;
  display: flex;
  align-items: center;
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
}

/* CONTAINER */

.container-xl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-family: "Poppins", sans-serif;
}

/* LOGO */

.logo img {
  max-height: 70px;
  margin-left: 90px;
  margin-top: 10px;
}

/* MENU */

.navmenu {
  flex-grow: 1;
  margin-left: 450px;
}

.navmenu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 25px;
}

.navmenu ul li {
  position: relative;
  overflow: visible;
}

/* LINKS */

.navmenu a,
.dropdown-btn {
  text-decoration: none;
  color: #023A86;
  font-size: 16px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Poppins", sans-serif;

  display: flex;
  align-items: center;
  gap: 5px;

  position: relative;
  padding: 8px 0;
}

/* HOVER */

.navmenu a:hover,
.navmenu a.active,
.dropdown-btn:hover,
.dropdown-btn.active {
  color: #0959ba;
}

/* LINHA */




.dropdown-menu {
  position: absolute;
  top: 35px;
  left: 0;

  background: white;
  width: 230px;

  padding: 10px 0;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;

  transition: all 0.25s ease;
  transition-delay: 0.4s; /* Atraso ao fechar */
}

/* ABERTO */
.dropdown.mobile-active .dropdown-menu,
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s; /* Abre instantaneamente */
}

/* ITENS INTERNOS */

.dropdown-menu li {
  display: block;
  width: 100%;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  transition-delay: 0.4s; /* Acompanha o atraso de fechamento do menu */
}

.dropdown.mobile-active .dropdown-menu li,
.dropdown:hover .dropdown-menu li {
  opacity: 1;
  transform: translateX(0);
}

/* Efeito cascata: cada item surge com um pequeno atraso em relação ao anterior */
.dropdown.mobile-active .dropdown-menu li:nth-child(1), .dropdown:hover .dropdown-menu li:nth-child(1) { transition-delay: 0.05s; }
.dropdown.mobile-active .dropdown-menu li:nth-child(2), .dropdown:hover .dropdown-menu li:nth-child(2) { transition-delay: 0.15s; }
.dropdown.mobile-active .dropdown-menu li:nth-child(3), .dropdown:hover .dropdown-menu li:nth-child(3) { transition-delay: 0.25s; }

.dropdown-menu li a {
  display: block;
  width: 100%;
  padding: 12px 20px;
}

/* SETA */

.seta {
  font-size: 10px;
  transition: 0.3s;
  transition-delay: 0.4s; /* Atraso ao fechar */
}

.dropdown.mobile-active .seta,
.dropdown:hover .seta {
  transform: rotate(180deg);
  transition-delay: 0s; /* Abre instantaneamente */
}

@keyframes fadeInSite {
    from {
        opacity: 0;
        transform: translateY(10px); /* Dá um leve efeito de subir enquanto surge */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo img{
    margin-left: 0;
    max-height: 60px;
    margin-top: 0;
  }

.icone{
    min-width: 45px;
    height: 45px;
}

  .container-xl{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo img{
    margin-left: 0;
    max-height: 60px;
    margin-top: 0;
  }

.hamburger{
  display: none;
  font-size: 35px;
  color: #023A86;
  cursor: pointer;
  z-index: 1001;
}


.header {
  background: rgb(243, 242, 242);
  width: 100%;
  padding: 4px 30px;
  display: flex;
  align-items: center;
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
}

/* CONTAINER */

.container-xl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-family: "Poppins", sans-serif;
}

/* LOGO */

.logo img {
  max-height: 70px;
  margin-left: 90px;
  margin-top: 10px;
}

/* MENU */

.navmenu {
  flex-grow: 1;
  margin-left: 450px;
}

.navmenu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 25px;
}

.navmenu ul li {
  position: relative;
  overflow: visible;
}

/* LINKS */

.navmenu a,
.dropdown-btn {
  text-decoration: none;
  color: #023A86;
  font-size: 16px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Poppins", sans-serif;

  display: flex;
  align-items: center;
  gap: 5px;

  position: relative;
  padding: 8px 0;
}

/* HOVER */

.navmenu a:hover,
.navmenu a.active,
.dropdown-btn:hover,
.dropdown-btn.active {
  color: #0959ba;
}

/* LINHA */




.dropdown-menu {
  position: absolute;
  top: 35px;
  left: 0;

  background: white;
  width: 230px;

  padding: 10px 0;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;

  transition: all 0.25s ease;
  transition-delay: 0.4s; /* Atraso ao fechar */
}

/* ABERTO */
.dropdown.mobile-active .dropdown-menu,
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s; /* Abre instantaneamente */
}

/* ITENS INTERNOS */

.dropdown-menu li {
  display: block;
  width: 100%;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  transition-delay: 0.4s; /* Acompanha o atraso de fechamento do menu */
}

.dropdown.mobile-active .dropdown-menu li,
.dropdown:hover .dropdown-menu li {
  opacity: 1;
  transform: translateX(0);
}

/* Efeito cascata: cada item surge com um pequeno atraso em relação ao anterior */
.dropdown.mobile-active .dropdown-menu li:nth-child(1), .dropdown:hover .dropdown-menu li:nth-child(1) { transition-delay: 0.05s; }
.dropdown.mobile-active .dropdown-menu li:nth-child(2), .dropdown:hover .dropdown-menu li:nth-child(2) { transition-delay: 0.15s; }
.dropdown.mobile-active .dropdown-menu li:nth-child(3), .dropdown:hover .dropdown-menu li:nth-child(3) { transition-delay: 0.25s; }

.dropdown-menu li a {
  display: block;
  width: 100%;
  padding: 12px 20px;
}

/* SETA */

.seta {
  font-size: 10px;
  transition: 0.3s;
  transition-delay: 0.4s; /* Atraso ao fechar */
}

.dropdown.mobile-active .seta,
.dropdown:hover .seta {
  transform: rotate(180deg);
  transition-delay: 0s; /* Abre instantaneamente */
}

.projetos-container {
    max-width: 1200px;
    margin: 120px auto 10px auto; /* O margin-top de 120px evita que o menu fixo cubra o título */
    padding: 0 40px;
}

.titulo-pagina {
    text-align: center;
    margin-bottom: 60px;
}

.titulo-pagina h1 {
    font-size: 2.5rem;
    color: #023A86;
    margin-bottom: 10px;
}

.titulo-pagina p {
    color: #666;
    font-size: 1.1rem;
}

/* Estrutura Flexbox para alinhar Lado a Lado */
.projeto-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 15px; /* Espaço entre a imagem e o texto */
}

/* Regra de Ouro: Inverte a ordem apenas dos itens pares (2, 4 e 6) */
.projeto-row:nth-of-type(even) {
    flex-direction: row-reverse;
}

/* Garante que imagem e texto ocupem o mesmo espaço proporcional */
.projeto-img, .projeto-txt {
    flex: 1;
    width: 100%;
}

/* Customização das Imagens */
.projeto-img img {
    width: 85%;
    height: 50%;
    display: block;
    border-radius: 80px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.523);
    object-fit: cover;
    transition: all 0.5s ease-out; 
    backface-visibility: hidden;
    margin-left: 18px;
}

.projeto-row:hover .projeto-img img {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.697); 
}

/* Customização dos Textos */
.projeto-txt h2 {
    font-size: 1.8rem;
    color: #023A86;
    margin-bottom: 15px;
    position: relative;
}

.projeto-txt p {
    font-size: 1.20rem;
    color: #555;
    line-height: 1.7;
}

.footer {
  position: relative;
  width: 100%;
  padding: 20px 0;
  color: #023A86;
  text-align: center;
  box-sizing: border-box;
  margin-top: 50px;
}

.footer img {
  width: 150px;
  position: relative;
  top: 3px; 
}

.footer a {
  text-decoration: none;
}

.footer p {
  display: flex;
  justify-content: space-between;
  align-items: center;

  max-width: 1330px;  
  margin: 0 auto;    
  padding: 0 20px;   
  margin-top: -60px;
}

.footer .left {
  text-align: left;
}

.footer .right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Responsividade para Celulares (Corrigido)
   ========================================================================== */
@media (max-width: 1040px) {

  /* Ajustes das Linhas de Projetos */
  .projeto-row, 
  .projeto-row:nth-of-type(even) {
      flex-direction: column; 
      gap: 20px;
      margin-bottom: 20px;
  }
  
  .titulo-pagina h1 {
      font-size: 2rem;
  }

 .header{
    padding: 15px 20px;
    margin-top: -120px;
  }

  .container-xl{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo img{
    margin-left: 0;
    max-height: 60px;
    margin-top: 0;
  }

  /* MOSTRA HAMBURGER */
  .hamburger{
    display: block;
  }

  /* MENU MOBILE */
 .navmenu{
    position: fixed;
    top: 0;
    right: -100%;

    width: 280px;
    height: auto;

    background: white;
    padding: 60px 20px;

    transition: 0.4s ease;

    display: flex;
    flex-direction: column;

    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
}

  .navmenu.active {
    display: flex;
    position: absolute;
    top: 80px;
    right: 20px;
    background: white;
    flex-direction: column;
    width: 250px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
}

  .navmenu > ul{
    flex-direction: column;
    gap: 20px;
  }

  .navmenu a,
  .dropdown-btn{
    font-size: 18px;
  }




  /* DROPDOWN MOBILE */
  .dropdown-menu{
    position: static;

    width: 100%;

    background: #f5f5f5;

    box-shadow: none;

    border-radius: 10px;

    max-height: 0;
    overflow: hidden;

    opacity: 1;
    visibility: visible;

    transform: none;

    padding: 0;

    transition: max-height 0.3s ease;
  }

  .dropdown.mobile-active .dropdown-menu {
    max-height: 300px;
    margin-top: 10px;
  }

  .dropdown-menu li a{
    padding: 12px 15px;
  }

   .footer p {
    flex-direction: column;
    text-align: center;
    margin-top: -95px;
  }

   .footer .left {
   text-align: center;
    width: 100%;
  }
} 