@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
}



header {
  background: #222;
  color: white;
  padding: 10px 20px;
}

header nav {
  display: flex;
  justify-content: space-between; /* Ajustado para seu nav */
  align-items: center;
  gap: 20px;
}

header nav a {
  color: white;
  text-decoration: none;
}

header form input[type="text"] {
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s;
  padding: 8px;
  width: 200px;
  max-width: 100%;
}

header form input[type="text"]:focus {
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#barra-logo {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ec5e18;
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-bottom: 1px solid #ccc;
  flex-wrap: wrap; /* permite quebra no mobile */
}

.menu-hamburger {
  font-size: 28px;
  cursor: pointer;
  color: white;
  user-select: none;
  flex-shrink: 0;
}

.logo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo img {
  width: 170px;
  max-width: 100%;
  height: auto;
}

.menu-categorias {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  background: #eee;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding-top: 70px;
  z-index: 1000;
  overflow-y: auto;
}

.menu-categorias.aberto {
  transform: translateX(0);
}

.menu-categorias ul {
  list-style: none;
  margin: 0;
  padding: 20px;
}

.menu-categorias li {
  margin-bottom: 15px;
}

.menu-categorias a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.menu-categorias a:hover {
  text-decoration: underline;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}

#overlay.aberto {
  opacity: 1;
  visibility: visible;
}

.container {
  max-width: 95%;
  margin: auto;
  padding: 20px;
  display: flex;
  gap: 20px;
  /* Removi flex-wrap aqui para controlar responsividade só no media query */
}

.main-content {
  flex: 3;
  min-width: 0; /* para evitar overflow */
}

.sidebar {
  flex: 1;
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  min-width: 280px; /* evita que fique muito pequeno */
}

.destaque {
  position: relative;
  color: white;
  max-width: 100%;
  border: 1px solid #ddd;
  overflow: hidden;
  margin-bottom: 20px;
}

.destaque img {
  width: 100%;
  height: auto;
  display: block;
}

.texto-destaque {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 8px;
}

.texto-destaque h2 a {
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  text-decoration: none;
  font-size: 2.0rem;
}

.texto-destaque .subtitulo,
.texto-destaque .data-relativa,
.texto-destaque a {
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  text-decoration: none;
}

.texto-destaque a:hover {
  text-decoration: underline;
}

