/* ===== Aguaí em Rede — tema responsivo ===== */
:root {
  --blue: #1f7fd6;
  --blue-dark: #0e5fae;
  --navy: #0e3a5d;
  --teal: #0d95a8;
  --teal-dark: #0b7d8d;
  --yellow: #ffd44d;
  --yellow-dark: #f0b429;
  --red: #e05c4a;
  --red-dark: #c0392b;
  --bg: #eaf6fb;
  --cream: #fdf8ec;
  --card: #ffffff;
  --text: #173242;
  --muted: #5c7280;
  --line: #d4e7ef;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(14, 90, 140, .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: 1320px; margin: 0 auto; padding: 0 20px; }

.tag { display: inline-block; color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; width: fit-content; }
.tag-cidade { background: var(--blue); }
.tag-regiao { background: var(--teal); }
.tag-cultura { background: var(--red); }
.tag-esportes { background: #2e9e5b; }
.tag-opiniao { background: #7a8699; }

/* ===== Header ===== */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 66px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 42px; height: auto; }
.brand-text { font-size: 1.15rem; font-weight: 800; letter-spacing: .4px; color: var(--navy); }
.brand-slogan { color: var(--muted); font-size: .92rem; border-left: 1.5px solid var(--line); padding-left: 16px; }
.nav-menu { display: flex; list-style: none; gap: 10px; margin-left: auto; align-items: center; }
.nav-pill { display: inline-block; padding: 9px 22px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; transition: .15s; }
.nav-pill:hover { border-color: var(--blue); color: var(--blue); }
.nav-pill[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.nav-search { padding: 9px 12px; display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ===== Hero ===== */
main.container { padding-top: 18px; padding-bottom: 36px; }
.hero { margin-bottom: 26px; }
.hero-frame {
  border-radius: 26px 26px 0 0; border: 10px solid var(--blue); border-bottom: 0;
  border-bottom-left-radius: 40px; border-bottom-right-radius: 40px;
  overflow: hidden; background: var(--blue);
}
.hero-frame img { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; }
.hero-banner {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; display: flex; align-items: center; gap: 16px;
  padding: 18px 26px 26px; border-radius: 0 0 26px 26px; position: relative;
}
.hero-badge { background: var(--red); font-size: .68rem; font-weight: 800; letter-spacing: 1px; padding: 5px 12px; border-radius: 999px; position: absolute; top: -14px; left: 26px; }
.hero-num {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; flex-shrink: 0; margin-left: 8px;
}
.hero-banner h1 { font-size: clamp(1.15rem, 2.6vw, 1.8rem); font-weight: 800; line-height: 1.2; flex: 1; }
.hero-banner h1 a:hover { text-decoration: underline; }
.hero-banner p { font-size: .82rem; opacity: .92; max-width: 260px; border-left: 1px solid rgba(255,255,255,.4); padding-left: 16px; }
.hero-arrow { color: #fff; flex-shrink: 0; transition: transform .15s; }
.hero-arrow:hover { transform: translateX(4px); }

/* ===== Em 5 minutos ===== */
.resumo { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-bottom: 30px; position: relative; }
.resumo-intro h2 { font-size: 1.6rem; font-weight: 400; line-height: 1.15; }
.resumo-intro h2 strong { font-size: 2rem; font-weight: 800; display: block; }
.resumo-intro p { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.resumo-lista { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; z-index: 2; }
.resumo-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem;
  margin-bottom: 10px; color: var(--navy);
}
.n1 { border-color: var(--blue); } .n2 { border-color: var(--yellow-dark); }
.n3 { border-color: var(--teal); } .n4 { border-color: var(--red); }
.n5 { border-color: #2e9e5b; }
.resumo-lista a { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.resumo-lista img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; }
.resumo-lista strong { font-size: .8rem; line-height: 1.35; }
.resumo-lista a:hover strong { color: var(--blue); }
.trilho { position: absolute; top: 17px; height: 3px; width: calc(20% - 40px); border-radius: 2px; }
.trilho.t1 { left: calc(20% + 20px); background: var(--blue); }
.trilho.t2 { left: calc(40% + 20px); background: var(--yellow-dark); }
.trilho.t3 { left: calc(60% + 20px); background: var(--teal); }
.trilho.t4 { left: calc(80% + 20px); background: var(--red); }
.resumo-trilho { position: absolute; inset: 0 0 auto 244px; pointer-events: none; }

/* ===== Viva Aguaí ===== */
.viva { display: grid; grid-template-columns: 240px 1fr; gap: 20px; margin-bottom: 34px; }
.viva-intro { position: relative; border-radius: var(--radius); overflow: visible; }
.viva-ilustra { position: absolute; left: -20px; top: -40px; width: 260px; opacity: .95; z-index: 0; }
.viva-texto { position: relative; z-index: 1; padding: 34px 10px 0 30px; }
.viva-texto h2 { font-size: 1.9rem; font-weight: 400; line-height: 1.05; color: var(--navy); }
.viva-texto h2 strong { font-size: 2.3rem; font-weight: 800; display: block; }
.viva-texto p { font-size: .86rem; color: var(--muted); margin-top: 10px; max-width: 210px; }

.filtros { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.filtro { background: transparent; border: 0; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--text); transition: .15s; }
.filtro:hover { color: var(--blue); }
.filtro.ativo { background: var(--blue); color: #fff; }
.filtro-sep { color: var(--line); }
.viva-lista { display: flex; flex-direction: column; gap: 12px; }
.viva-item { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.viva-item > a { display: grid; grid-template-columns: 210px 4px 1fr auto; align-items: center; gap: 0; min-height: 86px; }
.viva-item img { width: 100%; height: 100%; min-height: 86px; object-fit: cover; }
.vira-col { width: 4px; height: 100%; background: rgba(0,0,0,.15); }
.viva-body { padding: 12px 18px; display: flex; flex-direction: column; gap: 3px; }
.viva-body .tag { background: transparent !important; font-size: .7rem; }
.viva-body strong { font-size: .98rem; line-height: 1.3; }
.viva-body p { font-size: .8rem; color: #3d5462; }
.viva-arrow { color: #55606b; padding: 0 22px; }
.viva-item:hover strong { text-decoration: underline; }
.viva-item.hidden { display: none; }

/* Widget de tempo */
.tempo-chip {
  margin-top: 14px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
}
.tempo-icon { font-size: 2rem; }
.tempo-chip strong { display: block; font-size: .95rem; }
.tempo-temp { font-size: 1.6rem; font-weight: 800; color: var(--yellow-dark); margin-right: 10px; }
.tempo-desc { font-size: .8rem; color: var(--muted); display: block; }

/* ===== Últimas notícias ===== */
.h-section { font-size: 1.35rem; font-weight: 800; letter-spacing: -.3px; color: var(--navy); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 16px; }
.ver-mais { font-size: .85rem; font-weight: 600; color: var(--blue); }
.ver-mais:hover { text-decoration: underline; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.news-card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: #dcecf3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; }
.card-body h3 { font-size: .98rem; font-weight: 700; line-height: 1.35; }
.card-body p { font-size: .83rem; color: var(--muted); }
.card-body time { font-size: .75rem; color: var(--muted); margin-top: auto; }

/* ===== Paginação ===== */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 26px 0 8px; }
.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; transition: .15s; }
.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-btn.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-ellipsis { align-self: end; padding: 6px; color: var(--muted); }

/* ===== Post / páginas ===== */
.post, .static-page { max-width: 800px; margin: 0 auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px clamp(18px, 4vw, 42px); }
.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; letter-spacing: -.4px; line-height: 1.22; margin-top: 10px; }
.post-meta { color: var(--muted); font-size: .87rem; 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(--navy); }
.post-content ul, .post-content ol { margin: 0 0 1em 1.4em; }
.post-content blockquote { border-left: 4px solid var(--teal); background: #eef7f9; padding: 12px 18px; border-radius: 0 8px 8px 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(--blue); }
.related { margin-top: 26px; }
.related h2 { font-size: 1.15rem; margin-bottom: 12px; }

.static-page h1 { font-weight: 800; margin-bottom: 14px; }
.categoria-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.categoria-head h1 { font-size: 1.55rem; font-weight: 800; }
.categoria-head p { color: var(--muted); font-size: .9rem; font-style: italic; }
.btn { display: inline-block; background: var(--blue); color: #fff !important; font-weight: 700; padding: 11px 26px; border-radius: 999px; border: 0; cursor: pointer; margin-top: 16px; }
.btn:hover { background: var(--blue-dark); }
.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: #fbfdfe; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.page-404 { text-align: center; }
.page-404 h1 { font-size: 4rem; color: var(--teal); }

/* ===== Busca ===== */
.busca-box { display: flex; gap: 10px; max-width: 540px; margin: 18px auto 24px; }
.busca-box input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }

/* ===== Rodapé ===== */
.site-footer { background: var(--teal-dark); color: #eafcff; margin-top: 30px; }
.footer-inner { display: flex; align-items: center; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 34px; }
.footer-brand strong { font-size: 1.05rem; font-weight: 800; letter-spacing: .4px; }
.footer-sep { opacity: .4; }
.footer-slogan { font-size: .88rem; opacity: .9; }
.footer-social { display: flex; gap: 10px; margin-left: auto; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: #fff; color: var(--teal-dark); }
.footer-sketch { width: 130px; opacity: .9; }
.footer-city { font-size: .8rem; font-weight: 700; letter-spacing: 1px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding: 12px 20px; font-size: .78rem; opacity: .9; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.footer-bottom a:hover { text-decoration: underline; }

/* ===== Responsivo ===== */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .resumo-lista { grid-template-columns: repeat(3, 1fr); }
  .trilho, .resumo-trilho { display: none; }
}
@media (max-width: 900px) {
  .resumo { grid-template-columns: 1fr; }
  .viva { grid-template-columns: 1fr; }
  .viva-ilustra { position: static; width: 180px; margin-left: -8px; }
  .viva-texto { padding: 0; }
  .viva-texto p { max-width: none; }
  .brand-slogan { display: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 66px; left: 0; right: 0; z-index: 70;
    flex-direction: column; align-items: stretch; gap: 4px; background: var(--card);
    border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: 0 14px 24px rgba(14,90,140,.12);
  }
  .nav-menu.open { display: flex; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .hero-banner { flex-wrap: wrap; }
  .hero-banner p { border-left: 0; padding-left: 0; max-width: none; }
  .resumo-lista { grid-template-columns: repeat(2, 1fr); }
  .viva-item > a { grid-template-columns: 120px 4px 1fr; }
  .viva-arrow { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-social { margin-left: 0; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
  .news-grid, .resumo-lista { grid-template-columns: 1fr; }
  .viva-item > a { grid-template-columns: 1fr; }
  .viva-item img { height: 140px; }
  .vira-col { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
