﻿@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;600&display=swap');


.texto-dif {
    position: relative;
    display: block;
}

/* Aplica a máscara e animação ao elemento principal E aos pseudo-elementos */
.texto-dif,
.texto-dif::before,
.texto-dif::after {
    -webkit-mask-image: linear-gradient(-75deg, rgba(10, 21, 169, 0.6) 50%, #c46b12 50%, rgb(15, 90, 188) 70%);
    -webkit-mask-size: 200%;
    animation: shine 3s infinite;
}

/* Estilos específicos dos pseudo-elementos (linhas) */
.texto-dif::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -50px;
    width: 50%;
    height: 5px;
    /* background-color: #262626; */
}

.texto-dif::after {
    content: "";
    position: absolute;
    left: 55%;
    bottom: -50px;
    width: 45px;
    height: 5px;
    /* background-color: #262626; */
}

@keyframes shine {
    from {
        -webkit-mask-position: 150%;
    }
    to {
        -webkit-mask-position: -50%;
    }
}

.menu-principal{
    margin: 0 auto;
}

.menu-principal ul {
    list-style: none;
    display: flex;
    justify-content: center;
    /* padding: 20px 0; */
    align-items: center;
}

.menu-principal li {
    /* margin: 0 20px; */
    font-size: 1.3em;
    border-right: 1px solid white;
    padding: 0 35px;
}
.menu-principal li:last-child {
    border-right: none; /* tira a borda do Ãºltimo item */
}

.menu-principal a {
    text-decoration: none;
    color: white;
    font-weight: 400;
    font-size: 1.1em;
    transition: color 0.3s ease;
    position: relative;
}

.menu-principal a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 4px;
    width: 0%;
    background-color: #217dcf;
    transition: width 300ms ease;
}

.menu-principal li:hover {
    border-right: none; /* remove borda ao passar o mouse */
}

.menu-principal li:hover a::after {
    width: 100%; /* anima a linha de baixo */
}

.menu-principal a:hover {
    color: #1888eb;
}



.menu-principal li a:hover li{
    border-right: none !important;
}


.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
  }
  
  .menu-icon {
    width: 30px;
    height: auto;
  }
  
  /* Oculta o menu em telas pequenas */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
      position: absolute;
      top: 15px;
      right: 20px;
    }
  
    .menu-principal {
      position: absolute;
      top: 60px;
      right: 0;
      background-color: #fff;
      width: 100%;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-in-out;
      box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
      z-index: 1000;
    }
  
    .menu-principal.active {
      max-height:400px; /* Ajuste conforme a quantidade de links */
    }
  
    .menu-principal ul {
      display: flex;
      flex-direction: column;
      margin: 0;
      padding: 0;
    }
  
    .menu-principal li {
      list-style: none;
      padding: 15px 20px;
      border-bottom: 1px solid #eee;
    }
  
    .menu-principal a {
      color: #000;
      text-decoration: none;
      font-weight: 500;
    }
  
    .menu-principal a:hover {
      color: #1C66A6;
    }
  }

*{
    font-family: 'Montserrat';
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.borda{
    border: 1px solid red;
}

h5{
    /* font-size: 2.0em !important; */
}

h2{
    font-size: 3.5em;
}
h1{
    font-size: 4.0em;
}
i{
    font-size: 1.6em;
    opacity: 0.5;
}

.imagem-container {
    position: relative;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    /* width: 100%; */

}

.imagem-container img {
    width: 100%;
    display: block;
    /* border-radius: 8px; */
    /* position: relative; */
    z-index: 2;
}

.imagem-container::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    /* border: 2px solid #1C66A6; */
    /* border-radius: 8px; */
    z-index: 1;
    /* border: 1px solid red; */

}



@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .animate-fadeIn {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0; /* Para iniciar invisÃ­vel */
  }
  
  /* Adiciona delay em elementos subsequentes para efeito cascata */
  .animate-delay-1 { animation-delay: 0.2s; }
  .animate-delay-2 { animation-delay: 0.4s; }
  .animate-delay-3 { animation-delay: 0.6s; }
  .animate-delay-4 { animation-delay: 0.8s; }


  .btn-projetos {
    background-color: #1C66A6;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards;
    animation-delay: 0.2s;
}

.btn-projetos:hover {
    background-color: #16538B;
    transform: scale(1.05);
}

.btn-projetos:focus {
    outline: none;
    animation: pulse 1s infinite;  /* AnimaÃ§Ã£o de pulsar no foco */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);  /* DÃ¡ um pequeno aumento */
    }
    100% {
        transform: scale(1);
    }
}


