﻿.central-conhecimento-page {
  --ccl-color-navy: #060435;
  --ccl-color-navy-mid: #394195;
  --ccl-color-navy-deep: #29235c;
  --ccl-color-accent: #ff8000;
  --ccl-color-accent-hover: #e67300;
  --ccl-color-white: #ffffff;
  --ccl-color-text: #060435;
  --ccl-color-text-muted: #666666;
  --ccl-color-white-90: rgba(255, 255, 255, 0.9);
  --ccl-color-card-light: #f0eff9;
  --ccl-color-icon-overlay: rgba(41, 35, 92, 0.13);
  --ccl-color-border: #c8c5d0;
  --ccl-color-surface: rgba(255, 255, 255, 0.06);
  --ccl-color-surface-border: rgba(255, 255, 255, 0.1);
  --ccl-color-soon-border: rgba(41, 35, 92, 0.12);
  --ccl-font-primary: "Roboto", sans-serif;
  --ccl-shadow-soft: 0 20px 60px rgba(26, 16, 64, 0.15);
  --ccl-shadow-card: 0 20px 60px rgba(16, 10, 48, 0.08);
  --ccl-section-space: 80px;
  --ccl-radius-card: 12px;
  --ccl-radius-strong: 30px;
  --ccl-radius-pill: 9999px;
  --mg-btn-swap-duration: 0.7s;
  font-family: var(--ccl-font-primary);
  color: var(--ccl-color-text);
  background: var(--ccl-color-white);
}

.central-conhecimento-page img {
  max-width: 100%;
}

.central-conhecimento-page a,
.central-conhecimento-page button {
  transition: all 0.2s ease;
}

.central-conhecimento-page.ccl-preload {
  opacity: 0;
  animation: ccl-failsafe-show 0s linear 1.6s forwards;
}

@keyframes ccl-failsafe-show {
  to {
    opacity: 1;
  }
}

.ccl-container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 64px;
}

.ccl-section-title {
  font-size: 2.375rem;
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--ccl-color-navy);
}

.ccl-section-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ccl-color-text-muted);
  margin: 0 0 20px;
}

.ccl-section-divider {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--ccl-color-accent);
}

.ccl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ccl-color-accent);
  text-decoration: none;
}

.ccl-link:hover,
.ccl-link:focus-visible {
  color: var(--ccl-color-accent-hover);
  text-decoration: underline;
}

.ccl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--ccl-color-accent);
  border-radius: 6px;
  background: var(--ccl-color-accent);
  color: var(--ccl-color-white);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
}

.ccl-btn-primary:hover,
.ccl-btn-primary:focus-visible {
  background: var(--ccl-color-accent-hover);
  border-color: var(--ccl-color-accent-hover);
  color: var(--ccl-color-white);
}

.ccl-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--ccl-color-navy-deep);
  border-radius: 6px;
  background: transparent;
  color: var(--ccl-color-navy-deep);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
}

.ccl-btn-secondary:hover,
.ccl-btn-secondary:focus-visible {
  background: var(--ccl-color-navy-deep);
  color: var(--ccl-color-white);
}

.ccl-hero {
  position: relative;
  overflow: visible;
  min-height: 601px;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.ccl-hero::before,
.ccl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ccl-hero::before {
  background: url("../img/central-conhecimento/media/hero-bg.webp") center center / cover no-repeat;
  z-index: 0;
}

.ccl-hero::after {
  background: linear-gradient(130.94deg, rgba(6, 4, 53, 0.8) 65.94%, rgba(57, 65, 149, 0.75) 98.17%);
  z-index: 1;
}

/* Ultrawide: a foto para de crescer em 2560px e fica centrada — acima disso o
   `cover` só a esticava. A seção ganha o navy de fundo para preencher as sobras
   laterais e a máscara dissolve as emendas; o scrim do ::after segue full-bleed
   porque é gradiente e não perde qualidade ao esticar. */
@media (min-width: 2560px) {
  .ccl-hero {
    background-color: var(--ccl-color-navy-deep);
  }

  .ccl-hero::before {
    width: 100%;
    max-width: 2560px;
    margin-inline: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 200px, #000 calc(100% - 200px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 200px, #000 calc(100% - 200px), transparent 100%);
  }
}

.ccl-hero__container {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-bottom: 120px;
}

.ccl-hero__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ccl-hero__title {
  --hero-delay: 0ms;
}

.ccl-hero__subtitle {
  --hero-delay: 120ms;
}

.ccl-hero__search {
  --hero-delay: 240ms;
}

.ccl-quick-menu__title {
  --hero-delay: 340ms;
}

.ccl-quick-menu__actions .ccl-quick-menu__link:nth-child(1) {
  --hero-delay: 420ms;
}

.ccl-quick-menu__actions .ccl-quick-menu__link:nth-child(2) {
  --hero-delay: 500ms;
}

.ccl-quick-menu__actions .ccl-quick-menu__link:nth-child(3) {
  --hero-delay: 580ms;
}

.ccl-hero [data-hero-anim],
.ccl-quick-menu [data-hero-anim] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--hero-delay, 0ms);
  will-change: transform, opacity;
}

