
/* ========================================
   SEZIONE evento
======================================== */
.evento-ver1-section {
    padding: 0px 50px;
    padding-bottom: 60px;
    max-width: 1450px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.evento-ver1-subtitle {
    font-weight: 500;
    font-size: 18px;
    color: #666;
    margin: 0 0 10px 0;
}

.evento-ver1-title {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: #000000;
    max-width: 1200px;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 20px;
}

/* ========================================
   GRID ARTICOLI
======================================== */
.eventi-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.eventi-grid .evento-ver1-card {
    flex: 1 1 calc(33.333% - 20px); /* tre colonne */
    box-sizing: border-box;
}

/* ========================================
   CARD evento
======================================== */
.evento-ver1-card {
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/*
.evento-ver1-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ========================================
   IMMAGINI
======================================== */
.evento-ver1-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
}

.evento-ver1-date {
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
    color: #fff;
    padding: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    z-index: 1;
}

.evento-ver1-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   CONTENUTO CARD
======================================== */
.evento-ver1-content {
    padding: 25px 40px;
    background-color: #f8f8f8;
    height: calc(100% - 250px);
}



.evento-ver1-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 30px;
    color: #000;
    margin-bottom: 10px;

}

.evento-ver1-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #000;
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evento-ver1-link {
    font-weight: 700;
    font-size: 18px;
    color: #008BEE;
    text-decoration: underline;
    align-self: flex-start;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
}

.evento-ver1-link:hover {
    color: #0066cc;
}



/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    .eventi-grid .evento-ver1-card {
        flex: 1 1 calc(50% - 20px); /* due colonne */
    }
}

@media (max-width: 768px) {
    .eventi-grid .evento-ver1-card {
        flex: 1 1 100%; /* una colonna */
    }
}


/* TITOLO */
@media (max-width: 1066px) {
    .evento-ver1-title {
        font-size: 20px;
        line-height: 26px;
    }
}

@media (min-width: 1067px) and (max-width: 1231px) {
    .evento-ver1-title{
        font-size: 22px;
        line-height: 28px;
    }
}


/* TITOLO CARD */
@media (max-width: 1066px) {
    .evento-ver1-card-title  {
        font-size: 18px;
        line-height: 24px;
    }
}

@media (min-width: 1067px) and (max-width: 1231px) {
    .evento-ver1-card-title  {
        font-size: 20px;
        line-height: 26px;
    }
}


/* DESCRIZIONE CARD */
@media (max-width: 369px) {
    .evento-ver1-link{
        font-size: 14px;
        line-height: 20px;

    }
}


@media (max-width: 369px) {
    .evento-ver1-description {
        font-size: 14px;
        line-height: 20px;

    }
}


@media (max-width: 409px) {
    .evento-ver1-section {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .evento-ver1-section {
        padding-left: 50px;
        padding-right: 50px;
 
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .evento-ver1-section {
        padding-left: 30px;
        padding-right: 30px;
    }
}

.flex_date {
  display: flex;
  justify-content: space-between; /* distribuisce gli elementi su tutta la riga */
  flex-wrap: wrap; /* se lo schermo è piccolo, va a capo */
  gap: 10px; /* spazio orizzontale fra gli elementi */
  margin-bottom: 10px; /* opzionale: spazio sotto la riga */
  margin-top: 20px;
}

.flex_date .data,
.flex_date .ora,
.flex_date .luogo {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #000;
  flex: 1; /* ogni blocco occupa la stessa larghezza */
  min-width: 150px; /* evita che il testo si schiacci troppo */
}

.destra {
    display: flex;
    justify-content: end;
}

@media (max-width: 1128px) {
    .evento-ver1-link {
        font-size: 16px;
        line-height: 22px;
    }

    .evento-ver1-link {
        margin-block-start: 0px !important;
        margin-block-end: 0px !important;
    }
}

@media (max-width: 369px) {
    .evento-ver1-link {
        line-height: 20px;
        font-size: 14px;
    }
}

