/* ═══════════════════════════════════════════════════════════════════
 *  ANI — SITE PÚBLICO · acabamento visual + animações (v1.9.9)
 *  Carregado depois de styles.css em todas as páginas públicas.
 *  Mesma identidade: azul #2c3896, Inter, claro/escuro.
 *  Animações desligam com "reduzir movimento" do sistema.
 * ═══════════════════════════════════════════════════════════════════ */

:root {
  --pb-raio: 16px;
  --pb-raio-sm: 10px;
  --pb-borda: #E3E7F1;
  --pb-sombra: 0 1px 2px rgba(17, 22, 58, .04), 0 6px 20px rgba(17, 22, 58, .06);
  --pb-sombra-alta: 0 4px 10px rgba(17, 22, 58, .06), 0 22px 46px rgba(17, 22, 58, .14);
  --pb-faixa: linear-gradient(125deg, #2f3c9e 0%, #2c3896 30%, #222c80 60%, #161d58 100%);
  --pb-textura: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 16px);
  --pb-marinho: linear-gradient(180deg, #11163f 0%, #0b0f2c 100%);
}
html[data-tema="escuro"] {
  --pb-borda: #242a38;
  --pb-sombra: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
  --pb-sombra-alta: 0 4px 10px rgba(0, 0, 0, .4), 0 22px 46px rgba(0, 0, 0, .55);
}

/* Barra de progresso de leitura (criada pelo script) */
.pb-progresso {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 2000; pointer-events: none;
  transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #5B67D0, #2c3896, #8C97E8);
  box-shadow: 0 0 10px rgba(91, 103, 208, .6);
}

/* ═══════════ TOPO ═══════════ */
.topbar { background: linear-gradient(90deg, #0b0f2c, #121848 50%, #0b0f2c); }
html[data-tema="escuro"] .topbar { background: linear-gradient(90deg, #06081a, #0c1033 50%, #06081a); }
.topbar-msg i { color: #8C97E8; }
.topbar-login { border-radius: 999px !important; transition: background .2s, transform .2s !important; }
.topbar-login:hover { transform: translateY(-1px); }
.topbar-social a { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s, color .2s, transform .25s; }
.topbar-social a:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }

.site-header {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
}
html[data-tema="escuro"] .site-header { background: rgba(20, 23, 30, .9); }
.site-header.pb-rolou { box-shadow: 0 10px 30px -14px rgba(17, 22, 58, .35) !important; }
.brand img { transition: transform .5s cubic-bezier(.2, .75, .25, 1), height .25s ease; }
.brand:hover img { transform: rotate(-8deg) scale(1.04); }
.brand-texto strong { letter-spacing: .1em; }
.site-nav a { border-radius: 999px; transition: color .2s, background .2s; position: relative; }
.site-nav a:hover { background: rgba(44, 56, 150, .07); }
html[data-tema="escuro"] .site-nav a:hover { background: rgba(140, 151, 232, .1); }
.site-nav a.ativo { background: rgba(44, 56, 150, .08); }
html[data-tema="escuro"] .site-nav a.ativo { background: rgba(140, 151, 232, .12); }
.site-nav a.ativo::after { left: 50%; right: auto; width: 18px; margin-left: -9px; bottom: .2rem; height: 3px; border-radius: 3px; }
.header-cta { border-radius: 999px !important; }
.tema-toggle, .busca-toggle { border-radius: 12px !important; }

.cat-bar { background: var(--pb-textura), linear-gradient(90deg, #2c3896, #222c80 60%, #1b2368); border-top: 0; }
.cat-bar a { position: relative; padding-block: .15rem; }
.cat-bar a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.cat-bar a:hover::after { transform: scaleX(1); }

/* ═══════════ DESTAQUE DA HOME ═══════════ */
.hero {
  background:
    radial-gradient(900px 360px at 100% 0%, rgba(44, 56, 150, .07), transparent 60%),
    var(--branco);
}
.hero-main-img {
  border-radius: 20px;
  box-shadow: var(--pb-sombra-alta);
  isolation: isolate;
}
.hero-main-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 15, 44, .35));
}
.hero-main-img img { transition: transform 1.2s cubic-bezier(.2, .75, .25, 1); }
.hero-main-link:hover .hero-main-img img { transform: scale(1.05); }
.hero-tag {
  z-index: 1; border-radius: 999px; padding: .4rem .85rem;
  background: rgba(44, 56, 150, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(44, 56, 150, .4);
  display: inline-flex; align-items: center; gap: .4rem;
}
.hero-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pb-pisca 1.6s ease-in-out infinite; }
@keyframes pb-pisca { 50% { opacity: .25; } }
.hero-main-body h1 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -.02em; }
.hero-side { gap: .6rem; }
.hero-side-item a {
  padding: .6rem; border: 1px solid transparent !important; border-radius: 14px;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.hero-side-item a:hover { background: var(--branco); border-color: var(--pb-borda) !important; transform: translateX(4px); box-shadow: var(--pb-sombra); }
.hero-side-item img { border-radius: 10px; transition: transform .5s; }
.hero-side-item a:hover img { transform: scale(1.05); }

/* ═══════════ FAIXA DE TÍTULO DAS PÁGINAS ═══════════ */
.page-hero {
  background:
    var(--pb-textura),
    radial-gradient(700px 300px at 85% 0%, rgba(140, 151, 232, .35), transparent 60%),
    var(--pb-faixa);
  padding: 4rem 0 3.5rem;
  isolation: isolate;
}
.page-hero::after {
  width: 420px; height: 420px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 65%);
  animation: pb-aurora-a 16s ease-in-out infinite alternate;
}
.page-hero::before {
  width: 360px; height: 360px; right: 22%; bottom: -220px;
  background: radial-gradient(circle, rgba(91, 103, 208, .45), rgba(91, 103, 208, 0) 65%);
  animation: pb-aurora-b 19s ease-in-out infinite alternate;
}
@keyframes pb-aurora-a { to { transform: translate(-70px, 60px) scale(1.15); } }
@keyframes pb-aurora-b { to { transform: translate(80px, -40px) scale(1.1); } }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; padding: .35rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.page-hero-tag {
  border-radius: 999px; padding: .35rem .85rem;
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid rgba(255, 255, 255, .2);
}
.page-hero-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; animation: pb-ponto 2s ease-out infinite; }
@keyframes pb-ponto { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.pb-fx .page-hero .breadcrumb { animation: pb-desce .6s .05s cubic-bezier(.2, .75, .25, 1) both; }
.pb-fx .page-hero-tag { animation: pb-entra .6s .15s cubic-bezier(.2, .75, .25, 1) both; }
.pb-fx .page-hero h1 { animation: pb-entra .7s .25s cubic-bezier(.2, .75, .25, 1) both; }
.pb-fx .page-hero p { animation: pb-entra .7s .38s cubic-bezier(.2, .75, .25, 1) both; }
@keyframes pb-desce { from { opacity: 0; transform: translateY(-12px); } }
@keyframes pb-entra { from { opacity: 0; transform: translateY(18px); } }

/* ═══════════ SEÇÕES ═══════════ */
.section-cinza {
  background:
    radial-gradient(rgba(44, 56, 150, .06) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--cinza-100);
}
html[data-tema="escuro"] .section-cinza {
  background:
    radial-gradient(rgba(140, 151, 232, .06) 1px, transparent 1.4px) 0 0 / 22px 22px,
    #12151c;
}
.section-header { border-bottom: 0; position: relative; }
.section-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--azul) 0, var(--azul) 64px, var(--cinza-200) 64px);
}
html[data-tema="escuro"] .section-header::after { background: linear-gradient(90deg, #8C97E8 0, #8C97E8 64px, var(--cinza-200) 64px); }
.section-title::before { width: 5px; border-radius: 4px; background: linear-gradient(180deg, #5B67D0, #1e2870); }
.pb-fx .section-header.pb-visto .section-title::before { animation: pb-cresce-y .6s cubic-bezier(.2, .75, .25, 1) both; }
.pb-fx .section-header.pb-visto::after { animation: pb-cresce-x 1s .1s cubic-bezier(.2, .75, .25, 1) both; transform-origin: left; }
@keyframes pb-cresce-y { from { transform: translateY(-50%) scaleY(0); } }
@keyframes pb-cresce-x { from { transform: scaleX(0); } }
.link-ver-todas { padding: .35rem .8rem; border-radius: 999px; background: rgba(44, 56, 150, .07); transition: background .2s, color .2s, gap .2s; }
.link-ver-todas:hover { background: var(--azul); color: #fff !important; gap: .55rem; }
html[data-tema="escuro"] .link-ver-todas { background: rgba(140, 151, 232, .12); color: #A9B2F2; }

/* ═══════════ CARTÕES ═══════════ */
.card {
  border-radius: var(--pb-raio);
  border-color: var(--pb-borda);
  box-shadow: var(--pb-sombra);
  transition: transform .35s cubic-bezier(.2, .75, .25, 1), box-shadow .35s, border-color .35s, background-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--pb-sombra-alta); border-color: rgba(44, 56, 150, .18); }
html[data-tema="escuro"] .card { border-color: var(--pb-borda); }
html[data-tema="escuro"] .card:hover { border-color: rgba(140, 151, 232, .3); }
.noticia-card .noticia-img { position: relative; }
.noticia-card .noticia-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 15, 44, .3));
  opacity: 0; transition: opacity .35s;
}
.noticia-card:hover .noticia-img::after { opacity: 1; }
.noticia-img img { transition: transform .8s cubic-bezier(.2, .75, .25, 1); }
.noticia-card:hover .noticia-img img { transform: scale(1.08); }
.noticia-body { padding: 1.1rem 1.15rem 1.2rem; }
.categoria {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .18rem .55rem; border-radius: 999px;
  background: rgba(44, 56, 150, .08);
}
html[data-tema="escuro"] .categoria { background: rgba(140, 151, 232, .14); color: #B8C0FF !important; }
.pilar { position: relative; overflow: hidden; }
.pilar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #2c3896, #5B67D0); transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2, .75, .25, 1);
}
.pilar:hover::before { transform: scaleX(1); }
.pilar-icon {
  background: linear-gradient(135deg, #3F4DB8, #1e2870) !important; color: #fff !important;
  border-radius: 16px; box-shadow: 0 10px 22px rgba(30, 40, 112, .28);
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.pilar:hover .pilar-icon { transform: rotate(-8deg) scale(1.08); }
.info-card, .canal-card, .exp-card { border-radius: var(--pb-raio); }
.info-icon, .canal-icon { border-radius: 14px; }

/* Brilho que segue o mouse nos cartões */
.card:not(.download-card)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(44, 56, 150, .07), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:not(.download-card):hover::after { opacity: 1; }
html[data-tema="escuro"] .card:not(.download-card)::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 151, 232, .1), transparent 60%); }
.card { position: relative; }

/* ═══════════ NÚMEROS ═══════════ */
.numeros {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--pb-textura), radial-gradient(800px 300px at 50% 0%, rgba(140, 151, 232, .3), transparent 60%), var(--pb-faixa);
}
.numero-item { position: relative; padding: 1rem .5rem; }
.numero-item + .numero-item::before {
  content: ""; position: absolute; left: -.75rem; top: 20%; bottom: 20%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .25), transparent);
}
.numero-item strong { font-size: clamp(2.2rem, 4vw, 3rem); font-variant-numeric: tabular-nums; text-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.numeros-ufs li { border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, transform .2s; }
.numeros-ufs li:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.numeros-mapa a, .numeros a { text-underline-offset: 4px; }

/* ═══════════ CHAMADA (Faça parte) ═══════════ */
.cta-banner {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--pb-textura), radial-gradient(700px 300px at 100% 100%, rgba(91, 103, 208, .5), transparent 60%), linear-gradient(125deg, #222c80, #161d58) !important;
}
.cta-banner::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .1), transparent); transform: skewX(-18deg);
  animation: pb-varre 8s 1s ease-in-out infinite;
}
@keyframes pb-varre { 0% { left: -40%; } 35%, 100% { left: 130%; } }

