/**
 * IPV Events Timeline - CSS dal documento di Daniele
 */

:root {
	--ev-purple: #FB0F5A;
	--ev-purple-hover: #d90a4e;
	--ev-purple-light: #FFF0F4;
	--ev-dark: #1B1A27;
	--ev-grey-bg: #F7F8FA;
	--ev-border-radius: 15px;
	--ev-shadow: 0px 4px 20px rgba(0,0,0,0.05);
}

/* ========================================
   CONTAINER
   ======================================== */
.ev-container,
.ipv-timeline-wrapper {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--ev-dark);
	max-width: 1140px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* ========================================
   HEADER
   ======================================== */
.ipv-timeline-header {
	text-align: center;
	margin-bottom: 40px;
}

.ipv-label {
	color: var(--ev-purple);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.ipv-title {
	font-size: 42px;
	font-weight: 700;
	color: var(--ev-dark);
	margin: 0 0 8px 0;
}

.ipv-title span {
	color: var(--ev-purple);
}

.ipv-subtitle {
	color: #666;
	font-size: 16px;
	margin: 0;
}

/* ========================================
   FILTRI
   ======================================== */
.ipv-filters,
.ev-filters-row {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
	overflow-x: auto;
	padding-bottom: 5px;
	justify-content: center;
	flex-wrap: wrap;
}

.ipv-filter-btn,
.ev-filter-pill {
	padding: 8px 20px;
	border-radius: 30px;
	background: white;
	border: 1px solid #eee;
	color: #333;
	cursor: pointer;
	font-weight: 500;
	transition: 0.3s;
}

.ipv-filter-btn:hover,
.ev-filter-pill:hover {
	background: #fff !important;
	border-color: var(--ev-purple);
	color: var(--ev-purple) !important;
}

.ipv-filter-btn.active,
.ev-filter-pill.active {
	background: var(--ev-purple) !important;
	color: #fff !important;
	border-color: var(--ev-purple);
}

/* ========================================
   CALENDARIO
   ======================================== */
.ipv-calendar-nav {
	background: white;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	margin-bottom: 40px;
}

.ipv-calendar-controls {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-bottom: 20px;
}

.ipv-year-select,
.ipv-month-select {
	padding: 10px 20px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	background: white;
	transition: all 0.3s ease;
}

.ipv-year-select:hover,
.ipv-month-select:hover {
	border-color: var(--ev-purple);
}

.ipv-calendar-week {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ipv-week-arrow {
	background: var(--ev-grey-bg);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 24px;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.ipv-week-arrow:hover {
	background: var(--ev-purple);
	color: white;
	transform: scale(1.1);
}

.ipv-week-days,
.ev-calendar-strip {
	display: flex;
	gap: 10px;
	flex: 1;
	overflow-x: auto;
	padding: 4px;
}

.ipv-day-box,
.ev-cal-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 60px;
	height: 70px;
	background: var(--ev-grey-bg);
	border-radius: 12px;
	font-size: 14px;
	cursor: pointer;
	transition: 0.3s;
	border: 2px solid transparent;
}

.ipv-day-box:hover,
.ev-cal-day:hover {
	border-color: var(--ev-purple);
	transform: translateY(-2px);
}

.ipv-day-box.active,
.ev-cal-day.active {
	background: var(--ev-purple);
	color: white;
	border-color: var(--ev-purple);
	box-shadow: 0 4px 10px rgba(251, 15, 90, 0.3);
	transform: scale(1.05);
}

.ipv-day-box .day-name,
.ipv-day-box .day-num,
.ev-cal-day span,
.ev-cal-day strong {
	display: block;
}

.ipv-day-box .day-name,
.ev-cal-day span {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
	margin-bottom: 4px;
	opacity: 0.8;
}

.ipv-day-box .day-num,
.ev-cal-day strong {
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}

/* ========================================
   MASTER GRID
   ======================================== */
.ipv-master-grid {
	display: grid;
	grid-template-columns: 1fr 500px;
	gap: 30px;
	align-items: start;
}

/* ========================================
   LISTA EVENTI - LAYOUT COMPATTO INGRANDITO
   ======================================== */
.ipv-events-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Card evento orizzontale PIÙ GRANDE */
.ev-card {
	display: flex;
	align-items: center;
	background: white;
	padding: 20px;
	border-radius: var(--ev-border-radius);
	box-shadow: var(--ev-shadow);
	transition: 0.3s;
	min-height: 100px;
}

.ev-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.ev-card-thumb {
	width: 120px;
	height: 90px;
	border-radius: 8px;
	object-fit: cover;
	margin-right: 20px;
	flex-shrink: 0;
}

.ev-card-info {
	flex-grow: 1;
}

.ev-card-info h4 {
	margin: 0 0 6px 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--ev-dark);
	line-height: 1.3;
}

.ev-card-date {
	font-size: 14px;
	color: #666;
	font-weight: 500;
	margin: 0 0 8px 0;
}

.ev-card-action {
	flex-shrink: 0;
	margin-left: 20px;
}

.ev-btn {
	padding: 12px 28px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	transition: 0.3s;
	border: none;
	white-space: nowrap;
}

.ev-btn-purple {
	background: var(--ev-purple);
	color: white;
}

.ev-btn-purple:hover {
	background: var(--ev-purple-hover);
	color: white;
	transform: scale(1.05);
}

.ev-btn-ticket {
	background: white;
	color: var(--ev-purple);
	border: 1px solid var(--ev-purple-light);
}

.ev-btn-ticket i {
	margin-right: 8px;
	font-size: 18px;
}

.ev-btn-ticket:hover {
	background: var(--ev-purple-light);
}

.ipv-no-events {
	text-align: center;
	padding: 40px;
	color: #666;
}

/* ========================================
   FEATURED SIDEBAR
   ======================================== */
.ipv-featured-sidebar {
	position: sticky;
	top: 20px;
}

.ipv-featured-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.ipv-featured-image {
	position: relative;
	height: 350px;
	overflow: hidden;
}

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

.ipv-featured-badges {
	position: absolute;
	top: 20px;
	left: 20px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.badge {
	background: rgba(0,0,0,0.7);
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.ipv-featured-content {
	padding: 30px;
}

.ipv-emoji {
	font-size: 32px;
	display: block;
	margin-bottom: 12px;
}

.ipv-featured-content h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 12px 0;
	line-height: 1.2;
	color: var(--ev-dark);
}

.ipv-featured-meta {
	font-size: 14px;
	color: #666;
	margin: 0 0 24px 0;
}

.ipv-info-boxes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 24px;
}

.ipv-info-box {
	background: var(--ev-grey-bg);
	border-radius: 12px;
	padding: 16px;
	text-align: center;
}

.ipv-info-box .label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 6px;
}

