.ecp-event-cards-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px; padding: 20px 0;
box-sizing: border-box;
} .ecp-event-card {
border: 1px solid #ddd;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
width: calc(50% - 20px); max-width: 542px; min-height: 500px; display: flex;
flex-direction: column;
background-color: #fff;
transition: transform 0.3s, box-shadow 0.3s;
box-sizing: border-box;
} .ecp-event-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
} .ecp-event-image {
width: 100%;
height: 250px; object-fit: cover;
} .ecp-event-content {
padding: 15px;
display: flex;
flex-direction: column;
flex-grow: 1; box-sizing: border-box;
position: relative; } .ecp-event-top {
display: flex;
align-items: center;
margin-bottom: 10px;
} .ecp-event-logo {
width: 50px;
height: 50px;
object-fit: contain;
margin-right: 10px;
} .ecp-event-title {
font-size: 1.8em; margin: 0;
color: #333;
flex-grow: 1;
} .ecp-event-variabili {
margin-bottom: 10px;
}
.ecp-event-variabili p {
font-size: 1em; margin: 5px 0;
color: #555;
display: flex;
align-items: center;
}
.ecp-event-variabili i {
margin-right: 8px; color: #0073e6; }
.ecp-variabile-link {
color: #555;
text-decoration: none;
transition: color 0.3s;
}
.ecp-variabile-link:hover {
color: #0073e6; text-decoration: underline;
} .ecp-event-descrizione {
display: -webkit-box; -webkit-box-orient: vertical;  overflow: hidden; text-overflow: ellipsis; font-size: 0.95em; margin-bottom: 10px;
color: #666;
cursor: pointer; position: relative; } .ecp-event-descrizione::after {
content: '...';
position: absolute;
bottom: 0;
right: 0;
background: linear-gradient(to left, rgba(255,255,255,0.8), rgba(255,255,255,0));
padding-left: 10px;
} .ecp-event-cta-button {
align-self: flex-start; padding: 12px 25px; background-color: #0073e6;
color: #fff;
text-decoration: none;
border-radius: 4px;
transition: background-color 0.3s;
text-align: center;
font-size: 1em; margin-top: auto; }
.ecp-event-cta-button:hover {
background-color: #005bb5;
text-decoration: none;
color:#fff;
font-weight: bolder;
} @media (max-width: 1200px) {
.ecp-event-card {
width: calc(50% - 20px); }
}
@media (max-width: 768px) {
.ecp-event-card {
width: 100%; }
.wp-editor-area {
min-height: 300px; }
} .ecp-modal-overlay {
display: none; position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
justify-content: center;
align-items: center;
z-index: 1000;
}
.ecp-modal-content {
background-color: #fff;
padding: 20px;
border-radius: 8px;
max-width: 500px;
width: 450%;
max-height: 80%;
overflow-y: auto;
position: relative;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
margin-top: 100px;
}
.ecp-modal-close {
position: absolute;
top: 10px;
right: 20px;
font-size: 30px;
font-weight: bold;
cursor: pointer;
}
.ecp-modal-text {
font-size: 1em;
color: #333;
}