body.is-loaded .ccl-hero [data-hero-anim],
body.is-loaded .ccl-quick-menu [data-hero-anim] {
  opacity: 1;
  transform: none;
}

.ccl-hero__title {
  margin: 0 0 24px;
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.95;
  color: var(--ccl-color-white);
}

.ccl-hero__title-accent {
  color: var(--ccl-color-accent);
  font-weight: 400;
}

.ccl-hero__subtitle {
  max-width: 577px;
  margin: 0 0 40px;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ccl-color-white-90);
}

.ccl-hero__search {
  position: relative;
  width: min(711px, 100%);
}

.ccl-hero__search-input {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: var(--ccl-radius-pill);
  padding: 0 72px 0 29px;
  font-size: 1rem;
  color: var(--ccl-color-text-muted);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ccl-hero__search-input::placeholder {
  color: var(--ccl-color-text-muted);
}

.ccl-hero__search-input:focus {
  outline: 2px solid rgba(255, 128, 0, 0.32);
  outline-offset: 3px;
}

.ccl-hero__search-btn {
  position: absolute;
  top: 2px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: var(--ccl-radius-pill);
  background: var(--ccl-color-accent);
}

.ccl-hero__search-btn:hover,
.ccl-hero__search-btn:focus-visible {
  background: var(--ccl-color-accent-hover);
}

.ccl-quick-menu {
  position: absolute;
  left: 50%;
  bottom: -92px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(1240px, calc(100% - 48px));
  min-height: 185px;
  padding: 28px 48px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--ccl-shadow-soft);
}

.ccl-quick-menu__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ccl-color-text-muted);
}

.ccl-quick-menu__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ccl-quick-menu__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--ccl-color-navy-deep);
  border-radius: 14px;
  background: transparent;
  color: var(--ccl-color-navy-deep);
  font-size: 0.875rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.ccl-quick-menu__link:hover,
.ccl-quick-menu__link:focus-visible {
  background: var(--ccl-color-navy-deep);
  color: var(--ccl-color-white);
}

.ccl-quick-menu__link--filled {
  border-color: var(--ccl-color-accent);
  background: var(--ccl-color-accent);
  color: var(--ccl-color-white);
}

.ccl-quick-menu__link--filled:hover,
.ccl-quick-menu__link--filled:focus-visible {
  border-color: var(--ccl-color-accent-hover);
  background: var(--ccl-color-accent-hover);
}

/* O preenchimento do hover anima no mesmo ritmo do swap (igual aos botões laranja),
   em vez de trocar de cor instantaneamente. Mantém o stagger de entrada do hero
   (opacity/transform com --hero-delay); a cor/fundo/borda usam --mg-btn-swap-duration. */
.central-conhecimento-page .ccl-quick-menu__link {
  transition:
    opacity 0.75s ease var(--hero-delay, 0ms),
    transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--hero-delay, 0ms),
    background-color var(--mg-btn-swap-duration, 0.7s) cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color var(--mg-btn-swap-duration, 0.7s) cubic-bezier(0.2, 0.7, 0.2, 1),
    color var(--mg-btn-swap-duration, 0.7s) cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Anti-FOUC: esconder conteudo cru enquanto JS nao upgrade o botao. */
