/*
 * Compatibilidade do shortcode com Elementor e temas WordPress.
 * Este arquivo é carregado depois do CSS principal para impedir que regras
 * globais do tema alterem o cabeçalho, o logo e a largura do site.
 */

body.ims-has-shortcode {
  overflow-x: hidden !important;
}

body:not(.ims-standalone) .ims-shortcode-embed {
  clear: both !important;
  left: auto !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw !important;
  overflow: clip !important;
  position: relative !important;
  right: auto !important;
  transform: none !important;
  width: 100vw !important;
}

.elementor .ims-shortcode-embed .ims-header,
.ims-shortcode-embed .ims-header {
  align-items: center !important;
  background: rgb(11 14 16 / 96%) !important;
  border: 0 !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr) !important;
  height: 82px !important;
  line-height: 1 !important;
  margin: 0 !important;
  max-height: 82px !important;
  max-width: none !important;
  min-height: 82px !important;
  padding: 0 max(5vw, 32px) !important;
  width: 100% !important;
  z-index: 999 !important;
}

.elementor .ims-shortcode-embed .ims-header.is-fixed,
.ims-shortcode-embed .ims-header.is-fixed {
  inset: auto !important;
  position: sticky !important;
  top: 0 !important;
}

.elementor .ims-shortcode-embed .ims-header .ims-brand,
.ims-shortcode-embed .ims-header .ims-brand {
  align-items: center !important;
  align-self: center !important;
  background: transparent !important;
  border: 0 !important;
  display: flex !important;
  float: none !important;
  height: 42px !important;
  justify-self: start !important;
  line-height: 0 !important;
  margin: 0 !important;
  max-height: 42px !important;
  max-width: 210px !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: static !important;
  width: auto !important;
}

.elementor .ims-shortcode-embed .ims-header .ims-brand img,
.ims-shortcode-embed .ims-header .ims-brand img {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
  float: none !important;
  height: 42px !important;
  margin: 0 !important;
  max-height: 42px !important;
  max-width: 210px !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
  width: auto !important;
}

.elementor .ims-shortcode-embed .ims-nav,
.ims-shortcode-embed .ims-nav {
  align-items: center !important;
  float: none !important;
  gap: 36px !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

.elementor .ims-shortcode-embed .ims-nav a,
.ims-shortcode-embed .ims-nav a {
  background: transparent !important;
  border: 0 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.elementor .ims-shortcode-embed .ims-header-cta,
.ims-shortcode-embed .ims-header-cta {
  align-self: center !important;
  float: none !important;
  justify-self: end !important;
  line-height: 1 !important;
  margin: 0 !important;
  width: auto !important;
}

.ims-shortcode-embed > main,
.ims-shortcode-embed > footer {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.ims-shortcode-embed .ims-header.is-fixed + main .ims-hero {
  min-height: calc(100vh - 82px) !important;
  padding-top: 70px !important;
}

@media (max-width: 1080px) {
  .elementor .ims-shortcode-embed .ims-header,
  .ims-shortcode-embed .ims-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .elementor .ims-shortcode-embed .ims-nav,
  .ims-shortcode-embed .ims-nav {
    display: none !important;
  }

  .elementor .ims-shortcode-embed .ims-menu-toggle,
  .ims-shortcode-embed .ims-menu-toggle {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    margin: 0 180px 0 0 !important;
  }

  .elementor .ims-shortcode-embed .ims-nav.is-open,
  .ims-shortcode-embed .ims-nav.is-open {
    align-items: stretch !important;
    background: #111719 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    left: 0 !important;
    max-width: none !important;
    padding: 12px 5vw 24px !important;
    position: absolute !important;
    right: 0 !important;
    top: 82px !important;
    width: 100% !important;
  }

  .elementor .ims-shortcode-embed .ims-nav.is-open a,
  .ims-shortcode-embed .ims-nav.is-open a {
    border-bottom: 1px solid #2d363a !important;
    padding: 17px 0 !important;
  }
}

@media (max-width: 700px) {
  .elementor .ims-shortcode-embed .ims-header,
  .ims-shortcode-embed .ims-header {
    height: 70px !important;
    max-height: 70px !important;
    min-height: 70px !important;
    padding: 0 20px !important;
  }

  .elementor .ims-shortcode-embed .ims-header .ims-brand,
  .ims-shortcode-embed .ims-header .ims-brand {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 150px !important;
  }

  .elementor .ims-shortcode-embed .ims-header .ims-brand img,
  .ims-shortcode-embed .ims-header .ims-brand img {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 150px !important;
  }

  .elementor .ims-shortcode-embed .ims-menu-toggle,
  .ims-shortcode-embed .ims-menu-toggle {
    margin-right: 0 !important;
  }

  .elementor .ims-shortcode-embed .ims-header-cta,
  .ims-shortcode-embed .ims-header-cta {
    display: none !important;
  }

  .elementor .ims-shortcode-embed .ims-nav.is-open,
  .ims-shortcode-embed .ims-nav.is-open {
    top: 70px !important;
  }

  .ims-shortcode-embed .ims-header.is-fixed + main .ims-hero {
    min-height: auto !important;
    padding: 120px 22px 65px !important;
  }
}
