/* ============================================================================
   P8 PMO 360 — pmo-pages.css
   Estilos específicos das páginas internas
   (metodologia, serviços, modelos, processo, contacto, diagnóstico, 404)
   Versão 2.0 — premium, editorial, alinhado com pmo.css
   ============================================================================ */

/* ============================================================
   1. HERO DE PÁGINA INTERNA
   ============================================================ */
.hero-page {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px circle at 15% 15%, rgba(225, 6, 0, 0.06), transparent 60%),
    radial-gradient(520px circle at 85% 80%, rgba(225, 6, 0, 0.04), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
}
.hero-page .eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red);
}
.hero-page .eyebrow a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.hero-page .eyebrow a:hover { color: var(--ink); }
.hero-page h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero-page .lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--mute);
  max-width: 62ch;
}
.hero-page .prazo-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 12px 20px;
  background: var(--panel);
  border-left: 4px solid var(--red);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.hero-page .prazo-badge strong { color: var(--red); font-weight: 800; }

@media (max-width: 720px) {
  .hero-page { padding: 88px 0 60px; }
  .hero-page::before { opacity: 0.7; }
}

/* ============================================================
   2. GRELHA DE 8 Ps
   ============================================================ */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 2px solid var(--ink);
}
.ps-card {
  display: flex;
  flex-direction: column;
  padding: 40px 32px 44px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
  min-height: 320px;
}
.ps-card:nth-child(3n) { border-right: none; }
.ps-card:hover { background: var(--panel); }
.ps-card::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ps-card:hover::after { width: 100%; }
.ps-card .ps-num {
  display: block;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 2.6rem;
  color: var(--red);
  line-height: 0.9;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}
.ps-card h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  line-height: 1.1;
  margin-bottom: 14px;
}
.ps-card h3 em {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.75rem;
  color: var(--mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
}
.ps-card p {
  flex: 1;
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 24px;
}
.ps-card .ps-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}
.ps-card:hover .ps-more { gap: 12px; }
.ps-card.is-perf {
  background: var(--panel);
  grid-column: span 1;
}
.ps-card.is-perf .ps-num { color: var(--ink); }

@media (max-width: 900px) {
  .ps-grid { grid-template-columns: 1fr 1fr; }
  .ps-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .ps-card:nth-child(2n) { border-right: none; }
  .ps-card { min-height: auto; }
}
@media (max-width: 560px) {
  .ps-grid { grid-template-columns: 1fr; }
  .ps-card { border-right: none; padding: 32px 24px; }
}

/* ============================================================
   3. DUAS COLUNAS
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 32px;
}
.two-col h2 {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  margin-bottom: 24px;
  padding-left: 18px;
  border-left: 4px solid var(--red);
  line-height: 1.15;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   4. BULLETS
   ============================================================ */
.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bullets li {
  padding: 16px 0 16px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
  transition: padding-left 0.25s ease, color 0.25s ease;
}
.bullets li:hover {
  padding-left: 40px;
  color: var(--ink);
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 24px;
  width: 12px; height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.bullets li:hover::before { width: 20px; }
.bullets li:last-child { border-bottom: none; }

/* ============================================================
   5. SERVIÇOS — prazo + link "saber mais"
   ============================================================ */
.sv article .prazo {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-top: 16px;
  padding: 4px 10px;
  background: var(--panel);
  border-radius: 2px;
}
.sv article .more,
.models div .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: gap 0.25s ease;
}
.sv article .more:hover,
.models div .more:hover { gap: 14px; }

/* ============================================================
   6. ENTREGÁVEIS
   ============================================================ */
.entregaveis {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--ink);
  counter-reset: entreg;
}
.entregaveis li {
  counter-increment: entreg;
  padding: 32px 32px 32px 80px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  position: relative;
  transition: background 0.25s ease;
}
.entregaveis li:hover { background: var(--panel); }
.entregaveis li::before {
  content: counter(entreg, decimal-leading-zero);
  position: absolute;
  left: 32px;
  top: 30px;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.5rem;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
}
.entregaveis li:nth-child(odd) { border-right: 1px solid var(--line); }
@media (max-width: 700px) {
  .entregaveis { grid-template-columns: 1fr; }
  .entregaveis li:nth-child(odd) { border-right: none; }
  .entregaveis li { padding: 24px 20px 24px 68px; }
  .entregaveis li::before { left: 20px; top: 22px; }
}

