/* =====================================================================
   Política Piauí - ajuste rápido de aparência (SÓ CSS): home, categorias e barra de compartilhar.
   Onde colar: Divi > Opções do Tema > CSS Personalizado.
   Para desfazer: apagar este bloco e salvar. Não muda código, plugins nem consultas ao banco.
   Versão 2 (24/11/2026): banner mantido; cartões com autor e data; fotos sem recorte; barra de compartilhar menor e em português.
   ===================================================================== */

/* --- barra lateral: some tudo, menos o banner "Anuncie", que vai para baixo da lista --- */
body:is(.home,.blog,.archive) #main-content .container:before{display:none !important}
body:is(.home,.blog,.archive) #sidebar{display:block !important;float:none !important;width:100% !important;padding:0 !important;margin:0 !important}
body:is(.home,.blog,.archive) #sidebar>.et_pb_widget{display:none !important}
body:is(.home,.blog,.archive) #sidebar>#media_image-3{display:block !important;float:none !important;width:100% !important;margin:0 0 32px !important;padding:24px 0 0 !important;border-top:1px solid #E3E3E3;text-align:center}
body:is(.home,.blog,.archive) #sidebar>#media_image-3 img{width:100% !important;max-width:560px !important;height:auto}

/* --- lista vira grade: destaque grande + cartões --- */
body:is(.home,.blog,.archive) #left-area{
  width:100% !important;float:none !important;padding:0 0 24px !important;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 28px}
body:is(.home,.blog,.archive) #left-area>article.et_pb_post{
  margin:0 !important;padding:0 !important;border:0 !important;min-width:0;
  font-size:0;line-height:0} /* esconde o trecho de texto solto, sem apagar o resto */
body:is(.home,.blog,.archive) #left-area>article.et_pb_post>a.entry-featured-image-url{display:block;margin:0 0 12px !important}
/* fotos: caixa 16:10 (mesma proporção das miniaturas do site) e "contain" = NUNCA corta rostos */
body:is(.home,.blog,.archive) #left-area>article.et_pb_post>a.entry-featured-image-url img{
  display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:contain;object-position:50% 50%;
  background:#ECECEC;border-radius:4px}
body:is(.home,.blog,.archive) #left-area>article.et_pb_post h2.entry-title{
  font:700 21px/1.25 "Source Serif 4",Georgia,"Times New Roman",serif !important;
  color:#1A1A1A;margin:0 0 6px !important;padding:0 !important;letter-spacing:0;overflow-wrap:anywhere}
body:is(.home,.blog,.archive) #left-area>article.et_pb_post h2.entry-title a{color:inherit}
body:is(.home,.blog,.archive) #left-area>article.et_pb_post h2.entry-title a:hover{color:#9B1111}
/* meta: "por Redação · data" (categorias e separadores somem) */
body:is(.home,.blog,.archive) #left-area>article.et_pb_post .post-meta{font-size:0 !important;line-height:0;margin:0 !important;padding:0 !important}
body:is(.home,.blog,.archive) #left-area>article.et_pb_post .post-meta a[rel~="category"]{display:none !important}
body:is(.home,.blog,.archive) #left-area>article.et_pb_post .post-meta .author,
body:is(.home,.blog,.archive) #left-area>article.et_pb_post .post-meta .published{
  font:400 14px/1.4 "Open Sans",system-ui,Arial,sans-serif !important;color:#595959}
body:is(.home,.blog,.archive) #left-area>article.et_pb_post .post-meta .author a{font:inherit !important;color:inherit !important;text-decoration:none}
body:is(.home,.blog,.archive) #left-area>article.et_pb_post .post-meta .author::before{content:"por "}
body:is(.home,.blog,.archive) #left-area>article.et_pb_post .post-meta .author::after{content:" \00B7  "}
body:is(.home,.blog,.archive) #left-area>.pagination{grid-column:1/-1}