.icones-compartilhar {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.icones-compartilhar a {
  width: 36px;
  height: 36px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  text-decoration: none;
  box-sizing: border-box;
  padding: 0;
}

.icones-compartilhar a:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.destaques-sidebar h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.destaques-sidebar div {
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

.destaques-sidebar a:hover {
  text-decoration: underline;
}

.subtitulo {
  font-size: 1.1em;
  color: #555;
  margin: 5px 0 10px;
}

.data-relativa {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 10px;
}

.post {
  display: flex;
  background: white;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  flex-wrap: nowrap; /* Evita quebrar imagens e texto lado a lado */
}

.post img {
  width: 250px; /* Ajustado */
  height: auto;
  object-fit: cover;
  padding: 5px;
  border-radius: 10px;
  flex-shrink: 0;
}

.post-content {
  padding: 15px;
  font-size: 1.1em;
  flex: 1;
  overflow-wrap: break-word;
}

.post-content h3 a {
  font-size: 1.2em;
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
  color: #d83018;
}

.post-content p,
.post-content .subtitulo,
.post-content .data-relativa,
.post-content a {
  font-size: 1em;
  text-align: left;
}

.post-data-relativa {
  font-size: 0.7em !important;
  color: #666 !important;
  margin-bottom: 10px !important;
}

.post a {
  color: #e5843e;
}

.categorias h4 {
  margin-top: 0;
}

.categorias ul {
  list-style: none;
  padding: 0;
}

.categorias li {
  margin-bottom: 10px;
}

.categorias a {
  text-decoration: none;
  color: #333;
}


.paginacao {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-pagina {
    padding: 8px 14px;
    border: 1px solid #ffcc99;
    background-color: #fff7f0;
    color: #d35400;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-size: 15px;
}

.btn-pagina:hover {
    background-color: #f57c00;
    color: white;
    border-color: #f57c00;
}

.btn-pagina.ativo {
    background-color: #f57c00;
    color: white;
    font-weight: bold;
    border-color: #f57c00;
    pointer-events: none;
}





footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: #fff;
  margin-top: 40px;
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #333;
  color: #fff;
  padding: 15px;
  display: none;
  z-index: 9999;
  text-align: center;
}

#cookie-banner button {
  margin-left: 15px;
  padding: 8px 12px;
  background: #e5843e;
  border: none;
  color: white;
  cursor: pointer;
}

/* MEDIA QUERIES PARA RESPONSIVIDADE */

@media (max-width: 768px) {

  header nav {
    flex-direction: column;
    gap: 10px;
  }

  header form input[type="text"] {
    width: 100%;
  }

  header form {
    width: 100%;
    justify-content: center;
  }

 #barra-logo .logo img {
    height: 40px;  /* reduz de 50px pra 40px */
    max-width: 80%; /* limita a largura pra não estourar */
    object-fit: contain;
  }


  .menu-hamburger {
    align-self: flex-start;
    margin-bottom: 10px;
  }

  .logo {
    justify-content: center;
    margin-top: 10px;
  }

  .container {
    flex-direction: column;
    max-width: 100%;
  }

  .main-content,
  .sidebar {
    width: 100%;
    flex: none;
    min-width: 0;
  }

  .sidebar {
    margin-top: 30px;
  }

  .post {
    flex-direction: column;
	padding:15px;
	font-size:0.9rem;
  }

  .post img {
    width: 100%;
    height: auto;
    padding: 0;
    border-radius: 10;
  }

  .post-content {
    padding: 5px 0 0 0;
  }
  
.destaque {
  position: relative;
  color: white;
  width: 100%;
  height: 350px;
  border: 1px solid #ddd;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #495453;
  display: flex;
  justify-content: center;
  align-items: center;
}

.destaque img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

  .texto-destaque {
    font-size: 90%;
    padding: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
	font-size:0.9rem;
  }
  
  .texto-destaque h2 a {
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  text-decoration: none;
  font-size:1.6rem;
}

  .texto-destaque .subtitulo {
 display: none;
}



  .icones-compartilhar {
    top: 5px;
    right: 5px;
  }
}

/* BLOCO DESTAQUES NO TOPO */

.bloco-destaques-topo {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px auto;
  max-width: 95%;
}

.destaque.grande {
  flex: 1.7;
  position: relative;
  overflow: hidden;
  color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  height: 450px; /* ajuste conforme necessário */
}

.destaques-laterais {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 470px; /* ajuste conforme necessário */
}

.destaque.pequeno {
  position: relative;
  overflow: hidden;
  color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  height: 100%;
}

.bloco-destaques-topo .destaque img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease; /* suaviza a animação */
}

.bloco-destaques-topo .destaque:hover img {
  transform: scale(1.05); /* aumenta levemente */
}


.bloco-destaques-topo .texto-destaque {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 8px;
}

.bloco-destaques-topo .texto-destaque h1 a {
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  text-decoration: none;
  font-size: 2.3rem;
}


.bloco-destaques-topo .texto-destaque h2 a {
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  text-decoration: none;
  font-size: 1.4rem;
}

.bloco-destaques-topo .texto-destaque .data-relativa,
.bloco-destaques-topo .texto-destaque a {
  color: white;
  font-size: 0.95rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.bloco-destaques-topo .texto-destaque a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .bloco-destaques-topo {
    flex-direction: column;
  }

  .destaque.grande,
  .destaque.pequeno {
    width: 100%;
  }

.bloco-destaques-topo .texto-destaque h1 a,
.bloco-destaques-topo .texto-destaque h2 a {
  font-size: 1.2rem;
}

}

