:root{
  --bg:#ffffff;
  --text:#0f172a;         /* quase preto */
  --muted:#64748b;        /* slate-500 */
  --line:#e5e7eb;         /* slate-200 */
  --chip:#f8fafc;         /* slate-50 */
  --btn-grad-a:#A15555;   /* identidade */
  --btn-grad-b:#C99E80;   /* identidade */
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

/* Container base */
.container{
  width:min(1120px, 92vw);
  margin-inline:auto;
}

/* NAVBAR */
.navbar{
  position:sticky; top:0; z-index:50;
  background:#fff; border-bottom:1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:12px 0;
}
.logo{ height:40px; width:auto; display:block; }

.search{
  display:flex; align-items:center; gap:8px;
  background:#fff; border:1px solid var(--line);
  padding:6px 8px; border-radius:12px;
}
.search input{
  border:none; outline:none; font:inherit; color:var(--text);
  width:240px; min-width:0;
}
.search button{
  border:none; background:transparent; cursor:pointer; font-size:16px;
}

/* seção hero como espaçador vertical */
.hero{
  display: grid;
  place-items: center;
  /* garante que fique abaixo da navbar sticky */
  margin-top: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(16px, 3vw, 32px);
}

.hero-card {
  width: min(1120px, 80vw);
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 10px; /* opcional, dá uma margem interna leve */
}


.hero-card img {
  display: block;
  width: 100%;
  height: auto;              /* altura automática — preserva proporção natural */
  object-fit: contain;       /* garante que a imagem inteira apareça */
  background: #fff;          /* evita bordas escuras se tiver transparência */
  border-radius: 22px;
}


/* opcional: em telas muito pequenas, usar 92vw para “respiro” */
@media (max-width: 540px){
  .hero-card{ width: min(1120px, 92vw); }
}


/* LISTA DE POSTS */
.content{ padding:32px 0 60px; display:grid; gap:22px; }

/* Post em linha */
.post{
  display:grid; grid-template-columns: 340px 1fr;
  gap:22px; align-items:start;
  padding:18px; border:1px solid var(--line); border-radius:18px; background:#fff;
}
.post-media{ width:100%; }
.post-cover{
  width:100%; height: 220px; object-fit:cover; display:block;
  border-radius:22px;
}

.post-title{
  margin:0 0 8px;
  font-weight:600;
  font-size: clamp(20px, 3vw, 30px); /* título hero suave */
  line-height:1.15;
}
.post-sub{
  margin:0 0 14px; color:var(--muted);
  font-weight:400; font-size: clamp(14px, 2vw, 16px);
}

.post-meta{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin-bottom:14px;
}
.meta-chip{
  font-size:12px; color:var(--muted);
  background:var(--chip);
  border:1px solid var(--line);
  border-radius:999px; padding:6px 10px;
}
.dot-sep{ position:relative; padding-left:10px; }
.dot-sep::before{
  content:''; position:absolute; left:0; top:50%; width:4px; height:4px;
  transform:translateY(-50%); border-radius:50%; background:var(--line);
}

/* Ações */
.post-actions{
  display:flex; align-items:center; gap:8px; margin-left:auto;
}
.icon-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px;
  border:1px solid var(--line); background:#fff; color:#475569;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
  font-size:13px;
}
.icon-btn:hover{ transform:translateY(-1px); box-shadow:0 6px 18px rgba(0,0,0,.06); }
.icon-btn:active{ transform:translateY(0); }
.icon-btn svg{ display:block; }

/* Like ativo */
.like-btn.is-liked{
  color:#b91c1c; /* red-700 */
  border-color:#fca5a5; background:#fff5f5;
}
.like-btn .heart{ transition: transform .15s ease; }
.like-btn.is-liked .heart{ transform: scale(1.1); }

/* Botões sutis (ler artigo, fechar) */
.btn{
  font:inherit; cursor:pointer; border:none;
}
.subtle-btn{
  padding:10px 14px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--btn-grad-a), var(--btn-grad-b));
  color:#fff; font-weight:600; font-size:14px;
  box-shadow: 0 8px 22px rgba(161,85,85,.15);
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease;
}
.subtle-btn:hover{ transform: translateY(-1px); box-shadow:0 12px 26px rgba(201,158,128,.22); }
.subtle-btn:active{ transform: translateY(0); }