.ipv-info-box strong {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: var(--ev-dark);
}

.ipv-btn-featured {
	display: block;
	width: 100%;
	background: var(--ev-purple);
	color: white;
	padding: 16px 32px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: all 0.3s ease;
}

.ipv-btn-featured:hover {
	background: var(--ev-purple-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(251, 15, 90, 0.4);
	color: white;
}

/* ========================================
   FOOTER
   ======================================== */
.ipv-footer {
	text-align: center;
	margin-top: 40px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
	.ipv-master-grid {
		grid-template-columns: 1fr 400px;
	}
	
	.ipv-featured-image {
		height: 300px;
	}
}

@media (max-width: 968px) {
	.ipv-master-grid {
		grid-template-columns: 1fr;
	}
	
	.ipv-featured-sidebar {
		position: relative;
		top: 0;
		order: -1;
		margin-bottom: 30px;
	}
	
	.ipv-title {
		font-size: 32px;
	}
}

@media (max-width: 640px) {
	.ipv-timeline-wrapper,
	.ev-container {
		padding: 20px 16px;
	}
	
	.ipv-title {
		font-size: 28px;
	}
	
	.ipv-calendar-controls {
		flex-direction: column;
	}
	
	.ipv-year-select,
	.ipv-month-select {
		width: 100%;
	}
	
	.ev-card {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
	}
	
	.ev-card-thumb {
		width: 100%;
		height: 180px;
		margin-right: 0;
		margin-bottom: 12px;
		border-radius: 10px;
	}

	.ev-card-info {
		padding: 0;
	}

	.ev-card-info h4 {
		font-size: 16px;
	}
	
	.ev-card-action {
		width: auto;
		margin-left: 0;
		margin-top: 12px;
	}
	
	.ev-btn {
		width: auto;
		display: inline-flex;
		justify-content: center;
	}
	
	.ipv-featured-content {
		padding: 20px 16px;
	}

	.ipv-featured-content h2 {
		font-size: 20px;
	}

	.ipv-info-boxes {
		flex-direction: column;
		gap: 8px;
	}

	.ipv-btn-featured {
		font-size: 14px;
		padding: 14px 24px;
	}
}
