html, body {
    margin: 0;
    padding: 0;
    font-family: lato;
    scroll-behavior: auto; /* desativa o nativo para evitar conflito */
    overflow-x: hidden;
    background-color: #FFF2F1;
}
.title{
  color: #FFF2F1;
}
.sub-title{
  font-family: lato;
}

.titleProjetos {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.quebra{
  height: 50px;
}
/*NAVBAR*/
nav.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.1);
}


.navbar .nav-link {
    font-size: 12px;
    font-weight: bold;
    color: #ddd;
}

.navbar .nav-link:hover {
    color: #202d35;
    
}

/*BANNER*/

.banner-img {
  height: 100vh;
  object-fit: cover;
}

.banner-content {
  z-index: 1;
  padding: 20px;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* escurece a imagem para melhor contraste do texto */
  z-index: 0;
}

/*PROJETOS*/
.custom-slider-wrapper {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.carousel-item {
    height: 100vh;
    position: relative;
}

    .carousel-item img {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }

.content {
    position: absolute;
    bottom: 35%;
    left:5%;
    color: white;
    max-width: 400px;
    padding: 20px;
    border-radius: 8px;
}

.name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.des {
    margin-bottom: 15px;
    line-height: 1.6;
}

.btnProjeto {
    background-color: #2E414B;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s;
}

    .btnProjeto:hover {
        background-color: #3F5A66;
    }

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid #000;
    border-radius: 8px;
    top: auto;
    bottom: 20px;
    opacity: 1;
}

.carousel-control-prev {
    left: calc(50% - 60px);
}

.carousel-control-next {
    right: calc(50% - 60px);
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control-prev {
  left: 25px;
}

.carousel-control-next {
  right: 25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.carousel-control-prev i,
.carousel-control-next i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i {
  color: white;
  transform: scale(1.1);
}

/* Efeito sutil ao clicar */
.carousel-control-prev:active,
.carousel-control-next:active {
  transform: translateY(-50%) scale(0.95);
}

/* Responsividade */
@media (max-width: 768px) {
    .content {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 100%;
        bottom: 80px;
    }

    .name {
        font-size: 1.5rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        bottom: 15px;
    }
}

/*SOBRE*/

.sobre {
  
  font-size: 17px;
}

.sobre-title {
  font-size: 3rem;
  font-weight: bold;
}

.sobre-sub {
  font-family: lato;
  font-size: 2rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .sobre-title {
    font-size: 5rem;
  }

  .sobre-sub {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .sobre-title {
    font-size: 4rem;
  }

  .sobre-sub {
    font-size: 1.2rem;
  }
}
/* Telas até 768px (tablets e celulares grandes) */
@media (max-width: 768px) {
  .sobre {
    font-size: 18px;
  }
}

/* Telas menores, até 480px (celulares comuns) */
@media (max-width: 480px) {
  .sobre {
    font-size: 16px;
  }
}


/*CONTATOS*/

.contact-section {
  position: relative;
  background-image: url('../img/CASA1/IMG_8969-2.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: white;
  display: flex;
  align-items: center;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* escurece a imagem */
  z-index: 1;
}

.contact-content {
  position: relative;
  z-index: 2;
  padding: 40px;
}

.contact-title {
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .contact-title {
    font-size: 40px;
  }
}
.contact-intro {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #ffffff;
  font-weight: 300;
}
@media (max-width: 768px) {
  .contact-intro {
    font-size: 0.95rem;
    text-align: justify;
  }
}

.contact-info {
  font-size: 14px;
}

.icon-box {
  margin-bottom: 25px;
}

.icon-box i {
  font-size: 22px;
  margin-right: 10px;
  color: #87CEEB;
}

.btn-orcamento {
  background-color: #2E414B;
  color: white;
  border-radius: 10px;
  padding: 10px 25px;
  font-size: 14px;
  margin-top: 20px;
}

.btn-orcamento:hover {
  background-color: #263238;
}


/*FOOTER*/
.navbar-custom {
  background-color: #f5f0ee;
  padding: 20px 0;
}

.nav-link {
  color: #333;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 8px;
}

.nav-link:hover {
  text-decoration: underline;
}

.brand-name {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 1px;
}

.social-icons a {
  color: #333;
  margin-right: 10px;
  font-size: 18px;
}

.btn-orcamento {
  background-color: #2E414B;
  color: white;
  border-radius: 10px;
  padding: 6px 20px;
  font-size: 14px;
  display: inline-block;
}

.btn-orcamento:hover {
  background-color: #263238;
}

/* Responsividade para mobile */
@media (max-width: 767px) {
  .navbar-custom .row {
    text-align: center;
  }
  
  .navbar-custom .col-2,
  .navbar-custom .col-8,
  .navbar-custom .col-12 {
    margin-bottom: 10px; /* espaÃ§amento entre linhas */
    text-align: center !important; /* forÃ§a centralizaÃ§Ã£o */
  }
  
  .btn-orcamento {
    margin: 0 auto;
    text-align: center;
  }
}



@media (max-width: 991px  ) {
  .item .content {
    top:70%;
    left: 0%;  
    right: 5%; 
    width: auto; 
    padding-right: 20px; 
  }
}



@media (max-width: 991px) {
    .slide .item {
      top: 20%;
      transform: translateX(-90%);
      width: 200px;
      height: 250px;
      display: flex;
    flex-direction: column; 

  }   
}

/* scroll-bar*/
::-webkit-scrollbar {
  width: 12px;               /* Largura da scrollbar vertical */
  height: 12px;              /* Altura da scrollbar horizontal */
}

::-webkit-scrollbar-track {
  background: #f1f1f1;       /* Cor do fundo da track */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888;          /* Cor principal */
  border-radius: 10px;
  border: 3px solid #f1f1f1; /* Cria um efeito de borda */
}

::-webkit-scrollbar-thumb:hover {
  background: #555;          /* Cor quando hover */
}

/* Para Firefox */
* {
  scrollbar-width: thin;          /* "auto" ou "thin" */
  scrollbar-color: #888 #f1f1f1;  /* thumb e track */
}






/* Projetos*/
.gallery {
  --min-height: 300px;
  --ideal-height: 65vh;
  --max-height: 8000px;
}

.gallery-item {
  width: 100%;
  height: clamp(var(--min-height), var(--ideal-height), var(--max-height));
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.2);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

/* Efeito profissional de overlay */
.gallery-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 20%, transparent);
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 0.9;
}

/* Texto opcional (se quiser adicionar legendas) */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  z-index: 2;
  color: white;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Responsividade aprimorada */
@media (max-width: 992px) {
  .gallery {
    --min-height: 450px;
    --ideal-height: 75vh;
    --max-height: 800px;
  }
  .gallery-item {
    margin-bottom: 30px;
    border-radius: 10px;
  }
}

@media (max-width: 768px) {
  .gallery {
    --min-height: 400px;
    --ideal-height: 70vh;
    --max-height: 600px;
  }
  .gallery-caption {
    padding: 20px;
  }
}

.banner-content img {
  width: 60%; /* ou o valor que preferir */
  height: auto;
  display: block; /* importante para margin auto funcionar */
  margin-left: auto;
  margin-right: auto;
}

/* Para telas pequenas (mobile e tablets) */
@media (max-width: 767px) {
  .banner-content img {    
    width: 250px; /* limita pra nÃ£o ficar gigante */
  }
}