/* ============================================================
   7. PAGER (anterior / seguinte)
   ============================================================ */
.pager {
  border-top: 1px solid var(--line);
  padding: 0;
  margin: 0;
}
.pager .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  max-width: none;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 44px 48px;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease;
  position: relative;
}
.pager a::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--red);
  opacity: 0.6;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pager a:hover { background: var(--panel); }
.pager a:hover::before { opacity: 1; }
.pager-prev { border-right: 1px solid var(--line); align-items: flex-start; }
.pager-prev::before { content: '←'; left: 20px; }
.pager-prev:hover::before { transform: translateY(-50%) translateX(-4px); }
.pager-next { align-items: flex-end; text-align: right; }
.pager-next::before { content: '→'; right: 20px; }
.pager-next:hover::before { transform: translateY(-50%) translateX(4px); }
.pager-prev span, .pager-next span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
}
.pager a b {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 850;
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
@media (max-width: 600px) {
  .pager .wrap { grid-template-columns: 1fr; }
  .pager a { padding: 32px 24px; }
  .pager-prev { border-right: none; border-bottom: 1px solid var(--line); }
  .pager-next { align-items: flex-start; text-align: left; }
  .pager-next::before { right: auto; left: 20px; content: '←'; }
  .pager-next:hover::before { transform: translateY(-50%) translateX(-4px); }
}

/* ============================================================
   8. MODELO — "não inclui"
   ============================================================ */
.nao-inclui {
  margin-top: 48px;
  padding: 32px 36px;
  background: var(--panel);
  border-left: 4px solid var(--line);
}
.nao-inclui h3 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 20px;
  font-weight: 800;
}
.nao-inclui ul { list-style: none; padding: 0; margin: 0; }
.nao-inclui li {
  padding: 10px 0 10px 28px;
  color: var(--mute);
  position: relative;
  font-size: 0.95rem;
}
.nao-inclui li::before {
  content: '×';
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--red);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

/* ============================================================
   9. BRAÇOS P8
   ============================================================ */
.bracos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.braco {
  display: block;
  padding: 32px 28px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.braco::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(225, 6, 0, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.braco:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.braco:hover::before { opacity: 1; }
.braco h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.15;
}
.braco p {
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ============================================================
   10. FORMULÁRIOS (diagnóstico + contacto)
   ============================================================ */
.narrow { max-width: 760px; }

.diag-form, .contact-form {
  display: grid;
  gap: 28px;
  margin-top: 48px;
}

/* --- Diagnóstico: linhas com slider --- */
.diag-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.diag-row:hover { background: var(--panel); padding-left: 12px; padding-right: 12px; }
.diag-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.diag-row label b {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.diag-row label span {
  font-size: 0.72rem;
  color: var(--mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.diag-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--line);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.diag-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  background: var(--red);
  border-radius: 50%;
  cursor: grab;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--red), 0 4px 12px rgba(225, 6, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.diag-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 0 0 1px var(--red), 0 6px 20px rgba(225, 6, 0, 0.35);
}
.diag-row input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
}
.diag-row input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  background: var(--red);
  border: 3px solid var(--bg);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 0 0 1px var(--red);
}
.diag-row output {
  font-weight: 900;
  font-stretch: 120%;
  font-size: 1.5rem;
  min-width: 32px;
  text-align: right;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
}
@media (max-width: 620px) {
  .diag-row {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }
  .diag-row label { grid-column: 1 / -1; }
  .diag-row:hover { padding-left: 0; padding-right: 0; }
}

/* --- Resultado --- */
.diag-result {
  margin-top: 28px;
  padding: 28px 32px;
  background: var(--panel);
  border-left: 4px solid var(--red);
  font-size: 1.05rem;
  line-height: 1.6;
}
.diag-result p { margin: 8px 0; color: var(--mute); }
.diag-result strong {
  color: var(--ink);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}
.diag-result #diagMedia { color: var(--red); font-size: 1.3rem; }
.diag-result #diagWeak {
  color: var(--red);
  font-size: 1.05rem;
  transition: color 0.25s ease;
}
.diag-result #diagWeak.is-warn { color: #f59e0b; }