.central-conhecimento-page .mg-btn-auto:not(.mg-btn) { color: transparent !important; }
.central-conhecimento-page .mg-btn-auto:not(.mg-btn) > svg,
.central-conhecimento-page .mg-btn-auto:not(.mg-btn) > img,
.central-conhecimento-page .mg-btn-auto:not(.mg-btn) > span:not(.mg-btn__inner):not(.mg-btn__swap):not(.mg-btn__swap-text):not(.mg-btn__icon-wrap):not(.mg-btn__icon) { opacity: 0 !important; visibility: hidden !important; }

.central-conhecimento-page .mg-btn {
  position: relative;
  max-width: fit-content;
}

.central-conhecimento-page .mg-btn__inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.central-conhecimento-page .mg-btn__swap {
  position: relative;
  display: inline-grid;
  overflow: hidden;
}

.central-conhecimento-page .mg-btn__swap-text {
  grid-area: 1 / 1;
  transition: transform var(--mg-btn-swap-duration, 0.7s) cubic-bezier(0.2, 0.7, 0.2, 1);
}

.central-conhecimento-page .mg-btn__swap-text.is-absolute {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 130%, 0);
}

.central-conhecimento-page .mg-btn:hover .mg-btn__swap-text.is-absolute,
.central-conhecimento-page .mg-btn:focus-visible .mg-btn__swap-text.is-absolute {
  transform: translate3d(0, 0, 0);
}

.central-conhecimento-page .mg-btn:hover .mg-btn__swap-text.is-relative,
.central-conhecimento-page .mg-btn:focus-visible .mg-btn__swap-text.is-relative {
  transform: translate3d(0, -130%, 0);
}

.central-conhecimento-page .mg-btn__icon {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  transition: transform var(--mg-btn-swap-duration, 0.7s) cubic-bezier(0.2, 0.7, 0.2, 1);
}

.central-conhecimento-page .mg-btn__icon.is-absolute {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 130%, 0);
}

.central-conhecimento-page .mg-btn:hover .mg-btn__icon.is-absolute,
.central-conhecimento-page .mg-btn:focus-visible .mg-btn__icon.is-absolute {
  transform: translate3d(0, 0, 0);
}

.central-conhecimento-page .mg-btn:hover .mg-btn__icon.is-relative,
.central-conhecimento-page .mg-btn:focus-visible .mg-btn__icon.is-relative {
  transform: translate3d(0, -130%, 0);
}

.central-conhecimento-page .mg-btn__icon-wrap {
  width: var(--mg-icon-size, 14px);
  height: var(--mg-icon-size, 14px);
}

.central-conhecimento-page .mg-btn__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ccl-acervo {
  padding: calc(var(--ccl-section-space) + 120px) 0 var(--ccl-section-space);
}

.ccl-acervo__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 33px;
  border-radius: var(--ccl-radius-card);
  text-decoration: none;
}

.ccl-acervo__card--blog {
  background: var(--ccl-color-card-light);
}

.ccl-acervo__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--ccl-color-icon-overlay);
}

.ccl-acervo__card-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ccl-color-navy);
}

.ccl-acervo__card-text {
  margin: 0 0 24px;
  color: var(--ccl-color-text-muted);
  line-height: 1.5;
}

.ccl-acervo__card--artigos {
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
  min-height: 288px;
  background: var(--ccl-color-navy);
}

.ccl-acervo__card--artigos::before,
.ccl-acervo__card--artigos::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ccl-acervo__card--artigos::before {
  background: url("../img/central-conhecimento/media/profissionais-analisando-dados-lean.webp") center top / cover no-repeat;
  opacity: 0.4;
}

