.projetos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    justify-content: center;
}



.projeto-item {
    width: 350px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Necessário para o efeito */
    overflow: hidden; /* Garante que os elementos não saiam do container */
    border-radius: 25px;
    margin: 20px !important; /* Removendo qualquer espaçamento extra */
    padding: 0 !important;
}

.projeto-conteudo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
   border-radius: 25px;
}

.imagem-container {
    background-color: #fbf9f9;
    /* border-radius: 25px; */
    overflow: hidden;
    aspect-ratio: 1 / 1;
    /*width: 100%;
    height: 350px; Define altura fixa para todos os thumbnails */
    position: sticky; /* Necessário para o efeito */
     display: flex;
    align-items: center;
    justify-content: center; /* Centraliza a imagem */
}

.projeto-item a {
    outline: none; /* Remove o contorno do link */
}
.projeto-item img {
    width: 100%;
        height: auto;
        border-radius: 25px;
    max-height: 100%;
    object-fit: contain; /* Garante que a imagem cubra todo o espaço */
    object-position: center;
    /* position: absolute; Força a imagem a preencher todo o contêiner */
    top: 0;
    left: 0;
    transition: transform 0.3s ease-in-out;
    
}


.titulo {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
  
    color: white;
    color: white;
    text-align: center;
    padding: 10px;
    /*opacity: 0; */
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    border-radius:20px;
}

.projeto-item {
    transition: transform 0.3s ease-in-out;
}

/* 20250628 */
.projeto-item.ativo {
    transition: transform 0.3s ease-in-out;
      transform: scale(1.1); /* Aumenta ligeiramente a imagem */
         z-index: 10;
    

}



/* Quando o item tem a classe "ativo", o título fica visível */
.projeto-item.ativo .titulo {
    opacity: 1;
    /*20250225*/
    /* transition: opacity 0.3s ease-in-out; */
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;

}


.projeto-item.ativo .seta svg {

    transform: rotate(180deg) translateY(8px);

}


.titulo a {
    color: white;
    text-decoration: none;
    font-weight: normal;
}
.titulo a:focus {
    color: white !important;
}
.titulo:focus {
    color: white !important;
}

 a {
    /* color: inherit !important; Mantém a cor original do pai */
    text-decoration: none !important; /* Remove qualquer sublinhado */
}

.titulo:hover,
.titulo:focus,
.titulo:active {
    color: white  !important; /* Define a cor ao passar o cursor */
    text-decoration: none !important;
}


@media (min-width: 769px) {
    .projeto-item {
        position: relative;
        overflow: hidden;

    }

    .imagem-container {
        position: relative;
    }
    }

    .wp-block-button-more {
        border-radius: 50px !important;
        padding: 12px 24px !important;
        text-align: center;
        display: inline-block;
        width: auto;
        background-color: white;
        color: black;
        transition: transform 0.3s ease-in-out;
    }

    .wp-block-button-more:hover {
        transform: scale(1.2);
        background-color: white;
        color: black;
}


/* 🖥️ Efeito apenas para desktop */
@media (min-width: 769px) {

.projeto-item:hover .seta svg {

    transform: rotate(180deg) translateY(8px);

}

    .projeto-item {
        position: relative;
        overflow: hidden;
    }

    .imagem-container {
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .projeto-item img {
        transition: transform 0.3s ease-in-out;
    }

    .projeto-item:hover img {
        /* transform: scale(1.1); Aumenta ligeiramente a imagem */
    }

        .projeto-item:hover {
        transform: scale(1.1); /* Aumenta ligeiramente a imagem */
         z-index: 10;
    }
  .projeto-item  {
        transition: transform 0.3s ease-in-out;
    }



    .projeto-item:hover .titulo {
        /* bottom: 0;  Aparece ao passar o mouse */
        transform: translateY(0); /* Sobe a tenda do título */
    }


   







}



/* 🖥️ Efeito apenas para desktop wide screen */
@media (max-width: 768px) {
/* 🔹 Efeito do título no hover */

}






.titulo-name {
    display: flex;
    align-items: center; /* Alinha verticalmente */
    gap: 4px; /* Espaço entre o título e a seta */
    margin: 0;
    justify-content: center;
}

 .titulo-name h3 {
        font-size: 20px !important;
        


    }
    .seta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease-in-out;
    transform: translateY(-8px);
}

    .seta {
    margin-left: 5px; /* Ajusta a distância entre o título e a seta */
}


    /* 🔹 Efeito do título no hover */
    .titulo {
        position: absolute;
        /* bottom: 0; */
        bottom: -1%;
        left: 0;
        width: 100%;


        color: white;
        text-align: center;
        padding: 10px;
        /* transform: translateY(100%); */
        transform: translateY(100%) translateY(-58px);
        transition: transform 0.3s ease-in-out;
         opacity: 1;
    }