.services-secondary-page-inicio{
    margin-top: 0;
    /*background-color: #53B366;*/
    background: linear-gradient(to bottom, #53B366, #0D6AB0);
}

.container-services-secondary{
    margin-top: 0;
    /*background-color: #53B366;*/
    background: linear-gradient(to bottom, #53B366, #0D6AB0);
}

.container-services-secondary .row-services-secondary{

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-items: stretch;
    gap: 25px; 
    padding: 40px; 
    padding-top: 20px;
}

.services-item-secondary{
    background-color: #fff;
    flex: 1 1 calc(20% - 20px);
    max-width: 320px;
    margin-bottom: 20px;
    display: flex; 
    flex-direction: column; 
    border-radius: 8px;
    box-sizing: border-box;
    padding: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    

}

.services-item-secondary h2{
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    text-align: left;
}

.services-item-secondary .widget-wrapper {
    display: flex;
    margin-left: 15px;
    margin-bottom: 5px;
    width: 100%; 
}

.services-item-secondary .widget-wrapper img {
    width: 87%; 
    height: 150px;
    object-fit: cover; 
    border-radius: 8px;
    
}

.menu-services-secondary-ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu-services-secondary a{
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

@media (min-width: 1200px) {
    .services-item-secondary {
        max-width: 320px;
    }
}

@media (max-width: 1050px) and (min-width: 769px) {
    .services-item-secondary {
        flex: 1 1 calc(50% - 20px); 
        max-width: calc(50% - 20px);
        display: flex;
        flex-direction: column;
        align-items: center; /* Centraliza o conteúdo no card */
    }

    .services-item-secondary .widget-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .services-item-secondary .widget-wrapper img {
        width: 300px; 
        height: 250px; 
        object-fit: cover;
        border-radius: 8px;
    }

    .services-item-secondary h2 {
        text-align: center;
        width: 100%; 
        margin-top: 10px;
    }
    .menu-services-secondary a {
        font-size: 20px;
    }
}

/* Telas pequenas (smartphones) */
@media (max-width: 768px) {
    .container-services-secondary .row-services-secondary {
        padding: 20px;
        gap: 20px;
    }

    .services-item-secondary {
        flex: 1 1 100%;
        max-width: 70%;
        margin-top: 10px;
        display: flex;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    }


    .services-item-secondary .widget-wrapper {
        margin-left: 0;
        justify-content: center;
    }

    .services-item-secondary .widget-wrapper img {
        width: 90%; 
        height: 250px; 
        object-fit: cover; 
        border-radius: 8px;
        margin: 5%;
        
    }

    .menu-services-secondary{
        width: 100%;
    }

    .menu-services-secondary a {
        font-size: 1rem;
        width: 100%;
        align-self: flex-start;
    }

    .services-item-secondary h2 {
        font-size: 1.4rem;
        font-weight: 800;
    }

    .services-list {
        width: 300px;
        display: inline-block;  
        padding: 5px 10px; 
         /*border: 2px solid #0D6AB0;*/
        margin-bottom: 5px;
        border-radius: 5px;  
        background-color: #fff;  
        text-decoration: none;  
    }

}

/* Telas muito pequenas (smartphones menores) */
@media (max-width: 576px) {
    .container-services-secondary .row-services-secondary {
        padding: 10px;
        gap: 10px;
    }

    .services-item-secondary {
        flex: 1 1 100%;
        max-width: 80%;
 
    }

    .services-item-secondary .widget-wrapper img {
        width: 90%;
        height: 200px;
        margin-bottom: 0;
    }

}