/* Impostazioni generali */
body {
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #ffffff;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 36px;
    font-weight: 600;
    color: #333;
}

.timeline-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.timeline {
    display: flex;
    gap: 50px;
}

.event-card {
    position: relative;
    flex: 0 0 auto;
    width: 350px;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}

.event-card:hover {
    transform: scale(1.05);
}

.event-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid #ddd;
    transition: transform 0.3s ease-in-out;
}

.event-card:hover .event-img {
    transform: scale(1.05);
}

.event-content {
    padding: 20px;
}

.event-date {
    font-size: 18px;
    font-weight: 500;
    color: #0071e3;
    margin-bottom: 10px;
    display: inline-block;
    background-color: #f0f8ff;
    padding: 5px 15px;
    border-radius: 12px;
}

.event-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.event-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}