/* ══════════════════════════════════════════════════════════════════════════
   pesquisa-servicos.css — Página de Pesquisa de Serviços
   Prefeitura de Campina Grande do Sul – PR

   Depende do index.css para: reset, body, focus, navbar-toggler
   e variáveis globais.

   Índice de seções:
     1.  Variáveis exclusivas da página
     2.  Reset parcial (apenas ::before / ::after)
     3.  Skip Navigation (WCAG 2.4.1)
     4.  Barra Superior (Topo verde)
     5.  Header (Logomarca e busca)
     6.  Navbar (Menu principal)
     7.  Hero / Cabeçalho da Página
     8.  Barra de Pesquisa de Serviços
     9.  Layout Principal (Filtros + Lista)
    10.  Filtros (coluna esquerda)
    11.  Cards de Serviço (coluna direita)
    12.  Estado Sem Resultado
    13.  Rodapé
    14.  Alto Contraste eMAG
   ══════════════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════════════
   1. VARIÁVEIS EXCLUSIVAS DA PÁGINA
   Mantidas: nomenclatura --pi-* é diferente do index.css.
   As variáveis --ps-tag-* são exclusivas desta página.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --pi-verde:        #2d7a2d;
  --pi-verde-escuro: #1e5c1e;
  --pi-verde-medio:  #3a9a3a;
  --pi-verde-claro:  #e8f5e8;
  --pi-amarelo:      #f5c518;
  --pi-cinza-bg:     #eef2ee;
  --pi-cinza-borda:  #c8d8c8;
  --pi-texto:        #1a2a1a;

  /* Cores de tag de atendimento — exclusivas desta página */
  --ps-tag-online:     #0a6c34;
  --ps-tag-presencial: #1e5c9a;
  --ps-tag-hibrido:    #7a4a1e;
}


/* ══════════════════════════════════════════════════════════════════════════
   2. RESET PARCIAL — apenas pseudo-elementos
   index.css cobre *, body, html, focus.
   *, *::before, *::after já estão declarados neste arquivo original,
   mas * é coberto pelo index.css — mantemos só os pseudo-elementos.
   ══════════════════════════════════════════════════════════════════════════ */

*::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ══════════════════════════════════════════════════════════════════════════
   3. SKIP NAVIGATION (WCAG 2.4.1)
   Redeclarado aqui: o CSS da página carrega ANTES do index.css,
   portanto esta regra precisa existir neste arquivo para garantir
   que o skip-nav fique oculto antes de qualquer outro estilo.
   ══════════════════════════════════════════════════════════════════════════ */

.pi-skip-nav {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--pi-amarelo);
  color: #000;
  font-weight: 700;
  padding: 10px 20px;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.1s;
}

.pi-skip-nav:focus {
  top: 0;
}


/* ══════════════════════════════════════════════════════════════════════════
   4. BARRA SUPERIOR (Topo verde)
   ══════════════════════════════════════════════════════════════════════════ */

#pi-barra-topo {
  background: var(--pi-verde);
}

.pi-barra-inner {
  display: flex;
  align-items: center;
  height: 50px;
}

.pi-barra-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  align-self: center;
}

.pi-barra-acesso {
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  flex-shrink: 0;
}

.pi-barra-acesso span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pi-barra-acesso a {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  padding: 2px 7px;
}

#pi-btn-fonte-resetar {
  background: rgba(0, 0, 0, 0.25);
}

.pi-barra-acesso a:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.pi-barra-acesso-contraste,
.pi-barra-acesso-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  color: #fff;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}

.pi-barra-acesso-contraste:hover,
.pi-barra-acesso-icone:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
}

.pi-barra-badges {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 14px;
  gap: 5px;
  overflow: hidden;
}

.pi-badge-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  padding: 0 10px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  gap: 5px;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.2px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.pi-badge-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
}