/* Fundo escurecido e centralizador */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* fundo translÃºcido */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
  }
  
  /* Spinner central */
  .spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
  }
  
  /* Oculto por padrÃ£o */
  .hidden {
    display: none !important;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}
.portfolio .titulo {
    margin-bottom: 150px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
}



#portfolio-page header a:hover {
    color: #1C66A6 !important;
}

.portfolio {
    text-align: center;
    padding: 50px 0;
}

.portfolio h1 {
    font-size: 2.5em;
    color: #1C66A6;
    font-weight: normal;
}

.portfolio-menu {
    margin: 20px 0;
    background-color: #0077b6;
}
.portfolio-menu button{
    color: white;
}
.filter-btn {
    background: none;
    border: none;
    color: black;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    margin: 5px;
    transition: 0.3s;
    border-radius: 5px;
}

.filter-btn:hover, .filter-btn.active {
    text-decoration: none;
    color: #1C66A6;
    background-color: #ffffff91;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.portfolio-item {
    position: relative;
    width: 350px;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    width: 100%;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: left;
}

.portfolio-item:hover .portfolio-info {
    opacity: 1;
}

.portfolio-info h3 {
    margin: 0 0 5px;
    font-size: 1.2em;
    font-weight: 600;
}

.portfolio-info p {
    margin: 0;
    font-size: 0.95em;
    color: #ccc;
}

.portfolio-item.todos,
.portfolio-item.residencial,
.portfolio-item.corporativo {
    display: block;
}

@media (max-width: 768px) {
    .portfolio h1 {
        font-size: 2em;
    }
    
    .portfolio-grid {
        flex-direction: column;
        align-items: center;
    }
    #portfolio-page .menu-principal {
        background-color: white !important; 
    }
    
    #portfolio-page .menu-principal a {
        color: black !important; 
    }
    
    #portfolio-page .menu-principal a:hover {
        color: #1C66A6 !important;
    }
}
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-content, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.6);
    color: white;
    width: 100%;
    text-align: center;
    padding: 10px;
    display: block;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 0.6s;
    animation-name: fade;
    animation-duration: 0.6s;
}

@-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }

    .close-button {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

}

.rodape .container-rod{
    height: 100%;
}

.graute-info{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.graute-info img{
    height: 100px;
    width: auto;
}

.graute-info p{
    line-height: 2em;
}

.container-logo-info{
    display: flex;
    align-items: start;
    justify-content: start;
    /* width: 50%;
    height: 100px !important; */
}
.container-logo-info h3{
    margin-top: 40px;
}

.contato-info {
    display: flex;
    justify-content: flex-start; /* Centraliza os itens na horizontal */
    align-items: center;
    flex-direction: column;
    gap: 30px; /* EspaÃ§amento entre os itens */
    flex-wrap: wrap; /* Evita quebra esquisita se nÃ£o couber */
}

.contato-info .item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap; /* Evita quebra de linha dentro do item */
}

.contato-info img {
    width: 24px;
    height: 24px;
}

.contato-info p {
    font-size: 1em;
    margin: 0;
}

.contato-social {
    display: flex;
    flex-direction: column; /* MantÃ©m na mesma linha */
    gap: 25px;
}

.contato-info .item{
    width: 500px;
}

.container-redes-sociais{
    display: flex;

}

#iconeFace{
    width: 40px;
    height: 40px;
    background-color: #1877F2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    margin: 15px;
}

#iconeFace:hover{
    transform: scale(1.1);
    box-shadow: 2px 4px 12px rgba(23, 85, 187, 0.3);
}

#iconeInsta{
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    margin: 15px;

}
#iconeInsta:hover{
    transform: scale(1.1); /* aumenta o tamanho */
    box-shadow: 0 4px 12px rgba(73, 73, 73, 0.3); /* sombra suave */
}

.atendimento-info{
    line-height: 3em;
    text-align: center;

}