/* --- primeira matéria = destaque --- */
@media (min-width:900px){
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:first-of-type{
    grid-column:1/-1;display:grid;grid-template-columns:3fr 2fr;column-gap:32px;align-content:center;
    padding-bottom:28px !important;border-bottom:3px solid #C61919 !important}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:first-of-type>a.entry-featured-image-url{grid-column:1;grid-row:1 / span 2;margin:0 !important}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:first-of-type h2.entry-title{grid-column:2;align-self:end;font-size:36px !important;line-height:1.18 !important;margin-bottom:12px !important}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:first-of-type .post-meta{grid-column:2;align-self:start}
}
@media (min-width:768px) and (max-width:899px){
  body:is(.home,.blog,.archive) #left-area{grid-template-columns:repeat(2,minmax(0,1fr))}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:first-of-type{grid-column:1/-1}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:first-of-type h2.entry-title{font-size:30px !important}
}

/* --- celular: destaque grande e as demais em lista compacta (foto à direita, sem recorte) --- */
@media (max-width:767px){
  body:is(.home,.blog,.archive) #left-area{grid-template-columns:1fr;gap:0}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:first-of-type{padding-bottom:20px !important;border-bottom:3px solid #C61919 !important}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:first-of-type h2.entry-title{font-size:26px !important;line-height:1.2 !important}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:not(:first-of-type){
    display:grid;grid-template-columns:minmax(0,1fr) 128px;column-gap:14px;align-items:start;
    padding:16px 0 !important;border-bottom:1px solid #E3E3E3 !important}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:not(:first-of-type)>a.entry-featured-image-url{grid-column:2;grid-row:1 / span 2;margin:0 !important}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:not(:first-of-type) h2.entry-title{grid-column:1;font-size:18px !important}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:not(:first-of-type) .post-meta{grid-column:1}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:not(:first-of-type) .post-meta .published{white-space:nowrap}
  /* celular, lista compacta: autor e data cada um na sua linha, sem o ponto */
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:not(:first-of-type) .post-meta .author,
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:not(:first-of-type) .post-meta .published{display:block}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:not(:first-of-type) .post-meta .author::after{content:none}
}

/* --- matérias: barra de compartilhar menor, afastada do texto e em português --- */
body.single .sfsiaftrpstwpr{clear:both;margin:28px 0 8px !important}
body.single .sfsiaftrpstwpr .sfsi_icons_container{display:flex !important;flex-wrap:wrap;gap:8px;height:auto !important}
body.single .sfsiaftrpstwpr a.sfsi_responsive_fluid{width:auto !important;flex:0 1 auto;margin:0 !important}
body.single .sfsiaftrpstwpr .sfsi_responsive_icon_item_container{height:36px !important;min-width:150px;padding:0 14px !important;display:inline-flex !important;align-items:center;justify-content:center;border-radius:6px}
body.single .sfsiaftrpstwpr .sfsi_responsive_icon_item_container span{font-size:0 !important}
body.single .sfsiaftrpstwpr .sfsi_responsive_icon_item_container span::after{font:700 14px/1 "Open Sans",system-ui,Arial,sans-serif;color:#fff}
body.single .sfsiaftrpstwpr .sfsi_responsive_icon_facebook_container span::after{content:"Compartilhar"}
body.single .sfsiaftrpstwpr .sfsi_responsive_icon_twitter_container span::after{content:"Postar no X"}
body.single .sfsiaftrpstwpr .sfsi_responsive_icon_follow_container span::after{content:"Siga-nos"}

/* --- menu: contraste conforme o Manual de Identidade Visual (24/11/2026) ---
   Fundo branco, texto vermelho escuro #9B1111 (8,5:1) ou grafite #1A1A1A (17,4:1);
   passar o mouse = vermelho suave #FBEAEA com texto #9B1111; faixa do topo #9B1111 com texto branco. */
#top-header,#et-secondary-nav{background:#9B1111 !important}
#top-menu li>a{color:#9B1111 !important}
#top-menu li>a:hover,#top-menu li.current-menu-item>a,#top-menu li.current-menu-ancestor>a{color:#C61919 !important;opacity:1 !important}
#top-menu li ul.sub-menu,.nav li ul{background:#fff !important;border-top:3px solid #C61919 !important;border-left:1px solid #E3E3E3;border-right:1px solid #E3E3E3;border-bottom:1px solid #E3E3E3;box-shadow:none}
#top-menu li li a{color:#1A1A1A !important;opacity:1 !important;font-weight:600}
#top-menu li li a:hover,#top-menu li li.current-menu-item>a{background:#FBEAEA !important;color:#9B1111 !important;opacity:1 !important}
.et_mobile_menu{border-top:3px solid #C61919 !important;background:#fff !important}
.et_mobile_menu li a{color:#1A1A1A !important;font-weight:600;border-bottom:1px solid #E3E3E3 !important;opacity:1 !important}
.et_mobile_menu li a:hover,.et_mobile_menu li.current-menu-item>a{background:#FBEAEA !important;color:#9B1111 !important}

/* --- rodapé profissional (Manual: fundo grafite #1A1A1A, texto e links brancos, linha vermelha) ---
   Usa o arquivo logo-branco.svg, que fica na mesma pasta deste CSS (wp-content/pp-css/). */
#main-footer{background:#1A1A1A !important;border-top:4px solid #C61919}
#footer-widgets{display:none !important}
#footer-bottom{background:#1A1A1A !important;padding:28px 0 !important}
#footer-bottom .container{display:flex !important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px 32px}
#footer-bottom .container:before,#footer-bottom .container:after{display:none !important}
#footer-info{order:1;float:none !important;padding:0 !important;margin:0 !important;font-size:0 !important;color:#fff;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
#footer-info a{display:none !important}
#footer-info::before{content:"";display:block;width:210px;height:56px;background:url(logo-branco.svg) left center/contain no-repeat}
#footer-info::after{content:"© 2026 Política Piauí. Todos os direitos reservados.";font:400 15px/1.4 "Open Sans",system-ui,Arial,sans-serif;color:#fff;text-align:left}
#footer-bottom ul.et-social-icons{order:2;float:none !important;margin:0 !important;display:flex;gap:6px}
#footer-bottom ul.et-social-icons li{margin:0 !important}
#footer-bottom .et-social-icon a.icon{color:#fff !important;opacity:1 !important;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center}
#footer-bottom .et-social-icon a.icon:hover{color:#FFC400 !important}
@media (max-width:767px){
  #footer-bottom .container{flex-direction:column;align-items:flex-start}
  #footer-info{flex-direction:column;align-items:flex-start;gap:10px}
}
/* rodapé: o portal não tem conta no X, então o ícone (que apontava para "#") não aparece */
#footer-bottom .et-social-twitter{display:none !important}

/* =====================================================================
   Política Piauí - ACRÉSCIMO ao css-rapido-home.css (v2): destaque com prévia do texto
   e lista de 3 destaques ao lado (só computador, a partir de 900 px).
   Como usar: colar ESTE bloco logo abaixo do css-rapido-home.css, no mesmo campo
   (Divi > Opções do Tema > CSS Personalizado). Para voltar ao v2, apagar só este bloco.
   O celular não muda.
   ===================================================================== */
@media (min-width:900px){
  /* grade de 12 colunas: destaque = 8, lateral = 4, cartões = 4 cada (3 por linha) */
  body:is(.home,.blog,.archive) #left-area{grid-template-columns:repeat(12,minmax(0,1fr))}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post{grid-column:span 4}

  /* destaque principal: foto grande, manchete, data e PRÉVIA DO TEXTO */
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:first-of-type{
    grid-column:1 / span 8;grid-row:1 / span 3;display:block;
    padding-bottom:0 !important;border-bottom:0 !important;
    font-size:18px;line-height:1.55;color:#2B2B2B;font-family:"Open Sans",system-ui,Arial,sans-serif}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:first-of-type>a.entry-featured-image-url{margin:0 0 14px !important}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:first-of-type h2.entry-title{font-size:34px !important;line-height:1.18 !important;margin-bottom:8px !important}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:first-of-type .post-meta{margin-bottom:10px !important}

  /* 3 destaques ao lado: foto pequena à esquerda, título e data à direita */
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:nth-of-type(2),
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:nth-of-type(3),
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:nth-of-type(4){
    grid-column:9 / span 4;display:grid;grid-template-columns:132px minmax(0,1fr);column-gap:14px;align-content:start;align-items:start;
    padding:0 0 16px !important;border-bottom:1px solid #E3E3E3 !important}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:nth-of-type(2){grid-row:1}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:nth-of-type(3){grid-row:2}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:nth-of-type(4){grid-row:3}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:nth-of-type(-n+4):not(:first-of-type)>a.entry-featured-image-url{grid-column:1;grid-row:1 / span 3;margin:0 !important}
  /* prévia do texto nos destaques laterais (cai na 3ª linha, ao lado da foto) */
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:nth-of-type(-n+4):not(:first-of-type){
    font-size:14px;line-height:1.45;color:#595959;font-family:"Open Sans",system-ui,Arial,sans-serif;
    /* altura máxima e texto que esmaece no fim, para as 3 laterais caberem ao lado do destaque */
    max-height:228px;overflow:hidden;padding-bottom:0 !important;border-bottom:0 !important;
    -webkit-mask-image:linear-gradient(to bottom,#000 68%,transparent 100%);mask-image:linear-gradient(to bottom,#000 68%,transparent 100%)}
  /* destaque principal alinhado ao topo (e não centralizado) */
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:first-of-type{align-content:start}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:nth-of-type(-n+4):not(:first-of-type) h2.entry-title{grid-column:2;font-size:18px !important}
  body:is(.home,.blog,.archive) #left-area>article.et_pb_post:nth-of-type(-n+4):not(:first-of-type) .post-meta{grid-column:2}
}