/* --- Fieldset de contacto --- */
.diag-contact, .contact-form fieldset {
  border: 1px solid var(--line);
  padding: 32px;
  margin-top: 36px;
  display: grid;
  gap: 16px;
  background: transparent;
}
.diag-contact legend {
  padding: 0 14px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 800;
}
.diag-contact input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 16px 18px;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.diag-contact input:hover,
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: var(--mute);
}
.diag-contact input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--panel);
}
.diag-contact input::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--mute);
  opacity: 0.7;
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a9a7a0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
}
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.contact-form .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .contact-form .row2 { grid-template-columns: 1fr; }
  .diag-contact, .contact-form fieldset { padding: 24px 20px; }
}

/* --- Botões --- */
.diag-contact button,
.contact-form button {
  justify-self: start;
  margin-top: 8px;
}
.diag-contact button[disabled],
.contact-form button[disabled] {
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
}

/* --- Mensagens de estado --- */
.diag-msg, .contact-msg {
  min-height: 1.5em;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease;
}
.diag-msg::before, .contact-msg::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  transition: all 0.25s ease;
}
.diag-msg.is-loading::before,
.contact-msg.is-loading::before {
  width: 12px; height: 12px;
  border: 2px solid var(--mute);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: pmo-spin 0.8s linear infinite;
}
.diag-msg.is-ok::before,
.contact-msg.is-ok::before {
  content: '✓';
  width: auto; height: auto;
  font-size: 1.1rem;
  color: #22c55e;
}
.diag-msg.is-err::before,
.contact-msg.is-err::before {
  content: '!';
  width: 20px; height: 20px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}
.diag-msg.is-ok, .contact-msg.is-ok { color: #22c55e; }
.diag-msg.is-err, .contact-msg.is-err { color: #ef4444; }
.diag-msg.is-loading, .contact-msg.is-loading { color: var(--mute); }

@keyframes pmo-spin {
  to { transform: rotate(360deg); }
}

/* --- Contacto alternativo --- */
.contact-alt {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--mute);
  line-height: 1.7;
}
.contact-alt p { margin: 8px 0; }
.contact-alt a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.contact-alt a:hover { border-bottom-color: var(--red); }

/* ============================================================
   11. AJUSTES INV / RED
   ============================================================ */
.inv .bullets li { border-color: var(--line); }
.inv .bullets li::before { background: var(--red); }
.red .entregaveis { border-top-color: #fff; }
.red .entregaveis li { border-color: rgba(255, 255, 255, 0.3); }
.red .entregaveis li::before { color: #fff; }
.red .entregaveis li:hover { background: rgba(0, 0, 0, 0.15); }

/* ============================================================
   12. PREFERÊNCIAS
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ps-card,
  .ps-card::after,
  .ps-card .ps-more,
  .bullets li,
  .bullets li::before,
  .braco,
  .braco::before,
  .pager a,
  .pager a::before,
  .diag-row,
  .diag-row input[type="range"]::-webkit-slider-thumb,
  .diag-msg::before,
  .contact-msg::before,
  .contact-alt a {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
   13. IMPRESSÃO
   ============================================================ */
@media print {
  .hero-page::before,
  .ps-card::after,
  .braco::before,
  .pager { display: none !important; }
  body { font-size: 11pt; }
}

/* ============================================================================
   PORTFÓLIO PMO — versão premium
   ============================================================================ */

/* ===== HERO EDITORIAL ===== */
.pf-hero {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.pf-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.08), transparent 60%);
  pointer-events: none;
}
.pf-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.pf-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.pf-hero__count {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.pf-hero__title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 850;
  font-stretch: 112%;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 48px;
}
.pf-hero__title em {
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--red);
}
.pf-hero__bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
@media (max-width: 820px) {
  .pf-hero__bottom { grid-template-columns: 1fr; gap: 40px; }
}
.pf-hero__lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--mute);
  max-width: 56ch;
}
.pf-hero__stats {
  display: flex;
  gap: 40px;
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
@media (max-width: 820px) {
  .pf-hero__stats { border-left: none; padding-left: 0; }
}
.pf-stat { display: flex; flex-direction: column; gap: 6px; }
.pf-stat__num {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.03em;
}
.pf-stat__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ===== FILTROS ===== */
.pf-filterbar {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  padding: 24px 0;
}
.pf-filters__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
.pf-filters__group label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.pf-filters__group select,
.pf-filters__group input {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.pf-filters__group select:hover,
.pf-filters__group select:focus,
.pf-filters__group input:focus {
  outline: none;
  border-color: var(--red);
}
.pf-filters__group--search {
  position: relative;
  flex: 1;
  min-width: 240px;
  justify-content: flex-end;
}
.pf-filters__group--search svg {
  position: absolute;
  left: 14px;
  bottom: 13px;
  color: var(--mute);
  pointer-events: none;
}
.pf-filters__group--search input {
  padding-left: 40px;
  cursor: text;
}
.pf-filters__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pf-filters__actions .btn { padding: 11px 24px; font-size: 0.82rem; }
.pf-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mute);
  text-decoration: none;
  transition: color 0.2s;
}
.pf-clear:hover { color: var(--red); }