.pi-badge-item i {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.pi-barra-info-bloco {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}

.pi-barra-horario {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 100%;
}

.pi-barra-horario > i {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.pi-barra-horario-texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.pi-barra-horario-dias {
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pi-barra-horario-horas {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.pi-barra-horario-turno {
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.80);
}

.pi-barra-horario-sep {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.40);
  line-height: 1;
}

.pi-barra-telefone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}

.pi-barra-telefone span {
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.pi-barra-telefone small {
  font-size: 0.5rem;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
}

.pi-barra-telefone:hover {
  opacity: 0.8;
  color: #fff;
  text-decoration: none;
}

.pi-barra-social {
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 2px;
  flex-shrink: 0;
}

.pi-barra-social a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
  text-decoration: none;
}

.pi-barra-social a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

@media (max-width: 1000px) {
  .pi-barra-info-bloco { display: none; }
}

@media (max-width: 768px) {
  .pi-barra-badges .pi-badge-item:nth-child(n+3) { display: none; }
}


/* ══════════════════════════════════════════════════════════════════════════
   5. HEADER (Logomarca e busca)
   ══════════════════════════════════════════════════════════════════════════ */

#pi-header {
  background: #fff;
  border-bottom: 2px solid var(--pi-verde);
}

.pi-header-inner {
  display: flex;
  align-items: center;
  height: 76px;
  gap: 24px;
}

.pi-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.pi-logo-img {
  height: 50px;
}

.pi-header-search {
  flex: 1;
  max-width: 380px;
  margin-left: auto;
}

.pi-search-group {
  display: flex;
}

.pi-search-input {
  flex: 1;
  border: 1.5px solid #bfccbf;
  border-right: none;
  border-radius: 22px 0 0 22px;
  font-size: 0.8125rem;
  padding: 8px 18px;
  background: #f5faf5;
  font-family: 'Roboto', sans-serif;
  color: var(--pi-texto);
}

.pi-search-input::placeholder { color: #aaa; }

.pi-search-input:focus {
  box-shadow: none;
  border-color: var(--pi-verde);
  background: #fff;
  outline: none;
}

.pi-search-btn {
  border: 1.5px solid #bfccbf;
  border-left: none;
  border-radius: 0 22px 22px 0;
  background: #f5faf5;
  color: #777;
  padding: 4px 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.pi-search-btn:hover {
  background: var(--pi-verde);
  border-color: var(--pi-verde);
  color: #fff;
}


/* ══════════════════════════════════════════════════════════════════════════
   6. NAVBAR (Menu principal)
   ══════════════════════════════════════════════════════════════════════════ */

#pi-navbar {
  background: var(--pi-verde-escuro);
  padding: 0;
  min-height: 46px;
}

#pi-navbar .navbar-collapse { align-items: stretch; }
#pi-navbar .navbar-nav      { align-items: stretch; }
#pi-navbar .navbar-nav .nav-item { display: flex; align-items: stretch; }

#pi-navbar .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0 18px;
  letter-spacing: 0.2px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  line-height: 1;
  height: 46px;
}

#pi-navbar .navbar-nav .nav-item:hover > .nav-link {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

#pi-navbar .dropdown-menu {
  border: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  margin-top: 0;
  min-width: 220px;
  padding: 4px 0;
}

#pi-navbar .dropdown-group-title {
  font-size: 0.5625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--pi-verde);
  padding: 10px 18px 4px;
}

#pi-navbar .dropdown-item {
  font-size: 0.8125rem;
  padding: 8px 20px;
  color: #222;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  position: relative;
}

#pi-navbar .dropdown-item:last-child { border: none; }

#pi-navbar .dropdown-item:hover {
  background: var(--pi-verde-escuro);
  color: #fff;
  padding-left: 26px;
}

#pi-navbar .dropdown-item:hover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--pi-verde);
}

#pi-navbar .pi-dropdown-destaque { color: var(--pi-verde); font-weight: 700; }
#pi-navbar .pi-dropdown-destaque:hover { color: #fff; }

#pi-navbar .dropdown-menu.mega-menu {
  display: none;
  min-width: 0;
  width: auto;
  padding: 20px 0;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}

#pi-navbar .dropdown-menu.mega-menu.show,
#pi-navbar .nav-item.dropdown:hover > .dropdown-menu.mega-menu {
  display: flex !important;
}

#pi-navbar .mega-col {
  flex: 0 0 auto;
  min-width: 190px;
  padding: 0 22px;
  border-right: 1px solid #ebebeb;
}

