/* ID Federal Halloween v3.3.0 - imagem APROVADA da Central de Marketing.
 * Usa somente o pano de fundo: cards, arte real e formularios ficam em DOM.
 * A imagem ja possui placas e letreiros: impedir duplicacao de placas v2.x.
 */
html body.idf-halloween-active.idf-hw-central-v33,
html body.idf-halloween-active.idf-hw-demo-central.idf-hw-central-v33 {
  background-color:#071223 !important;
  background-image:url('./halloween-central-v33-desktop.webp') !important;
  background-position:center top !important;
  background-repeat:no-repeat !important;
  background-size:100% auto !important; /* nunca 100% 100% */
  background-attachment:scroll !important;
}
/* As quatro placas e a de boas-vindas ja estao na fotografia aprovada.
   Sem placas CSS duplicadas e sem interferir com o conteudo do portal. */
body.idf-halloween-active.idf-hw-central-v33 #idf-hw-story .idf-journey-cards {
  display:none !important;
}
/* Integracao sutil do painel funcional, mantendo leitura dos dados. */
html body.idf-halloween-active.idf-hw-central-v33 .idf-hw-portal-root:not(body),
html body.idf-halloween-active.idf-hw-central-v33 .demo-panel {
  background:rgba(11,17,33,.76) !important;
  border:1px solid rgba(158,177,219,.22) !important;
  box-shadow:0 20px 60px rgba(0,0,0,.36) !important;
  backdrop-filter:blur(4px) !important;
}
/* Layout de pagina e textos NAO sao alterados. O painel real continua na
   mesma posicao e largura do template atual. */
@media(max-width:700px) {
  html body.idf-halloween-active.idf-hw-central-v33,
  html body.idf-halloween-active.idf-hw-demo-central.idf-hw-central-v33 {
    background-image:url('./halloween-central-v33-mobile.webp') !important;
    background-position:center top !important;
    background-size:100% auto !important;
    background-repeat:no-repeat !important;
  }
  html body.idf-halloween-active.idf-hw-central-v33 .idf-hw-portal-root:not(body),
  html body.idf-halloween-active.idf-hw-central-v33 .demo-panel {
    background-color:rgba(11,17,33,.91) !important;
    backdrop-filter:blur(2px) !important;
  }
}
@media(prefers-reduced-motion:reduce) {
  body.idf-halloween-active.idf-hw-central-v33 #idf-halloween-scene .idf-hw-witch-flight {display:none !important;}
}

/* v3.5: Central desktop. Exibe a fotografia INTEIRA ate o rodape, inclusive
   o caminho iluminado junto das placas e dos cards. O plugin limita a grade
   a quatro artes por pagina, portanto o ajuste vertical e discreto.
   Mantem as laterais, nao usa cover e nao altera os cards. */
@media (min-width:1050px) {
  html body.idf-halloween-active.idf-hw-central-v33,
  html body.idf-halloween-active.idf-hw-demo-central.idf-hw-central-v33 {
    background-size:100% auto!important;
    min-height:100vh!important;
  }
}

/* v3.8.2 - garantia final do wallpaper da Central real.
 * Corrige instalações em que a camada de decoração aparecia, mas o body
 * permanecia com fundo escuro porque uma configuração legada não marcava a Central. */
html body.idf-halloween-active.idf-hw-central-v33 {
  background-color:#071223 !important;
  background-image:url('./halloween-central-v33-desktop.webp') !important;
  background-repeat:no-repeat !important;
  background-position:center top !important;
  background-size:100% auto !important;
  background-attachment:scroll !important;
}
@media (max-width:700px) {
  html body.idf-halloween-active.idf-hw-central-v33 {
    background-image:url('./halloween-central-v33-mobile.webp') !important;
    background-size:100% auto !important;
    background-position:center top !important;
  }
}

/* v3.8.3 - remove a sombra lateral do painel principal da Central.
 * O wallpaper permanece intacto e visivel; somente o halo/box-shadow que
 * escurecia as laterais do fundo e removido. Cards internos nao sao alterados. */
html body.idf-halloween-active.idf-hw-central-v33 .idf-hw-portal-root:not(body),
html body.idf-halloween-active.idf-hw-central-v33 .demo-panel,
html body.idf-halloween-active.idf-hw-central-v33 :is(.marketing-wrapper,.marketing-dashboard,.dashboard-wrapper,.portal-container,.portal-main,.marketing-main) {
  box-shadow:none !important;
}