/* Chips de filtros ativos */
.pf-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 0 20px;
  font-size: 0.82rem;
  color: var(--mute);
}
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  transition: border-color 0.2s, color 0.2s;
}
.pf-chip:hover { border-color: var(--red); color: var(--red); }
.pf-chip span { opacity: 0.6; font-size: 1rem; line-height: 1; }

/* ===== GRID ===== */
.pf-lista {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pf-grid--featured {
  grid-template-columns: repeat(6, 1fr);
}
.pf-grid--featured > .pf-card--featured {
  grid-column: span 6;
}
.pf-grid--featured > .pf-card:not(.pf-card--featured) {
  grid-column: span 2;
}
@media (max-width: 1024px) {
  .pf-grid,
  .pf-grid--featured { grid-template-columns: 1fr 1fr; }
  .pf-grid--featured > .pf-card--featured { grid-column: span 2; }
  .pf-grid--featured > .pf-card:not(.pf-card--featured) { grid-column: span 1; }
}
@media (max-width: 640px) {
  .pf-grid,
  .pf-grid--featured { grid-template-columns: 1fr; }
  .pf-grid--featured > .pf-card--featured,
  .pf-grid--featured > .pf-card:not(.pf-card--featured) { grid-column: span 1; }
}

/* ===== CARD ===== */
.pf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
  overflow: hidden;
}
.pf-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}
.pf-card:hover,
.pf-card:focus-visible {
  outline: none;
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.45);
}
.pf-card:hover::after { border-color: var(--red); }

/* Media */
.pf-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
}
.pf-card--featured .pf-card__media {
  aspect-ratio: 21 / 9;
}
.pf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.pf-card:hover .pf-card__media img { transform: scale(1.06); }

/* Overlay gradient para legibilidade do título sobre a imagem */
.pf-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0, 0, 0, 0.6) 75%,
    rgba(0, 0, 0, 0.85) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.pf-card--featured .pf-card__overlay { opacity: 1; }
.pf-card:hover .pf-card__overlay { opacity: 1; }

/* Placeholder quando não há imagem */
.pf-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, var(--panel) 0%, var(--bg) 100%);
}
.pf-card__placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at 30% 20%, rgba(225, 6, 0, 0.16), transparent 65%);
}
.pf-card__phnum {
  font-size: 5rem;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.06em;
  color: var(--red);
  opacity: 0.35;
  position: relative;
  z-index: 1;
}
.pf-card__placeholder--big .pf-card__phnum { font-size: 8rem; }

/* Conteúdo sobre a imagem (featured) */
.pf-card__media-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 32px 28px;
  z-index: 2;
  color: #fff;
}
.pf-card__media-content .pf-card__sector {
  color: #fff;
  opacity: 0.85;
  margin-bottom: 10px;
  display: inline-block;
}
.pf-card__media-content .pf-card__title {
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Badge "Destaque" */
.pf-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
}
.pf-card__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pfBlink 1.6s ease-in-out infinite;
}
@keyframes pfBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* Badge de estado */
.pf-card__status {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  padding: 6px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 2px;
}
.pf-card__status--em-curso {
  color: var(--red);
  border-color: var(--red);
  background: rgba(0, 0, 0, 0.8);
}