#pi-navbar .mega-col:last-child { border-right: none; }

#pi-navbar .mega-col .dropdown-group-title {
  font-size: 0.5625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--pi-verde);
  padding: 0 0 8px 0;
  margin-bottom: 4px;
}

#pi-navbar .mega-col .dropdown-item {
  padding: 5px 0;
  border-bottom: none;
  font-size: 0.8125rem;
  color: #333;
  white-space: nowrap;
  background: transparent;
  transition: color 0.15s, padding-left 0.15s;
}

#pi-navbar .mega-col .dropdown-item:hover {
  padding-left: 8px;
  background: transparent;
  color: var(--pi-verde-escuro);
}

#pi-navbar .mega-col .dropdown-item:hover::before { display: none; }

@media (min-width: 992px) {
  #pi-navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    animation: piDropFade 0.18s ease;
  }

  #pi-navbar .nav-item.dropdown:hover > .dropdown-menu.mega-menu {
    display: flex !important;
    animation: piDropFade 0.18s ease;
  }

  @keyframes piDropFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  #pi-navbar .nav-item.dropdown:hover > .nav-link {
    background: var(--pi-verde);
  }
}

@media (max-width: 991px) {
  #pi-navbar { min-height: 48px; }

  #pi-navbar .navbar-collapse {
    background: var(--pi-verde-escuro);
    padding: 6px 0 12px;
  }

  #pi-navbar .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  #pi-navbar .navbar-nav .nav-item {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  #pi-navbar .navbar-nav .nav-link {
    width: 100%;
    height: auto;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  #pi-navbar .dropdown-menu,
  #pi-navbar .dropdown-menu.mega-menu {
    position: static !important;
    display: none;
    flex-direction: column !important;
    width: 100%;
    background: rgba(0, 0, 0, 0.18);
    box-shadow: none;
    border-radius: 0;
    padding: 4px 0 8px;
    min-width: 0;
    border: none;
  }

  #pi-navbar .dropdown-menu.show,
  #pi-navbar .dropdown-menu.mega-menu.show {
    display: flex !important;
  }

  #pi-navbar .mega-col {
    min-width: 0;
    width: 100%;
    padding: 0;
    border-right: none;
  }

  #pi-navbar .mega-col .dropdown-group-title,
  #pi-navbar .dropdown-menu .dropdown-group-title {
    padding: 8px 28px 4px;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
  }

  #pi-navbar .mega-col .dropdown-item,
  #pi-navbar .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 7px 36px;
    border-bottom: none;
    font-size: 0.8125rem;
    white-space: normal;
  }

  #pi-navbar .mega-col .dropdown-item:hover,
  #pi-navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 40px;
  }

  #pi-navbar .nav-item.dropdown:hover > .dropdown-menu,
  #pi-navbar .nav-item.dropdown:hover > .dropdown-menu.mega-menu {
    display: none;
  }

  #pi-navbar .nav-item.dropdown:hover > .nav-link {
    background: transparent;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   7. HERO / CABEÇALHO DA PÁGINA
   ══════════════════════════════════════════════════════════════════════════ */

#pi-hero {
  background: var(--pi-verde-escuro);
  padding: 18px 0 0;
  position: relative;
  overflow: hidden;
}

.pi-hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 12px;
}

.pi-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  list-style: none;
  padding: 0;
}

.pi-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.pi-breadcrumb li a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.15s;
}

.pi-breadcrumb li a:hover {
  color: #fff;
  text-decoration: underline;
}

.pi-breadcrumb li[aria-current="page"] {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.pi-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.625rem;
}

.pi-hero-titulo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.2px;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.pi-hero-subtitulo {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 5px;
  font-weight: 300;
}

.pi-hero-ilustracao {
  display: block;
  width: 100%;
  line-height: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 35%, rgba(0,0,0,0.75) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 35%, rgba(0,0,0,0.75) 100%);
}

.pi-hero-ilustracao img {
  display: block;
  width: 100%;
  height: 70px;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.18;
}

@media (max-width: 575px) {
  .pi-hero-titulo { font-size: 1.125rem; }
}


