/* ===== Alto Alegre Agora — tema cartão flutuante responsivo ===== */
:root {
  --azul: #1f7ad6;
  --azul-claro: #e3f0fc;
  --laranja: #f0801f;
  --laranja-claro: #fdeee0;
  --vermelho: #e05548;
  --verde: #3aa54a;
  --amarelo: #e8b020;
  --bg-card: #ffffff;
  --text: #24303c;
  --muted: #6d7885;
  --line: #e8edf2;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(36, 48, 60, .12);
}

* { 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;
  color: var(--text); line-height: 1.55;
  background: url("/assets/images/fundo-lateral.webp") center/cover fixed;
  -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: 1180px; margin: 0 auto; padding: 0 22px; }

.cartao {
  max-width: 1250px; margin: 0 auto; background: var(--bg-card);
  min-height: 100vh; box-shadow: 0 0 40px rgba(20, 40, 60, .25);
}
main { padding-bottom: 30px; }

.titulo-secao { display: flex; align-items: center; gap: 9px; font-size: 1.35rem; font-weight: 900; color: var(--azul); letter-spacing: -.3px; }
.traco { display: inline-block; width: 30px; height: 4px; border-radius: 2px; background: var(--azul); }
.traco.laranja { background: var(--laranja); }
.traco.azul { background: var(--azul); }

