/* ==================================================
   PROPERS ESDEVENIMENTS - PÀGINA INICIAL
   ================================================== */

.eventos-home {
    max-width: 1280px;
    margin: 55px auto 65px;
    padding: 0 55px;
}


/* TÍTOL GENERAL */

.eventos-home > h2 {
    margin: 0 0 30px;
    text-align: center;

    font-size: 30px;
    font-weight: 600;
}


/* GRID */

.eventos-home-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}


/* TARGETA */

.evento-home-card {
    overflow: hidden;

    background: #ffffff;

    border-radius: 10px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.evento-home-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12);
}


/* TÍTOL DE L'ESDEVENIMENT */

.evento-home-titulo {
    margin: 0;
    padding: 14px 16px;

    min-height: 70px;

    display: flex;
    align-items: center;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}


.evento-home-titulo a {
    color: #222222;
    text-decoration: none;
}


.evento-home-titulo a:hover {
    color: #E87524;
}


/* IMATGE */

.evento-home-imagen {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 3 / 4;

    overflow: hidden;

    background: #f5f5f5;
}


.evento-home-imagen img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform 0.35s ease;
}


.evento-home-card:hover
.evento-home-imagen img {
    transform: scale(1.025);
}


/* SI L'ESDEVENIMENT NO TÉ IMATGE */

.evento-home-sin-imagen {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: #eeeeea;

    color: #777777;

    font-size: 16px;
}


/* DATA I HORA */

.evento-home-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 4px;

    padding: 12px 14px 15px;
}


.evento-home-fecha {
    font-size: 14px;
    font-weight: 600;

    color: #E87524;
}


.evento-home-hora {
    font-size: 13px;

    color: #666666;
}


/* BOTÓ */

.eventos-home-boton {
    margin-top: 32px;

    text-align: center;
}


.eventos-home-boton a {
    display: inline-block;

    padding: 12px 24px;

    background: #E87524;
    color: #ffffff;

    border-radius: 7px;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none;

    transition: background 0.2s ease;
}


.eventos-home-boton a:hover {
    background: #C95F17;
    color: #ffffff;
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 900px) {

    .eventos-home {
        padding: 0 35px;
    }

    .eventos-home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

}


/* ==================================================
   MÒBIL
   ================================================== */

@media (max-width: 600px) {

    .eventos-home {
        margin: 40px auto 50px;
        padding: 0 20px;
    }

    .eventos-home > h2 {
        font-size: 27px;
        margin-bottom: 25px;
    }

    .eventos-home-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .evento-home-titulo {
        min-height: auto;

        font-size: 19px;
    }

    .evento-home-fecha {
        font-size: 14px;
    }

    .evento-home-hora {
        font-size: 13px;
    }

}