/* 
 * CORREÇÃO V4 PARA IMAGENS DOS CARDS
 * Solução com background-image para garantir compatibilidade em telas grandes e pequenas
 */

/* Reset específico para seção de pacotes - remove conflitos */
.services-grid.pacotes-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 colunas em telas grandes */
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px 0 !important;
}

/* Cards dos pacotes */
.service-item.pacote-card {
    display: block !important;
    width: 100% !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease !important;
    background-color: white !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}

/* Container da imagem */
.service-item.pacote-card .service-image {
    position: relative !important;
    width: 100% !important;
    height: 200px !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Esconder a imagem real mas mantê-la para acessibilidade */
.service-item.pacote-card .service-image img {
    opacity: 0 !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Estilos do texto */
.service-item.pacote-card h3 {
    font-size: 18px !important;
    color: #333 !important;
    margin: 15px 15px 5px !important;
    padding: 0 !important;
}

.service-item.pacote-card p {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 15px 15px !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

/* Efeito hover */
.service-item.pacote-card:hover {
    transform: translateY(-5px) !important;
}

/* Responsividade para telas médias */
@media (max-width: 992px) {
    .services-grid.pacotes-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsividade para telas pequenas */
@media (max-width: 480px) {
    .services-grid.pacotes-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .service-item.pacote-card .service-image {
        height: 120px !important;
    }
    
    .service-item.pacote-card h3 {
        font-size: 16px !important;
        margin: 10px 10px 5px !important;
    }
    
    .service-item.pacote-card p {
        font-size: 12px !important;
        margin: 0 10px 10px !important;
        line-height: 1.3 !important;
    }
}