/* Conteúdo expandido do post */
.post-full{
  margin-top:16px;
  padding:16px; border:1px dashed var(--line);
  border-radius:14px; background:#fff;
}
.post-content p{ margin:0 0 12px; line-height:1.6; color:#263042; }
.post-content h3{ margin:16px 0 8px; font-size:20px; }

/* FOOTER */
.site-footer{
  border-top:1px solid var(--line); padding:26px 0; background:#fff;
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.footer-logo{ height:28px; width:auto; }

/* RESPONSIVO */
@media (max-width: 920px){
  .post{ grid-template-columns: 1fr; }
  .post-cover{ height: 220px; }
  .search input{ width:160px; }
}
@media (max-width: 540px){
  .nav-inner{ flex-direction:column; align-items:stretch; gap:12px; }
  .search{ width:100%; }
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.search:hover,
.search:focus-within {
  border-color: #c99e80;
  box-shadow: 0 2px 6px rgba(201,158,128,.15);
}

.search-icon {
  color: #9ca3af; /* cinza suave */
  display: grid;
  place-items: center;
}

.search input {
  border: none;
  outline: none;
  font: inherit;
  color: var(--text);
  background: transparent;
  width: 240px;
  min-width: 0;
  padding: 4px 0;
}

.search input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}
/* container do carrossel */
.carousel {
  position: relative;
  width: min(1120px, 80vw);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
  background: #fff;
}

/* imagens sobrepostas */
.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* imagem ativa visível */
.carousel-image.active {
  opacity: 1;
  z-index: 2;
}

/* espaço geral da seção hero */
.hero {
  display: grid;
  place-items: center;
  margin-top: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(16px, 3vw, 32px);
}

/* ajuste responsivo */
@media (max-width: 540px) {
  .carousel {
    width: min(1120px, 92vw);
  }
}
/* HERO geral */
.hero {
  display: grid;
  place-items: center;
  margin-top: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(16px, 3vw, 32px);
}

/* Container do carrossel */
.carousel {
  position: relative;
  width: min(1120px, 80vw);
  height: clamp(280px, 50vw, 520px); /* altura consistente e proporcional */
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Imagens sobrepostas e centralizadas */
.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;  /* mostra toda a imagem */
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background: #fff;     /* fundo branco em volta da imagem */
}

/* Imagem visível */
.carousel-image.active {
  opacity: 1;
  z-index: 2;
}

/* Responsivo — em telas pequenas, aumenta altura pra manter proporção */
@media (max-width: 540px) {
  .carousel {
    width: min(1120px, 92vw);
    height: clamp(220px, 60vw, 420px);
  }
}
/* ===== NAV LINKS + DROPDOWN ===== */
.nav-inner { gap: 24px; }
.nav-links{
  display: flex; align-items: center; gap: 18px;
  white-space: nowrap;
}
.nav-item{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #111827; text-decoration: none; font-weight: 500;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav-item:hover{ background: #f8fafc; }
.nav-item.has-caret .caret{ margin-left: 4px; opacity: .7; }

/* Dropdown */
.dropdown{ position: relative; }
.dropdown-menu{
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  padding: 6px; min-width: 220px; display: none; z-index: 20;
}
.dropdown:hover .dropdown-menu{ display: block; }
.dropdown-item{
  display: block; padding: 10px 12px; border-radius: 8px;
  color: #111827; text-decoration: none; font-weight: 500;
}
.dropdown-item:hover{
  background: #f8fafc;
}

/* Estado vazio (nenhum resultado) */
.empty-state{
  display: grid; place-items: center; text-align: center;
  padding: 36px; border: 1px dashed var(--line); border-radius: 16px;
  color: #64748b; font-size: 15px; background: #fff;
}
/* ===== NAV LINKS (sem cara de botão) ===== */
.nav-inner { gap: 24px; }

.nav-links{
  display: flex; align-items: center; gap: 20px;
  white-space: nowrap;
}

.nav-item{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0;                       /* sem padding de botão */
  border: none;                     /* sem borda */
  background: transparent;          /* sem fundo */
  color: #111827;
  text-decoration: none;
  font-weight: 500;
  line-height: 1;                   /* mantém alinhado */
  transition: color .2s ease, opacity .2s ease;
}

.nav-item:hover{
  color: #8f5c54;                   /* tom ligado à paleta (#A15555) */
  opacity: .9;
}

.nav-item.has-caret .caret{
  margin-left: 4px; opacity: .6; transition: transform .2s ease, opacity .2s ease;
}

/* ===== DROPDOWN SUAVE (modalzinho leve) ===== */
.dropdown{ position: relative; }

.dropdown-menu{
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;

  /* vidro suave + borda sutil */
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  backdrop-filter: blur(6px);

  /* animação */
  opacity: 0; transform: translateY(6px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  z-index: 20;
}

.dropdown:hover .dropdown-menu{
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-item{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #111827; text-decoration: none; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}

.dropdown-item:hover{
  background: #f7f7f9;              /* hover leve, sem borda */
  color: #8f5c54;
}

/* acessibilidade de foco (sem cara de botão) */
.nav-item:focus-visible,
.dropdown-item:focus-visible{
  outline: 2px solid #C99E80;       /* cor da identidade */
  outline-offset: 2px;
  border-radius: 10px;
}

/* responsivo: mantém discreto */
@media (max-width: 540px){
  .nav-links{ gap: 14px; }
}
/* ——— NAV: tipografia unificada ——— */
.nav-links{
  display:flex; align-items:center; gap:20px;
  white-space:nowrap;
}
.nav-item{
  /* mesma “cara” de link do Início */
  display:inline-flex; align-items:center; gap:6px;
  padding:0; border:none; background:transparent;
  color:#111827; text-decoration:none;
  font-family: inherit;
  font-size:16px;        /* <<< garante tamanho idêntico */
  font-weight:500;       /* <<< e o mesmo peso */
  line-height:1;         /* alinhado na mesma linha */
  transition: color .2s ease, opacity .2s ease;
}
.nav-item:hover{ color:#8f5c54; opacity:.9; }
.nav-item.has-caret .caret{ margin-left:4px; opacity:.6; transition:transform .2s ease; }

/* ——— DROPDOWN: sem “buraco” entre trigger e menu ——— */
.dropdown{ position:relative; }
.dropdown-menu{
  position:absolute; top:100%; left:0;        /* encosta no gatilho */
  margin-top:8px;                              /* espaço visual */
  min-width:220px; padding:8px; border-radius:14px;

  background:rgba(255,255,255,.96);
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 18px 40px rgba(0,0,0,.08);
  backdrop-filter:blur(6px);

  opacity:0; transform:translateY(6px) scale(.98);
  transition:opacity .18s ease, transform .18s ease;
  pointer-events:none; z-index:20;
}

/* “ponte” de hover: evita a perda de foco ao mover o mouse do trigger pro menu */
.dropdown-menu::before{
  content:"";
  position:absolute; left:0; right:0; top:-12px; height:12px;
  /* área invisível que mantém o :hover do pai ativo */
}

/* abre ao hover do container OU quando qualquer filho tem foco (teclado/click) */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu{
  opacity:1; transform:translateY(0) scale(1);
  pointer-events:auto;
}

.dropdown-item{
  display:block; padding:10px 12px; border-radius:10px;
  color:#111827; text-decoration:none; font-size:16px; font-weight:500;
  transition:background .15s ease, color .15s ease;
}
.dropdown-item:hover{ background:#f7f7f9; color:#8f5c54; }

/* foco acessível, sem “cara de botão” */
.nav-item:focus-visible,
.dropdown-item:focus-visible{
  outline:2px solid #C99E80; outline-offset:2px; border-radius:10px;
}

/* responsivo */
@media (max-width:540px){
  .nav-links{ gap:14px; }
}
/* ====== FUNDO DE CORPO INTEIRO — DESKTOP ====== */
@media (min-width: 1024px) {
  body {
    background-image: url("ima-s2-esquerda.png"); /* substitua pelo nome real da imagem */
    background-repeat: no-repeat;
    background-size: cover;         /* garante que a imagem preencha toda a tela */
    background-attachment: fixed;   /* faz o fundo ficar fixo ao rolar */
    background-position: center top;/* centraliza o corpo no eixo horizontal */
  }

  /* cria uma leve camada branca sobre o fundo para manter contraste legível */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.75);
    z-index: -1;                    /* fica atrás de todo o conteúdo */
  }
}
/* ====== FUNDO DE CORPO INTEIRO — SOMENTE DESKTOP ====== */
@media (min-width: 1024px) {
  body {
    background-image: url("ima-s2-esquerda.png"); /* troque pelo nome real da imagem */
    background-repeat: no-repeat;
    background-size: contain;        /* garante que a imagem inteira apareça */
    background-attachment: fixed;    /* fundo fixo ao rolar */
    background-position: left center;/* desloca pro lado esquerdo */
    background-color: #ffffff;       /* mantém fundo branco onde não há imagem */
  }

  /* remove qualquer overlay */
  body::before {
    content: none;
  }
}
@media (min-width: 1024px) {
  body {
    background-image: url("ima-s2-esquerda.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-attachment: fixed;

    /* 👇 desloca a imagem um pouco pra baixo e a mantém à esquerda */
    background-position: left calc(100px); /* ajuste fino conforme a altura da navbar */
    background-color: #ffffff;
  }

  body::before {
    content: none;
  }
}
@media (min-width: 1024px) {
  body {
    background-image: url("ima-s2-esquerda.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-attachment: fixed;

    /* 👉 empurra levemente para a direita e desce abaixo da navbar */
    background-position: 80px 100px; /* eixo X (direita) | eixo Y (baixo) */

    background-color: #ffffff;
  }

  body::before {
    content: none;
  }
}
/* === Backdrop === */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 999;
}

/* === Modal === */
.newsletter-modal {
  border: none;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  padding: 0;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  z-index: 1000;
  animation: fadeIn .3s ease;
  font-family: 'Montserrat', sans-serif;
}
.newsletter-content {
  padding: 28px 32px;
  text-align: center;
}
.close-newsletter {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #A15555;
}

/* === Textos === */
.newsletter-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #A15555;
  margin-bottom: 8px;
}
.newsletter-content p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 18px;
}

/* === Form === */
.newsletter-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
}
.btn-newsletter {
  background: linear-gradient(90deg,#A15555,#C99E80);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity .2s ease;
}
.btn-newsletter:hover { opacity: .9; }

.newsletter-note {
  font-size: 0.8rem;
  color: #777;
  margin-top: 8px;
}

/* === Animação === */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
/* ==== ÍCONES SOCIAIS ==== */
.post-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.social-link {
  color: #A15555;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, color .2s ease;
}

.social-link:hover {
  color: #C99E80;
  transform: scale(1.1);
}
/* ===== Loader Global ===== */
.loader-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.75);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 2000;
}
.loader-ring {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid #eaeaea;
  border-top-color: #A15555;  /* cor da identidade */
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* acessibilidade */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* força desaparecer quando tiver o atributo hidden */
#loaderBackdrop[hidden] { 
  display: none !important;
}
/* Centralizar logotipo da navbar no mobile */
@media (max-width: 768px) {
  .navbar .container.nav-inner {
    display: flex;
    flex-direction: column; /* empilha os elementos verticalmente */
    align-items: center;    /* centraliza horizontalmente */
    gap: 10px;              /* espaço entre logo, menu e busca */
    text-align: center;
  }

  .navbar .brand {
    order: 1;
  }

  .navbar .logo {
    display: block;
    margin: 0 auto;
    max-width: 180px; /* ajuste conforme o tamanho desejado */
    height: auto;
  }

  .navbar .nav-links {
    order: 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .navbar .search {
    order: 3;
    width: 100%;
    max-width: 280px;
  }

  .navbar .search input {
    width: 100%;
  }
}
/* Navbar responsiva — versão mobile */
@media (max-width: 768px) {
  .navbar .container.nav-inner {
    display: flex;
    flex-direction: column;  /* elementos empilhados */
    align-items: center;     /* centraliza tudo */
    text-align: center;
  }

  /* Logotipo centralizado */
  .navbar .brand {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  .navbar .logo {
    max-width: 180px;
    height: auto;
  }

  /* Menu centralizado */
  .navbar .nav-links {
    order: 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
  }

  /* Campo de busca em largura total e mais abaixo */
  .navbar .search {
    order: 3;
    width: 100%;
    max-width: none;          /* remove limite */
    padding: 0 16px;          /* espaçamento lateral */
    margin-top: 24px;         /* afasta mais do menu */
  }

  .navbar .search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
  }

  .navbar .search-icon {
    left: 20px;
  }
}
