/* ESTILO GERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  color: #000;
}

body {
  background: #ffffff;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

h1 {
  font-size: 6vh;
  text-align: center;
  margin-bottom: 4vh;
}

h2 {
  font-size: 4vh;
  padding: 2vh 0%;
}

p {
  margin: 1vh 0;
  line-height: 1.2;
  font-size: 2.5vh;
  margin-bottom: 2vh;
}

/* ESTILO DO CABEÇALHO */
header {
  padding: 3vh 4%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header > .interface {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img {
  max-height: 10vh;
}

header a {
  text-decoration: none;
  display: inline-block;
}

header nav.menu a:hover {
  transform: scale(1.07);
  transition: 0.3s;
}

header nav ul {
  list-style-type: none;
  display: flex;
}

header nav.menu ul li {
  display: inline-block;
  padding: 0 2.5vw;
}

header nav.menu ul li a {
  color: #000;
  font-weight: 500;
}

header nav.menu ul li a i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  transition: all 0.3s ease;
}

/* Aplicar menos padding apenas entre os ícones */
header nav.menu ul li:nth-last-child(1), /* Instagram */
header nav.menu ul li:nth-last-child(2) { /* WhatsApp */
  padding: 0 1vw;
}

/* MENU HAMBURGUER MOBILE */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 20px;
  justify-content: space-between;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #000;
  transition: all 0.3s ease;
}

/* Animação do hamburguer */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Esconder menu em mobile */
@media (max-width: 768px) {
  p {
    text-align: left;
  }
  
  .menu-toggle {
    display: flex;
  }

  header > .interface {
    flex-direction: row;
    align-items: center;
    text-align: center;
  }

  header .logo {
    margin-bottom: 0;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0;
    width: 100%;
  }

  header nav.menu ul li {
    padding: 0.8rem 0;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }

  header nav.menu ul li a i {
    width: 32px;
    height: 32px;
    font-size: 16px;
    margin: 0 auto;
  }

  /* Alinha os ícones sociais ao centro */
  header nav.menu ul li:nth-last-child(1),
  header nav.menu ul li:nth-last-child(2) {
    margin: 0 auto;
    padding: 0.5rem 0;
  }
}

/* Estilos para desktop */
@media (min-width: 769px) {
  .menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  
  .menu ul {
    display: flex !important;
  }
}

/* ESTILO DA LISTA DE ARTIGOS */
.blog {
  max-width: 800px;
  margin: 6vh auto;
  padding: 0 2vw;
  font-family: 'Poppins', sans-serif;
}

.blog h1 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 5vh;
  color: #000;
}

.year {
  font-size: 1.2rem;
  color: #666;
  margin: 2rem 0 1rem;
  font-weight: 500;
}

.post {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.post h2 {
  font-size: 1.2rem;
  margin: 0;
  color: #000;
  flex: 1;
}

.post h2 a {
  color: #000;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s;
}

.post h2 a:hover {
    transform: scale(1.03);
    transition: 0.1s;
}

.date {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

@media (max-width: 600px) {
  .blog h1 {
    font-size: 2rem;
  }
  
  .post {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .date {
    text-align: right;
  }
}

/* ESTILO DO RODAPÉ */
footer {
  padding: 3vh 4%;
  margin-top: auto; /* Empurra para o final se dentro de um flex container */
  box-shadow: 0 0 2vh 1vh #000;
}

footer > .interface {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer img {
  max-height: 10vh;
}

footer a {
  text-decoration: none;
  display: inline-block;
}

/* hover apenas nos links com ícones (instagram e whatsApp) */
footer nav.rodape ul li:nth-child(1) a:hover,
footer nav.rodape ul li:nth-child(2) a:hover {
  transform: scale(1.07);
  transition: 0.1s;
}

footer nav ul {
  list-style-type: none;
}

footer nav.rodape ul li {
  display: inline-block;
  padding: 1vw;
}

footer nav.rodape ul li a i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  transition: all 0.3s ease;
}

/* MEDIA QUERY PARA TELAS PEQUENAS */
@media (max-width: 768px) {
  footer > .interface {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer .logo-rodape {
    margin-bottom: 1.5rem;
  }

  footer nav.rodape ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    padding: 0;
    width: 100%;
  }

  footer nav.rodape ul li {
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
  }

  footer nav.rodape ul li a i {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  /* Alinha o email abaixo dos ícones */
  footer nav.rodape ul li:last-child p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #fff;
  }

  footer nav.rodape ul li:last-child p a {
    color: #000;
    text-decoration: none;
  }
}