/* ═══════════ BOTÕES ═══════════ */
.btn { border-radius: 12px; position: relative; overflow: hidden; transition: background .2s, color .2s, border-color .2s, box-shadow .25s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, #3F4DB8 0%, #2c3896 50%, #1e2870 100%);
  background-size: 200% 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 20px rgba(44, 56, 150, .3);
  transition: background-position .5s, box-shadow .25s, transform .2s;
}
.btn-primary:hover { background-position: 100% 0; background-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 12px 28px rgba(44, 56, 150, .4); }
.btn-branco { box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.btn-primary::after, .btn-branco::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg);
}
.btn-branco::after { background: linear-gradient(90deg, transparent, rgba(44, 56, 150, .14), transparent); }
.btn-primary:hover::after, .btn-branco:hover::after { animation: pb-brilho .7s ease; }
@keyframes pb-brilho { to { left: 140%; } }
.btn i { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.btn:hover i { transform: scale(1.15); }
.pb-onda { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .25; pointer-events: none; animation: pb-onda .6s ease-out forwards; }
@keyframes pb-onda { to { transform: scale(2.6); opacity: 0; } }

/* ═══════════ FORMULÁRIOS ═══════════ */
:is(.campo, .form-group) :is(input, select, textarea) { border-radius: 12px !important; transition: border-color .2s, box-shadow .25s, background .2s !important; }
:is(.campo, .form-group) :is(input, select, textarea):focus { box-shadow: 0 0 0 4px rgba(44, 56, 150, .14) !important; }
:is(.campo, .form-group):focus-within > label { color: var(--azul); }
html[data-tema="escuro"] :is(.campo, .form-group):focus-within > label { color: #A9B2F2; }

/* ═══════════ RODAPÉ ═══════════ */
.site-footer {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 320px at 0% 0%, rgba(44, 56, 150, .3), transparent 60%),
    var(--pb-marinho);
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #5B67D0, #8C97E8, #5B67D0, transparent);
}
.footer-col h2::after, .footer-col h3::after { background: linear-gradient(90deg, #5B67D0, #8C97E8); transition: width .4s cubic-bezier(.2, .75, .25, 1); }
.footer-col:hover h2::after, .footer-col:hover h3::after { width: 56px; }
.footer-col ul:not(.instagram-list) a { display: inline-flex; align-items: center; }
.footer-col ul:not(.instagram-list) a::before { content: ""; width: 0; height: 2px; margin-right: 0; background: #8C97E8; border-radius: 2px; transition: width .2s, margin-right .2s; }
.footer-col ul:not(.instagram-list) a:hover { padding-left: 0; }
.footer-col ul:not(.instagram-list) a:hover::before { width: 10px; margin-right: .4rem; }
.footer-col address i { color: #8C97E8; }
.footer-logo { transition: transform .5s cubic-bezier(.2, .75, .25, 1); }
.footer-logo:hover { transform: rotate(-8deg) scale(1.04); }
.instagram-list li a { border-radius: 12px !important; transition: background .2s, transform .2s, border-color .2s !important; }
.instagram-list li a:hover { transform: translateX(4px); }
.footer-bottom { background: rgba(0, 0, 0, .25); border-top-color: rgba(255, 255, 255, .06) !important; }

/* ═══════════ BOTÃO "VOLTAR AO TOPO" (criado pelo script) ═══════════ */
.pb-topo {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; font-size: 1.25rem;
  background: conic-gradient(#8C97E8 calc(var(--p, 0) * 360deg), rgba(255, 255, 255, .18) 0) border-box, linear-gradient(135deg, #3F4DB8, #1e2870);
  box-shadow: 0 10px 24px rgba(30, 40, 112, .35);
  opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.3, 1.4, .5, 1);
}
.pb-topo::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: linear-gradient(135deg, #3F4DB8, #1e2870); }
.pb-topo i { position: relative; transition: transform .25s; }
.pb-topo:hover i { transform: translateY(-3px); }
.pb-topo.on { opacity: 1; transform: none; pointer-events: auto; }

/* ═══════════ ENTRADA AO ROLAR A PÁGINA ═══════════ */
.pb-fx .pb-revela { opacity: 0; transform: translateY(26px); }
.pb-fx .pb-revela.pb-visto { animation: pb-surge .75s cubic-bezier(.2, .75, .25, 1) both; animation-delay: var(--pb-atraso, 0s); }
@keyframes pb-surge { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }
.pb-fx .hero-main { animation: pb-entra .8s .05s cubic-bezier(.2, .75, .25, 1) both; }
.pb-fx .hero-side-item { animation: pb-lado .6s cubic-bezier(.2, .75, .25, 1) both; }
.pb-fx .hero-side-item:nth-child(1) { animation-delay: .2s; }
.pb-fx .hero-side-item:nth-child(2) { animation-delay: .3s; }
.pb-fx .hero-side-item:nth-child(3) { animation-delay: .4s; }
.pb-fx .hero-side-item:nth-child(4) { animation-delay: .5s; }
@keyframes pb-lado { from { opacity: 0; transform: translateX(22px); } }

/* ═══════════ MOVIMENTO REDUZIDO ═══════════ */
@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .page-hero::after, .cta-banner::after, .hero-tag::before, .page-hero-tag::before { animation: none !important; }
  .pb-fx .pb-revela { opacity: 1 !important; transform: none !important; }
  .pb-fx *, .pb-fx *::before, .pb-fx *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
@media print { .pb-progresso, .pb-topo { display: none !important; } .pb-revela { opacity: 1 !important; transform: none !important; } }