/* ══════════════════════════════════════════════════════════════════════════
   8. BARRA DE PESQUISA DE SERVIÇOS
   ══════════════════════════════════════════════════════════════════════════ */

#ps-main {
  background: #fff;
  padding: 36px 0 60px;
}

.ps-busca-wrapper {
  background: var(--pi-verde-claro);
  border: 1.5px solid var(--pi-cinza-borda);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.ps-busca-grupo {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #bfccbf;
  border-radius: 10px;
  padding: 0 16px 0 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.ps-busca-grupo:focus-within {
  border-color: var(--pi-verde);
  box-shadow: 0 0 0 3px rgba(45, 122, 45, 0.15);
}

.ps-busca-icone {
  color: #aaa;
  font-size: 1rem;
  padding: 0 14px;
  flex-shrink: 0;
}

.ps-busca-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--pi-texto);
  padding: 14px 0;
  outline: none;
}

.ps-busca-input::placeholder {
  color: #aaa;
  font-weight: 300;
}

.ps-busca-btn {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.ps-busca-btn:hover {
  background: var(--pi-cinza-bg);
  color: var(--pi-texto);
}


/* ══════════════════════════════════════════════════════════════════════════
   9. LAYOUT PRINCIPAL (Filtros + Lista de Serviços)
   ══════════════════════════════════════════════════════════════════════════ */

.ps-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 991px) {
  .ps-layout {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   10. FILTROS (coluna esquerda)
   ══════════════════════════════════════════════════════════════════════════ */

.ps-filtros {
  position: sticky;
  top: 20px;
}

.ps-contador {
  background: var(--pi-verde-escuro);
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

.ps-contador #ps-num-resultados {
  font-size: 1.125rem;
  font-weight: 900;
}

.ps-filtro-grupo {
  background: #fff;
  border: 1.5px solid var(--pi-cinza-borda);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}

.ps-filtro-titulo {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pi-verde-escuro);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-filtro-titulo i {
  font-size: 0.875rem;
  color: var(--pi-verde);
}

.ps-filtro-opcoes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-filtro-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--pi-cinza-borda);
  border-radius: 7px;
  padding: 9px 14px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  color: #555;
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
  width: 100%;
}

.ps-filtro-btn i {
  font-size: 0.875rem;
  color: #aaa;
  flex-shrink: 0;
}

.ps-filtro-btn:hover {
  border-color: var(--pi-verde);
  color: var(--pi-verde-escuro);
}

.ps-filtro-btn:hover i {
  color: var(--pi-verde);
}

.ps-filtro-btn.ativo {
  background: var(--pi-verde-claro);
  border-color: var(--pi-verde);
  color: var(--pi-verde-escuro);
  font-weight: 600;
}

.ps-filtro-btn.ativo i {
  color: var(--pi-verde);
}

.ps-btn-limpar-filtros {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--pi-cinza-borda);
  border-radius: 7px;
  padding: 9px 14px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  color: #777;
  cursor: pointer;
  transition: all 0.18s;
  width: 100%;
  margin-top: 4px;
}

.ps-btn-limpar-filtros:hover {
  border-color: var(--pi-verde);
  color: var(--pi-verde-escuro);
  background: var(--pi-verde-claro);
}

