*{
    font-family: 'Nunito';
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden; /* Hides horizontal scroll */
  width: 100vw; /* Ensures the body does not exceed the viewport width */
}


/* Header */
header {
    position: relative;
    z-index: 1000;
}

/* Logo */
#logoHeader {
    height: 110px;
    width: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Navbar */
.navbar {
    height: 110px;
    font-weight: 700;
    font-size: 18px;
}

.nav-link{
  color: #002C55!important;
}

/* Toggler Button */
.navbar-toggler {
    position: absolute;
    right: 0px;
}

/* 🟢 Mobile Styles (Only Applied on Small Screens) */
@media (max-width: 1200px) {
    .navbar {
        height: auto;
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
    }

    #logoHeader {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        margin-bottom: 10px; /* Adds space below logo */
    }

    .navbar-toggler {
        position: absolute;
        top: 50%!important;
        transform: translateY(-50%)!important;
        transform: none;
        border: none!important;
    }

    /* Mobile Dropdown Fix */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 10px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding-bottom: 40px;
    }

    .navbar-expand-xl .navbar-collapse {
        display: none;
    }

    .navbar-expand-xl .navbar-collapse.show {
        display: block;
    }

    /* Center navigation */
    .navbar-nav {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
}


/* Banner */
.textBannerQualivac{
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 60%;
}

.textBannerQualivac hr{
  border: none;
  height: 2px !important;
  /* Set the hr color */
  color: #002C55;  /* old IE */
  background-color: #002C55;  /* Modern Browsers */
  opacity: 1;
  margin: 20px 0px;
}

.bannerQualivac{
    display: flex;
    align-items: center;
    justify-content: center;
}

.bannerQualivacImg{
    border-top: 1px solid #002C55;
}

#qualivacbannerTitle{
    color: #002C55;
    font-size: 99.593px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
}

#qualivacbannerTitle span{
    color: #4B9D52;
}

#qualivacBannerSubtitle{
    color: #002C55;
    font-family: Nunito;
    font-size: 37.964px;
    font-style: normal;
    font-weight: 400;
    text-align: center;
    margin-top: -20px;
}

#qualivacBannerText{
    color: #002C55;
    text-align: center;
    font-family: Nunito;
    font-size: 70px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%; /* 91px */
    letter-spacing: -1.4px;
}

/* Homepage */

.bemVindoContainer{
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 30px;
}

.bemVindoContainer img{
    height: 310px;
    width: auto;
    margin: auto;
}

.bemVindoText{
    color: #2F2F2F;
    text-align: justify;
    font-family: 'Montserrat';
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 206.4%; /* 37.152px */
    text-align: left;
}

.bemVindoTextDesc{
    font-family: 'Montserrat';
}

.bemVindoTitle{
    color: #002C55;
    font-family: Nunito;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: left;
}

.bemVindoTitle span{
    color: #4B9D52;
}

.bemVindoBtn {
    background-color: white;
    color: #002C55;
    border: 1px solid #002C55;
    padding: 15px 30px;
    font-weight: 600;
    transition: all 0.3s ease; /* Smooth transition */
}

.bemVindoBtn:hover {
   background-color: #002C55;
   color: white;
   transform: scale(1.02); /* Slight enlargement */
}

.titleProdutos{
  color: #002C55;
  font-family: Nunito;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-align: center;
}

.titleProdutos span{
  color: #4B9D52;
}

.textProdutos{
  color: #2F2F2F;
  text-align: center;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 206.4%; /* 37.152px */
  text-align: center;
  width: 60%;
  margin-inline: auto;
}