.ccl-acervo__card--artigos::after {
  background: linear-gradient(to top, #060435 0%, rgba(6, 4, 53, 0.4) 50%, rgba(6, 4, 53, 0) 100%);
}

.ccl-acervo__card-content {
  position: relative;
  z-index: 1;
}

.ccl-acervo__card--artigos .ccl-acervo__card-title,
.ccl-acervo__card--artigos .ccl-acervo__card-text {
  color: var(--ccl-color-white);
}

.ccl-acervo__card--artigos .ccl-acervo__card-text {
  color: rgba(255, 255, 255, 0.8);
}

.ccl-acervo__card--glossario {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 41px;
  border: 1px solid var(--ccl-color-border);
  border-radius: var(--ccl-radius-card);
  background: var(--ccl-color-white);
  text-decoration: none;
}

.ccl-acervo__glossario-main {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ccl-acervo__glossario-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 79px;
  height: 80px;
  border-radius: var(--ccl-radius-pill);
  background: var(--ccl-color-card-light);
  flex-shrink: 0;
}

.ccl-acervo__glossario-copy {
  max-width: 662px;
}

.ccl-planet {
  position: relative;
  background: var(--ccl-color-card-light);
  overflow: hidden;
  padding-bottom: 56px; /* 560 (faixa) − 55 (pt container) − 449 (celular) */
}

.ccl-planet__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ccl-planet__decor img {
  position: absolute;
  display: block;
}

.ccl-planet__blob-left {
  left: 0;
  top: 0;
  width: 631px;
  height: 560px;
}

.ccl-planet__blob-bottom {
  left: calc(50% - 250px);
  top: 456px;
  width: 179px;
  height: 104px;
}

.ccl-planet__circle {
  left: calc(50% - 606px);
  top: 86px;
  width: 471px;
  height: 471px;
}

.ccl-planet__dots {
  left: calc(50% - 520px);
  top: 105px;
  width: 300px;
  height: 300px;
}

.ccl-planet__container {
  position: relative;
  z-index: 1;
  padding-top: 55px;
}

.ccl-planet__media {
  position: relative;
}

/* O deslocamento do hover (oposto ao cursor) é aplicado via JS
   (initPlanetPhoneParallax); a transição suaviza o movimento e o retorno */
.ccl-planet__phone {
  display: block;
  margin-left: 35px;
  transition: transform 0.2s ease;
}

.ccl-planet__body {
  padding-top: 70px;
}

.ccl-planet .ccl-section-title {
  max-width: 525px;
  margin-bottom: 22px;
}

.ccl-planet .ccl-section-subtitle {
  max-width: 506px;
  margin-bottom: 22px;
}

.ccl-planet .ccl-section-divider {
  margin-bottom: 56px;
}

.ccl-media {
  padding: var(--ccl-section-space) 0;
  background: linear-gradient(121.11deg, #1d1d4b 29.663%, #4444b1 138.39%);
}

.ccl-media .ccl-section-title,
.ccl-media .ccl-section-subtitle {
  color: var(--ccl-color-white);
}

.ccl-media .ccl-section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
}

.ccl-media__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid var(--ccl-color-surface-border);
  border-radius: var(--ccl-radius-card);
  background: var(--ccl-color-surface);
  box-shadow: none;
  padding: 0;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.ccl-media__card:hover,
.ccl-media__card:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.ccl-media__image-wrap {
  position: relative;
  overflow: hidden;
  height: 204px;
  border-radius: 12px 12px 0 0;
}

.ccl-media__image-wrap--purple {
  height: 200px;
  background: linear-gradient(122.3deg, #3d1b80 0%, #1a0840 100%);
}

.ccl-media__image-wrap--blue {
  height: 200px;
  background: linear-gradient(122.23deg, #1a4060 0%, #0a2040 100%);
}

.ccl-media__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ccl-media__image--cropped {
  position: absolute;
  top: -7%;
  left: -4%;
  width: 107%;
  height: 130%;
  max-width: none;
  object-fit: cover;
}

.ccl-media__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 15px;
  padding: 28px 24px;
}

.ccl-media__card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ccl-color-white);
}

.ccl-media__card-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  flex: 1;
}

.ccl-materials {
  position: relative;
  overflow: hidden;
  padding: var(--ccl-section-space) 0;
  background: #f0eff9;
}

.ccl-materials::before,
.ccl-materials::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.ccl-materials::before {
  top: -57px;
  left: -65px;
  width: 183px;
  height: 174px;
  border: 42px solid rgba(41, 35, 92, 0.08);
}

.ccl-materials::after {
  right: -90px;
  bottom: -160px;
  width: 257px;
  height: 259px;
  border: 42px solid rgba(255, 128, 0, 0.1);
}

.ccl-materials__grid {
  position: relative;
  z-index: 1;
}

.ccl-materials__subtitle {
  max-width: 420px;
  color: var(--ccl-color-navy);
}

.ccl-materials__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 33px 29px 34px;
  border: 1px solid rgba(54, 26, 103, 0.25);
  border-radius: 10px;
  background: var(--ccl-color-white);
}

