/**
 * FAV Eventi — Archive page styles (Pagina Eventi in stile prototype)
 * @package FAV_Eventi
 */

/* ============================================================
   PAGE BASE — Manrope font
   ============================================================ */
.fav-eventi-archive,
.fav-eventi-archive body,
.fav-eventi-archive h1,
.fav-eventi-archive h2,
.fav-eventi-archive h3,
.fav-eventi-archive h4,
.fav-eventi-archive p,
.fav-eventi-archive span,
.fav-eventi-archive a,
.fav-eventi-archive button {
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	box-sizing: border-box;
}

.fav-ev-archive {
	background: #ffffff;
	color: #364451;
}

/* ============================================================
   HERO
   ============================================================ */
.fav-ev-hero {
	position: relative;
	background: #016075;
	overflow: hidden;
}

.fav-ev-hero-inner {
	width: 1120px;
	max-width: calc(100% - 32px);
	margin: 0 auto;
	padding: 80px 0 96px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 18px;
}

.fav-ev-hero-eyebrow {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #D8ECF1;
}

.fav-ev-hero-title {
	margin: 0;
	font-weight: 700;
	font-size: 52px;
	line-height: 70px;
	letter-spacing: -0.2px;
	color: #ffffff;
}

.fav-ev-hero-desc {
	margin: 0;
	max-width: 560px;
	font-weight: 400;
	font-size: 18px;
	line-height: 32px;
	letter-spacing: -0.2px;
	color: #ffffff;
}

.fav-ev-hero-curve {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 90px;
	display: block;
}

/* ============================================================
   FILTRI
   ============================================================ */
.fav-ev-filters {
	width: 1120px;
	max-width: calc(100% - 32px);
	margin: 0 auto;
	padding: 36px 0 0 0;
}

.fav-ev-filters-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.fav-ev-filter {
	background: #ffffff;
	border: 1px solid #DDE3EA;
	border-radius: 1000px;
	padding: 10px 22px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.2px;
	color: #364451;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fav-ev-filter:hover {
	border-color: #01718A;
	color: #01718A;
}

.fav-ev-filter.is-active {
	background: #01718A;
	border-color: #01718A;
	color: #ffffff;
}

/* ============================================================
   GRIGLIA
   ============================================================ */
.fav-ev-grid-section {
	width: 1120px;
	max-width: calc(100% - 32px);
	margin: 0 auto;
	padding: 60px 0 110px 0;
}

.fav-ev-grid-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-bottom: 56px;
	text-align: center;
}

.fav-ev-grid-eyebrow {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #01718A;
}

.fav-ev-grid-title {
	margin: 0;
	font-weight: 700;
	font-size: 29px;
	line-height: 37.7px;
	letter-spacing: -0.2px;
	color: #364451;
}

.fav-ev-grid-count {
	margin: 0;
	font-weight: 500;
	font-size: 14px;
	color: #60697B;
}

.fav-ev-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 56px 36px;
}

@media (max-width: 920px) {
	.fav-ev-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.fav-ev-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CARD
   ============================================================ */
.fav-ev-card {
	background: #ffffff;
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px #EAEAEA;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fav-ev-card:hover {
	transform: translateY(-4px);
	box-shadow: inset 0 0 0 1px #D8ECF1, 0 8px 24px rgba(1, 113, 138, .08);
}

.fav-ev-card-media {
	position: relative;
	display: block;
	height: 208px;
	margin: 1px 1px 0 1px;
	border-radius: 6px 6px 0 0;
	background-color: #F0F0F0;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.fav-ev-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fav-ev-card-date {
	position: absolute;
	left: 16px;
	top: 16px;
	background: #ffffff;
	border-radius: 8px;
	padding: 10px 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	box-shadow: 0 2px 8px rgba(1, 96, 117, 0.18);
}

.fav-ev-card-day {
	font-weight: 800;
	font-size: 26px;
	line-height: 26px;
	color: #01718A;
}

.fav-ev-card-month {
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.6px;
	color: #60697B;
}

.fav-ev-card-body {
	padding: 24px 24px 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.fav-ev-card-tag {
	align-self: flex-start;
	background: #D8ECF1;
	color: #01718A;
	border-radius: 1000px;
	padding: 4px 12px;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.fav-ev-card-title {
	margin: 0;
	font-weight: 700;
	font-size: 22px;
	line-height: 29px;
	letter-spacing: -0.2px;
	color: #364451;
}

.fav-ev-card-title a {
	color: inherit;
	text-decoration: none;
}

.fav-ev-card-title a:hover {
	color: #01718A;
}

.fav-ev-card-luogo {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #60697B;
}

.fav-ev-card-luogo svg {
	display: block;
	flex-shrink: 0;
}

.fav-ev-card-desc {
	margin: 0;
	font-weight: 500;
	font-size: 16px;
	line-height: 27.2px;
	color: #60697B;
}

.fav-ev-card-cta {
	margin-top: auto;
	padding-top: 4px;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: -0.2px;
	color: #01718A;
	text-decoration: none;
}

.fav-ev-card-cta:hover {
	color: #016075;
}

/* ============================================================
   INFINITE SCROLL + EMPTY
   ============================================================ */
.fav-ev-infinite-sentinel {
	width: 100%;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px 0;
}
.fav-ev-infinite-spinner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.fav-ev-infinite-spinner svg {
	animation: fav-ev-spin 0.8s linear infinite;
}
@keyframes fav-ev-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}
.fav-ev-infinite-end {
	text-align: center;
	font-weight: 600;
	font-size: 16px;
	color: #60697B;
	padding: 40px 0 20px;
}

.fav-ev-empty {
	text-align: center;
	padding: 60px 0;
	font-size: 18px;
	color: #60697B;
}

.fav-ev-empty p {
	margin: 0 0 14px 0;
}
