/*
Theme Name: Formula ATA
Version: 1.0
Description: A child theme of Flash
Template: flash
Author: Marcopolosrl.it
*/
@import url("../flash/style.css");
/* Your awesome customization starts here */

.input-field-overall {
    margin-bottom: 10px;
}
.input-field-overall span.input-group,
.input-field-overall span.input-group input {
    margin: 0 !important;
}


#events-list,
#events-list-past {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.past-events-title {
    margin: 60px 0 20px;
}

#events-list .event-card,
#events-list-past .event-card {
    border: 1px solid #C4C4C4;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-basis: calc(25% - 20px);
}

#events-list .event-card:not(.wip) span,
#events-list-past .event-card span {
    background-color: #EBEBEB;
    padding: 8px;
    display: inline-block;
}

#events-list .event-card .event-info,
#events-list-past .event-card .event-info {
    /* border-top: 1px solid #606060; */
    /* margin-top: 20px; */
}

#events-list .event-card.wip {
    /* padding: 0px; */
    position: relative;
}

#events-list .event-card .event-image,
#events-list-past .event-card .event-image {
    margin-bottom: 10px;
    border-bottom: 1px solid #606060;
}

#events-list .event-card.wip .event-image {
    opacity: 50%;
}

#events-list .event-card.wip .event-info {
    position: absolute;
    transform: translateY(-60%);
    top: 60%;
    left: 0;
    width: 100%;
    text-align: center;
    font-weight: bold;
    background-color: #007DC4;
    color: #fff;
    padding: 10px 0;
    border-top: 0;
    opacity: 50%;
    font-size: 20px;

}

#events-list .event-card .event-image,
#events-list-past .event-card .event-image {
    text-align: center;
    padding-bottom: 20px;
    height: 100px;
}

#events-list .event-card .event-image img,
#events-list-past .event-card .event-image img {
    margin: 0 auto;
    max-width: 200px;
    height: 80px;
}

#events-list .event-card h3,
#events-list-past .event-card h3 {
    display: -webkit-box; /* Utilizza un box flessibile */
    -webkit-box-orient: vertical; /* Orienta i box verticalmente */
    overflow: hidden; /* Nasconde il contenuto in eccesso */
    text-overflow: ellipsis; /* Aggiunge i puntini alla fine */
    -webkit-line-clamp: 2; /* Limita il contenuto a 2 righe */
    margin: 0 0 10px;
}

#events-list .event-card p,
#events-list-past .event-card p {
    margin: 0;
}

#events-list .event-card .flex,
#events-list-past .event-card .flex {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

#events-list .event-card .event-link div {
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    transition: background 0.5s ease;
    display: inline-block;
    margin-top: 20px;
}

#events-list .event-card .event-link div:hover {
    background-color: #007dc4;
}

#events-list-past {
    margin-bottom: 30px;
}

#events-list-past .event-card .event-image,
#events-list-past .event-card .event-info {
    opacity: 50%;
}

@media (max-width: 768px) {
    #events-list .event-card,
    #events-list-past .event-card {
        flex-basis: calc(50% - 10px); /* Due elementi per riga su schermi più piccoli */
    }
}

@media (max-width: 480px) {
    #events-list .event-card,
    #events-list-past .event-card {
        flex-basis: calc(100% - 10px); /* Un elemento per riga su schermi molto piccoli */
    }

    #events-list .event-card.wip {
        min-height: 250px;
    }

    #events-list .event-card .event-info h3, 
    #events-list-past .event-card .event-info h3 {
        font-size: 20px;
    }

    #events-list .event-card:not(.wip) span,
    #events-list-past .event-card:not(.wip) span {
        display: none;
    }

    .single-event #primary form div.flex {
        flex-direction: column;
        gap: 15px;
        margin: 15px 0;
    }

    .single-event #primary span.wpcf7-form-control-wrap {
        width: 100%;
    }

    .single-event #primary br {
        display: none;
    }

    /* #events-list .event-card .event-image, 
    #events-list .event-card.wip .event-image,
    #events-list-past .event-card .event-image {
        display: none;
    } */



}

.single-event #primary {
    float: none;
    width: auto;
}

.single-event #primary .logo-container {
    margin-bottom: 30px;
    border: 1px solid #C4C4C4
}

.single-event #primary h3 {
    margin-top: 40px;
    font-weight: 400;
}

.single-event #primary .flex.hour,
.single-event #primary .flex.date,
.single-event #primary .flex.speaker {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.single-event #primary .flex.speaker {
    align-items: flex-start;
}

.single-event #primary .flex.hour div,
.single-event #primary .flex.date div,
.single-event #primary .flex.speaker div {
    margin-left: 10px;
}

.single-event #primary .wpcf7 {
    border: 1px solid #C4C4C4;
    padding: 32px 24px;
    background-color: #F7F7F7;
}

.single-event #primary .wpcf7 {
    margin-top: 20px;
}

.single-event #primary form p {
    margin-bottom: 10px;
}

.single-event #primary form .input-file {
    margin-bottom: 30px;
}

.single-event #primary form .flex {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.single-event #primary .wpcf7-form-control-wrap {
    width: 50%;
}

.single-event #primary .wpcf7-form-control-wrap input[type="text"] {
    border-color: #C4C4C4;
}

.single-event #primary .wpcf7-form-control-wrap {
    display: inline-block;
    width: 100%;
    margin: 3px 0;
}

.single-event #primary span.wpcf7-list-item {
    margin: 0;
    font-size: 14px;
}