.ccl-materials__icon-wrap {
  display: flex;
  align-items: flex-start;
}

.ccl-materials__card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ccl-color-navy-deep);
}

.ccl-materials__card-text {
  margin: 0;
  color: var(--ccl-color-text-muted);
  line-height: 1.5;
  flex: 1;
}

#download-materiais > .ccl-container > .row > .col-12:nth-child(2) > .row > .col-12:nth-child(1) > .ccl-materials__card > .ccl-materials__card-title,
#download-materiais > .ccl-container > .row > .col-12:nth-child(2) > .row > .col-12:nth-child(1) > .ccl-materials__card > .ccl-materials__card-text,
#download-materiais > .ccl-container > .row > .col-12:nth-child(2) > .row > .col-12:nth-child(2) > .ccl-materials__card > .ccl-materials__card-title,
#download-materiais > .ccl-container > .row > .col-12:nth-child(2) > .row > .col-12:nth-child(2) > .ccl-materials__card > .ccl-materials__card-text {
  text-align: left;
}

.ccl-topics {
  padding: var(--ccl-section-space) 0;
}

.ccl-topics__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}

.ccl-topics__header .ccl-section-title {
  max-width: 838px;
}

.ccl-topics__header .ccl-section-subtitle {
  max-width: 596px;
}

.ccl-topics__grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ccl-topics__row {
  display: grid;
  gap: 8px;
}

.ccl-topics__row--five {
  grid-template-columns: repeat(5, 1fr);
}

.ccl-topics__row--four {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ccl-topics__row--four > .ccl-topics__pill {
  flex: 0 0 calc((100% - 32px) / 5);
}

.ccl-topics__row--mixed {
  grid-template-columns: repeat(4, 1fr);
}

.ccl-topics__pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 15px 17px;
  border: 1px solid #e0ddf0;
  border-radius: 10px;
  background: rgba(68, 68, 68, 0.04);
  color: var(--ccl-color-navy-deep);
  text-decoration: none;
  text-align: left;
  transition: background-color 0.6s ease, border-color 0.6s ease, color 0.6s ease;
}

button.ccl-topics__pill {
  width: 100%;
  appearance: none;
  cursor: pointer;
}

.ccl-topics__pill:hover,
.ccl-topics__pill:focus-visible {
  border-color: var(--ccl-color-navy-deep);
  transform: translateY(-1px);
}

.ccl-topics__icon-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0edf9;
  flex-shrink: 0;
  transition: background-color 0.6s ease;
}

.ccl-topics__icon-bg img {
  transition: filter 0.6s ease;
}

.ccl-topics__pill-label {
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.4;
}

.ccl-topics__pill--active-orange {
  border-color: var(--ccl-color-accent);
  background: var(--ccl-color-accent);
  color: var(--ccl-color-white);
}

.ccl-topics__pill--active-orange .ccl-topics__icon-bg {
  background: rgba(255, 255, 255, 0.4);
}

.ccl-topics__pill--active-navy {
  border-color: var(--ccl-color-navy-deep);
  background: var(--ccl-color-navy-deep);
  color: var(--ccl-color-white);
}

.ccl-topics__pill--active-navy .ccl-topics__icon-bg {
  background: rgba(255, 255, 255, 0.12);
}

/* Icone sempre branco quando o pill esta aceso (contraste em laranja e azul). */
.ccl-topics__pill--active-orange .ccl-topics__icon-bg img,
.ccl-topics__pill--active-navy .ccl-topics__icon-bg img {
  filter: brightness(0) invert(1);
}

/* Swap do label (movimento para cima, sem seta) disparado ao passar o mouse/foco no pill inteiro */
.central-conhecimento-page .ccl-topics__pill:hover .mg-btn__swap-text.is-absolute,
.central-conhecimento-page .ccl-topics__pill:focus-visible .mg-btn__swap-text.is-absolute {
  transform: translate3d(0, 0, 0);
}

.central-conhecimento-page .ccl-topics__pill:hover .mg-btn__swap-text.is-relative,
.central-conhecimento-page .ccl-topics__pill:focus-visible .mg-btn__swap-text.is-relative {
  transform: translate3d(0, -130%, 0);
}

