/**
 * Suíte Porecatu 0.9.4 — identidade visual da página inicial.
 * Escopo deliberado: somente body.porecatu-home-identity, sem CSS sobre
 * páginas internas, arquivos, CPTs ou Elementor como um todo.
 * Não altera o posicionamento full-bleed dos banners/serviços.
 */
body.porecatu-home-identity {
  --phi-primary:#4625A9;
  --phi-red:#F62A42;
  --phi-green:#16874F;
  --phi-ink:#172641;
  --phi-background:#F6F7FB;
  --phi-radius:16px;
  --phi-width:1320px;
  --phi-gutter:16px;
  --phi-spacing:72px;
  --phi-card-shadow:0 9px 26px rgba(28,24,71,.07);
}
body.porecatu-home-identity .porecatu-home-manager > .porecatu-home-section + .porecatu-home-section {
  margin-block-start:var(--phi-spacing);
}
body.porecatu-home-identity :is(.prn-news,.porecatu-transparencia) {
  box-sizing:border-box;
  width:100%;
  max-width:min(100%,var(--phi-width));
  min-width:0;
  margin-inline:auto;
}
/* Os cartões e títulos compartilham um padrão; sem sobrescrever ícones dos serviços. */
body.porecatu-home-identity .pgs-service-card,
body.porecatu-home-identity .prn-news-card,
body.porecatu-home-identity .ptc-card {
  border-radius:var(--phi-radius);
  box-shadow:var(--phi-card-shadow);
}
body.porecatu-home-identity .pgs-service-card {
  background:#fff;
  border:1px solid #E8E5F4;
  box-shadow:var(--phi-card-shadow);
  min-width:0;
  color:var(--phi-ink);
}
body.porecatu-home-identity .pgs-service-title {
  color:var(--phi-ink);
  font-weight:700;
  line-height:1.36;
  overflow-wrap:break-word;
  text-wrap:pretty;
}
body.porecatu-home-identity .pgs-section--force-text .pgs-service-title {
  color:var(--phi-ink)!important;
}
body.porecatu-home-identity .pgs-service-card:is(:hover,:focus-visible) {
  border-color:var(--phi-primary);
  color:var(--phi-primary);
  box-shadow:0 14px 30px rgba(42,24,104,.15);
}
body.porecatu-home-identity .pgs-section .pgs-service-card:is(:hover,:focus-visible) .pgs-service-title {
  color:var(--phi-primary)!important;
}
body.porecatu-home-identity .pgs-section :is(.pgs-service-search,.pgs-show-more):focus-visible,
body.porecatu-home-identity :is(.prn-news,.porecatu-transparencia) :is(a,button,input,select):focus-visible {
  outline:3px solid var(--phi-primary)!important;
  outline-offset:3px;
}
/* Modo recomendado: fundo claro preserva as cores individuais de cada ícone. */
body.porecatu-home-identity.phi-services-light .pgs-section {
  background:linear-gradient(180deg,#F1EEFC 0%,var(--phi-background) 100%)!important;
  color:var(--phi-ink);
}
body.porecatu-home-identity.phi-services-light .pgs-heading h2,
body.porecatu-home-identity.phi-services-light .pgs-heading p,
body.porecatu-home-identity.phi-services-light .pgs-service-count,
body.porecatu-home-identity.phi-services-light .pgs-no-results {color:var(--phi-ink)}
body.porecatu-home-identity.phi-services-light .pgs-section .pgs-show-more {
  background:var(--phi-primary);color:#fff;border-color:var(--phi-primary);
}
body.porecatu-home-identity.phi-services-light .pgs-section .pgs-show-more:hover {filter:brightness(.88)}
body.porecatu-home-identity.phi-services-purple .pgs-section {
  background:var(--phi-primary)!important;
}
body.porecatu-home-identity.phi-services-purple .pgs-heading h2,
body.porecatu-home-identity.phi-services-purple .pgs-heading p {color:#fff}
/* Notícias — identidade editorial sem tocar na consulta ou nas imagens originais. */
body.porecatu-home-identity.phi-news-editorial .prn-news {
  --prn-accent:var(--phi-primary);
}
body.porecatu-home-identity.phi-news-editorial .prn-news-heading {
  border-bottom:1px solid #DFDCEB;
  padding-bottom:19px;
  margin-bottom:23px;
}
body.porecatu-home-identity.phi-news-editorial .prn-news-heading h2 {
  color:var(--phi-ink);
  letter-spacing:-.035em;
}
body.porecatu-home-identity.phi-news-editorial .prn-heading-mark {
  background:linear-gradient(90deg,var(--phi-primary) 0 68%,var(--phi-red) 68% 100%);
}
body.porecatu-home-identity.phi-news-editorial .prn-news-grid {
  gap:clamp(14px,1.6vw,22px);
}
body.porecatu-home-identity.phi-news-editorial .prn-news-card {
  border:1px solid #E9E8F1;
  background:#fff;
  overflow:hidden;
  min-width:0;
}
body.porecatu-home-identity.phi-news-editorial .prn-news-card h3 {
  color:var(--phi-ink);
  font-size:clamp(15px,1.2vw,18px);
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
}
body.porecatu-home-identity.phi-news-editorial .prn-news-excerpt {
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-height:1.55;
}
body.porecatu-home-identity.phi-news-editorial .prn-news-category {
  background:#F0EDFB;
  color:var(--phi-primary);
}
body.porecatu-home-identity.phi-news-editorial .prn-news-card:hover {
  border-color:#C7BCEB;
  box-shadow:0 17px 35px rgba(33,23,94,.12);
}
/* Portal da Transparência: componente independente do shortcode composto. */
body.porecatu-home-identity.phi-transparency-aligned .porecatu-transparencia {
  --ptc-purple:var(--phi-primary);
  --ptc-green:var(--phi-green);
  --ptc-ink:var(--phi-ink);
  --ptc-line:#E7E5F1;
}
body.porecatu-home-identity.phi-transparency-aligned .ptc-heading {
  border-radius:var(--phi-radius);
  background:linear-gradient(115deg,#2D176E,var(--phi-primary));
  box-shadow:var(--phi-card-shadow);
}
body.porecatu-home-identity.phi-transparency-aligned .ptc-heading::before {
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:4px;
  background:linear-gradient(90deg,var(--phi-primary) 0 58%,var(--phi-red) 58% 80%,var(--phi-green) 80% 100%);
  pointer-events:none;
}
body.porecatu-home-identity.phi-transparency-aligned .ptc-search button {
  background:var(--phi-green);
  color:#fff;
}
body.porecatu-home-identity.phi-transparency-aligned .ptc-search button:hover {filter:brightness(.88)}
body.porecatu-home-identity.phi-transparency-aligned .ptc-card {
  border:1px solid #E8E6F2;
  background:#fff;
}
body.porecatu-home-identity.phi-transparency-aligned .ptc-card:is([open],:hover) {
  border-color:#D0C9E8;
}
/* Slider: realce institucional dos indicadores sem mexer no dimensionamento. */
body.porecatu-home-identity .bp-slider .bp-dot.bp-dot-on {
  background:var(--phi-red);
}
body.porecatu-home-identity .bp-slider :is(.bp-prev,.bp-next):focus-visible {
  outline:3px solid var(--phi-primary);
  outline-offset:3px;
}
/* Ajustes optativos de cabeçalho e rodapé, sem modificar o brasão ou a estrutura. */
body.porecatu-home-identity.phi-chrome .hpref-header .hpref-main-row {
  border-bottom:1px solid rgba(70,37,169,.10);
}
body.porecatu-home-identity.phi-chrome .hpref-header .hpref-topbar {
  background:var(--phi-primary)!important;
}
body.porecatu-home-identity.phi-chrome .hpref-header .hpref-menu-link:is(:hover,:focus-visible) {
  color:var(--phi-primary);
}
body.porecatu-home-identity.phi-chrome .hpref-header :is(a,button):focus-visible {
  outline:3px solid var(--phi-primary);
  outline-offset:3px;
}
body.porecatu-home-identity.phi-chrome .hpref-footer-site :is(a,button):focus-visible {
  outline:3px solid #D5C8FF;
  outline-offset:3px;
}
body.porecatu-home-identity.phi-chrome .hpref-footer-site .hpref-footer-map {
  border-radius:var(--phi-radius);
  overflow:hidden;
}
/* Conteúdo não ultrapassa o container do Elementor. Apenas os full-bleed já existentes ficam intactos. */
body.porecatu-home-identity :is(.pgs-inner,.prn-news-grid,.ptc-grid) {min-width:0;}
@media(max-width:767px) {
  body.porecatu-home-identity .porecatu-home-manager > .porecatu-home-section + .porecatu-home-section {
    margin-block-start:clamp(28px,6vw,48px);
  }
  body.porecatu-home-identity :is(.prn-news,.porecatu-transparencia) {
    max-width:calc(100% - 2 * var(--phi-gutter));
  }
  body.porecatu-home-identity .pgs-service-card {
    padding:12px 7px;
  }
  body.porecatu-home-identity .pgs-service-title {
    font-size:clamp(10px,2.8vw,13px);
  }
  body.porecatu-home-identity.phi-transparency-aligned .ptc-heading {
    border-radius:calc(var(--phi-radius) - 2px);
  }
}
@media(prefers-reduced-motion:reduce) {
  body.porecatu-home-identity :is(.pgs-service-card,.prn-news-card,.ptc-card,.bp-dot) {
    transition:none!important;
    animation:none!important;
  }
  body.porecatu-home-identity :is(.pgs-service-card,.prn-news-card):hover {
    transform:none!important;
  }
}