@media (max-width: 991px) {
  .ps-filtros {
    position: static;
  }

  .ps-filtro-opcoes {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ps-filtro-btn {
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   11. CARDS DE SERVIÇO (coluna direita)
   ══════════════════════════════════════════════════════════════════════════ */

.ps-lista-wrapper {
  min-height: 300px;
}

.ps-lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.servico-card {
  background: #fff;
  border: 1.5px solid var(--pi-cinza-borda);
  border-radius: 12px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  align-items: center;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.servico-card:hover {
  box-shadow: 0 6px 22px rgba(45, 122, 45, 0.12);
  border-color: var(--pi-verde);
  transform: translateY(-2px);
}

.servico-card .tag-online,
.servico-card .tag-presencial,
.servico-card .tag-hibrido {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  font-size: 0.5625rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
  align-self: start;
  margin-top: 2px;
}

.servico-card .tag-online {
  background: #d4f0e0;
  color: var(--ps-tag-online);
  border: 1px solid #a3dcbd;
}

.servico-card .tag-presencial {
  background: #d6e8f9;
  color: var(--ps-tag-presencial);
  border: 1px solid #9ec5f0;
}

.servico-card .tag-hibrido {
  background: #fde8d0;
  color: var(--ps-tag-hibrido);
  border: 1px solid #f0c99a;
}

.servico-card h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pi-verde-escuro);
  margin: 0;
  line-height: 1.3;
}

.servico-card p {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.8125rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.servico-card .btn-servico {
  grid-column: 3;
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--pi-verde);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.18s, transform 0.12s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  letter-spacing: 0.2px;
  align-self: center;
}

.servico-card .btn-servico:hover {
  background: var(--pi-verde-escuro);
  color: #fff;
  text-decoration: none;
  transform: scale(1.04);
}

.servico-card .btn-servico i {
  font-size: 0.75rem;
}

@media (max-width: 575px) {
  .servico-card {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 8px 12px;
  }

  .servico-card .tag-online,
  .servico-card .tag-presencial,
  .servico-card .tag-hibrido {
    grid-column: 1;
    grid-row: 1;
  }

  .servico-card h3 {
    grid-column: 1 / 3;
    grid-row: 2;
    font-size: 0.9375rem;
  }

  .servico-card p {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  .servico-card .btn-servico {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding: 7px 14px;
    font-size: 0.75rem;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   12. ESTADO SEM RESULTADO
   ══════════════════════════════════════════════════════════════════════════ */

.ps-sem-resultado {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.ps-sem-resultado i {
  font-size: 2.5rem;
  color: #ccc;
  display: block;
  margin-bottom: 16px;
}

.ps-sem-resultado p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.ps-sem-resultado .ps-btn-limpar-filtros {
  display: inline-flex;
  width: auto;
  margin: 0 auto;
}


/* ══════════════════════════════════════════════════════════════════════════
   13. RODAPÉ
   ══════════════════════════════════════════════════════════════════════════ */

#pi-footer {
  background: var(--pi-verde-escuro);
  color: rgba(255, 255, 255, 0.7);
  padding: 42px 0 16px;
}

#pi-footer h6 {
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

#pi-footer ul { list-style: none; padding: 0; margin: 0; }
#pi-footer ul li { margin-bottom: 5px; }

#pi-footer ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.15s;
}

#pi-footer ul li a:hover { color: #fff; }

.pi-footer-logo-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.pi-footer-logo-wrap .pi-logo-img { height: 50px; }

.pi-footer-contact p {
  font-size: 0.8125rem;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.7);
}

.pi-footer-contact i {
  color: var(--pi-amarelo);
  width: 18px;
  margin-right: 6px;
}

.pi-footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.pi-footer-contact a:hover { color: #fff; }

.pi-footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pi-footer-social a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
  text-decoration: none;
  transition: color 0.15s;
}

.pi-footer-social a:hover { color: #fff; }

.pi-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}


/* ══════════════════════════════════════════════════════════════════════════
   14. ALTO CONTRASTE eMAG
   ══════════════════════════════════════════════════════════════════════════ */

body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast *:not(a):not(button):not(input):not(.vw-plugin-wrapper):not([vw]) {
  color: #fff !important;
}

body.high-contrast #pi-barra-topo,
body.high-contrast #pi-header,
body.high-contrast #pi-navbar,
body.high-contrast #pi-hero,
body.high-contrast #ps-main,
body.high-contrast #pi-footer {
  background-color: #000 !important;
}

body.high-contrast #pi-barra-topo { border-bottom: 1px solid #fff; }

body.high-contrast .pi-barra-acesso-contraste {
  background: var(--pi-amarelo);
  color: #000;
  border: 1px solid #fff;
}

body.high-contrast #pi-header { border-color: #fff !important; }

body.high-contrast .pi-search-input {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.high-contrast .pi-search-input::placeholder { color: rgba(255,255,255,0.6) !important; }

body.high-contrast .pi-search-btn {
  background: #111 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.high-contrast #pi-navbar {
  background: #000 !important;
  border: 1px solid #fff !important;
}

body.high-contrast #pi-navbar .navbar-nav .nav-link { color: #fff !important; }

body.high-contrast #pi-navbar .dropdown-menu,
body.high-contrast #pi-navbar .dropdown-menu.mega-menu {
  background: #111 !important;
  border: 1px solid #fff !important;
}

body.high-contrast #pi-navbar .dropdown-item,
body.high-contrast #pi-navbar .mega-col .dropdown-item { color: #ff0 !important; }

body.high-contrast #pi-navbar .dropdown-item:hover,
body.high-contrast #pi-navbar .mega-col .dropdown-item:hover {
  background: #333 !important;
  color: #fff !important;
}

body.high-contrast #pi-navbar .dropdown-group-title,
body.high-contrast #pi-navbar .mega-col .dropdown-group-title { color: #ff0 !important; }

body.high-contrast #pi-hero {
  background: #000 !important;
  border-bottom: 2px solid #fff;
}