/* Corpo */
.pf-card__body {
  flex: 1;
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pf-card--featured .pf-card__body { padding: 28px 32px 32px; }

.pf-card__sector {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.pf-card__title {
  font-size: 1.25rem;
  font-weight: 850;
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  transition: color 0.2s;
}
.pf-card:hover .pf-card__title { color: var(--red); }
.pf-card--featured .pf-card__title { font-size: 1.5rem; }

.pf-card__desc {
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.pf-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--mute);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 4px;
}
.pf-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}
.pf-card__meta-item svg { opacity: 0.6; flex-shrink: 0; }

.pf-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  transition: gap 0.25s ease;
}
.pf-card:hover .pf-card__cta { gap: 14px; }
.pf-card__cta svg { transition: transform 0.25s ease; }
.pf-card:hover .pf-card__cta svg { transform: translateX(2px); }

/* ===== ESTADO VAZIO ===== */
.pf-empty {
  padding: 100px 24px;
  text-align: center;
  color: var(--mute);
}
.pf-empty svg {
  color: var(--line);
  margin-bottom: 24px;
}
.pf-empty h3 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.pf-empty p { font-size: 1rem; }
.pf-empty a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ===== CTA FINAL ===== */
.pf-cta-final {
  padding: 96px 0;
  background: var(--panel);
}
.pf-cta-final__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 820px) {
  .pf-cta-final__grid { grid-template-columns: 1fr; gap: 32px; }
}
.pf-cta-final h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 12px;
}
.pf-cta-final p {
  font-size: 1.1rem;
  color: var(--mute);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ===== POPUP ===== */
.pf-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.pf-modal.is-open { display: flex; }
.pf-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: pfFade 0.3s ease;
}
.pf-modal__panel {
  position: relative;
  width: min(1200px, 100%);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: pfSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  margin: auto;
}
@keyframes pfFade { from { opacity: 0; } }
@keyframes pfSlide {
  from { opacity: 0; transform: translateY(32px) scale(0.98); }
}

.pf-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
}
.pf-modal__close:hover {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(90deg);
}

.pf-modal__loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 140px 40px;
}
.pf-modal.is-loading .pf-modal__loader { display: flex; }
.pf-modal.is-loading .pf-modal__content { display: none; }
.pf-modal__loader span {
  width: 12px; height: 12px;
  background: var(--red);
  border-radius: 50%;
  animation: pfPulse 1.2s ease-in-out infinite;
}
.pf-modal__loader span:nth-child(2) { animation-delay: 0.15s; }
.pf-modal__loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pfPulse {
  0%, 100% { transform: scale(0.6); opacity: 0.35; }
  50%      { transform: scale(1);   opacity: 1; }
}

.pf-modal__content {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 560px;
}
@media (max-width: 900px) {
  .pf-modal__content { grid-template-columns: 1fr; }
}

/* Coluna esquerda */
.pf-modal__col-left {
  background: var(--panel);
  padding: 60px 44px 48px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.pf-modal__col-left::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.1), transparent 65%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .pf-modal__col-left {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 52px 28px 36px;
  }
}
.pf-modal__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  position: relative;
  z-index: 1;
}
.pf-modal__title {
  font-size: 1.85rem;
  font-weight: 850;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.pf-modal__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid currentColor;
  border-radius: 2px;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}
.pf-modal__status--em-curso { color: var(--red); }
.pf-modal__status--concluido { color: var(--mute); }
.pf-modal__status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pfLive 2s ease-in-out infinite;
}
.pf-modal__status--concluido::before { animation: none; opacity: 0.5; }
@keyframes pfLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

.pf-modal__meta-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.pf-modal__meta-item { display: flex; flex-direction: column; gap: 6px; }
.pf-modal__meta-item dt {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.pf-modal__meta-item dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

/* Coluna direita */
.pf-modal__col-right {
  padding: 60px 52px 52px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
}
@media (max-width: 900px) {
  .pf-modal__col-right {
    padding: 44px 28px;
    max-height: none;
  }
}
.pf-modal__section h4 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pf-modal__section h4::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--red);
}
.pf-modal__section p {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}
.pf-modal__section--impact p {
  border-left: 3px solid var(--red);
  padding-left: 22px;
  font-weight: 500;
}
.pf-modal__results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.pf-modal__result {
  padding: 12px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s, transform 0.2s;
}
.pf-modal__result:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.pf-modal__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}