/*
Theme Name: Portal Notícias Salvador
Author: King Post
Description: Tema WordPress para portal de notícias.
Version: 1.0.0
Text Domain: portal-noticias-salvador
*/
:root{--primary:#172577;--secondary:#29b6e9;--header:#14258b;--menu:#17277f;--footer:#121e64;--title:#141414;--text:#555;--link:#173b9a;--cat:#2757be;--special:#172574;--container:1160px}*{box-sizing:border-box}html,body{margin:0;padding:0;overflow-x:hidden}body{font-family:Arial,Helvetica,sans-serif;color:var(--text);background:#fff}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.container{width:min(var(--container),calc(100% - 32px));margin:auto}.site-header{background:var(--header);color:#fff}.header-main{height:92px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}.header-tools,.socials{display:flex;gap:18px;align-items:center}.socials{justify-content:flex-end}.custom-logo{max-height:58px;width:auto}.nav-row{border-top:1px solid rgba(255,255,255,.15);background:var(--menu)}.nav-row ul,.footer-menu{list-style:none;padding:0;margin:0;display:flex;justify-content:center;gap:42px}.nav-row a{display:block;padding:16px 0;font-size:13px}.ticker{height:42px;border-bottom:1px solid #ddd;display:flex;align-items:center;white-space:nowrap;overflow:hidden;font-size:12px;background:#fff}.ticker-viewport{width:100%;overflow:hidden;display:flex}.ticker-track{display:flex;align-items:center;flex:0 0 max-content;min-width:max-content;animation:pns-ticker-left 34s linear infinite;will-change:transform}.ticker-item{display:inline-flex;align-items:center;padding-right:34px}.ticker strong{color:var(--link);margin-right:8px}.ticker a{color:#444}.ticker:hover .ticker-track{animation-play-state:paused}@keyframes pns-ticker-left{from{transform:translateX(0)}to{transform:translateX(-100%)}}@media(prefers-reduced-motion:reduce){.ticker-track{animation:none}}.banner{margin:34px auto;text-align:center}.banner img{width:100%;max-height:100px;object-fit:cover}.hero{display:grid;grid-template-columns:1.08fr 1fr;border:1px solid #ddd}.hero img{width:100%;height:330px;object-fit:cover}.hero-copy{padding:58px 38px;display:flex;flex-direction:column;justify-content:center}.cat{font-size:12px;font-weight:700;color:var(--cat);margin-bottom:8px}.hero h1,.hero h2{font-size:30px;line-height:1.08;color:#2854c4;margin:0 0 18px}.excerpt{font-size:14px;line-height:1.5}.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:26px 0}.card{border:1px solid #ddd;background:#fff}.card img{width:100%;height:160px;object-fit:cover}.card-body{padding:14px}.card h3{font-size:16px;line-height:1.18;color:var(--title);margin:0}.section{padding:34px 0}.section-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ddd;margin-bottom:24px}.section-head h2{border-left:4px solid var(--secondary);padding-left:10px;color:#152263;font-size:24px}.more{font-size:12px;font-weight:bold;color:#18235f}.news-layout{display:grid;grid-template-columns:3fr 1fr;gap:24px}.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.mini-list{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}.mini{display:grid;grid-template-columns:82px 1fr;gap:10px;align-items:start}.mini img{width:82px;height:65px;object-fit:cover}.mini h3{font-size:13px;margin:3px 0;color:var(--title)}.special{background:var(--special);color:#fff;padding:38px 0}.special .section-head{border-color:rgba(255,255,255,.25)}.special .section-head h2,.special .more,.special .card h3,.special .cat{color:#fff}.special .card{background:transparent;border-color:rgba(255,255,255,.25)}.politics-top{display:grid;grid-template-columns:1fr 1fr;gap:20px}.politics-top .card img{height:310px}.sports{display:grid;grid-template-columns:1.05fr 1fr;gap:22px}.sports-main img{width:100%;height:340px;object-fit:cover}.sports-side{display:grid;grid-template-columns:1fr 1fr;gap:18px}.video-layout{display:grid;grid-template-columns:2.2fr 1fr;gap:20px}.video-main{position:relative}.video-main img{width:100%;height:430px;object-fit:cover}.play{position:absolute;left:30px;bottom:35px;background:#fff;color:#172574;border-radius:50%;width:58px;height:58px;display:grid;place-items:center;font-size:26px}.video-list .mini{margin-bottom:14px}.video-list h3{color:#fff}.horizontal{display:flex;gap:22px;overflow:auto;padding-bottom:8px}.horizontal .mini{min-width:245px}.police-hero{position:relative}.police-hero img{width:100%;height:390px;object-fit:cover}.overlay{position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.82));display:flex;align-items:flex-end;padding:30px;color:#fff}.overlay h2{font-size:28px;margin:5px 0}.culture-top{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.culture-bottom{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:28px}.bahia-list{max-width:860px}.bahia-item{display:grid;grid-template-columns:260px 1fr;border:1px solid #ddd;margin-bottom:20px}.bahia-item img{width:260px;height:145px;object-fit:cover}.bahia-item .card-body{display:flex;flex-direction:column;justify-content:center}.site-footer{background:var(--footer);color:#fff;padding:50px 0 25px;margin-top:60px}.footer-grid{display:grid;grid-template-columns:1fr 2fr 1fr;gap:30px;align-items:center}.footer-menu{flex-wrap:wrap;gap:16px 28px}.copyright{text-align:center;border-top:1px solid rgba(255,255,255,.15);margin-top:35px;padding-top:20px;font-size:12px}.content-sidebar{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:42px}.entry-title{font-size:42px;line-height:1.08;color:var(--title)}.entry-content{font-size:18px;line-height:1.75}.entry-content img,.entry-content iframe{max-width:100%}.side-widget{margin-bottom:30px}.side-widget h3{border-left:4px solid var(--secondary);padding-left:8px}.search-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.8);z-index:99;align-items:center;justify-content:center}.search-modal.open{display:flex}.search-modal form{width:min(650px,90%);display:flex}.search-modal input{flex:1;padding:18px;border:0}.search-modal button{padding:0 25px}.menu-trigger{display:inline-flex;align-items:center;gap:7px;background:none;border:0;padding:0;color:#fff;font:inherit;font-size:12px;cursor:pointer}.menu-trigger-icon{font-size:18px;line-height:1}.menu-trigger-text{font-weight:600}.pagination{margin:30px 0}.pagination .page-numbers{padding:8px 12px;border:1px solid #ddd}.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}

/* Ícones de redes sociais — acabamento compacto e discreto conforme o PDF de referência */
.socials{gap:13px}
.social-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;color:#fff;opacity:.92;transition:opacity .18s ease,transform .18s ease}
.social-icon svg{width:15px;height:15px;display:block;fill:currentColor}
.social-icon:hover,.social-icon:focus-visible{opacity:1;transform:translateY(-1px)}
.site-footer .social-icon{width:24px;height:24px}
.site-footer .social-icon svg{width:17px;height:17px}

/* Ícone de pesquisa — SVG e proporção do portal de referência */
.search-trigger{display:inline-flex;align-items:center;justify-content:center;background:none;border:0;color:#fff;padding:0;cursor:pointer;line-height:1}
.search-trigger-icon{display:block;width:18px;height:18px;flex:0 0 18px}

/* Ícones sociais com o mesmo tamanho visual do ícone de pesquisa de referência */
.social-icon svg,
.site-footer .social-icon svg{width:18px;height:18px}

/* Área de páginas selecionáveis no rodapé */
.footer-grid{grid-template-columns:1fr 1.5fr 1fr 1fr;align-items:start}.footer-pages h3{margin:0 0 14px;font-size:15px;color:#fff}.footer-pages ul{list-style:none;margin:0;padding:0}.footer-pages li{margin:0 0 9px}.footer-pages a{font-size:13px;color:#fff;opacity:.9}.footer-pages a:hover{opacity:1;text-decoration:underline}

/* Single page — composição fiel à referência Portal Salvador FM */
body.single .pns-single-page{max-width:980px;padding-top:28px}.pns-breadcrumb{display:flex;gap:12px;align-items:center;font-size:12px;color:#4b6fc2;margin:0 0 28px}.pns-single-header{max-width:920px;border-bottom:1px solid #e5e5e5;padding-bottom:20px}.pns-single-header .cat{font-size:13px}.pns-single-header .entry-title{font-size:38px;line-height:1.08;max-width:900px;margin:6px 0 18px;font-weight:800}.pns-single-deck{font-size:15px;line-height:1.55;color:#777;margin:0;max-width:900px}.pns-single-meta{min-height:64px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e9e9e9;font-size:11px;color:#777}.pns-author-mini{display:flex;align-items:center;gap:8px;color:#444}.pns-author-mini img{width:32px;height:32px;border-radius:50%}.pns-meta-right{display:flex;align-items:center;gap:20px}.pns-share{display:flex;align-items:center;gap:8px;color:#214aa9}.pns-share strong{border:1px solid #214aa9;border-radius:5px;padding:5px 9px}.pns-share a{font-weight:800;font-size:18px}.pns-single-grid{display:grid;grid-template-columns:minmax(0,650px) 245px;gap:58px;align-items:start;padding-top:28px}.pns-single-article .entry-content{font-size:15px;line-height:1.75;color:#666}.pns-single-article .entry-content p{margin:0 0 22px}.pns-single-article .entry-content img{display:block;width:auto;max-width:100%;height:auto;margin:0 0 6px}.pns-single-article .entry-content figure{margin:0 0 26px}.pns-single-article .entry-content figcaption{font-size:10px;color:#888}.pns-sidebar{min-width:0}.pns-sidebar .side-widget h3{font-size:20px;color:#1a2b78;margin:0 0 10px;border-left:4px solid var(--secondary);padding-left:9px}.pns-most-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:0 0 16px}.pns-most-tabs span{border:1px solid #7892d8;color:#214aa9;text-align:center;padding:6px 3px;border-radius:4px;font-size:11px}.pns-most-tabs span:first-child{background:#214aa9;color:#fff}.pns-most-item{display:grid;grid-template-columns:30px 78px 1fr;gap:8px;align-items:center;margin:0 0 12px}.pns-most-item>b{font-size:35px;color:#fff;text-shadow:0 1px 4px #777;position:relative;z-index:2;margin-right:-38px}.pns-most-item img{width:78px;height:65px;object-fit:cover}.pns-most-item span{min-width:0}.pns-most-item small{display:block;color:#3159b7;font-size:10px;font-weight:700;margin-bottom:2px}.pns-most-item strong{display:block;color:#222;font-size:12px;line-height:1.2}.pns-author-box{border:1px solid #ddd;border-radius:5px;padding:18px;display:grid;grid-template-columns:100px 1fr;gap:18px;margin:34px 0}.pns-author-box img{width:100px;height:100px;object-fit:cover}.pns-author-box h3{font-size:18px;color:#222;margin:0 0 2px}.pns-author-box strong{font-size:12px;color:#555}.pns-author-box p{font-size:13px;line-height:1.5;margin:12px 0 0}.pns-assuntos{margin:20px 0 36px}.pns-assuntos>strong{display:block;color:#222;font-size:13px;margin-bottom:8px}.pns-assuntos a{display:inline-block;border:1px solid #7892d8;border-radius:4px;padding:4px 7px;margin:0 5px 5px 0;color:#214aa9;font-size:10px;font-weight:700}.pns-more-news{max-width:820px;margin:0 0 30px}.pns-more-news .section-head{margin-bottom:18px}.pns-more-news .section-head h2{font-size:24px}.pns-more-list{display:grid;gap:18px}.pns-more-item{display:grid;grid-template-columns:255px 1fr;border:1px solid #ddd;border-radius:6px;overflow:hidden;min-height:135px}.pns-more-item>img{width:255px;height:135px;object-fit:cover}.pns-more-item>div{padding:18px;display:flex;flex-direction:column;justify-content:center}.pns-more-item .cat{font-size:10px;margin-bottom:4px}.pns-more-item h3{font-size:17px;line-height:1.15;color:#222;margin:0 0 7px}.pns-more-item p{font-size:11px;line-height:1.4;color:#777;margin:0}
@media(max-width:992px){body.single .pns-single-page{max-width:760px}.pns-single-grid{grid-template-columns:minmax(0,1fr) 230px;gap:28px}.pns-single-header .entry-title{font-size:34px}.pns-more-news{max-width:100%}}
@media(max-width:768px){body.single .pns-single-page{padding-top:20px}.pns-single-grid{grid-template-columns:1fr}.pns-single-header .entry-title{font-size:30px}.pns-single-meta{align-items:flex-start;gap:14px;padding:14px 0;flex-direction:column}.pns-meta-right{flex-wrap:wrap;gap:10px}.pns-sidebar{margin-top:10px}.pns-more-item{grid-template-columns:145px 1fr}.pns-more-item>img{width:145px;height:125px}.pns-more-item>div{padding:12px}.pns-more-item p{display:none}}
@media(max-width:480px){.pns-single-header .entry-title{font-size:27px}.pns-single-deck{font-size:14px}.pns-single-article .entry-content{font-size:16px}.pns-author-box{grid-template-columns:72px 1fr;padding:14px;gap:12px}.pns-author-box img{width:72px;height:72px}.pns-more-item{grid-template-columns:115px 1fr}.pns-more-item>img{width:115px;height:110px}.pns-more-item h3{font-size:14px}}

/* Single page stability fix */
body.single .pns-single-page,body.single .pns-single-page *{min-width:0}.pns-single-article{width:100%;max-width:100%;overflow-wrap:anywhere}.pns-single-article .entry-content{width:100%;max-width:100%;overflow:hidden}.pns-single-article .entry-content img,.pns-single-article .entry-content figure,.pns-single-article .entry-content video,.pns-single-article .entry-content iframe{max-width:100%;height:auto}.pns-single-article .entry-content figure{width:auto!important}.pns-single-article .entry-content iframe{width:100%;aspect-ratio:16/9}.pns-single-article .entry-content pre,.pns-single-article .entry-content table{max-width:100%;overflow:auto}.pns-single-grid>.pns-sidebar{width:100%}@media(max-width:768px){body.single .pns-single-page{width:min(100% - 24px,var(--container))}.pns-single-grid{display:block}.pns-single-grid>.pns-sidebar{margin-top:30px}.pns-single-meta,.pns-meta-right{max-width:100%}.pns-share{flex-wrap:wrap}}

/* Ajuste exclusivo da largura da Single Page */
@media (min-width: 993px){
  body.single .pns-single-page{max-width:1160px;width:min(1160px,calc(100% - 32px));}
  body.single .pns-single-header{max-width:1080px;}
  body.single .pns-single-header .entry-title,
  body.single .pns-single-deck{max-width:1040px;}
  body.single .pns-single-grid{grid-template-columns:minmax(0,760px) 300px;gap:56px;}
  body.single .pns-more-news{max-width:900px;}
}

/* Single: remove a borda externa caso o WordPress aplique o estado error-page. */
body.single#error-page,
body#error-page.single {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Single Page v2 — layout calibrado pela referência Portal Salvador; escopo exclusivo .single-post */
@media (min-width:993px){
  body.single-post .pns-single-page{width:min(1040px,calc(100% - 40px));max-width:1040px;padding-top:42px}
  body.single-post .pns-breadcrumb{margin-bottom:24px}
  body.single-post .pns-single-header{max-width:940px;padding-bottom:24px}
  body.single-post .pns-single-header .entry-title{max-width:900px;font-size:39px;line-height:1.08;letter-spacing:-.7px;margin:7px 0 17px}
  body.single-post .pns-single-deck{max-width:900px;font-size:15px;line-height:1.55}
  body.single-post .pns-single-meta{max-width:940px;min-height:70px}
  body.single-post .pns-single-grid{grid-template-columns:minmax(0,650px) minmax(0,260px);gap:48px;padding-top:28px}
  body.single-post .pns-single-article{max-width:650px}
  body.single-post .pns-sidebar{width:260px}
  body.single-post .pns-more-news{max-width:830px;margin-top:40px}
}
body.single-post .pns-single-article .entry-content{font-size:15px;line-height:1.72;color:#606060;overflow:visible;overflow-wrap:anywhere;word-break:normal}
body.single-post .pns-single-article .entry-content p{margin:0 0 24px}
body.single-post .pns-single-article .entry-content h2{font-size:24px;line-height:1.22;color:var(--title);margin:34px 0 16px}
body.single-post .pns-single-article .entry-content h3{font-size:20px;line-height:1.25;color:var(--title);margin:30px 0 14px}
body.single-post .pns-single-article .entry-content img{display:block;max-width:100%;height:auto;margin:0 auto 8px}
body.single-post .pns-single-article .entry-content figure{max-width:100%;margin:0 0 28px}
body.single-post .pns-single-article .entry-content figure img{width:100%;height:auto}
body.single-post .pns-single-article .entry-content figcaption{font-size:10px;line-height:1.4;color:#858585;margin-top:6px}
body.single-post .pns-single-article .entry-content a{overflow-wrap:anywhere;color:var(--link)}
body.single-post .pns-author-box{grid-template-columns:82px 1fr;gap:16px;padding:16px;margin:38px 0 24px;max-width:520px}
body.single-post .pns-author-box img{width:82px;height:82px}
body.single-post .pns-author-box h3{font-size:17px;margin:3px 0 4px}
body.single-post .pns-author-box p{margin:8px 0 0;font-size:12px;line-height:1.5}
body.single-post .pns-assuntos{margin:20px 0 32px}
body.single-post .pns-more-news .section-head{margin-bottom:18px}
body.single-post .pns-more-news .section-head h2{font-size:24px;margin:14px 0}
body.single-post .pns-more-list{gap:14px}
body.single-post .pns-more-item{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:128px;border:1px solid #e0e0e0;border-radius:5px;overflow:hidden;background:#fff}
body.single-post .pns-more-thumb{display:block;height:100%;min-height:128px}
body.single-post .pns-more-thumb img{display:block;width:100%;height:100%;min-height:128px;object-fit:cover}
body.single-post .pns-more-copy{padding:15px 18px;display:flex;flex-direction:column;justify-content:center}
body.single-post .pns-more-copy .cat{font-size:10px;margin-bottom:4px}
body.single-post .pns-more-copy h3{font-size:17px;line-height:1.16;color:#222;margin:0 0 7px}
body.single-post .pns-more-copy p{font-size:11px;line-height:1.4;color:#777;margin:0}
@media(max-width:992px){
  body.single-post .pns-single-page{width:min(760px,calc(100% - 32px));max-width:760px}
  body.single-post .pns-single-grid{grid-template-columns:minmax(0,1fr) 225px;gap:28px}
  body.single-post .pns-single-header .entry-title{font-size:34px}
}
@media(max-width:768px){
  body.single-post .pns-single-page{width:calc(100% - 28px);padding-top:22px}
  body.single-post .pns-single-grid{display:block;padding-top:20px}
  body.single-post .pns-single-header .entry-title{font-size:30px;line-height:1.1;letter-spacing:-.3px}
  body.single-post .pns-single-deck{font-size:14px}
  body.single-post .pns-single-meta{padding:14px 0;min-height:0}
  body.single-post .pns-sidebar{width:100%;margin-top:34px}
  body.single-post .pns-more-news{margin-top:34px}
  body.single-post .pns-more-item{grid-template-columns:140px minmax(0,1fr)}
  body.single-post .pns-more-thumb{min-height:115px}
  body.single-post .pns-more-thumb img{min-height:115px}
  body.single-post .pns-more-copy{padding:11px 12px}
  body.single-post .pns-more-copy p{display:none}
}
@media(max-width:480px){
  body.single-post .pns-single-header .entry-title{font-size:27px}
  body.single-post .pns-single-article .entry-content{font-size:16px;line-height:1.7}
  body.single-post .pns-more-item{grid-template-columns:112px minmax(0,1fr)}
  body.single-post .pns-more-thumb,body.single-post .pns-more-thumb img{min-height:105px}
  body.single-post .pns-more-copy h3{font-size:14px}
}

/* Single: abas funcionais de Mais lidas */
.single-post .pns-most-tabs button{appearance:none;background:#fff;border:1px solid #7892d8;color:#214aa9;text-align:center;padding:6px 3px;border-radius:4px;font:inherit;font-size:11px;cursor:pointer;width:100%}
.single-post .pns-most-tabs button.is-active{background:#214aa9;color:#fff}
.single-post .pns-most-tabs button:focus-visible{outline:2px solid #214aa9;outline-offset:2px}
.single-post .pns-most-panel[hidden]{display:none}

/* Single Page — sidebar mais larga (alteração exclusiva) */
@media (min-width: 993px){
  body.single-post .pns-single-page{width:min(1100px,calc(100% - 40px));max-width:1100px;}
  body.single-post .pns-single-grid{grid-template-columns:minmax(0,650px) minmax(0,320px);gap:44px;}
  body.single-post .pns-sidebar{width:320px;}
}
@media (min-width:769px) and (max-width:992px){
  body.single-post .pns-single-grid{grid-template-columns:minmax(0,1fr) 250px;gap:28px;}
  body.single-post .pns-sidebar{width:250px;}
}

/* Single: alinha a barra de autor/compartilhamento ao limite direito da sidebar */
@media (min-width: 993px){
  body.single-post .pns-single-meta{
    width: 1014px;
    max-width: 100%;
  }
}

/* Formulário de busca — acabamento Aconteceu Bahia */
.search-modal{padding:24px;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.search-modal .pns-search-form{position:relative;width:min(720px,100%);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:0;background:#fff;border:1px solid rgba(255,255,255,.35);border-radius:8px;padding:7px;box-shadow:0 18px 55px rgba(0,0,0,.28)}
.search-modal .pns-search-icon{width:52px;height:52px;display:grid;place-items:center;color:var(--header);flex:none}
.search-modal .pns-search-icon svg{display:block;width:20px;height:20px}
.search-modal .pns-search-form input[type=search]{width:100%;min-width:0;height:52px;padding:0 14px 0 2px;border:0;outline:0;background:transparent;color:#1a1a1a;font:inherit;font-size:17px;line-height:1.2;box-shadow:none;-webkit-appearance:none}
.search-modal .pns-search-form input[type=search]::placeholder{color:#8a8f9c;opacity:1}
.search-modal .pns-search-form input[type=search]::-webkit-search-cancel-button{cursor:pointer}
.search-modal .pns-search-form:focus-within{box-shadow:0 18px 55px rgba(0,0,0,.28),0 0 0 3px rgba(41,182,233,.32)}
.search-modal .pns-search-form button{height:52px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 23px;border:0;border-radius:6px;background:var(--header);color:#fff;font:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:transform .18s ease,opacity .18s ease}
.search-modal .pns-search-form button:hover{opacity:.92}
.search-modal .pns-search-form button:active{transform:translateY(1px)}
.search-modal .pns-search-arrow{font-size:19px;line-height:1}
@media(max-width:480px){.search-modal{padding:16px}.search-modal .pns-search-form{grid-template-columns:auto minmax(0,1fr);padding:6px}.search-modal .pns-search-icon{width:42px;height:48px}.search-modal .pns-search-form input[type=search]{height:48px;font-size:16px;padding-right:8px}.search-modal .pns-search-form button{grid-column:1/-1;width:100%;height:46px;margin-top:5px}.search-modal .pns-search-arrow{display:none}}

/* Página Fale Conosco — layout exclusivo para Contact Form 7 */
body.page .content-sidebar article:has(.wp-block-contact-form-7-contact-form-selector){
  width:100%;max-width:820px;margin:0 auto;padding:44px 48px 50px;background:#fff;border:1px solid #e7eaf0;
}
body.page .content-sidebar article:has(.wp-block-contact-form-7-contact-form-selector) > .entry-title{
  margin:0 0 30px;padding:0 0 16px;border-bottom:3px solid var(--header);color:#15171b;font-size:34px;line-height:1.12;font-weight:800;letter-spacing:-.5px;
}
body.page .wp-block-contact-form-7-contact-form-selector{margin:0}
body.page .wp-block-contact-form-7-contact-form-selector .wpcf7-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 22px;margin:0}
body.page .wp-block-contact-form-7-contact-form-selector .wpcf7-form > p{margin:0;min-width:0}
body.page .wp-block-contact-form-7-contact-form-selector .wpcf7-form > p:nth-of-type(4),
body.page .wp-block-contact-form-7-contact-form-selector .wpcf7-form > p:nth-of-type(5),
body.page .wp-block-contact-form-7-contact-form-selector .wpcf7-form > p:nth-of-type(6){grid-column:1/-1}
body.page .wp-block-contact-form-7-contact-form-selector label{display:block;color:#222;font-size:14px;line-height:1.35;font-weight:700}
body.page .wp-block-contact-form-7-contact-form-selector .wpcf7-form-control-wrap{display:block;margin-top:8px}
body.page .wp-block-contact-form-7-contact-form-selector input[type=text],
body.page .wp-block-contact-form-7-contact-form-selector input[type=email],
body.page .wp-block-contact-form-7-contact-form-selector input[type=tel],
body.page .wp-block-contact-form-7-contact-form-selector textarea{
  display:block;width:100%;max-width:100%;box-sizing:border-box;border:1px solid #d9dee7;background:#f8f9fb;color:#1d222b;border-radius:5px;padding:13px 14px;font:inherit;font-size:15px;outline:0;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
body.page .wp-block-contact-form-7-contact-form-selector input[type=text],
body.page .wp-block-contact-form-7-contact-form-selector input[type=email],
body.page .wp-block-contact-form-7-contact-form-selector input[type=tel]{height:48px}
body.page .wp-block-contact-form-7-contact-form-selector textarea{min-height:180px;resize:vertical;line-height:1.55}
body.page .wp-block-contact-form-7-contact-form-selector input:focus,
body.page .wp-block-contact-form-7-contact-form-selector textarea:focus{border-color:var(--header);background:#fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--header) 14%,transparent)}
body.page .wp-block-contact-form-7-contact-form-selector input[type=submit]{min-width:150px;height:48px;border:0;border-radius:4px;padding:0 28px;background:var(--header);color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer;transition:opacity .18s ease,transform .18s ease}
body.page .wp-block-contact-form-7-contact-form-selector input[type=submit]:hover{opacity:.9}
body.page .wp-block-contact-form-7-contact-form-selector input[type=submit]:active{transform:translateY(1px)}
body.page .wp-block-contact-form-7-contact-form-selector .wpcf7-spinner{vertical-align:middle;margin-left:12px}
body.page .wp-block-contact-form-7-contact-form-selector .wpcf7-not-valid-tip{margin-top:6px;font-size:12px}
body.page .wp-block-contact-form-7-contact-form-selector .wpcf7-response-output{grid-column:1/-1;margin:2px 0 0!important;padding:12px 14px!important;border-width:1px!important;border-radius:4px;font-size:13px;line-height:1.45}
@media(max-width:768px){
  body.page .content-sidebar article:has(.wp-block-contact-form-7-contact-form-selector){padding:30px 22px 34px;border-left:0;border-right:0}
  body.page .content-sidebar article:has(.wp-block-contact-form-7-contact-form-selector) > .entry-title{font-size:29px;margin-bottom:24px}
  body.page .wp-block-contact-form-7-contact-form-selector .wpcf7-form{grid-template-columns:1fr;gap:18px}
  body.page .wp-block-contact-form-7-contact-form-selector .wpcf7-form > p{grid-column:1!important}
  body.page .wp-block-contact-form-7-contact-form-selector input[type=submit]{width:100%}
}

/* Single Page — imagem destacada do post (alteração exclusiva) */
body.single-post .pns-single-featured-image{
  width:100%;
  margin:0 0 28px;
}
body.single-post .pns-single-featured-image img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}

/* Mobile — ícone de fechar no botão do menu (alteração exclusiva) */
@media (max-width:768px){
  .menu-trigger[aria-expanded="true"] .menu-trigger-icon{
    font-size:28px;
    font-weight:300;
    line-height:.7;
  }
}

/* Home — notícias adicionais carregadas pelos botões existentes */
.pns-load-more{appearance:none;background:none;border:0;padding:0;font:inherit;cursor:pointer}
.pns-load-more:disabled{opacity:.6;cursor:wait}
.pns-load-more-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:28px}
@media(max-width:992px){.pns-load-more-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.pns-load-more-results{grid-template-columns:1fr}}


/* Footer — área Sobre */
.site-footer .footer-about{margin-top:38px;padding-top:30px;border-top:1px solid rgba(255,255,255,.15);max-width:1160px}
.site-footer .footer-about h3{margin:0 0 14px;color:#fff;font-size:20px;line-height:1.2}
.site-footer .footer-about p{max-width:900px;margin:0 0 14px;color:rgba(255,255,255,.78);font-size:15px;line-height:1.6}
.site-footer .footer-about-email{margin-top:20px!important}
.site-footer .footer-about-email strong{color:#fff}
.site-footer .footer-about-email a{color:inherit}
.site-footer .footer-about-email a:hover{text-decoration:underline;color:#fff}
@media(max-width:768px){.site-footer .footer-about{margin-top:28px;padding-top:24px}.site-footer .footer-about h3{font-size:18px}.site-footer .footer-about p{font-size:14px}}

/* Footer — Sobre posicionado diretamente abaixo do logo */
.site-footer .footer-brand .footer-about{margin-top:26px;padding-top:0;border-top:0;max-width:none}
.site-footer .footer-brand .footer-about h3{margin:0 0 12px}
@media(max-width:768px){.site-footer .footer-brand .footer-about{margin-top:22px;padding-top:0}}

/* Assinatura editorial — layout em cartão */
.entry-content .pns-signature-card{position:relative;width:100%;margin:24px 0;padding:17px 22px 17px 23px;background:#f6f7f9;border-radius:0 12px 12px 0;border-left:3px solid var(--secondary);color:#64707b;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.35;overflow:hidden}
.entry-content .pns-signature-label{margin:0 0 5px;color:#8792a1;font-size:11px;line-height:1.2;font-weight:800;text-transform:uppercase}
.entry-content .pns-signature-name{margin:0 0 8px;color:var(--primary);font-size:14px;line-height:1.25;font-weight:700}
.entry-content .pns-signature-line{display:flex;align-items:center;gap:8px;min-height:24px;margin:0;color:#707b86}
.entry-content .pns-signature-line a{color:#707b86;text-decoration:none;overflow-wrap:anywhere}
.entry-content .pns-signature-line .pns-signature-email{color:var(--link)}
.entry-content .pns-signature-icon{display:inline-flex;width:16px;height:16px;flex:0 0 16px;color:#6f7a84}
.entry-content .pns-signature-icon svg{display:block;width:16px;height:16px;fill:currentColor}
@media(max-width:600px){.entry-content .pns-signature-card{padding:15px 17px 15px 18px;border-radius:0 10px 10px 0;font-size:13px}}

/* Single Page — assinatura fiel à referência (escopo exclusivo) */
body.single-post .pns-single-article .entry-content .pns-signature-card{
  position:relative;
  display:block;
  width:100%;
  max-width:100%;
  margin:24px 0;
  padding:17px 22px 16px 22px;
  background:#f7f8fa;
  border:0;
  border-left:2px solid var(--secondary);
  border-radius:12px;
  box-shadow:none;
  color:#6f7a84;
  font-family:Arial,Helvetica,sans-serif;
  font-size:14px;
  line-height:1.35;
  overflow:hidden;
}
body.single-post .pns-single-article .entry-content .pns-signature-label{
  margin:0 0 5px;
  color:#8994a2;
  font-size:10px;
  line-height:1.2;
  font-weight:700;
  text-transform:uppercase;
}
body.single-post .pns-single-article .entry-content .pns-signature-name{
  margin:0 0 7px;
  color:var(--primary);
  font-size:14px;
  line-height:1.25;
  font-weight:700;
}
body.single-post .pns-single-article .entry-content .pns-signature-line{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:25px;
  margin:0;
  color:#707b86;
  font-size:14px;
  line-height:1.35;
}
body.single-post .pns-single-article .entry-content .pns-signature-line a{
  color:#707b86;
  text-decoration:none;
  overflow-wrap:anywhere;
}
body.single-post .pns-single-article .entry-content .pns-signature-line .pns-signature-email{color:var(--link);}
body.single-post .pns-single-article .entry-content .pns-signature-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  flex:0 0 16px;
  color:#6f7a84;
}
body.single-post .pns-single-article .entry-content .pns-signature-icon svg{display:block;width:15px;height:15px;fill:currentColor;}
@media(max-width:600px){
  body.single-post .pns-single-article .entry-content .pns-signature-card{padding:15px 17px 14px 18px;border-radius:11px;font-size:13px;}
  body.single-post .pns-single-article .entry-content .pns-signature-line{font-size:13px;}
}

/* Single Page — fallback visual da assinatura em PRE (garante o layout mesmo com cache do navegador) */
body.single-post .pns-single-article .entry-content pre{
  position:relative;
  width:100%;
  max-width:100%;
  margin:24px 0;
  padding:38px 22px 18px 24px;
  background:#f6f7f9;
  border:0;
  border-left:3px solid var(--secondary);
  border-radius:0 12px 12px 0;
  box-shadow:none;
  color:#64707b;
  font-family:Arial,Helvetica,sans-serif;
  font-size:14px;
  font-weight:400;
  line-height:1.8;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  overflow:visible;
}
body.single-post .pns-single-article .entry-content pre::before{
  content:'ASSINATURA';
  position:absolute;
  top:15px;
  left:24px;
  color:#8792a1;
  font-size:10px;
  line-height:1;
  font-weight:800;
  letter-spacing:.02em;
}
@media(max-width:600px){
  body.single-post .pns-single-article .entry-content pre{padding:36px 18px 16px 20px;border-radius:0 10px 10px 0;font-size:13px;line-height:1.75;}
  body.single-post .pns-single-article .entry-content pre::before{left:20px;top:14px;}
}

/* Single Page — assinatura nas cores do tema (alteração exclusiva) */
body.single-post .pns-single-article .entry-content .pns-signature-card{
  border-left-color:var(--secondary);
}
body.single-post .pns-single-article .entry-content .pns-signature-name{
  color:var(--primary);
}
body.single-post .pns-single-article .entry-content .pns-signature-line .pns-signature-email{
  color:var(--link);
}
body.single-post .pns-single-article .entry-content .pns-signature-icon{
  color:var(--primary);
}
body.single-post .pns-single-article .entry-content pre{
  border-left-color:var(--secondary);
}

/* Logos — tamanhos independentes controlados pelo Personalizar */
.site-header .custom-logo{width:var(--header-logo-width,180px);max-width:100%;height:auto;max-height:none;}
.site-footer .custom-logo{width:var(--footer-logo-width,180px);max-width:100%;height:auto;max-height:none;}
