/* Animações da Gestão. Só valem com html[data-anim="1"] (ver animacoes.js): modo leve, "reduzir movimento" e "sem animações" deixam tudo parado.
   Só mexem em opacidade e posição (o navegador faz isso sem esforço, até em computador fraco). */
@keyframes anim-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes anim-barra { from { transform: scaleX(0); } to { transform: none; } }
@keyframes anim-dica { from { opacity: 0; transform: translate(-6px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }

html[data-anim="1"] .anim-entra { animation: anim-entra .45s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--ai, 0) * 55ms); }
html[data-anim="1"] .anim-barra { transform-origin: left center; animation: anim-barra .8s cubic-bezier(.22, 1, .36, 1) .3s both; }

/* menu: cor, ícone e deslize suaves ao passar o mouse */
html[data-anim="1"] a.nav-item { position: relative; z-index: 1; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
html[data-anim="1"] a.nav-item .nav-ico { transition: transform .28s cubic-bezier(.34, 1.56, .64, 1); }
html[data-anim="1"] a.nav-item:hover .nav-ico { transform: scale(1.14) rotate(-5deg); }

/* cartões do painel levantam um pouco */
html[data-anim="1"] .dash-kpi { transition: transform .25s ease, box-shadow .25s ease; }
html[data-anim="1"] .dash-kpi:hover { transform: translateY(-4px); box-shadow: 0 16px 28px -16px rgba(138, 75, 92, .45); }

/* nome do item do menu recolhido */
.dica-menu { display: none; }
html[data-anim="1"] .dica-menu {
  display: block; position: fixed; z-index: 3000; pointer-events: none; opacity: 0; transform: translate(0, -50%);
  padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--cor-marca, #8a4b5c); font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(60, 30, 40, .5), 0 0 0 1px rgba(138, 75, 92, .14); white-space: nowrap;
}
html[data-anim="1"] .dica-menu.on { opacity: 1; animation: anim-dica .2s ease-out both; }
html[data-tema="escuro"][data-anim="1"] .dica-menu { background: #2b2c32; color: #f1dfe5; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }

/* o modo leve continua mandando em tudo */
html[data-leve="1"] .dica-menu { display: none !important; }

/* faixa de descobertas no painel (descobertas.js): discreta, uma linha no computador */
.dash-descoberta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 16px; border-radius: 20px; background: var(--s-tinta-1, #fbf4f6); border: 1px solid var(--s-linha, #ecdcd6); position: relative; }
.dash-descoberta .dd-ico { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--cor-marca, #8a4b5c); }
.dash-descoberta .dd-texto { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dash-descoberta .dd-texto small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8a7c80; }
.dash-descoberta .dd-texto small i { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--cor-marca, #8a4b5c); font-weight: 700; letter-spacing: 0; text-transform: none; }
.dash-descoberta .dd-texto b { font-size: 14.5px; }
.dash-descoberta .dd-texto span { font-size: 13px; color: #6d6270; line-height: 1.35; }
.dash-descoberta .dd-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-descoberta .dd-ver { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--cor-marca, #8a4b5c); color: #fff; font-weight: 700; font-size: 13px; }
.dash-descoberta .dd-depois, .dash-descoberta .dd-conheco { border: 0; background: transparent; padding: 8px 10px; border-radius: 999px; font-size: 13px; color: #6d6270; cursor: pointer; }
.dash-descoberta .dd-depois:hover, .dash-descoberta .dd-conheco:hover { background: rgba(255, 255, 255, .8); }
.dash-descoberta .dd-off { position: absolute; right: 14px; bottom: 4px; border: 0; background: transparent; font-size: 10.5px; color: #a09498; cursor: pointer; text-decoration: underline; padding: 0; }
@media (max-width: 800px) { .dash-descoberta { padding-bottom: 22px; } }
html[data-tema="escuro"] .dash-descoberta { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
html[data-tema="escuro"] .dash-descoberta .dd-ico, html[data-tema="escuro"] .dash-descoberta .dd-texto small i { background: rgba(255, 255, 255, .08); color: var(--s-acento, #f1b9c8); }
html[data-tema="escuro"] .dash-descoberta .dd-texto span, html[data-tema="escuro"] .dash-descoberta .dd-depois, html[data-tema="escuro"] .dash-descoberta .dd-conheco { color: #c9bcc1; }

/* painel sob demanda: o bloco espera escondido até aparecer na tela */
html[data-anim="1"] .anim-espera { opacity: 0; transform: translateY(22px); }
@keyframes anim-traco { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes anim-surge { from { opacity: 0; } to { opacity: 1; } }
@keyframes anim-donut { from { opacity: 0; transform: rotate(-70deg) scale(.82); } to { opacity: 1; transform: none; } }
html[data-anim="1"] .anim-traco { stroke-dasharray: 1; stroke-dashoffset: 1; animation: anim-traco 1.3s cubic-bezier(.4, 0, .2, 1) .25s forwards; }
html[data-anim="1"] .anim-surge { opacity: 0; animation: anim-surge .7s ease .9s forwards; }
html[data-anim="1"] .anim-donut { transform-origin: 50% 50%; animation: anim-donut 1s cubic-bezier(.22, 1, .36, 1) .15s both; }

/* menu: um único fundo que desliza e persegue o mouse entre os itens */
html[data-anim="1"] .nav-secoes { position: relative; }
.nav-cacador { display: none; }
@media (hover: hover) {
  html[data-anim="1"] .nav-cacador {
    display: block; position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; opacity: 0;
    background: rgba(138, 75, 92, .11); box-shadow: 0 8px 18px -12px rgba(138, 75, 92, .6);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), width .4s cubic-bezier(.22, 1, .36, 1), height .4s cubic-bezier(.22, 1, .36, 1), border-radius .25s ease, opacity .22s ease;
  }
  html[data-anim="1"] .nav-cacador.on { opacity: 1; }
  html[data-anim="1"] a.nav-item:not(.ativa):hover { background: transparent; box-shadow: none; }
}
html[data-tema="escuro"][data-anim="1"] .nav-cacador { background: rgba(255, 255, 255, .09); box-shadow: none; }
html[data-leve="1"] .nav-cacador { display: none !important; }

/* anúncio da Sibela (anuncios.js): em tela larga fica DENTRO do banner, ao lado da mascote; em tela menor vira uma faixa fina logo ABAIXO do banner
   (o JS troca de lugar sozinho), para não esticar o topo nem empurrar o painel. */
.dash-anuncio { position: relative; align-self: flex-start; max-width: 520px; display: flex; flex-direction: column; gap: 3px; padding: 12px 38px 12px 16px; border-radius: 20px; background: rgba(255, 255, 255, .86); border: 1px solid var(--s-linha, #ecdcd6); box-shadow: 0 10px 24px -18px rgba(138, 75, 92, .55); }
.dash-anuncio small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8a7c80; }
.dash-anuncio b { font-size: 14.5px; line-height: 1.25; color: var(--cz-titulo, #4a2c33); }
.dash-anuncio span { font-size: 13px; line-height: 1.35; color: #6d6270; }
.dash-anuncio .da-botao { align-self: flex-start; margin-top: 6px; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--cor-marca, #8a4b5c); color: #fff; font-weight: 700; font-size: 13px; }
.dash-anuncio .da-fechar { position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #8a7c80; font-size: 18px; line-height: 1; cursor: pointer; }
.dash-anuncio .da-fechar:hover { background: rgba(0, 0, 0, .06); }
@media (min-width: 1360px) {
  .dash-topo > .dash-anuncio { position: absolute; right: calc(min(32%, 320px) + 36px); top: 50%; transform: translateY(-50%); width: min(300px, 28%); max-width: none; }
}
/* faixa fina abaixo do banner (telas menores): etiqueta + título + texto numa coluna, botão à direita */
.dash-topo + .dash-anuncio, .dash-anuncio.da-faixa {
  align-self: stretch; max-width: none; margin: 12px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "peq botao" "tit botao" "txt botao";
  column-gap: 14px; row-gap: 1px; align-items: center; padding: 10px 44px 10px 16px; border-radius: 18px;
}
.da-faixa small { grid-area: peq; } .da-faixa b { grid-area: tit; } .da-faixa span { grid-area: txt; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.da-faixa .da-botao { grid-area: botao; margin-top: 0; align-self: center; white-space: nowrap; }
@media (max-width: 560px) {
  /* celular: tira o texto longo; ficam etiqueta + título e o botão, em ~64px de altura */
  .da-faixa { grid-template-areas: "peq botao" "tit botao"; padding: 9px 40px 9px 14px; }
  .da-faixa span { display: none; }
  .da-faixa b { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .da-faixa .da-botao { padding: 7px 12px; font-size: 12.5px; }
}
html[data-tema="escuro"] .dash-anuncio { background: rgba(40, 32, 44, .88); border-color: rgba(255, 255, 255, .08); }
html[data-tema="escuro"] .dash-anuncio b { color: var(--s-texto, #f3e9ee); }
html[data-tema="escuro"] .dash-anuncio span { color: var(--s-apoio, #c9bcc4); }
