/* Estilizando os Restaurantes */
.restaurant-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 50px 10%;
    background-color: #F2F2F2; /* Cinza claro de fundo */
}

.restaurant-item {
    width: 320px;
    height: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
}

.restaurant-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.restaurant-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: opacity 0.3s;
}

.restaurant-item:hover img {
    opacity: 0.85;
}

.restaurant-item .overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    justify-content: flex-start;
    width: 100%;
}

.restaurant-item p {
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: bold;
    color: #2A3D4A;
    padding: 10px;
    margin-bottom: auto;
    max-height: 80px; 
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* aumentou de 3 para 4 linhas */
    -webkit-box-orient: vertical;
}

.saiba-mais {
    margin-top: auto;
    padding: 10px 20px;
    background-color: transparent;
    color: #C44E2B;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #C44E2B;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    align-self: center;
}

.saiba-mais:hover {
    background-color: #C44E2B;
    color: #fff;
}

/* Responsividade */

/* 📱 Tablets e telas médias */
@media (max-width: 1024px) {
    .restaurant-section {
        justify-content: space-around;
    }

    .restaurant-item {
        width: 45%;
        height: auto;
    }
}

/* 📱 Mobile (celulares médios e pequenos) */
@media (max-width: 768px) {
    .restaurant-section {
        flex-direction: column;
        align-items: center;
        padding: 30px 5%;
    }

    .restaurant-item {
        width: 100%;
        height: auto;
    }

    .restaurant-item img {
        height: 220px;
    }
}

/* 📱📱 Mobile pequeno (telas menores que 480px) */
@media (max-width: 480px) {
    .restaurant-item img {
        height: 200px;
    }

    .restaurant-item p {
        font-size: 0.95rem;
    }

    .saiba-mais {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}
