/* Sessão de títulos e página geral*/
h1 {
    text-align: center;
}



.titulos h1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.destaques {
    width: auto;
    height: fit-content;
    color: #000000;
    background-image: url("images/fundo-servicos.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 991px) {
    .destaques {
        height: fit-content;
    }
}

.destaques img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.destaques .maincard {
    width: 100%;
    height: fit-content;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    max-width: 350px;
}


.card-body ul li {
    list-style: none;
    font-size: 12px;
    background-color: #ececec;
}

.card-body .topico {
    font-weight: 500;
}

.card-text {
    font-size: small;
}

.card-text-title {
    font-weight: 500;
}

.maincard {
    overflow: hidden;
    transition: height 0.4s ease;
}

.card-body-wrapper {
    overflow: hidden;
    max-height: 80px;
    transition: max-height 0.4s ease;
    position: relative;
}

.card-body-wrapper.expanded {
    max-height: 1000px;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;
    z-index: 2;
}

.card-body-wrapper.expanded .fade-overlay {
    display: none;
}


/* Sessão de todos os cards gerais*/
.produtos-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
    padding: 25px;
}

/* corpo de cada card geral*/
.produto {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    height: 550px;
    background: #ffffff;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

@media (max-width: 991px) {
    .produto {
        flex: 1;
        min-width: 200px;
        max-width: 300px;
        height: fit-content;
        background: #ffffff;
        padding: 10px;
        border-radius: 15px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
    }
}

.produto h2 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
}

/* Conteúdo dos cards gerais*/
.othercard {
    overflow:auto;
    background: #f9f9f9;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991px) {
    .othercard {
        background: #f9f9f9;
        border-radius: 10px;
        position: relative;
        overflow: visible;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        transition: 0.2s ease;
        height: fit-content;
        display: flex;
        flex-direction: column;
    }
}


.othercard img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.othercard img:hover {
    cursor: pointer;
}

@media (max-width: 991px) {
    .othercard img {
        transform: scale(1.0);
    }
}


.othercard p {
    font-size: 12px;
    text-align: center;
}

/* Conteúdo flexível para preencher espaço disponível */
.othercard>div:last-of-type {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Garantir que botões fiquem na parte inferior */
.othercard button {
    margin-top: auto;
}

/* Estilos para o botão "Leia Mais" */
.btnLeiaMais {
    color: black;
    background-color: #ff7b24;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px auto;
    display: block;
    width: fit-content;
}

.btnLeiaMais:hover {
    background-color: orange;
    transition: 0.5s;
    color: white;
}


@media (max-width: 991px) {
    .btnLeiaMais:hover {
        color: black;
        background-color: #ff7b24;
    }
}

.expanded {
    display: block;
}


/* Carrossel */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.modal-img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.fechar {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Botões do carrossel */
.botoes {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-left: 5vw;
    margin-right: 5vw;

}

.botoes button {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 40px;
    border-radius: 60%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.botoes button:hover {
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.fechar {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 30px;
    border-radius: 60%;
    width: 40px;
    height: 40px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fechar:hover {
    background: rgba(0, 0, 0, 0.8);
    transition: 0.5s
}

/* Responsividade do carrosel */
@media (max-width: 768px) {
    .servicos-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Estética do botão Leia Mais */
.mais {
    display: none;
}

.pontos {
    display: flex;
    justify-content: center;
}



/* Arquivo CSS Aplicável a todas as páginas */

/* NAVBAR */

nav {
    background-color: #ffffff;
}

/* Logo */
#nav-logo {
    width: auto;
    height: 50px;
}

@media (max-width: 250px) {
    #nav-logo {
        width: auto;
        height: 15vw;
    }
}

/* Menu Offcanvas */
.navbar-toggler {
    border: none;
}

.navbar-toggler:focus,
.btn-close:focus {
    box-shadow: none;
    outline: none;
}

/* Links */
.navbar-nav {
    column-gap: 30px;
}

.nav-link {
    color: #7e7e7e;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #000000;
}

@media (min-width: 991px) {
    .navbar .nav-link::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: #ef7d00;
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }

    .navbar .nav-link:hover::before,
    .nav-link.active::before {
        width: 100%;
        visibility: visible;
    }
}

/* Fim NAVBAR */

/* Botão Whatsapp */
#botao-whatsapp {
    width: fit-content;
    height: fit-content;
}

#botao-whatsapp img {
    width: fit-content;
    height: 60px;
}

/* FOOTER */
footer {
    word-spacing: 5px;
    font-weight: 500;
    color: #5e5e5e;
}

footer h5 {
    letter-spacing: 0.5px;
    color: #000000;
}

.social-medias {
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 25px;
    width: 40px;
    height: 40px;
    background-color: #000000;
    transition: 0.2s ease-in-out;
}

.social-icon i {
    color: #ef7d00;
}

.social-icon:hover {
    cursor: pointer;
    transform: scale(1.1);
}

/* Fim FOOTER */