.ccl-newsletter {
  --newsletter-section-bg: var(--ccl-color-navy-deep);
  --newsletter-section-image: url("../img/home/home-newsletter-bg.webp");
  --newsletter-section-color: var(--ccl-color-white);
  --newsletter-title-color: var(--ccl-color-accent);
  --newsletter-strong-color: var(--ccl-color-white);
  --newsletter-input-bg: var(--ccl-color-white);
  --newsletter-input-focus-color: var(--ccl-color-accent);
  --newsletter-button-bg: #129396;
  --newsletter-button-color: var(--ccl-color-white);
  --newsletter-checkbox-checked-bg: #129396;
  --newsletter-checkbox-checked-border: #129396;
  --newsletter-checkbox-focus-color: var(--ccl-color-accent);
  --newsletter-checkbox-check-color: var(--ccl-color-white);
}

.ccl-newsletter .home-newsletter__text {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.ccl-guidance {
  padding: 60px 0;
}

.ccl-guidance__card {
  position: relative;
  min-height: 351px;
  overflow: visible;
  border-radius: var(--ccl-radius-strong);
}

.ccl-guidance__card::before,
.ccl-guidance__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.ccl-guidance__card::before {
  background: url("../img/central-conhecimento/media/precisa-bg-building.webp") center 30% / cover no-repeat;
  z-index: 0;
}

.ccl-guidance__card::after {
  background: linear-gradient(to right, rgba(41, 35, 92, 0.7) 0%, rgba(41, 35, 92, 0.95) 40%, rgba(41, 35, 92, 0.95) 100%);
  z-index: 1;
}

.ccl-guidance__person {
  position: absolute;
  left: 5%;
  bottom: 0;
  z-index: 2;
  height: 128%;
  width: auto;
  pointer-events: none;
}

.ccl-guidance__content {
  position: absolute;
  top: 50%;
  left: 45%;
  right: 5%;
  z-index: 3;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.ccl-guidance__title {
  margin: 0 0 16px;
  font-size: 2.375rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ccl-color-white);
}

.ccl-guidance__text {
  margin: 0;
  max-width: 583px;
  line-height: 1.5;
  color: var(--ccl-color-white);
}

.ccl-guidance__divider {
  display: block;
  width: 55px;
  height: 3px;
  margin: 18px 0 22px;
  background: var(--ccl-color-accent);
}

@media (max-width: 992px) {
  .ccl-container {
    padding-inline: 24px;
  }

  .ccl-hero__title {
    font-size: 2.75rem;
  }

  .ccl-quick-menu {
    min-height: unset;
    padding: 24px;
    bottom: -60px;
  }

  .ccl-planet {
    padding-bottom: 48px;
  }

  .ccl-planet__decor .ccl-planet__blob-bottom,
  .ccl-planet__decor .ccl-planet__dots {
    display: none;
  }

  .ccl-planet__container {
    padding-top: 48px;
  }

  .ccl-planet__phone {
    margin: 0 auto;
    max-width: 80%;
    height: auto;
  }

  .ccl-planet__body {
    padding-top: 40px;
    max-width: 549px; /* 525 (título) + 2×12 (gutter do col) */
    margin: 0 auto;
  }

  .ccl-materials__subtitle {
    max-width: 100%;
  }

  .ccl-guidance__card {
    min-height: 320px;
  }

  .ccl-guidance__person {
    left: -2%;
    height: 120%;
  }

  .ccl-guidance__content {
    left: 42%;
  }

  .ccl-topics__row--five {
    grid-template-columns: repeat(3, 1fr);
  }

  .ccl-topics__row--four > .ccl-topics__pill {
    flex: 0 0 calc((100% - 24px) / 3);
  }

  .ccl-topics__row--mixed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ccl-section-title,
  .ccl-guidance__title {
    font-size: 2rem;
  }

  .ccl-hero {
    padding-top: 48px;
  }

  .ccl-hero__container {
    padding-bottom: 40px;
  }

  .ccl-hero__title {
    font-size: 2rem;
  }

  .ccl-hero__subtitle {
    font-size: 1rem;
  }

  /* O hero é flex; sem wrap, o quick-menu static vira item na mesma
     linha do container e estoura a viewport (~461px de linha) */
  .ccl-hero {
    flex-wrap: wrap;
  }

  .ccl-quick-menu {
    position: static;
    width: auto;
    flex: 1 1 100%;
    margin: 0 24px 40px;
    transform: none;
  }

  .ccl-quick-menu__actions .ccl-quick-menu__link:nth-child(1),
  .ccl-quick-menu__actions .ccl-quick-menu__link:nth-child(2),
  .ccl-quick-menu__actions .ccl-quick-menu__link:nth-child(3) {
    --hero-delay: 0ms;
  }

  .ccl-quick-menu__actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .ccl-acervo {
    padding: 48px 0;
  }

  .ccl-acervo__card--glossario,
  .ccl-acervo__glossario-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .ccl-media__image-wrap,
  .ccl-media__image-wrap--purple,
  .ccl-media__image-wrap--blue {
    height: 180px;
  }

  .ccl-topics__row--five {
    grid-template-columns: repeat(2, 1fr);
  }

  .ccl-topics__row--four > .ccl-topics__pill {
    flex: 0 0 calc((100% - 8px) / 2);
  }

  .ccl-guidance {
    padding: 40px 0;
  }

  .ccl-guidance__card {
    overflow: hidden;
    min-height: unset;
  }

  .ccl-guidance__person {
    display: none;
  }

  .ccl-guidance__content {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    padding: 40px 28px;
  }

  .ccl-guidance__content .ccl-btn-primary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .central-conhecimento-page.ccl-preload {
    opacity: 1;
    animation: none;
  }

  .ccl-hero [data-hero-anim],
  .ccl-quick-menu [data-hero-anim] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .central-conhecimento-page .mg-btn__swap-text,
  .central-conhecimento-page .mg-btn__icon {
    transition: none;
  }

  .central-conhecimento-page .lw-btn-shimmer::after {
    display: none;
    animation: none;
  }

  .ccl-planet__phone {
    transition: none;
  }
}

@media (max-width: 576px) {
  .ccl-topics__row--five,
  .ccl-topics__row--mixed {
    grid-template-columns: 1fr;
  }

  .ccl-topics__row--four {
    flex-direction: column;
  }

  .ccl-topics__row--four > .ccl-topics__pill {
    flex: 1 1 100%;
  }
}

/* ========== AUTOCOMPLETE ========== */

.ccl-hero__search {
  position: relative;
  z-index: 9999;
}

.ccl-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(711px, 100%);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
              0 0 0 1px rgba(0, 0, 0, 0.06);
  z-index: 99999;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  transform-origin: top center;
}

