/* ESTILO GERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  color: #000;
}

body {
  background: #ffffff;
  height: 100vh;
}

/* 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 DO ARTIGO */
.post-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 2vh 2vw;
  padding-bottom: 11vh;
  background: #fff;
}

.post-single .post-header {
  margin-bottom: 3rem;
}

.post-single h1 {
  font-size: 2.5rem;
  color: #000;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: left;
}

.post-single .post-meta {
  color: #666;
  font-size: 1rem;
  font-style: italic;
  text-align: left;
}

.post-single .post-content {
  color: #444;
  line-height: 1.8;
  font-size: 1.1rem;
  text-align: left;
  overflow: hidden; /* Evita que o texto ultrapasse a imagem */
}

.post-single .post-content p {
  margin-bottom: 2rem;
}

.post-single .post-content p:last-child {
  margin-bottom: 0;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ESTILO DA IMAGEM NO ARTIGO */

/* SE A IMAGEM FOR INTEGRADA AO TEXTO */
.image-wrapper {
  float: left; /* Alinha à esquerda */
  width: 40%;  /* Largura da imagem */
  margin: 1.5rem 2rem 1.5rem 0; /* Espaço acima, direita, abaixo, esquerda */
}

.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* SE A IMAGEM FOR ABAIXO DO PARÁGRAFO, TIRAR COMENTÁRIO E COMENTAR A OUTRA CONFIGURAÇÃO
.image-wrapper {
  display: inline-block;
  width: 30%;
  margin: 1.5rem 2rem 1.5rem 0;
  vertical-align: top;
} 

.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
*/

/* MEDIA QUERY PARA TELAS PEQUENAS */
@media (max-width: 768px) {
  .image-wrapper {
    float: none; /* Remove o float */
    display: block;
    margin: 1.5rem auto; /* Centraliza horizontalmente */
    width: 80%; /* Largura da imagem */
    text-align: center; /* Centraliza o conteúdo dentro */
  }

  .image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
}

/* ESTILO DO RODAPÉ */
footer {
  padding: 3vh 4%;
  box-shadow: 0 0 5vh 2vh #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;
  }
}