.tag { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; width: fit-content; }
.tag-cidade { background: #dbeafd; color: var(--azul); }
.tag-comunidade { background: #fde5e1; color: var(--vermelho); }
.tag-campo { background: #e0f2e4; color: var(--verde); }
.tag-cultura { background: #fdf3d7; color: #a8801a; }
.tag-educacao { background: #e3f0fc; color: var(--azul); }
.tag-esportes { background: #fde5e1; color: var(--vermelho); }

/* ===== Topbar ===== */
.topbar { padding: 16px 24px 10px; }
.topbar-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 46px; }
.brand-texto strong { display: block; font-size: 1.25rem; font-weight: 900; color: var(--azul); letter-spacing: -.3px; }
.brand-texto strong em { font-style: normal; color: var(--laranja); }
.brand-texto em { display: block; font-style: normal; font-size: .78rem; color: var(--muted); }
.nav-menu { display: flex; list-style: none; gap: 8px; margin: 0 auto; flex-wrap: wrap; }
.nav-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: .88rem; transition: .15s; }
.pill-1 { background: var(--azul); color: #fff; }
.pill-1:hover { background: #1667b8; }
.pill-2 { background: #fde5e1; color: var(--vermelho); }
.pill-2:hover { background: var(--vermelho); color: #fff; }
.pill-3 { background: #e0f2e4; color: var(--verde); }
.pill-3:hover { background: var(--verde); color: #fff; }
.pill-4 { background: #fdf3d7; color: #a8801a; }
.pill-4:hover { background: var(--amarelo); color: var(--text); }
.nav-pill[aria-current="page"] { outline: 2px solid var(--azul); outline-offset: 2px; }
.nav-busca { background: #f2f6fa; color: var(--muted); font-weight: 500; }
.nav-toggle { display: none; background: var(--azul-claro); border: 0; border-radius: 10px; padding: 9px 11px; margin-left: auto; }
.nav-toggle span { display: block; width: 21px; height: 2.4px; background: var(--azul); margin: 4px 0; border-radius: 2px; }

/* ===== Hero ===== */
.hero { padding: 4px 24px 0; }
.hero-foto-wrap { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.hero-foto { width: 100%; height: clamp(240px, 28vw, 320px); object-fit: cover; }
.hero-chip {
  position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.92);
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  font-weight: 700; font-size: .78rem; color: var(--azul);
}
.hero-card {
  position: absolute; left: 0; bottom: 0; background: rgba(255,255,255,.96);
  padding: 18px 26px 16px; border-radius: 0 16px 0 0; max-width: 640px;
}
.hero-badge { background: var(--laranja); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; display: inline-block; }
.hero-card h1 { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 800; color: var(--azul); line-height: 1.25; margin: 8px 0 6px; }
.hero-card h1 a:hover { text-decoration: underline; }
.hero-card p { font-size: .86rem; color: var(--muted); }

/* ===== Atalhos ===== */
.atalhos { display: flex; align-items: center; gap: 24px; padding: 24px 24px 6px; flex-wrap: wrap; }
.atalhos-lista { display: flex; gap: 26px; flex: 1; flex-wrap: wrap; justify-content: space-between; }
.atalho { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.atalho-circulo {
  width: 76px; height: 76px; border-radius: 50%; border: 4px solid var(--azul);
  overflow: hidden; display: inline-flex; background: #fff; transition: transform .15s;
}
.atalho-circulo img { width: 100%; height: 100%; object-fit: cover; }
.atalho:hover .atalho-circulo { transform: scale(1.06); }
.atalho-label { font-size: .84rem; font-weight: 700; color: var(--azul); }

/* ===== Mural aberto ===== */
.mural { padding: 10px 24px 0; }
.mural-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; background: var(--azul-claro); border-radius: 12px; padding: 14px 20px; }
.mural-head .titulo-secao { background: #fff; padding: 8px 18px; border-radius: 10px; box-shadow: var(--shadow); }
.mural-sub { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; color: var(--azul); }
.mural-lista { display: flex; flex-direction: column; gap: 10px; }
.mural-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.mural-item > a { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; padding: 12px; }
.mural-item img { width: 150px; height: 96px; object-fit: cover; border-radius: 10px; }
.mural-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.mural-meta time { font-size: .74rem; color: var(--muted); }
.mural-texto h3 { font-size: 1rem; color: var(--text); line-height: 1.3; }
.mural-texto p { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.mural-item:hover h3 { text-decoration: underline; }
.mural-fonte {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  font-size: .74rem; font-weight: 600; color: var(--muted); max-width: 130px;
}
.fonte-avatar {
  width: 46px; height: 46px; border-radius: 50%; color: #fff; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
}

/* ===== O que está acontecendo ===== */
.acontecendo { padding-top: 22px; }
.acontecendo-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.aco-item { display: flex; gap: 12px; align-items: flex-start; background: #f6f9fc; border-radius: 12px; padding: 14px 16px; }
.aco-icone { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.cor-azul { background: var(--azul); }
.cor-verde { background: var(--verde); }
.cor-vermelho { background: var(--vermelho); }
.aco-item strong { display: block; font-size: .88rem; color: var(--azul); }
.aco-item span { font-size: .8rem; color: var(--muted); display: block; }
.aco-item em { font-size: .7rem; color: var(--muted); font-style: normal; display: block; margin-top: 3px; }
.aco-item a:hover strong { text-decoration: underline; }

/* ===== Mais lidas ===== */
.maislidas { background: #f6f9fc; border-radius: 14px; padding: 18px 22px; margin-top: 24px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.maislidas .titulo-secao { flex-shrink: 0; }
.maislidas-lista { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 240px; }
.mais-item { display: flex; gap: 12px; align-items: center; }
.mais-num { width: 26px; height: 26px; border-radius: 50%; background: var(--azul); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.mais-item a { font-size: .88rem; font-weight: 600; }
.mais-item a:hover { text-decoration: underline; color: var(--azul); }
.mais-news { margin-left: auto; display: flex; flex-direction: column; gap: 8px; min-width: 300px; }
.news-texto { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-texto strong { font-size: .86rem; color: var(--azul); }
.news-texto em { font-style: normal; font-size: .74rem; color: var(--muted); width: 100%; }
.news-campo { display: flex; gap: 8px; }
.news-campo input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.news-campo input:focus { outline: 2px solid var(--azul); border-color: transparent; }
.news-campo button { background: var(--laranja); color: #fff; border: 0; border-radius: 8px; padding: 11px 20px; font-weight: 700; }
.news-campo button:hover { background: #d96f14; }
.news-ok { font-size: .78rem; color: var(--verde); }

/* ===== 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: 8px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--azul); transition: .15s; }
.page-btn:hover { border-color: var(--azul); }
.page-btn.current { background: var(--azul); border-color: var(--azul); 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: 20px; }
.post { max-width: 860px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); 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(--azul); }
.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(--azul); }
.post-content ul, .post-content ol { margin: 0 0 1em 1.4em; }
.post-content blockquote { border-left: 4px solid var(--laranja); background: var(--laranja-claro); 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(--azul-claro); padding: 7px 14px; border-radius: 20px; font-weight: 600; }
.post-share a:hover { background: var(--azul); color: #fff; }
.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(--azul); margin-bottom: 14px; }
.btn { display: inline-block; background: var(--azul); color: #fff !important; font-weight: 700; padding: 11px 26px; border-radius: 999px; border: 0; cursor: pointer; margin-top: 16px; }
.btn:hover { background: #1667b8; }
.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(--azul); 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 { border-top: 1px solid var(--line); margin-top: 26px; }
.rodape-inner { display: flex; align-items: center; gap: 18px; padding: 20px 24px; flex-wrap: wrap; }
.rodape-marca { display: flex; align-items: center; gap: 10px; }
.rodape-marca img { width: 40px; }
.rodape-marca strong { font-size: .95rem; color: var(--azul); display: block; }
.rodape-marca strong em { font-style: normal; color: var(--laranja); }
.rodape-marca span { font-size: .72rem; color: var(--muted); display: block; }
.rodape-frase { font-size: .82rem; font-weight: 700; color: var(--azul); }
.rodape-nav { display: flex; gap: 6px 14px; flex-wrap: wrap; margin: 0 auto; font-size: .8rem; }
.rodape-nav a { color: var(--muted); }
.rodape-nav a:hover { color: var(--azul); }
.rodape-social { display: flex; gap: 8px; }
.rodape-social a { width: 32px; height: 32px; border-radius: 50%; background: var(--azul-claro); color: var(--azul); display: inline-flex; align-items: center; justify-content: center; }
.rodape-social a:hover { background: var(--azul); color: #fff; }
.rodape-local strong { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--azul); }
.rodape-local span { font-size: .72rem; color: var(--muted); display: block; }
.rodape-base { border-top: 1px solid var(--line); padding: 12px 24px; font-size: .74rem; color: var(--muted); }

/* ===== Responsivo ===== */
@media (max-width: 1100px) {
  .acontecendo-lista { grid-template-columns: 1fr; }
  .nav-busca span { display: none; }
  .nav-busca { padding: 10px 13px !important; }
}
@media (max-width: 900px) {
  .cartao { box-shadow: none; }
  body { background-position: center top; }
  .atalhos-lista { justify-content: flex-start; gap: 16px; }
  .mural-item > a { grid-template-columns: 110px 1fr; }
  .mural-item img { width: 110px; height: 76px; }
  .mural-fonte { display: none; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 70px; left: 14px; right: 14px; z-index: 80;
    flex-direction: column; gap: 6px; background: #fff; border-radius: 14px;
    box-shadow: 0 14px 30px rgba(36,48,60,.2); padding: 10px;
  }
  .nav-menu.open { display: flex; }
  .topbar { position: relative; }
  .maislidas { flex-direction: column; align-items: flex-start; }
  .mais-news { margin-left: 0; width: 100%; }
  .hero-card { max-width: calc(100% - 20px); }
}
@media (max-width: 560px) {
  .mural-item > a { grid-template-columns: 1fr; }
  .mural-item img { width: 100%; height: 150px; }
  .brand-texto strong { font-size: 1.05rem; }
  .atalho-circulo { width: 64px; height: 64px; }
  .hero { padding: 4px 14px 0; }
  .acontecendo { padding-left: 14px; padding-right: 14px; }
  .mural { padding: 10px 14px 0; }
  .atalhos { padding: 24px 14px 6px; }
  .maislidas { margin-left: 14px; margin-right: 14px; }
  .pagination { margin-left: 14px; margin-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
