/* =========================================
   EVENTS PAGE
   ========================================= */
.bento-archive-main {
    background: var(--signature) !important; 
    color: var(--black);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
}

/* --- HEADER SECTION --- */
.bento-archive-main {
    background: var(--bg-light);
    padding-bottom: 40px;
}

.bento-header {
    padding: 20px 20px;
    border-top: 5px solid var(--black);
    text-align: center;
}

.bento-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--white);
    margin: 0;
    text-shadow: 4px 4px 0px var(--black);
    line-height: 1;
    text-transform: uppercase;
}

.bento-subtitle {
    font-family: var(--font-main-bold);
    font-size: 1.5rem;
    color: var(--black);
    margin-top: 10px;
    text-transform: uppercase;
}

/* --- THE GRID CONTAINER --- */
.svolta-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    max-width: 1300px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

/* --- INDIVIDUAL BENTO CARD --- */
.bento-card {
    position: relative;
    border: 4px solid var(--white);
    box-shadow: 6px 6px 0px var(--black);
    background: var(--black);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px var(--signature);
}

/* Image Background */
.bento-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.bento-bg img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.bento-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.1) 60%);
    z-index: 1;
}

.bento-content {
    position: relative;
    z-index: 2;
    padding: 25px;
}

.bento-event-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

/* --- META BADGES (Date & Fee) --- */
.bento-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.bento-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-family: var(--font-main-bold);
    font-size: 0.85rem;
    text-transform: uppercase;
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0px var(--black);
    line-height: 1;
}

.date-badge {
    background: var(--white);
    color: var(--black);
}

.fee-badge {
    background: var(--signature);
    color: var(--white);
}

.bento-badge .dashicons {
    font-size: 1.1rem;
    width: 18px;
    height: 18px;
    margin-top: -2px; 
}

@media (min-width: 900px) {
    .bento-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .bento-card:nth-child(1) .bento-event-title { font-size: 3rem; }
    
    .bento-card:nth-child(4) { grid-column: span 2; grid-row: span 1; }
    
    .bento-card:nth-child(5) { grid-column: span 1; grid-row: span 2; }
    
    .bento-card:nth-child(8n) { grid-column: span 4; grid-row: span 1; }
    .bento-card:nth-child(8n) .bento-event-title { font-size: 2.5rem; }
}

@media (max-width: 899px) {
    .svolta-bento-grid {
        grid-template-columns: 1fr; 
        grid-auto-rows: 320px;
    }
}

/* --- 1. HERO HEADER --- */
.single-event-header {
    border-top: 5px solid var(--black);
    background: var(--bg-light);
    padding: 30px 20px 0 20px;
    text-align: center;
}

.se-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--black);
    text-transform: uppercase;
    margin: 0 auto 30px auto;
    max-width: 1000px;
    line-height: 1.1;
    text-shadow: 3px 3px 0px var(--signature);
}

.se-featured-image {
    max-width: 1000px;
    margin: 0 auto;
    height: 400px;
    border: 4px solid var(--black);
    box-shadow: 8px 8px 0px var(--black);
    background: var(--signature);
    overflow: hidden;
}

.se-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- 2. INFO BAR --- */
.se-info-bar {
    max-width: 1000px;
    margin: -20px auto 40px auto; 
    position: relative;
    z-index: 10;
    display: flex;
    background: var(--white);
    border: 4px solid var(--black);
    box-shadow: 8px 8px 0px var(--black);
}

.se-info-block {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-right: 4px solid var(--black);
}

.se-info-block:last-child { border-right: none; }

.se-info-text { display: flex; flex-direction: column; text-align: left; }
.se-info-text span { font-family: var(--font-main-bold); font-size: 0.8rem; text-transform: uppercase; opacity: 0.8; }
.se-info-text strong { font-family: var(--font-heading); font-size: 1.2rem; }

.se-info-block .dashicons { font-size: 2rem; width: 32px; height: 32px; color: var(--black); }

/* The Orange Ticket Block */
.se-fee-block { background: var(--signature); color: var(--white); }
.se-fee-block .dashicons { color: var(--white); }

/* --- 3. DESCRIPTION CONTENT --- */
.se-main-content {
    background: var(--bg-light);
    padding: 20px 20px 10px 20px;
}

.se-content-wrapper {
    max-width: 800px;
    margin: 0 20px;
    background: var(--white);
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Mobile Adjustments */
@media (max-width: 1055px) {
    .se-featured-image { height: 250px; }
    .se-info-bar {  margin: 0 20px; flex-direction: column; }
    .se-info-block { border-right: none; border-bottom: 4px solid var(--black); }
    .se-info-block:last-child { border-bottom: none; }
    .se-content-wrapper { padding: 20px; }
}
.event-description {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 15px;
    text-transform: uppercase;
}

 /* --- DYNAMIC TRAVEL MAP TIMELINE --- */
.svolta-timeline {
    border-left: 4px dashed var(--black); 
    margin: 30px 0 30px 25px; 
    padding-left: 30px; 
    position: relative;
}

.timeline-day {
    margin-bottom: 10px;
}

/* The Day Title (Designed like a travel ticket or signpost) */
.timeline-day-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    background: var(--signature);
    color: var(--white);
    display: inline-block;
    padding: 6px 14px;
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0px var(--black);
    
    margin-left: -48px; 
    margin-bottom: 20px;
    text-transform: uppercase;
    transform: rotate(-2deg);
}

/* The Individual Stops */
.timeline-event {
    display: flex;
    align-items: flex-start;
    gap: 15px; 
    margin-bottom: 5px; 
    position: relative;
}

/* The Circular Map Node (Holds the Emoji/Icon) */
.map-node {
    position: absolute;
    left: -49px; 
    top: 0;
    width: 34px;
    height: 34px;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 2px 2px 0px var(--black);
    z-index: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Make the node pop when hovering over the event */
.timeline-event:hover .map-node {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 4px 4px 0px var(--signature);
}

.event-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

/* The Time Badge */
.time-badge {
    font-family: var(--font-main-bold);
    background: var(--black);
    color: var(--white);
    padding: 3px 10px; 
    font-size: 0.9rem; 
    border: 2px solid var(--black);
    border-radius: 4px;
}

/* The Description Text */
.event-desc {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--black);
}

@media (max-width: 768px) {
    .svolta-timeline {
        margin-left: 15px;
    }
}

.svolta-polimi-credits {
    font-family: var(--font-italic);
    font-size: 0.9rem;
    color: var(--black);
    text-align: center;
}