/*
 * Mundo dos Painéis 2.6.1
 * União definitiva entre menu e banner na página inicial.
 * Este arquivo é carregado por último para neutralizar block-gap, margens,
 * paddings e espaçadores salvos pelo Editor do Site.
 */

html body.mdp-theme .mdp-home-layout-v261,
html body.mdp-theme .mdp-home-top-shell {
  --wp--style--block-gap: 0px !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

html body.mdp-theme .mdp-home-layout-v261 > *,
html body.mdp-theme .mdp-home-top-shell > *,
html body.mdp-theme .mdp-home-layout-v261 > .wp-block-template-part,
html body.mdp-theme .mdp-home-top-shell > .wp-block-template-part,
html body.mdp-theme .mdp-home-layout-v261 > main,
html body.mdp-theme .mdp-home-top-shell > main {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

html body.mdp-theme .mdp-site-header,
html body.mdp-theme .mdp-site-header > :last-child,
html body.mdp-theme .mdp-primary-menu-shell,
html body.mdp-theme .mdp-primary-navigation,
html body.mdp-theme main.mdp-home-main,
html body.mdp-theme .mdp-home-banner-shell,
html body.mdp-theme .mdp-home-banner-shell > .wp-block-shortcode,
html body.mdp-theme .mundo-home-banner-slider,
html body.mdp-theme .mundo-home-banner-slider__inner,
html body.mdp-theme .mundo-home-banner-slider__viewport,
html body.mdp-theme .mundo-home-banner-slider__placeholder {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

html body.mdp-theme main.mdp-home-main,
html body.mdp-theme .mdp-home-banner-shell,
html body.mdp-theme .mdp-home-banner-shell > .wp-block-shortcode,
html body.mdp-theme .mundo-home-banner-slider,
html body.mdp-theme .mundo-home-banner-slider__inner,
html body.mdp-theme .mundo-home-banner-slider__viewport,
html body.mdp-theme .mundo-home-banner-slider__placeholder {
  padding-top: 0 !important;
}

html body.mdp-theme main.mdp-home-main {
  --wp--style--block-gap: 0px !important;
  gap: 0 !important;
}

/* Remove espaçadores antigos imediatamente entre o cabeçalho e o banner. */
html body.mdp-theme .mdp-home-layout-v261 > .wp-block-spacer,
html body.mdp-theme .mdp-home-top-shell > .wp-block-spacer,
html body.mdp-theme .mdp-site-header + .wp-block-spacer,
html body.mdp-theme main.mdp-home-main > .wp-block-spacer:first-child {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Também cobre uma página inicial antiga com cabeçalho e main no nível raiz. */
html body.mdp-theme .wp-site-blocks > .wp-block-template-part:first-child,
html body.mdp-theme .wp-site-blocks > .wp-block-template-part:first-child + main,
html body.mdp-theme .wp-site-blocks > main.mdp-home-main {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

@media (max-width: 900px) {
  html body.mdp-theme .mdp-home-layout-v261,
  html body.mdp-theme .mdp-home-top-shell,
  html body.mdp-theme main.mdp-home-main,
  html body.mdp-theme .mdp-home-banner-shell {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
