/*
  Faixa compacta das páginas internas.
  Todas as regras são ativadas somente pela classe html.pa-internal-page.
  A página inicial nunca recebe essa classe, portanto seu hero permanece intacto.
*/
html.pa-internal-page .internal-page-title {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 34px 20px 30px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(25, 78, 137, .16) !important;
  background: linear-gradient(112deg, #f7fbff 0%, #eaf3ff 48%, #f5f0ff 100%) !important;
  background-image: none !important;
  text-align: center !important;
}

html.pa-internal-page .internal-page-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(48, 124, 210, .14), transparent 34%),
    radial-gradient(circle at 88% 85%, rgba(114, 78, 198, .11), transparent 32%);
  pointer-events: none;
}

html.pa-internal-page .internal-page-title__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

html.pa-internal-page .internal-page-title h1 {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  font-size: clamp(1.75rem, 3.5vw, 2.55rem) !important;
  line-height: 1.12 !important;
  font-weight: 750 !important;
  letter-spacing: -.035em !important;
  color: #173f72 !important;
  background: linear-gradient(92deg, #173f72 0%, #2567ad 52%, #6e4eb7 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html.pa-internal-page .internal-page-title__line {
  display: block;
  width: 76px;
  height: 4px;
  margin: 15px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2469ae, #7654bd);
}

/* Proteção visual enquanto o JavaScript remove um hero duplicado do Next.js. */
html.pa-internal-page main > section:not(.internal-page-title):has(h1),
html.pa-internal-page main > div:not(.internal-page-title):has(h1),
html.pa-internal-page main > section:not(.internal-page-title):has(img[src*='transparent-hero']),
html.pa-internal-page main > section:not(.internal-page-title):has(img[alt*='Kaline' i]),
html.pa-internal-page main > section:not(.internal-page-title):has(.hero-image-mask),
html.pa-internal-page main > section:not(.internal-page-title):has(.bg-hero) {
  display: none !important;
}

@media (max-width: 640px) {
  html.pa-internal-page .internal-page-title { padding: 25px 14px 23px !important; }
  html.pa-internal-page .internal-page-title__inner { width: calc(100% - 28px); }
  html.pa-internal-page .internal-page-title h1 { font-size: 1.75rem !important; }
}
