/* =========================================================
   POY NEWS · visual claro de portal de notícias
   ========================================================= */
:root {
  --cor: #7c0d1a;          /* vinho da marca (muda no painel) */
  --cor-clara: #f8eef0;    /* fundo suave em vinho */
  --creme: #f3e5af;        /* creme da marca (muda no painel) */
  --texto: #1a1a1a;
  --suave: #5f6368;
  --linha: #e6e6e6;
  --fundo: #ffffff;
  --fundo2: #f5f5f5;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--texto); background: var(--fundo); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Faixa superior ---------- */
.faixa-topo { background: var(--cor); color: #fff; font-size: 13px; }
.faixa-topo .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.faixa-topo .redes { display: flex; gap: 16px; }
.faixa-topo .redes a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; opacity: .95; }
.faixa-topo .redes a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Cabeçalho ---------- */
.cabecalho { background: #fff; border-bottom: 1px solid var(--linha); }
.cabecalho .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.marca { display: flex; align-items: center; gap: 14px; }
.marca img { width: 84px; height: 84px; border-radius: 8px; }
.marca-texto strong { display: block; font-size: 26px; font-weight: 800; color: var(--cor); letter-spacing: -.5px; line-height: 1.1; }
.marca-texto span { font-size: 14px; color: var(--suave); }
.busca { display: flex; }
.busca input { border: 1px solid #d6d6d6; border-radius: 999px; padding: 9px 16px; font-size: 14px; width: 260px; font-family: inherit; background: var(--fundo2); }
.busca input:focus { outline: 2px solid var(--cor); background: #fff; }

/* ---------- Menu ---------- */
.menu { background: #fff; border-bottom: 3px solid var(--cor); position: sticky; top: 0; z-index: 20; }
.menu .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.menu .container::-webkit-scrollbar { display: none; }
.menu a { padding: 12px 14px; font-size: 15px; font-weight: 700; color: #333; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.menu a:hover { color: var(--cor); }
.menu a.ativo { color: var(--cor); border-bottom-color: var(--cor); }

/* ---------- Publicidade ---------- */
.anuncio { text-align: center; margin: 20px auto; }
.anuncio-rotulo { display: block; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #9aa0a6; margin-bottom: 4px; }
.anuncio-item { display: none; }
.anuncio-item.ativo { display: block; }
.anuncio-item img { margin: 0 auto; border-radius: 4px; }
.anuncio-largo { max-width: 970px; }
.anuncio-largo img { width: 100%; height: auto; }
.anuncio-lateral img { width: 100%; height: auto; }
.anuncio-meio { padding: 18px 0; border-top: 1px solid var(--linha); margin: 0; }

/* ---------- Chapéu (categoria) e meta ---------- */
.chapeu { display: inline-block; font-size: 13px; font-weight: 700; color: var(--cor); margin-bottom: 4px; }
.meta { font-size: 13px; color: var(--suave); }

/* ---------- Capas ---------- */
.capa { aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: var(--fundo2); }
.capa img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.capa.sem-imagem { display: flex; align-items: flex-end; padding: 14px; color: var(--cor); font-weight: 800; font-size: 20px; border: 1px solid #eee2c4; }

/* ---------- Página inicial ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding: 24px 0 48px; }
.manchete { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--linha); }
.manchete h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; margin: 2px 0 10px; color: var(--texto); }
.manchete p { font-size: 17px; color: #3c4043; margin: 0 0 10px; }
.manchete:hover h2, .item-feed:hover h3 { color: var(--cor); }
.manchete:hover .capa img, .item-feed:hover .capa img { transform: scale(1.03); }

.secao-titulo { font-size: 20px; font-weight: 800; color: var(--cor); margin: 26px 0 4px; padding-left: 10px; border-left: 5px solid var(--cor); }
.feed { display: flex; flex-direction: column; }
.item-feed { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--linha); }
.item-feed h3 { font-size: 21px; line-height: 1.22; font-weight: 800; margin: 0 0 8px; color: var(--texto); }
.item-feed p { margin: 0 0 8px; color: #3c4043; font-size: 15px; }
.vazio { padding: 60px 0; text-align: center; color: var(--suave); }

/* ---------- Barra lateral ---------- */
.lateral { display: flex; flex-direction: column; gap: 22px; }
.lateral .anuncio { margin: 0; }
.caixa { border: 1px solid var(--linha); border-radius: 10px; padding: 16px 18px; background: #fff; }
.caixa h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--cor); text-transform: uppercase; letter-spacing: .5px; }
.ultimas { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.ultimas li { counter-increment: n; display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linha); }
.ultimas li:first-child { border-top: 0; padding-top: 2px; }
.ultimas li::before { content: counter(n); font-size: 26px; font-weight: 800; color: var(--cor); line-height: 1; min-width: 18px; }
.ultimas a { font-weight: 700; font-size: 15px; line-height: 1.3; }
.ultimas a:hover { color: var(--cor); }
.caixa-redes p { margin: 0 0 12px; font-size: 14px; color: var(--suave); }
.botao { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 8px; font-weight: 700; font-size: 15px; color: #fff; margin-top: 8px; }
.botao:hover { filter: brightness(1.08); }
.botao-youtube { background: #e62117; }
.botao-whatsapp { background: #1fa855; }
.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Matéria ---------- */
.materia { max-width: 760px; margin: 0 auto; padding: 32px 0 48px; }
.materia h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.7px; margin: 6px 0 14px; }
.materia .linha-fina { font-size: 20px; color: #3c4043; margin: 0 0 18px; line-height: 1.45; }
.materia .meta { padding: 12px 0; border-top: 1px solid var(--linha); margin-bottom: 4px; }
.materia > .capa { margin: 18px 0 26px; }
.corpo p, .corpo ul, .corpo ol { font-family: var(--serif); font-size: 19px; line-height: 1.75; margin: 0 0 22px; color: #222; }
.corpo ul, .corpo ol { padding-left: 26px; }
.corpo li { margin-bottom: 6px; }
.corpo h2 { font-size: 24px; font-weight: 800; margin: 34px 0 12px; }
.corpo h3 { font-size: 20px; font-weight: 800; margin: 28px 0 10px; }
.corpo blockquote { margin: 0 0 22px; padding: 8px 0 8px 18px; border-left: 4px solid var(--cor); font-family: var(--serif); font-size: 21px; font-style: italic; color: #3c4043; }
.corpo img { border-radius: 6px; margin: 8px 0 22px; }
.corpo a { color: var(--cor); text-decoration: underline; }

/* ---------- Compartilhar ---------- */
.compartilhar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.compartilhar-rotulo { font-size: 13px; font-weight: 700; color: var(--suave); margin-right: 4px; }
.compartilhar a, .compartilhar button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 14px; font: 600 14px var(--sans); color: #fff; cursor: pointer; }
.compartilhar a:hover, .compartilhar button:hover { filter: brightness(1.1); }
.c-whatsapp { background: #1fa855; }
.c-facebook { background: #1877f2; }
.c-x { background: #111; }
.c-telegram { background: #229ed9; }
.c-copiar { background: var(--fundo2) !important; color: var(--texto) !important; border: 1px solid #d6d6d6 !important; }
.c-nativo { background: var(--cor) !important; display: none !important; }
.tem-compartilhar-nativo .c-nativo { display: inline-flex !important; }
.compartilhar-fim { margin-top: 30px; border-bottom: 0; }
.compartilhar-fim .compartilhar-rotulo { width: 100%; font-size: 17px; color: var(--texto); }

.convite { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }
.convite .botao { margin: 0; padding: 14px; }

.leia-tambem { margin-top: 36px; }
.leia-tambem .grade-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.leia-tambem h4 { font-size: 16px; line-height: 1.3; font-weight: 800; margin: 8px 0 0; }
.leia-tambem a:hover h4 { color: var(--cor); }

/* ---------- Rodapé ---------- */
.rodape { background: #1f1f1f; color: #c8c8c8; padding: 34px 0 26px; font-size: 14px; margin-top: 20px; }
.rodape .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.rodape-marca { display: flex; align-items: center; gap: 14px; }
.rodape-marca img { width: 64px; height: 64px; border-radius: 8px; }
.rodape-marca strong { display: block; color: #fff; font-size: 20px; }
.rodape-redes { display: flex; gap: 10px; flex-wrap: wrap; }
.rodape-redes .botao { margin: 0; padding: 9px 14px; font-size: 14px; }
.rodape-copy { width: 100%; border-top: 1px solid #333; padding-top: 16px; margin-top: 6px; font-size: 13px; color: #9a9a9a; }

.zap-flutuante { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 30; }
.zap-flutuante .ico { width: 30px; height: 30px; }

.aviso-copiado { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1a1a1a; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 40; }
.aviso-copiado.mostrar { opacity: 1; }

/* ---------- Celular e tablet ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .lateral { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .faixa-topo .data { display: none; }
  .faixa-topo .container { justify-content: center; }
  .cabecalho .container { flex-direction: column; align-items: stretch; gap: 10px; }
  .marca img { width: 60px; height: 60px; }
  .marca-texto strong { font-size: 22px; }
  .busca input { width: 100%; }
  .manchete { grid-template-columns: 1fr; }
  .item-feed { grid-template-columns: 120px 1fr; gap: 14px; padding: 16px 0; }
  .item-feed h3 { font-size: 17px; }
  .item-feed p { display: none; }
  .item-feed .capa.sem-imagem { font-size: 13px; padding: 8px; }
  .lateral { grid-template-columns: 1fr; }
  .convite { grid-template-columns: 1fr; }
  .leia-tambem .grade-mini { grid-template-columns: 1fr; }
  .compartilhar a, .compartilhar button { padding: 8px 12px; font-size: 13px; }
}
.compartilhar + .corpo { margin-top: 24px; }

/* ---------- Previsão do tempo ---------- */
.tempo-mini { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.35); }
.tempo-mini:empty { display: none; }
.caixa-tempo .tempo-cidade { font-size: 14px; color: var(--suave); margin: -4px 0 8px; }
.tempo-agora { display: flex; align-items: center; gap: 12px; }
.tempo-agora .emoji { font-size: 44px; line-height: 1; }
.tempo-agora strong { font-size: 38px; font-weight: 800; line-height: 1; }
.tempo-agora small { display: block; color: var(--suave); font-size: 13px; }
.tempo-dias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; text-align: center; }
.tempo-dias div { background: var(--fundo2); border-radius: 8px; padding: 8px 4px; font-size: 12px; }
.tempo-dias b { display: block; font-size: 12px; text-transform: capitalize; }
.tempo-dias span { display: block; font-size: 22px; margin: 2px 0; }
.tempo-local { margin-top: 12px; width: 100%; background: #fff; border: 1px solid #d6d6d6; border-radius: 8px; padding: 9px; font: 600 14px var(--sans); cursor: pointer; color: var(--texto); }
.tempo-local:hover { border-color: var(--cor); color: var(--cor); }
.tempo-carregando, .tempo-erro { color: var(--suave); font-size: 14px; margin: 0; }

/* ---------- Atalhos ---------- */
.atalhos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.atalho { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 1px solid var(--linha); border-radius: 10px; font-weight: 700; font-size: 14px; text-align: center; }
.atalho span { font-size: 26px; }
.atalho:hover { border-color: var(--cor); color: var(--cor); }

/* ---------- Páginas especiais ---------- */
.pagina-titulo { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin: 0 0 4px; letter-spacing: -.5px; }
.pagina-sub { color: var(--suave); margin: 0 0 20px; }
.pagina-intro { font-size: 17px; margin: 0 0 20px; }

.signos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.signo { border: 1px solid var(--linha); border-radius: 12px; padding: 16px 18px; background: #fff; scroll-margin-top: 70px; }
.signo-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.signo-simbolo { width: 46px; height: 46px; border-radius: 50%; background: var(--creme); color: var(--cor); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.signo strong { display: block; font-size: 18px; color: var(--cor); }
.signo small { color: var(--suave); }
.signo p { margin: 0; font-size: 15px; line-height: 1.55; }

.falecimentos { display: flex; flex-direction: column; }
.falecido { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--linha); scroll-margin-top: 70px; }
.falecido-foto { width: 96px; height: 120px; object-fit: cover; border-radius: 8px; filter: grayscale(100%); }
.falecido-foto.sem-foto { background: var(--fundo2); display: flex; align-items: center; justify-content: center; font-size: 34px; filter: none; }
.falecido h3 { margin: 0 0 4px; font-size: 21px; font-weight: 800; }
.falecido p { margin: 6px 0 0; font-size: 15px; }
.falecido-msg { font-family: var(--serif); font-style: italic; color: #3c4043; }

@media (max-width: 720px) {
  .tempo-mini { display: none; }
  .signos { grid-template-columns: 1fr; }
  .falecido { grid-template-columns: 72px 1fr; gap: 14px; }
  .falecido-foto { width: 72px; height: 90px; }
}
