/* ===== BASE ===== */
body {
  font-family: "Inter", sans-serif;
  background-color: #f3f3f3;
  margin: 0;
  padding: 0;
  color: #222;
}

h1,
h2 {
  color: #f7941d;
}

/* ===== HEADER ===== */
header {
  background-color: #222;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

.cabecalho-alinhado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 10vw;
  background-color: #222;
}

.foto-perfil {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cabecalho-alinhado h1 {
  flex: 1;
  text-align: center;
}

/* ===== NAV ===== */
nav {
  background-color: #444;
  display: flex;
  justify-content: center;
}
nav a {
  color: #fff;
  padding: 1rem;
  text-decoration: none;
}
nav a:hover {
  background-color: #666;
}

/* ===== MAIN & SECTIONS ===== */
main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}
section {
  margin-bottom: 2rem;
}

/* ===== BOTÕES ===== */
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 1rem;
}
.button:hover {
  background-color: #004a99;
}

/* ===== FOOTER ===== */
footer {
  background-color: #222;
  color: #aaa;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ===== FORMULÁRIO ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input[type="submit"] {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}
input[type="submit"]:hover {
  background-color: #004a99;
}

/* ===== CONTATO WHATSAPP COM FOTO ===== */
.contato-whatsapp {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

/* ===== DESTAQUE BLOG (ex: Manifesto) ===== */
.destaque .post {
  background-color: #f3e7a4;
  border: 1px solid #b0c4de;
  padding: 1rem;
  margin-bottom: 3rem;
  border-radius: 12px;
}

/* ===== POST COM BOTÃO AO LADO DO TÍTULO ===== */
/*
.post-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
*/
.post-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.post-header .button {
  margin: 0;
  white-space: nowrap;
}
.post-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

/* ===== SEPARAÇÃO ENTRE POSTS ===== */
.post-list .post {
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

/* ===== IMAGENS COM LEGENDA (únicas ou em grupo) ===== */
.media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0; /* 1.5rem anterior */
  margin: 2rem 0;
}

.media figure {
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Regra padrão: usada para várias imagens */

.media img {
  display: block;
  width: 100%;
  height:  180px; /* altura fixa e uniforme, anterior: auto */
  object-fit: cover; /* corta a imagem mantendo o centro */
  border-radius: 0; /* anterior 4px */
}
.media figcaption {
  font-size: 0.75rem;       /* menor que o padrão */
  color: #666;              /* cinza mais suave */
  margin-top: 0.5rem;
  background: #f9f9f9;      /* opcional – mantém legibilidade */
  padding: 0.3rem;
  font-style: italic;
}

/* EXCEÇÃO: quando só existe uma imagem dentro da media */
.media:has(> figure:only-child) img {
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 6px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 600px) {
  .cabecalho-alinhado {
    flex-direction: column;
    text-align: center;
  }

  .cabecalho-alinhado img {
    width: 80px;
    height: 80px;
    margin: 10px 0;
  }

  .cabecalho-alinhado h1 {
    margin: 10px 0;
  }

  .contato-whatsapp {
    flex-direction: column;
  }

  .foto-perfil {
    width: 80px;
    height: 80px;
  }
  
   .logo {
    width: 80px;
    height: 80px;
  }

  .post-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
   .post-nav {
        flex-direction: column;
    }

   .post-thumb {
    width: 100%;
    height: 160px;
  }


}

/* ===== configura link de afiliado ===== */

.afiliado-link {
  color: #ef6c00;
  font-weight: bold;
  text-decoration: underline;
}
.afiliado-link:hover {
  color: #e65100;
}

.alinha-direita {
  color: #666;    
  display: flex;
  justify-content: flex-end;
  margin: 1rem 0;
}

.link-direita {
  display: inline-block;
  background-color: #D3D3D3;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}


/* ===== POST LIST COM THUMB ===== */


.post-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.post-texto h3 {
  margin: 0;
}

.post-texto p {
  margin: 0.5rem 0;
}

/* Quando não há imagem */
.post-header.sem-thumb {
  padding-left: 136px; /* largura da thumb + gap */
}


img {
  max-width: 100%;
  height: auto;
}