body.high-contrast .pi-hero-ilustracao { display: none; }

body.high-contrast .pi-hero-titulo,
body.high-contrast .pi-hero-subtitulo { color: #fff !important; }

body.high-contrast .pi-breadcrumb li,
body.high-contrast .pi-breadcrumb li a { color: #ff0 !important; }

body.high-contrast .ps-busca-wrapper {
  background: #000 !important;
  border-color: #fff !important;
}

body.high-contrast .ps-busca-grupo {
  background: #000 !important;
  border-color: #fff !important;
}

body.high-contrast .ps-busca-input {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast .ps-busca-input::placeholder { color: #888 !important; }
body.high-contrast .ps-busca-icone { color: #ff0 !important; }
body.high-contrast .ps-busca-btn { color: #ff0 !important; }

body.high-contrast .ps-filtro-grupo {
  background: #000 !important;
  border-color: #fff !important;
}

body.high-contrast .ps-contador {
  background: #333 !important;
  border: 1px solid #fff;
}

body.high-contrast .ps-filtro-btn {
  background: #000 !important;
  border-color: #555 !important;
  color: #ff0 !important;
}

body.high-contrast .ps-filtro-btn i { color: #ff0 !important; }

body.high-contrast .ps-filtro-btn.ativo {
  background: #222 !important;
  border-color: #ff0 !important;
  color: #fff !important;
}

body.high-contrast .ps-btn-limpar-filtros {
  background: #000 !important;
  border-color: #fff !important;
  color: #ff0 !important;
}

body.high-contrast .ps-btn-limpar-filtros:hover {
  background: #222 !important;
  color: #fff !important;
}

body.high-contrast .servico-card {
  background: #000 !important;
  border-color: #fff !important;
}

body.high-contrast .servico-card h3 { color: #fff !important; }
body.high-contrast .servico-card p  { color: #ddd !important; }

body.high-contrast .servico-card .tag-online,
body.high-contrast .servico-card .tag-presencial,
body.high-contrast .servico-card .tag-hibrido {
  background: #222 !important;
  border-color: #fff !important;
  color: #ff0 !important;
}

body.high-contrast .servico-card .btn-servico {
  background: #ff0 !important;
  color: #000 !important;
  border: 1px solid #fff !important;
}

body.high-contrast .servico-card .btn-servico:hover {
  background: #fff !important;
  color: #000 !important;
}

body.high-contrast #pi-footer {
  background: #000 !important;
  border-top: 1px solid #fff;
}

body.high-contrast #pi-footer h6 {
  color: #fff !important;
  border-color: rgba(255,255,255,0.3) !important;
}

body.high-contrast #pi-footer ul li a { color: #ff0 !important; }
body.high-contrast #pi-footer ul li a:hover { color: #fff !important; }
body.high-contrast .pi-footer-contact p { color: #ddd !important; }
body.high-contrast .pi-footer-contact i { color: #ff0 !important; }
body.high-contrast .pi-footer-contact a { color: #ff0 !important; }
body.high-contrast .pi-footer-social a { color: #ff0 !important; }
body.high-contrast .pi-footer-social a:hover { color: #fff !important; }

body.high-contrast .pi-footer-bottom {
  color: rgba(255,255,255,0.6) !important;
  border-color: rgba(255,255,255,0.3) !important;
}