/* ===== Alambari Conecta — tema responsivo ===== */
:root {
  --verde: #2e7d43;
  --verde-escuro: #236334;
  --teal-texto: #2a4a42;
  --laranja: #e8834a;
  --azul: #4a7dbd;
  --bg: #f6f7f2;
  --card: #ffffff;
  --text: #2c3a33;
  --muted: #6d7a72;
  --line: #e2e7e0;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(42, 74, 66, .1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { max-width: 1340px; margin: 0 auto; padding: 0 20px; }
.titulo-secao { display: flex; align-items: center; gap: 9px; font-size: 1.15rem; font-weight: 800; color: var(--teal-texto); }
.traco { display: inline-block; width: 22px; height: 4px; background: var(--laranja); border-radius: 3px; }
.mini-caps { font-size: .7rem; line-height: 1.5; color: var(--muted); }
.mini-caps strong { color: var(--teal-texto); font-size: .82rem; }

/* ===== Topbar ===== */
.topbar { background: var(--bg); padding-top: 14px; }
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 48px; }
.brand-texto strong { display: block; font-size: 1.2rem; font-weight: 800; color: var(--teal-texto); letter-spacing: .3px; }
.brand-texto em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); }
.nav-menu { display: flex; list-style: none; gap: 4px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 5px; box-shadow: var(--shadow); }
.nav-menu a { display: block; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--teal-texto); }
.nav-menu a:hover { background: #eef3ee; }
.nav-menu a[aria-current="page"] { background: var(--verde); color: #fff; }
.nav-busca { padding: 9px 13px !important; }
.nav-toggle { display: none; background: #fff; border: 0; border-radius: 10px; padding: 8px 10px; margin-left: auto; box-shadow: var(--shadow); }
.nav-toggle span { display: block; width: 21px; height: 2.4px; background: var(--teal-texto); margin: 4px 0; border-radius: 2px; }
.topbar-selo { display: flex; align-items: center; gap: 10px; }
.topar-monte { width: 110px; height: 40px; }

/* ===== Tags ===== */
.tag { display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; width: fit-content; }
.tag-cidade { background: #e3efe6; color: var(--verde); }
.tag-bairros { background: #fdeee2; color: #c05a20; }
.tag-campo { background: #eaf1e2; color: #5c7a2e; }
.tag-cultura { background: #e9edf7; color: var(--azul); }

/* ===== Hero ===== */
main { padding-bottom: 30px; }
.hero { padding: 8px 20px 0; }
.hero-foto-wrap { position: relative; border-radius: 22px; overflow: hidden; max-width: 1500px; margin: 0 auto; }
.hero-foto { width: 100%; height: clamp(300px, 40vw, 520px); object-fit: cover; }
.hero-painel {
  position: absolute; left: 0; bottom: 0; background: rgba(255,255,255,.88); backdrop-filter: blur(8px);
  padding: 18px 34px 22px; border-radius: 0 22px 0 0; max-width: 560px;
}
.hero-selo { font-size: .68rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--verde); border-bottom: 2px solid var(--laranja); padding-bottom: 4px; display: inline-block; }
.hero-painel h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.18; color: var(--teal-texto); margin-top: 8px; }
.hero-painel h1 a:hover { text-decoration: underline; }
.hero-info {
  position: absolute; left: 42%; bottom: 0; background: rgba(255,255,255,.88); backdrop-filter: blur(8px);
  padding: 16px 22px; border-radius: 18px 18px 0 0; max-width: 330px; display: none;
}
.hero-info .hero-pin { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--laranja); font-size: .9rem; }
.hero-info p { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.hero-nota {
  position: absolute; right: 22px; bottom: 20px; font-family: "Segoe Script", "Brush Script MT", cursive;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); font-size: 1rem; line-height: 1.4; text-align: left;
}
.hero-nota em { font-weight: 700; }
.hero-pontos { display: block; margin-top: 8px; letter-spacing: 6px; }

/* ===== Caderno da cidade ===== */
.caderno { padding-top: 26px; padding-bottom: 8px; }
.caderno-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.caderno-head p { font-size: .88rem; color: var(--muted); }
.caderno-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.caderno-card { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.caderno-card > a { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.caderno-num { font-family: Georgia, serif; font-size: 2.6rem; font-weight: 700; line-height: 1; padding: 18px 0 0 20px; color: rgba(42,74,66,.25); position: absolute; top: 0; left: 12px; z-index: 2; }
.n1 { color: #e8b8a6; } .n2 { color: #b9cfae; } .n3 { color: #a9c2e0; }
.caderno-texto { padding: 52px 16px 16px 20px; display: flex; flex-direction: column; gap: 7px; }
.caderno-tag { font-size: .78rem; font-weight: 700; color: var(--verde); }
.caderno-card h3 { font-size: 1.02rem; line-height: 1.3; color: var(--teal-texto); }
.caderno-card p { font-size: .8rem; color: var(--muted); }
.caderno-card img { width: 100%; height: 100%; object-fit: cover; min-height: 190px; }
.caderno-card:hover h3 { text-decoration: underline; }

/* ===== Perto de você ===== */
.perto { padding-top: 24px; padding-bottom: 8px; }
.perto-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.perto-sub { font-size: .84rem; color: var(--muted); }
.perto-vermais { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--verde); }
.perto-vermais:hover { text-decoration: underline; }
.perto-filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filtro { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px; font-weight: 600; font-size: .84rem; color: var(--teal-texto); }
.filtro.ativo { background: var(--azul); border-color: var(--azul); color: #fff; }
.perto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perto-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.perto-item > a { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px; height: 100%; }
.perto-item img { width: 100%; height: 100%; min-height: 92px; object-fit: cover; border-radius: 10px; }
.perto-texto h3 { font-size: .92rem; color: var(--teal-texto); line-height: 1.3; }
.perto-texto p { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.perto-texto time { display: block; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.perto-item:hover h3 { text-decoration: underline; }
.perto-item.hidden { display: none; }

/* ===== Mais lidas ===== */
.maislidas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 18px 22px; margin-top: 22px; }
.maislidas-intro { max-width: 200px; }
.maislidas-intro h2 { font-size: 1.05rem; }
.maislidas-intro p { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.maislidas-lista { display: flex; gap: 14px; flex: 1; flex-wrap: wrap; }
.mais-item { display: flex; gap: 10px; align-items: flex-start; flex: 1; min-width: 200px; padding-left: 14px; border-left: 1px solid var(--line); }
.mais-num { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.n1 { background: #fdeee2; color: #c05a20; } .n2 { background: #eaf1e2; color: #5c7a2e; }
.n3 { background: #e9edf7; color: var(--azul); } .n4 { background: #e3efe6; color: var(--verde); }
.mais-item a { font-size: .84rem; line-height: 1.35; color: var(--teal-texto); }
.mais-item a:hover { text-decoration: underline; }

/* ===== Paginação ===== */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 24px 0 10px; }
.page-btn { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--teal-texto); transition: .15s; }
.page-btn:hover { border-color: var(--verde); color: var(--verde); }
.page-btn.current { background: var(--verde); border-color: var(--verde); color: #fff; }
.page-ellipsis { align-self: end; padding: 6px; color: var(--muted); }

/* ===== Post / páginas ===== */
main > .post, main > .static-page, main > .categoria-page { margin-top: 24px; }
.post { max-width: 860px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px clamp(18px, 4vw, 40px); }
.post-header { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.post-header h1 { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 800; line-height: 1.2; letter-spacing: -.4px; margin-top: 10px; color: var(--teal-texto); }
.post-meta { color: var(--muted); font-size: .86rem; margin-top: 8px; }
.post-image { margin: 0 0 20px; border-radius: 12px; overflow: hidden; }
.post-content { font-size: 1rem; }
.post-content p { margin-bottom: 1em; }
.post-content h2, .post-content h3 { margin: 1.2em 0 .5em; color: var(--teal-texto); }
.post-content ul, .post-content ol { margin: 0 0 1em 1.4em; }
.post-content blockquote { border-left: 4px solid var(--laranja); background: #fdf3ea; padding: 12px 18px; border-radius: 0 10px 10px 0; margin-bottom: 1em; }
.post-share { display: flex; gap: 12px; align-items: center; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; }
.post-share span { font-weight: 700; color: var(--muted); }
.post-share a { background: var(--bg); padding: 7px 14px; border-radius: 20px; font-weight: 600; }
.post-share a:hover { color: var(--verde); }
.related { margin-top: 24px; }
.categoria-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; }
.categoria-head p { color: var(--muted); font-size: .9rem; font-style: italic; }
.static-page h1 { font-weight: 800; color: var(--teal-texto); margin-bottom: 14px; }
.btn { display: inline-block; background: var(--verde); color: #fff !important; font-weight: 700; padding: 11px 26px; border-radius: 999px; border: 0; cursor: pointer; margin-top: 16px; }
.btn:hover { background: var(--verde-escuro); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.form-field input, .form-field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--verde); border-color: transparent; }
.page-404 { text-align: center; }
.page-404 h1 { font-size: 4rem; color: var(--laranja); }
.busca-box { display: flex; gap: 10px; max-width: 540px; margin: 20px auto 24px; }
.busca-box input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }

/* ===== Rodapé ===== */
.rodape { background: var(--card); border-top: 1px solid var(--line); margin-top: 24px; }
.rodape-inner { display: flex; align-items: center; gap: 20px; padding: 24px 20px; flex-wrap: wrap; }
.rodape-marca { display: flex; align-items: center; gap: 10px; }
.rodape-marca img { width: 44px; }
.rodape-marca strong { font-size: 1rem; color: var(--teal-texto); display: block; }
.rodape-marca span { font-size: .76rem; color: var(--muted); display: block; }
.rodape-news { display: flex; flex-direction: column; gap: 8px; margin: 0 auto; }
.news-texto { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--teal-texto); }
.news-campo { display: flex; gap: 8px; }
.news-campo input { padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; min-width: 200px; }
.news-campo input:focus { outline: 2px solid var(--laranja); border-color: transparent; }
.news-campo button { background: var(--laranja); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 700; }
.news-campo button:hover { background: #d06d38; }
.news-ok { font-size: .78rem; color: var(--verde); }
.rodape-nav { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .8rem; }
.rodape-nav a { color: var(--muted); }
.rodape-nav a:hover { color: var(--verde); }
.rodape-social { display: flex; gap: 8px; }
.rodape-social a { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--teal-texto); display: inline-flex; align-items: center; justify-content: center; }
.rodape-social a:hover { background: var(--verde); color: #fff; }
.rodape-assinatura { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: .85rem; color: var(--teal-texto); line-height: 1.4; }
.rodape-assinatura em { color: var(--laranja); font-weight: 700; }
.rodape-base { border-top: 1px solid var(--line); padding: 12px 20px; font-size: .74rem; color: var(--muted); }

/* ===== Responsivo ===== */
@media (max-width: 1180px) {
  .perto-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-selo { display: none; }
}
@media (max-width: 900px) {
  .caderno-cards { grid-template-columns: 1fr; }
  .hero-info { display: none; }
  .hero-nota { font-size: .9rem; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 70px; left: 12px; right: 12px; z-index: 80;
    flex-direction: column; gap: 4px; background: #fff; border-radius: 14px;
    box-shadow: 0 14px 30px rgba(42,74,66,.18); padding: 8px;
  }
  .nav-menu.open { display: flex; }
  .topbar-inner { position: relative; }
  .hero-painel { max-width: calc(100% - 20px); border-radius: 16px 16px 0 0; }
  .caderno-card > a { grid-template-columns: 1fr; }
  .caderno-card img { min-height: 170px; }
  .caderno-texto { padding-top: 44px; }
  .maislidas-lista { flex-direction: column; }
  .mais-item { border-left: 0; min-width: 100%; }
  .rodape-news { margin: 0; }
  .rodape-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .perto-grid { grid-template-columns: 1fr; }
  .hero-nota { display: none; }
  .perto-item > a { grid-template-columns: 1fr; }
  .perto-item img { height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
