/* === noticia.css === */
/* Valhalla - visual neon e responsivo */

body {
  background-color: #111;
  color: #f3f3f3;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Botão Voltar */
.btn-voltar {
  display: inline-block;
  margin: 44px 60vh 0;
  background: #333;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.btn-voltar:hover {
  background: #555;
}

/* Conteúdo Principal */
main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

main h1 {
  font-size: 2.5rem;
  margin-bottom: 34px;
  background: linear-gradient(to right, #00f, #a0f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

/* Imagem Principal */
main img.principal {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Resumo */
.resumo {
  font-size: 1.8rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 40px;
  text-align: center;
}

/* Zigzag Layout */
.zigzag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 60px 0;
  gap: 40px;
}
.zigzag.img-direita { flex-direction: row; }
.zigzag.img-esquerda { flex-direction: row-reverse; }

.zigzag img {
  width: 42%;
  height: auto;
  max-height: 633px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.zigzag .texto {
  width: 50%;
  padding: 0 20px;
}
.zigzag .texto h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  border-left: 5px solid #00c3ff;
  padding-left: 10px;
  background: linear-gradient(to right, #00f, #a0f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.zigzag .texto p {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.7;
}

/* Rodapé */
footer {
  background-color: #080808;
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
}

/* Footer fixo */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main {
  flex: 1;
}

/* ======================== */
/* ===== RESPONSIVO ======= */
/* ======================== */
  @media (max-width: 768px) {
  .zigzag.img-direita,
  .zigzag.img-esquerda {
    flex-direction: column !important;
  }
  body {
    font-size: 17px;
  }

  main {
    padding: 0 16px;
    margin: 20px auto;
  }

  main h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    text-align: center;
  }

  .resumo {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #ddd;
  }

  main img.principal {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }

  .zigzag {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    gap: 20px;
    text-align: center;
  }

  .zigzag.img-direita,
  .zigzag.img-esquerda {
    flex-direction: column !important;
  }

  .zigzag img {
    width: 100%;
    max-height: 300px;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  }

  .zigzag .texto {
    width: 100%;
    padding: 0;
  }

  .zigzag .texto h2 {
    font-size: 1.6rem;
    margin: 10px 0;
    background: linear-gradient(to right, #00c3ff, #a0f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .zigzag .texto p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #ccc;
    text-align: center;
    word-break: break-word;
  }

  .btn-voltar {
    display: block;
    margin: 60px auto 0;
    background: #333;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s;
  }

  footer {
    margin-top: 50px;
    padding: 24px 10px;
    font-size: 0.95rem;
  }

} /* ⬅️ Aqui fecha corretamente o @media */
.zigzag {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
}

.zigzag.img-esquerda {
  flex-direction: row;
}

.zigzag.img-direita {
  flex-direction: row-reverse;
}

.zigzag .texto {
  flex: 1;
}

.zigzag img {
  max-width: 45%;
  border-radius: 10px;
}

.zigzag.vertical-img img {
  max-height: 400px;
  width: auto;
}
