.aivpafe-events-index-section {
	margin-bottom: 75px;
}

.aivpafe-events-index-section > h2 {
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid #29256d2e;
}

.aivpafe-events-year-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.aivpafe-events-year-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	padding: 18px;
	border: 1px solid #29256d2e !important;
	border-radius: 6px;
	background-color: #fff;
	box-shadow: 0 8px 24px rgba(35, 31, 94, 0.08);
	color: #29256d;
	text-align: center;
	text-decoration: none !important;
	transition:
		transform 0.25s ease,
		background-color 0.25s ease,
		box-shadow 0.25s ease;
}

.aivpafe-events-year-box:hover,
.aivpafe-events-year-box:focus {
	transform: translateY(-3px);
	background-color: var(--awb-color3);
	box-shadow: 0 12px 28px rgba(35, 31, 94, 0.14);
	color: #29256d;
	text-decoration: none !important;
}

.aivpafe-events-year-type {
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.aivpafe-events-year-number {
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}

.aivpafe-events-list-section {
    margin-top:20px;
    margin-bottom:60px;
}

.aivpafe-events-section-note {
	width: 100%;
	margin: -16px 0 28px;
	color: var(--body_typography-color);
	font-size: var(--body_typography-font-size);
	line-height: var(--body_typography-line-height);
}

#wrapper .post-content blockquote.aivpafe-events-empty-message {
	max-width: 900px;
	margin: 40px 0 20px;
	text-align: left;
}

.aivpafe-events-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.aivpafe-event-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #29256d2e !important;
	border-radius: 6px;
	background-color: #fff;
	box-shadow: 0 8px 24px rgba(35, 31, 94, 0.1);
	transition:
		transform 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
	padding: 20px;
}

.aivpafe-event-card:hover {
	transform: translateY(-5px);
	border-color: #29256d2e !important;
	box-shadow: 0 14px 32px rgba(35, 31, 94, 0.18);
}

.aivpafe-event-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

/*
.aivpafe-event-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
*/
.aivpafe-event-image {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background-color: #fff;
}

.aivpafe-event-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.aivpafe-event-card:hover .aivpafe-event-image img {
	transform: scale(1.02);
}

.aivpafe-event-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 20px 0 0;
}

.aivpafe-event-meta {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	margin-bottom: 17px;
}

.aivpafe-event-date,
.aivpafe-event-categories {
	display: inline-flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 7px 11px;
	border-radius: 3px;
	box-sizing: border-box;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
}

.aivpafe-event-date {
	color: #fff;
	background: #29256d;
}

.aivpafe-event-categories {
	color: #29256d;
	background: var(--awb-color3);
}

.aivpafe-event-categories a {
	color: #29256d;
}

.aivpafe-event-title {
	margin: 0 0 20px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
}

.aivpafe-event-title a {
	color: #29256d;
}

.aivpafe-event-card a,
.aivpafe-event-card a:hover,
.aivpafe-event-card a:focus {
	border-bottom: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	text-decoration-line: none !important;
}

/* Sotto i 1360px uniforma lo spazio tra le card al padding laterale. */
@media (max-width: 1359px) {
	.aivpafe-events-grid {
		gap: 15px;
	}
}

@media (max-width: 1024px) {
	.aivpafe-events-year-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 15px;
	}

	.aivpafe-events-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.aivpafe-event-meta {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.aivpafe-event-date,
	.aivpafe-event-categories {
		flex: none;
		width: 100%;
	}
}

@media (max-width: 640px) {
	.aivpafe-events-year-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}

	.aivpafe-events-year-box {
		min-height: 70px;
		padding: 10px 6px;
	}

	.aivpafe-events-year-type {
		display: none;
	}

	.aivpafe-events-year-number {
		font-size: 20px;
	}

	.aivpafe-events-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
}




