/* Correções layout home — sobrescreve regras problemáticas do all.css */

#isHome {
  overflow-x: hidden;
}

body.is-home #header .topo {
  position: absolute !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 125px;
  min-height: 125px;
}

body.is-home #header .topo.sticky {
  background: #A12129 !important;
}

/* Menu e barra de serviços: layout original da home */
body.is-home #header .topo > .container.rel {
  display: block;
}
body.is-home .logoHeader {
  position: absolute;
  top: 25px;
}
body.is-home .menuHeader.hidden-xs.hidden-sm {
  position: absolute;
  top: 70px;
  left: 47%;
  width: 640px;
  transform: translateX(-50%);
  display: block !important;
}
body.is-home .menuHeader .nav.navbar-nav {
  display: block;
  float: left;
  margin: 0 -15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}
body.is-home .menuHeader .nav > li {
  float: left;
  display: list-item;
  padding: 0 10px;
}
body.is-home .menuHeader .nav > li > a {
  padding: 10px 0 !important;
  color: #fff !important;
  background: transparent !important;
}
body.is-home .socialHeader {
  position: absolute;
  right: 15px;
  top: 68px;
}
body.is-home #header .topo .areacliente {
  position: absolute;
  right: 15px;
  top: 0;
  float: none;
  z-index: 1001;
}
body.is-home #header .topo .areacliente a {
  color: #5acee1;
  text-decoration: none;
}

.menu-servicos ul,
.menu-servicos nav ul {
  display: block !important;
  grid-template-columns: none !important;
}
.menu-servicos li {
  display: inline-block;
  width: 12%;
  border-right: 0;
  float: none;
}
.menu-servicos li a {
  display: block;
  flex-direction: unset;
  min-height: 0;
  gap: 0;
}
.menu-servicos img,
.menu-servicos nav img {
  width: auto !important;
  height: auto !important;
  max-width: none;
}

/* Barra de serviços abaixo do banner */
.menu-servicos {
  position: relative;
  z-index: 3;
  background: #fff;
  clear: both;
  padding: 8px 0 16px;
  border-bottom: 1px solid #eee;
}

/* Seção "Transformando sua ideia" — all.css usa .txt absolute e colapsa a altura */
.quem-somos-home {
  background-color: #F5F1F2;
  padding: 45px 0;
  position: relative;
  overflow: hidden;
  clear: both;
}

.quem-somos-home > .container-fluid > .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.quem-somos-home .col-md-6 {
  float: none;
}

.quem-somos-home .txt {
  position: relative !important;
  width: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
  font-size: 18px;
  padding: 24px 48px 24px 24px;
}

.quem-somos-home .txt p {
  margin-bottom: 20px;
  text-align: justify;
}

.quem-somos-home .txt p span {
  color: #5acee1;
  font-weight: 700;
}

.quem-somos-home .group {
  float: none !important;
  margin: 0 0 16px 24px !important;
  position: relative;
  z-index: 1;
  width: auto !important;
  max-width: 320px;
}

.quem-somos-home .group p {
  font-size: 22px;
  margin-bottom: 5px;
}

.quem-somos-home .group p span {
  color: #A12129;
  font-weight: 900;
  font-size: 45px;
  margin-top: -8px;
  display: block;
  line-height: 1;
}

.quem-somos-home .owl-carousel {
  width: 100%;
}

.quem-somos-home .owl-carousel .owl-stage-outer {
  min-height: 280px;
}

.quem-somos-home .owl-carousel .item .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}

.quem-somos-home .owl-carousel .item img,
.quem-somos-home img {
  float: none !important;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

/* Portfólio home — garante sidebar + grid lado a lado */
#isHome .portifolio-box {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

#isHome .portfolioFilter {
  width: 12%;
  float: left;
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 2;
}

#isHome .portfolioContainer {
  width: 88%;
  float: right;
  position: relative;
}

@media (max-width: 1199px) {
  .quem-somos-home .col-md-6 {
    width: 100%;
  }
  .quem-somos-home .group {
    margin: 0 auto 16px !important;
    text-align: center;
    max-width: 100%;
  }
  .quem-somos-home .txt {
    padding: 20px 24px;
  }
  #isHome .portfolioFilter {
    width: 19%;
  }
  #isHome .portfolioContainer {
    width: 81%;
  }
}

@media (max-width: 991px) {
  .quem-somos-home .group p span {
    font-size: 35px;
  }
}

@media (max-width: 767px) {
  .menu-servicos li {
    width: 48% !important;
  }
}

/* Header transparente sobre o hero — só na home */
body.is-home #header .topo {
  position: absolute !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 125px;
  min-height: 125px;
}

body.is-home #header .topo.sticky {
  background: #A12129 !important;
}
