/* Schede evento negli articoli tematici – Gite Fuori Porta in Piemonte */
.gfp-evs {
	--gfp-blue: #4A64C0;
	--gfp-ink: #2B2B33;
	--gfp-muted: #555a6e;
	--gfp-line: #e6e8f0;
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 8px 0 26px;
}
.gfp-evs * { box-sizing: border-box; }
.gfp-ev {
	display: flex;
	gap: 0;
	background: #fff;
	border: 1px solid var(--gfp-line);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 22px rgba(43, 43, 51, .07);
	position: relative;
}
.gfp-ev::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: var(--gfp-accent, #4A64C0);
}
.gfp-ev:nth-child(6n+1) { --gfp-accent: #E07A22; }
.gfp-ev:nth-child(6n+2) { --gfp-accent: #5E8A23; }
.gfp-ev:nth-child(6n+3) { --gfp-accent: #4A64C0; }
.gfp-ev:nth-child(6n+4) { --gfp-accent: #5B1A8F; }
.gfp-ev:nth-child(6n+5) { --gfp-accent: #E8221C; }
.gfp-ev:nth-child(6n+6) { --gfp-accent: #C99A12; }

.gfp-ev__media {
	flex: 0 0 38%;
	max-width: 360px;
	background: #f4f5fa;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 14px 14px;
}
.gfp-evs .gfp-ev__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
	transition: transform .2s ease;
	margin: 0;
}
.gfp-ev__media:hover .gfp-ev__img { transform: scale(1.02); }

.gfp-ev__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 24px 26px 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: var(--gfp-ink);
}
.gfp-ev__head { display: flex; gap: 14px; align-items: flex-start; }
.gfp-ev__date {
	flex: 0 0 auto;
	min-width: 62px;
	padding: 6px 8px;
	border-radius: 8px;
	background: var(--gfp-accent, #4A64C0);
	color: #fff;
	text-align: center;
	line-height: 1.05;
}
.gfp-ev__date b { display: block; font-size: 22px; font-weight: 800; }
.gfp-ev__date span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gfp-ev__flag {
	display: inline-block;
	margin-bottom: 4px;
	padding: 2px 8px;
	border-radius: 3px;
	background: #fff4e5;
	color: #8a4510;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.gfp-ev__flag--amis { background: #eaf2e0; color: #3b5a14; }
.gfp-evs .gfp-ev__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 800;
	color: var(--gfp-ink);
	text-transform: none;
	letter-spacing: 0;
}
.gfp-evs .gfp-ev__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--gfp-blue);
}
.gfp-evs .gfp-ev__meta li { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.gfp-evs .gfp-ev__meta li::before { content: none; }
.gfp-evs .gfp-ev__desc { margin: 0; font-size: 16px; line-height: 1.6; color: var(--gfp-muted); }
.gfp-evs .gfp-ev__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gfp-evs .gfp-ev__tags li {
	margin: 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: #f1f3fa;
	color: #3c4466;
	font-size: 13px;
	font-weight: 600;
}
.gfp-evs .gfp-ev__tags li::before { content: none; }
.gfp-ev__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.gfp-evs .gfp-ev__btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 4px;
	border: 2px solid var(--gfp-blue);
	background: var(--gfp-blue);
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none !important;
}
.gfp-evs .gfp-ev__btn:hover { background: #334A9A; border-color: #334A9A; }
.gfp-evs .gfp-ev__btn--ghost { background: transparent; color: var(--gfp-blue) !important; }
.gfp-evs .gfp-ev__btn--ghost:hover { color: #fff !important; }
.gfp-ev--sponsor { border-color: #f1c38f; }

@media (max-width: 680px) {
	.gfp-ev { flex-direction: column; }
	.gfp-ev__media { flex: none; max-width: none; padding: 18px 16px 6px; }
	.gfp-evs .gfp-ev__img { max-height: none; }
	.gfp-ev__body { padding: 16px 18px 20px; }
	.gfp-evs .gfp-ev__title { font-size: 20px; }
	.gfp-ev__btn { flex: 1 1 auto; justify-content: center; }
}

/* Griglia di locandine con didascalia (articolo del weekend) */
.gfp-pg {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px 16px;
	margin: 6px 0 24px;
}
.gfp-pg * { box-sizing: border-box; }
.gfp-pg .gfp-pg__item {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.gfp-pg .gfp-pg__a {
	display: block;
	border-radius: 6px;
	overflow: hidden;
	background: #f4f5fa;
	box-shadow: 0 2px 10px rgba(43, 43, 51, .10);
	line-height: 0;
}
.gfp-pg .gfp-pg__img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	transition: transform .2s ease;
}
.gfp-pg .gfp-pg__a:hover .gfp-pg__img { transform: scale(1.02); }
.gfp-pg__item--sponsor .gfp-pg__a { outline: 3px solid #f1c38f; outline-offset: 0; }
.gfp-pg figcaption {
	padding: 9px 2px 0;
	font-size: 14px;
	line-height: 1.35;
	color: #2B2B33;
	text-align: left;
}
.gfp-pg .gfp-pg__t {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 700;
	font-size: 15px;
}
.gfp-pg .gfp-pg__m {
	display: block;
	margin-top: 3px;
	color: #4A64C0;
	font-weight: 600;
	font-size: 13px;
}
.gfp-pg .gfp-pg__s {
	display: inline-block;
	margin-bottom: 3px;
	padding: 1px 6px;
	border-radius: 3px;
	background: #fff4e5;
	color: #8a4510;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
@media (max-width: 680px) {
	.gfp-pg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
	.gfp-pg figcaption { font-size: 13px; }
	.gfp-pg .gfp-pg__t { font-size: 14px; }
	.gfp-pg .gfp-pg__m { font-size: 12px; }
}

/* Locandina a schermo intero */
.gfp-zoom {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(15, 16, 24, .95);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 56px 12px 16px;
}
.gfp-zoom[hidden] { display: none; }
.gfp-zoom__img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 4px; }
.gfp-zoom__cap { margin: 10px 0 0; color: #fff; font-size: 15px; text-align: center; max-width: 720px; }
.gfp-zoom__x {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	color: #fff;
	font-size: 30px;
	line-height: 44px;
	cursor: pointer;
}

/* Link all'articolo dedicato nella griglia */
.gfp-pg .gfp-pg__more { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: #E07A22; text-decoration: none; }
.gfp-pg .gfp-pg__more:hover { text-decoration: underline; }

/* Articolo dedicato a un evento */
.gfp-info {
	margin: 10px 0 26px;
	padding: 20px 22px;
	border: 1px solid #e6e8f0;
	border-left: 5px solid #4A64C0;
	border-radius: 8px;
	background: #f7f8fc;
}
.gfp-info .gfp-info__t { margin: 0 0 10px; font-size: 20px; font-weight: 800; color: #2B2B33; }
.gfp-info .gfp-info__l { list-style: none; margin: 0; padding: 0; }
.gfp-info .gfp-info__l li { display: flex; gap: 12px; margin: 0; padding: 8px 0; border-top: 1px solid #e6e8f0; font-size: 16px; line-height: 1.45; }
.gfp-info .gfp-info__l li:first-child { border-top: 0; }
.gfp-info .gfp-info__l li::before { content: none; }
.gfp-info .gfp-info__l b { flex: 0 0 130px; color: #4A64C0; }
.gfp-single { text-align: center; margin: 0 0 20px; }
.gfp-single img { max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); }
@media (max-width: 680px) {
	.gfp-info .gfp-info__l li { flex-direction: column; gap: 2px; }
	.gfp-info .gfp-info__l b { flex: none; }
}

/* Promozione "Pubblica il tuo evento" */
.gfp-promo {
	position: relative;
	margin: 18px 0 26px;
	padding: 22px 22px 20px;
	border-radius: 10px;
	background: #f4f6fd;
	border: 1px solid #dfe4f6;
	overflow: hidden;
	text-align: center;
}
.gfp-promo::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 6px;
	background: linear-gradient(90deg, #E8221C 0 16.66%, #E07A22 16.66% 33.33%, #F2C230 33.33% 50%, #5E8A23 50% 66.66%, #4A64C0 66.66% 83.33%, #5B1A8F 83.33% 100%);
}
.gfp-promo .gfp-promo__t { margin: 6px 0 8px; font-size: 18px; line-height: 1.45; font-weight: 700; color: #2B2B33; }
.gfp-promo .gfp-promo__cd { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: #4A64C0; }
.gfp-promo--urgente .gfp-promo__cd { color: #E8221C; }
.gfp-promo .gfp-promo__btn {
	display: inline-block;
	padding: 13px 22px;
	border-radius: 6px;
	background: #E07A22;
	color: #fff !important;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: .04em;
	text-decoration: none !important;
	text-transform: uppercase;
	box-shadow: 0 4px 12px rgba(224, 122, 34, .35);
}
.gfp-promo .gfp-promo__btn:hover { background: #c96812; }

.gfp-pg .gfp-pg__promo { display: flex; }
.gfp-pg .gfp-promo-tile {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 260px;
	padding: 18px 12px;
	border: 2px dashed #4A64C0;
	border-radius: 6px;
	background: #f4f6fd;
	color: #2B2B33;
	text-align: center;
	text-decoration: none !important;
	line-height: 1.35;
}
.gfp-pg .gfp-promo-tile:hover { background: #eaeefb; }
.gfp-promo-tile__plus {
	width: 54px; height: 54px;
	border-radius: 50%;
	background: #4A64C0;
	color: #fff;
	font-size: 38px;
	line-height: 52px;
	font-weight: 300;
}
.gfp-pg .gfp-promo-tile__t { font-size: 17px; font-weight: 800; }
.gfp-pg .gfp-promo-tile__d { font-size: 14px; color: #555a6e; }
.gfp-pg .gfp-promo-tile__btn {
	margin-top: 4px;
	padding: 8px 12px;
	border-radius: 5px;
	background: #E07A22;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
@media (max-width: 680px) {
	.gfp-promo { padding: 20px 16px 18px; }
	.gfp-promo .gfp-promo__t { font-size: 16px; }
	.gfp-pg .gfp-promo-tile { min-height: 220px; padding: 14px 8px; }
	.gfp-pg .gfp-promo-tile__t { font-size: 15px; }
	.gfp-pg .gfp-promo-tile__d { font-size: 12.5px; }
	.gfp-pg .gfp-promo-tile__btn { font-size: 10.5px; padding: 7px 8px; }
}