/* Base class: Initially hide elements */
.scroll-element {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Fade In From Bottom */
.fade-up {
  transform: translateY(50px);
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Fade In From Top */
.fade-down {
  transform: translateY(-50px);
}
.fade-down.show {
  opacity: 1;
  transform: translateY(0);
}

/* Fade In From Left */
.fade-left {
  transform: translateX(-50px);
}
.fade-left.show {
  opacity: 1;
  transform: translateX(0);
}

/* Fade In From Right */
.fade-right {
  transform: translateX(50px);
}
.fade-right.show {
  opacity: 1;
  transform: translateX(0);
}

.fluidProdutos{
  background-color: #F2F2F2;
  padding-top: 20px;
  padding-bottom: 20px;
}

.listProdutos{ 
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 140px;
  align-items: center;
}

.listProdutosText{
  color: #002C55;
  font-family: Nunito;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.tituloBatata{
  color: #002C55;
  font-family: Nunito;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  text-align: center;
}

.tituloBatata span{
  color: #002C55;
  font-family: Montserrat;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: lowercase;
}

.descricaoProdutosContainer{
  text-align: center;
  color: #2F2F2F;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 206.4%; /* 37.152px */
}

.descricaoProdutosContainer div{
  width: 60%;
  margin-inline: auto;
}

.btnsHomepage{
  display: flex;
  justify-content: center;
  gap: 40px;
}

.btnHomepage {
  background-color: transparent;
  color: #002C55;
  border: 1px solid #002C55;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease; /* Smooth transition */
}

.btnHomepage.active {
  background-color: #002C55;
  color: white;
  transform: scale(1.02); /* Slight enlargement */
 }

.btnHomepage:hover {
 background-color: #002C55;
 color: white;
 transform: scale(1.02); /* Slight enlargement */
}

.pedirAmostraBloco{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.pedirAmostraBtn{
  background-color: #002C55;
  color: #F2F2F2;
  width: fit-content;
  border: 1px solid #002C55;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 22px;
  transition: all 0.3s ease; /* Smooth transition */
}

.tituloPedirAmostra{
    color: #002C55;
    font-family: Nunito;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    margin-bottom: 30px;
}

.pedirAmostraBloco a { 
  text-decoration: none !important;
}

.textoProdutos{
  color: #2F2F2F;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 206.4%;
}

.textoProdutos span{
  color: #2F2F2F;
  text-align: center;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 400%;
}

.porqueEscolherContainer{
  display: grid;
  grid-template-columns: 2fr 1fr;
  color: #2F2F2F;
  text-align: justify;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 206.4%; /* 37.152px */
  gap: 120px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.tituloPorqueEscolher{
  color: #002C55;
  font-family: Nunito;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-align: left;
}

.tituloPorqueEscolher span{
  color:#4B9D52;
}

.subtituloPorqueEscolher{
  color: #1E1E1E;
  font-family: Nunito;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.clientesTitulo{
  color: #002C55;
  text-align: center;
  font-family: Nunito;
  font-size: 21.219px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.news-ticker {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid #002C55;
  border-bottom: 1px solid #002C55;
  background: #FAF9F6;
  color: #002C55;
  font-family: Nunito, sans-serif;
  font-size: 32px;
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: ticker-scroll 20s linear infinite;
}

.ticker-item {
  flex-shrink: 0;
}

.news-ticker img {
  height: 65px;
  flex-shrink: 0;
}

.blueContainerFluid{
  background-color: #002C55;
}

.blueContainerFluid .container{
  padding-top: 20px;
  padding-bottom: 20px;
}

.beneficiosContainer{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-bottom: 70px;
  margin-top: 20px;
}

.nossoProcessoContainer{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 20px
}

.nossoProcessoContainer img, .beneficiosContainer img{
  margin: auto;
}

.tituloBlue{
  color: #FFF;
  font-family: Nunito;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.textoBlue{
  color: #FFF;
  text-align: justify;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 206.4%; /* 37.152px */
  text-align: left;
}

.textoBlue ol li{
  line-height: 276.4%;
}

.blueBtn {
  background-color: #002C55;
  color: white;
  border: 1px solid white;
  padding: 10px 30px;
  font-weight: 600;
  transition: all 0.3s ease; /* Smooth transition */
}

.blueBtn:hover {
 background-color: white;
 color: #002C55;
 transform: scale(1.02); /* Slight enlargement */
}

.tituloWhite{
  color: #002C55;
  font-family: Nunito;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.textoWhite{
  color: #002C55;
  text-align: justify;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 206.4%; /* 37.152px */
  text-align: left;
}

.whiteBtn{
  background-color: transparent;
  color: #002C55;
  border: 1px solid #002C55;
  padding: 15px 30px;
  font-weight: 600;
  transition: all 0.3s ease; /* Smooth transition */
}

.whiteBtn:hover {
 background-color: #002C55;
 color: white;
 transform: scale(1.02); /* Slight enlargement */
}

.containerContactos{
  display: grid;
  grid-template-columns: 2fr 3fr;
  color: #2F2F2F;
  font-family: Montserrat;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  gap: 60px;
}

.leftContactos{
  margin-top: 100px;
}

.tituloContactos{
  color: #002C55;
  font-family: Nunito;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
}

.tituloContactos span{
  color: black;
  font-family: Nunito;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.iconsFlex{
  display: flex;
  gap: 20px;
  align-items: center;
}
.iconsFlex a{
  text-decoration: none;
  color: #002C55;
}

.chamadaDesc{
  color: #2F2F2F;
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.formContactos{
  background-color: white;
  padding: 100px;
}

.formContactos input, .formContactos textarea{
  background-color: transparent;
  color: #2F2F2F;
  border: 1px solid #DDD;
  margin-bottom: 20px;
  padding: 10px;
}

.formContactos input::placeholder, .formContactos textarea::placeholder{
  color: #CCC;
  font-family: Nunito;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.formContactos label{
  color: #002C55;
  font-family: Nunito;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 20px;
}

.formContactos #nome{
  width: 100%;
}

.formContactos #empresa{
  width: 100%;
}


.formContactos #email{
  width: 100%;
}

.formContactos #telefone{
  width: 100%;
}

.formContactos #assunto{
  width: 100%;
}

.formContactos #mensagem{
  width: 100%;
}

.flex5050{
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

footer{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #002C55; 
  color: #FFF;
  text-align: center;
  font-family: Nunito;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 140.4%; /* 19.656px */
}

.Afooter{
  text-decoration: none;
  color: white;
}

footer img{
  height: 130px;
}

.main-carousel {
  width: 100%;
  margin: 0 auto;
  max-width: 800px; /* Adjust width as needed */
  margin-top: 60px;
}

.main-carousel2 {
  z-index: 1000;
  width: 100%;
  margin: 0 auto;
  max-width: 800px; /* Adjust width as needed */
  position: fixed!important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.main-carousel3 {
  z-index: 1000;
  width: 100%;
  margin: 0 auto;
  max-width: 800px; /* Adjust width as needed */
  position: fixed!important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.main-carousel4 {
  z-index: 1000;
  width: 100%;
  margin: 0 auto;
  max-width: 800px; /* Adjust width as needed */
  position: fixed!important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.main-carousel5 {
  z-index: 1000;
  width: 100%;
  margin: 0 auto;
  max-width: 800px; /* Adjust width as needed */
  position: fixed!important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.main-carousel6 {
  z-index: 1000;
  width: 100%;
  margin: 0 auto;
  max-width: 800px; /* Adjust width as needed */
  position: fixed!important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.carousel-cell {
  width: 100%; /* Adjust as needed */
  height: 200px; /* Ensure proper height */
  background-color: #fff; /* Temporary background to see layout */
  margin-right: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-cell img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.clickGallery{
  cursor: pointer
}

.popupGalleryImg {
  width: 100%;
  height: 100vh;
  background-color: #e4e4e4;
  opacity: 0;
  visibility: hidden; /* Prevents interaction when hidden */
  top: 0px;
  position: fixed;
  z-index: 999;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.popupGalleryImg.show2 {
  opacity: 0.7;
  visibility: visible; /* Ensures smooth transition */
}


.carouselPopupDiv{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.popupGalleryImg, .main-carousel2, .main-carousel3, .main-carousel4, .main-carousel5, .main-carousel6 {
  display: none; /* Initially hidden */
}

.show2 {
  display: block !important; /* Show when class 'show' is added */
}

.main-carousel2 .carousel-cell, .main-carousel3 .carousel-cell, .main-carousel4 .carousel-cell, .main-carousel5 .carousel-cell, .main-carousel6 .carousel-cell{
  height: 400px;
}

.main-carousel2 .flickity-viewport, .main-carousel3 .flickity-viewport, .main-carousel4 .flickity-viewport, .main-carousel5 .flickity-viewport, .main-carousel6 .flickity-viewport{
  height: 400px;
}

.flickity-page-dots{
  transform: translateY(25px);
}

.flickity-page-dots .dot{
  background-color: #002C55!important;
  width: 15px!important;
  height: 15px!important;
  margin-top: 25px!important;
}

.navbar-expand-xl .navbar-nav .nav-link {
  padding-right: 0.8rem!important;
  padding-left: 0.8rem!important;
}

@media screen and (max-width: 1400px) {
  .navbar-expand-xl .navbar-nav .nav-link {
    padding-right: 0.5rem!important;
    padding-left: 0.5rem!important;
  }
}


@media screen and (max-width: 1300px) {
  #qualivacbannerTitle{
    font-size: 80px;
  }

  #qualivacBannerSubtitle {
    font-size: 32px;
  }

  #qualivacBannerText {
    font-size: 50px;
  }

}

@media screen and (max-width: 1200px) {
  #qualivacbannerTitle{
    font-size: 64px;
  }

  #qualivacBannerSubtitle {
    font-size: 24px;
    margin-top: 0px;
  }

  #qualivacBannerText {
    font-size: 32px;
  }

  .listProdutos{
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 992px) {
  #qualivacbannerTitle{
    font-size: 40px;
  }

  #qualivacBannerSubtitle {
    font-size: 18px;
  }

  #qualivacBannerText {
    font-size: 22px;
  }

  .bemVindoContainer {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .btnsHomepage{
    flex-direction: column;
  }

  .porqueEscolherContainer{
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .news-ticker1{
    margin-top: 60px;
  }
  
  .beneficiosContainer{
    grid-template-columns: 1fr;
  }

  .nossoProcessoContainer{
    grid-template-columns: 1fr;
  }

  .containerContactos{
    grid-template-columns: 1fr;
    padding-left: 0px;
  }

  .formContactos {
    padding: 40px;
  }

  .nossoProcessoContainer{
    gap: 60px;
  }

  .bemVindoText{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .imgBemVindo{
    order: 2;
  }

  .beneficiosContainer img{
    order: 2;
  }

}

@media screen and (max-width: 768px) {
  .bannerQualivacImg{
    aspect-ratio: 1/1;
    object-fit: cover;
  }

  .textoProdutos{
    width: 100%;
  }

  .descricaoProdutosContainer div{
    width: 100%;
  }

  .listProdutos {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .listProdutosText{
    margin-inline: auto;
  }

  .redesSociaisContactos{
    justify-content: center;
  }

  .imgBemVindo{
    height: 200px!important;
  }

}