.ccl-autocomplete.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ccl-autocomplete__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 480px;
  overflow-y: auto;
}

.ccl-autocomplete__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.14s ease;
  text-decoration: none;
  color: inherit;
}

.ccl-autocomplete__item:hover,
.ccl-autocomplete__item.is-active {
  background-color: #f7f5ff;
}

.ccl-autocomplete__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #94a3b8;
  background-color: transparent;
  margin-top: 2px;
}

.ccl-autocomplete__item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
  align-items: flex-start;
  text-align: left;
}

.ccl-autocomplete__item-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.ccl-autocomplete__item-name {
  font-size: 0.98rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.ccl-autocomplete__item-name b,
.ccl-autocomplete__item-name strong {
  color: #1C004D;
  font-weight: 700;
}

.ccl-autocomplete__empty {
  padding: 24px 20px;
  text-align: center;
  color: #8b8b9e;
  font-size: 0.9rem;
}

.ccl-autocomplete__empty-icon {
  display: block;
  margin: 0 auto 12px;
  font-size: 2rem;
  opacity: 0.4;
}

/* Scrollbar */
.ccl-autocomplete__list::-webkit-scrollbar {
  width: 6px;
}

.ccl-autocomplete__list::-webkit-scrollbar-track {
  background: transparent;
}

.ccl-autocomplete__list::-webkit-scrollbar-thumb {
  background: #e2e2ea;
  border-radius: 3px;
}

.ccl-autocomplete__list::-webkit-scrollbar-thumb:hover {
  background: #c8c8d5;
}

@media (max-width: 768px) {
  .ccl-autocomplete {
    width: calc(100% - 32px);
  }

  .ccl-autocomplete__list {
    max-height: 360px;
  }

  .ccl-autocomplete__item {
    padding: 10px 12px;
    gap: 10px;
  }

  .ccl-autocomplete__item-name {
    font-size: 0.9rem;
  }
}
