/*
 * Mundo dos Painéis 2.3.3
 * Regra final e isolada para o banner da home.
 * Carregada depois do style.css para neutralizar estilos históricos.
 */

html body.home.mdp-theme .mdp-home-banner-shell,
html body.home.mdp-theme .mdp-home-banner-shell > .wp-block-shortcode,
html body.home.mdp-theme .mundo-home-banner-slider,
html body.home.mdp-theme .mundo-home-banner-slider__inner,
html body.home.mdp-theme .mundo-home-banner-slider__viewport,
html body.home.mdp-theme .mundo-home-banner-slider__placeholder,
html body.home.mdp-theme .mundo-home-banner-slider__track,
html body.home.mdp-theme .mundo-home-banner-slider__slide,
html body.home.mdp-theme .mundo-home-banner-slider__link,
html body.home.mdp-theme .mundo-home-banner-slider__image {
  box-sizing: border-box !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

html body.home.mdp-theme .mdp-home-banner-shell,
html body.home.mdp-theme .mdp-home-banner-shell > .wp-block-shortcode,
html body.home.mdp-theme .mundo-home-banner-slider,
html body.home.mdp-theme .mundo-home-banner-slider__inner,
html body.home.mdp-theme .mundo-home-banner-slider__viewport,
html body.home.mdp-theme .mundo-home-banner-slider__placeholder {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.home.mdp-theme .mundo-home-banner-slider__viewport,
html body.home.mdp-theme .mundo-home-banner-slider__track,
html body.home.mdp-theme .mundo-home-banner-slider__slide,
html body.home.mdp-theme .mundo-home-banner-slider__link {
  height: 250px !important;
  min-height: 250px !important;
  max-height: 250px !important;
}

html body.home.mdp-theme .mundo-home-banner-slider__viewport {
  overflow: hidden !important;
}

html body.home.mdp-theme .mundo-home-banner-slider__track {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  align-items: stretch !important;
}

html body.home.mdp-theme .mundo-home-banner-slider__slide {
  position: relative !important;
  display: block !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

html body.home.mdp-theme .mundo-home-banner-slider__link {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
}

html body.home.mdp-theme .mundo-home-banner-slider__image {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* Banner e benefícios praticamente encostados. */
html body.home.mdp-theme .mdp-home-banner-shell + .wp-block-shortcode,
html body.home.mdp-theme main.mdp-home-main > .wp-block-shortcode,
html body.home.mdp-theme .mundo-home-benefits {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}

html body.home.mdp-theme .mundo-home-benefits {
  padding-bottom: 2px !important;
}

@media (max-width: 900px) {
  html,
  body.home.mdp-theme {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  html body.home.mdp-theme .wp-site-blocks,
  html body.home.mdp-theme .mdp-home-top-shell,
  html body.home.mdp-theme main.mdp-home-main,
  html body.home.mdp-theme .mdp-home-banner-shell,
  html body.home.mdp-theme .mdp-home-banner-shell > .wp-block-shortcode {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
  }

  /* No celular o carrossel deixa de usar a faixa horizontal.
     Apenas o slide ativo ocupa o espaço inteiro. */
  html body.home.mdp-theme .mundo-home-banner-slider__track {
    display: block !important;
    transform: none !important;
    overflow: hidden !important;
  }

  html body.home.mdp-theme .mundo-home-banner-slider__slide {
    display: none !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  html body.home.mdp-theme .mundo-home-banner-slider__slide.is-active {
    display: block !important;
  }

  html body.home.mdp-theme .mundo-home-banner-slider__viewport,
  html body.home.mdp-theme .mundo-home-banner-slider__track,
  html body.home.mdp-theme .mundo-home-banner-slider__slide,
  html body.home.mdp-theme .mundo-home-banner-slider__link {
    height: clamp(126px, 35vw, 148px) !important;
    min-height: clamp(126px, 35vw, 148px) !important;
    max-height: 148px !important;
  }

  html body.home.mdp-theme .mundo-home-banner-slider__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  html body.home.mdp-theme .mundo-home-banner-slider,
  html body.home.mdp-theme .mundo-home-banner-slider__inner,
  html body.home.mdp-theme .mundo-home-banner-slider__viewport {
    background: transparent !important;
  }

  html body.home.mdp-theme .mundo-home-benefits {
    width: calc(100% - 6px) !important;
    margin: 2px auto 0 !important;
    padding: 0 0 1px !important;
  }

  html body.home.mdp-theme .mundo-home-benefits__grid {
    gap: 4px !important;
  }
}