@media (max-width: 481px) {
    footer .rodape{
        display: flex;
        flex-direction: column;
    }
  

    .graute-info{
        margin: 20px 0;
    }
    .contato-info {
        flex-direction: column;
        align-items: center;
        /* justify-content: center; */
        gap: 20px;
        flex-wrap: nowrap;
    }

    .contato-info .item {
        display: flex;
        gap: 8px;
        width: auto;
        margin: 15px 0;
        text-align: left;
        /* flex-wrap: wrap; */
    }

    .contato-info .item p {
        white-space: normal; /* permite quebra de linha */
        word-break: break-word; /* quebra palavras longas se necessÃ¡rio */
        margin: 0;
    }

    /* MantÃ©m o endereÃ§o centralizado */
    .contato-info .item:first-child {
        text-align: center;
    }

    /* Ajusta WhatsApp e Instagram na mesma linha */
    .contato-info .item:nth-child(2),
    .contato-info .item:nth-child(3) {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .contato-social {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

  

    .atendimento-info{
        margin: 20px 0;
    }

    .rodape {
        margin-bottom: 30px; /* Mais espaÃ§o pra evitar corte */
    }
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: none; /* Removido o limite arbitrário */
    z-index: 1000;
    display: none;
    background-color: rgba(38, 38, 38, 0.85); /* Corrigida a transparência */
    overflow: auto; /* Permite scroll se necessário */
    backdrop-filter: blur(5px); /* Efeito de desfoque opcional */
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal .containerImg {
    width: 100%;
    max-width: 100%; /* Limite máximo para telas grandes */
    height: 100%;
    max-height: 90vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal .containerImg img {
    width: 60%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Botão de fechar */
.modal .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.containerMaior.antes-depois {
  width: 730px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.containerImgAntesEDepois {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 410px;
  width: 100%;
  position: relative;
  z-index: 0;
}

.containerImgAntesEDepois > div {
  width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imgAntes,
.imgDepois {
  width: 350px;
  height: auto;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  border: 10px solid white;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
  transform: rotate(-2deg);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  background-color: white;
}

.imgAntes img,
.imgDepois img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4; /* ou o que preferir, como 4 / 5 ou 1 / 1 */
  object-fit: cover;
  object-position: center;
  display: block;
}

.imgAntes:hover,
.imgDepois:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.3);
}

.Container-Antes h1,
.Container-Depois h1 {
  font-size: 24px;
  color: #1C66A6;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px !important;
  text-shadow: none;
  background: none;
  background-clip: unset;
  -webkit-background-clip: unset;
  -webkit-mask-image: none;
  animation: none;
}

.AD-H1 h1 {
  font-family: 'Permanent Marker', cursive;
}

/* ==== Descrição com estética arquitetônica ==== */
.DescricaoReforma {
  background-color: #f9f9f9;
  border: 2px solid #1C66A6;
  border-radius: 10px;
  padding: 20px;
  margin-top: 25px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  font-family: 'Fira Sans', sans-serif;
  text-align: start;
}

.DescricaoReforma::before {
  content: "Sobre a reforma:";
  position: absolute;
  top: -14px;
  left: 20px;
  background-color: #1C66A6;
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  letter-spacing: 1px;
}

.DescricaoReforma h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1C66A6;
  margin-bottom: 10px;
  border-bottom: 1px dashed #1C66A6;
  padding-bottom: 4px;
}

.DescricaoReforma p {
  font-size: 16px;
  color: black; 
  font-family: 'Fira Sans', sans-serif;
  line-height: 1.6;
  margin-top: 10px;
}

/* Remove a linha com animação */
.linha-conector {
  display: none !important;
}

.linha-divisoria {
  height: 4px;
  background: repeating-linear-gradient(
    to right,
    #0077b6,
    #0077b6 20px,
    transparent 20px,
    transparent 40px
  );
  margin: 60px auto;
  width: 90%;
  opacity: 0.6;
  border-radius: 2px;
}

/* ========== MOBILE STYLES ========== */
@media (max-width: 481px) {
  .containerMaior.antes-depois {
    width: 100%;
    padding: 0 10px;
  }

  .containerImgAntesEDepois {
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .containerImgAntesEDepois > div {
    width: 100%;
    max-width: 400px;
  }

  .imgAntes,
  .imgDepois {
    position: relative;
    width: 100%;
    max-width: 350px;
    aspect-ratio: auto;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    border: 8px solid white;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
    transform: rotate(0deg);
  }

  .imgAntes:hover,
  .imgDepois:hover {
    transform: scale(1.03);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
  }

  .imgAntes img,
  .imgDepois img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .Container-Antes h1,
  .Container-Depois h1 {
    font-size: 20px;
    color: #1C66A6;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px !important;
  }

  .DescricaoReforma h2 {
    font-size: 18px;
  }

  .DescricaoReforma p {
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: black;
  }

  .DescricaoReforma {
    text-align: center;
    padding: 15px;
    margin-top: 50px;
    width: 100%;
  }

  .DescricaoReforma::before {
    left: 10px;
    font-size: 11px;
    padding: 1px 6px;
  }
}