/* ============================================
   EVENTI
   Percorso: wp-content/themes/fc-child/assets/css/events.css
   Caricato solo su /eventi/, pagine evento e tipologie.
   Colori e animazioni coerenti con style.css
   (#971a1d, #7a1417, #fcf4f4, #e2e2e2; --fc-rise, fc-rise).
   ============================================ */

.fc-event {
	/* width:100% serve perché il contenitore del tema può essere flex: senza, con margin auto il main
	   si restringe al contenuto (stretto quando manca l'immagine hero). */
	width: 100%;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

/* ---------- Hero ---------- */

.fc-event__hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	padding: 36px 0 40px;
	align-items: start;
}

.fc-event__eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #971a1d;
	margin: 0 0 14px;
}

/* Etichetta di stato: testo + bordo, mai solo colore. */
.fc-event__badge {
	display: inline-block;
	padding: 3px 10px;
	border: 2px solid currentColor;
	border-radius: 4px;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: #444;
	background-color: #fff;
}

.fc-event__badge--ongoing {
	color: #971a1d;
	border-style: solid;
}

.fc-event__badge--concluded {
	color: #444;
	border-style: dashed;
}

.fc-event__badge--cancelled {
	color: #7a1417;
	border-style: double;
	border-width: 4px;
}

.fc-event__title {
	font-size: 2rem;
	line-height: 1.15;
	margin: 0 0 12px;
}

.fc-event__subtitle {
	font-size: 1.15rem;
	line-height: 1.5;
	color: #444;
	margin: 0 0 22px;
}

.fc-event__facts {
	display: grid;
	gap: 12px;
	margin: 0 0 24px;
	padding: 18px 20px;
	background-color: #fcf4f4;
	border: 1px solid #eed8d9;
	border-left: 4px solid #971a1d;
	border-radius: 8px;
}

.fc-event__fact {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
}

.fc-event__fact dt {
	min-width: 84px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #971a1d;
}

.fc-event__fact dd {
	margin: 0;
	font-weight: 600;
	color: #222;
}

.fc-event__actions {
	margin: 0 0 8px;
}

.fc-event__note {
	margin: 0;
	font-weight: 600;
	color: #444;
}

.fc-event__media {
	margin: 0;
	border-radius: 10px;
	overflow: hidden;
	background-color: #f1e8e8;
	box-shadow: 0 6px 20px rgba(151, 26, 29, 0.1);
}

/* Mostra la locandina intera, senza ritagli. */
.fc-event__media img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Sezioni ---------- */

.fc-event__section {
	padding: 40px 0;
	border-top: 1px solid #e2e2e2;
}

.fc-event__section > * {
	max-width: 760px;
}

.fc-event__section-title {
	font-size: 1.5rem;
	margin: 0 0 16px;
}

.fc-event__subhead {
	font-size: 1.1rem;
	margin: 24px 0 10px;
}

.fc-event__prose p {
	color: #444;
	line-height: 1.65;
	margin: 0 0 14px;
}

.fc-event__prose p:last-child {
	margin-bottom: 0;
}

/* Programma: elenco numerato con numeri evidenziati. */
.fc-event__steps {
	list-style: none;
	counter-reset: fc-step;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.fc-event__steps li {
	counter-increment: fc-step;
	position: relative;
	padding: 14px 16px 14px 62px;
	background-color: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	line-height: 1.5;
	color: #333;
}

.fc-event__steps li::before {
	content: counter(fc-step);
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #971a1d;
	color: #fff;
	font-weight: 700;
	line-height: 32px;
	text-align: center;
}

/* Relatore */
.fc-event__speaker {
	padding: 22px;
	background-color: #fdf8f8;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
}

.fc-event__speaker-name {
	font-size: 1.25rem;
	margin: 0 0 4px;
}

.fc-event__speaker-role {
	margin: 0 0 12px;
	color: #971a1d;
	font-weight: 600;
}

/* Informazioni */
.fc-event__info-list {
	display: grid;
	gap: 10px;
	margin: 0 0 24px;
}

.fc-event__info-list > div {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.fc-event__info-list dt {
	min-width: 110px;
	font-weight: 700;
	color: #971a1d;
}

.fc-event__info-list dd {
	margin: 0;
	color: #333;
}

.fc-event__materials {
	margin: 0;
	padding-left: 20px;
}

.fc-event__materials li {
	margin-bottom: 6px;
}

/* Link testuali */
.fc-event__link,
.fc-event__link:visited {
	color: #971a1d;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fc-event__link:hover,
.fc-event__link:focus {
	color: #7a1417;
}

.fc-event__link:focus-visible {
	outline: 3px solid #971a1d;
	outline-offset: 3px;
	border-radius: 2px;
}

.fc-event__back {
	margin: 28px 0 0;
}

/* ---------- Tablet / desktop ---------- */

@media (min-width: 900px) {
	.fc-event__hero {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: 48px;
		padding: 56px 0 56px;
	}

	.fc-event__title {
		font-size: 2.6rem;
	}

	.fc-event__section {
		padding: 52px 0;
	}

	.fc-event__section-title {
		font-size: 1.75rem;
	}
}

/* ---------- Animazioni (stesso linguaggio del resto del sito) ---------- */
/* Lo stato nascosto vale solo se reveal.js è attivo (.fc-js). */

.fc-js .fc-ev-reveal:not(.is-visible) {
	opacity: 0;
	transform: translateY(var(--fc-rise));
}

.fc-js .fc-ev-reveal.is-visible {
	animation: fc-rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
	animation-delay: var(--fc-delay, 0s);
}

/* ============================================
   ARCHIVIO /eventi/ E CARD EVENTO
   ============================================ */

.fc-events {
	width: 100%;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

.fc-events__header {
	margin: 32px 0 8px;
	padding: 40px 24px;
	text-align: center;
	background-color: #fcf4f4;
	border: 1px solid #eed8d9;
	border-radius: 10px;
}

.fc-events__eyebrow {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #971a1d;
	margin: 0 0 10px;
}

.fc-events__title {
	font-size: 2.2rem;
	line-height: 1.15;
	margin: 0 0 12px;
}

.fc-events__intro {
	max-width: 560px;
	margin: 0 auto;
	font-size: 1.1rem;
	line-height: 1.5;
	color: #444;
}

.fc-events__section {
	padding: 44px 0 8px;
}

.fc-events__section--past {
	margin-top: 40px;
	border-top: 1px solid #e2e2e2;
}

.fc-events__section-title {
	font-size: 1.6rem;
	margin: 0 0 8px;
}

.fc-events__section-intro {
	color: #444;
	margin: 0 0 24px;
}

.fc-events__section-title + .fc-events__grid,
.fc-events__section-title + .fc-events__empty {
	margin-top: 22px;
}

.fc-events__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.fc-events__empty {
	padding: 26px;
	background-color: #fdf8f8;
	border: 1px dashed #d9bfc0;
	border-radius: 8px;
}

.fc-events__empty p {
	margin: 0 0 8px;
	color: #444;
	line-height: 1.55;
}

.fc-events__empty p:last-child {
	margin-bottom: 0;
}

/* ---------- Card ---------- */

.fc-event-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 1px solid #e2e2e2;
	border-top: 4px solid #971a1d;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(151, 26, 29, 0.08);
	transition: box-shadow 0.2s ease;
}

.fc-event-card:hover {
	box-shadow: 0 10px 26px rgba(151, 26, 29, 0.16);
}

/* Eventi passati: bordo tratteggiato oltre all'etichetta testuale. */
.fc-event-card--past {
	border-top: 4px dashed #8a8a8a;
	box-shadow: none;
}

.fc-event-card__media {
	aspect-ratio: 6 / 5;
	background-color: #f1e8e8;
}

.fc-event-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fc-event-card__placeholder {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #971a1d;
}

.fc-event-card__day {
	font-size: 3.4rem;
	font-weight: 700;
	line-height: 1;
}

.fc-event-card__month {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fc-event-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px 24px;
}

.fc-event-card__body > p,
.fc-event-card__body > h3 {
	margin: 0;
}

.fc-event-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.fc-event-card__type {
	color: #971a1d;
}

.fc-event-card__video {
	color: #333;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.8rem;
}

.fc-event-card__date {
	font-weight: 700;
	color: #222;
}

.fc-event-card__time {
	font-weight: 600;
}

.fc-event-card__title {
	font-size: 1.25rem;
	line-height: 1.25;
}

.fc-event-card__text {
	color: #444;
	line-height: 1.55;
}

.fc-event-card__info {
	font-size: 0.9rem;
	color: #555;
}

.fc-event-card__link {
	align-self: flex-start;
	margin-top: auto;
}

/* Tutta la card è cliccabile, con un solo link per tastiera e screen reader. */
.fc-event-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.fc-event-card:has(.fc-event-card__link:focus-visible) {
	outline: 3px solid #971a1d;
	outline-offset: 3px;
}

/* ---------- Paginazione ---------- */

.fc-events__pagination {
	margin-top: 32px;
}

.fc-events__pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-events__pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
	color: #971a1d;
}

.fc-events__pagination a.page-numbers:hover,
.fc-events__pagination a.page-numbers:focus {
	background-color: #fcf4f4;
	color: #7a1417;
}

.fc-events__pagination a.page-numbers:focus-visible {
	outline: 3px solid #971a1d;
	outline-offset: 2px;
}

/* Pagina corrente: sfondo pieno + sottolineatura (non solo colore). */
.fc-events__pagination .page-numbers.current {
	background-color: #971a1d;
	border-color: #971a1d;
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Tablet / desktop ---------- */

@media (min-width: 640px) {
	.fc-events__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.fc-events__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fc-events__title {
		font-size: 2.6rem;
	}
}

/* Un solo evento in programma: card larga, immagine e testo affiancati. */
.fc-events__grid--single {
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.fc-event-card--featured {
		flex-direction: row;
		align-items: stretch;
	}

	.fc-event-card--featured .fc-event-card__media {
		flex: 1 1 46%;
		aspect-ratio: auto;
		min-height: 320px;
	}

	.fc-event-card--featured .fc-event-card__body {
		flex: 1 1 54%;
		justify-content: center;
		gap: 14px;
		padding: 36px;
	}

	.fc-event-card--featured .fc-event-card__title {
		font-size: 1.8rem;
	}

	.fc-event-card--featured .fc-event-card__link {
		margin-top: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fc-event-card {
		transition: none;
	}
}

/* ============================================
   HOMEPAGE - sezione "Prossimi eventi"
   ============================================ */

.fc-home__events .fc-events__grid {
	margin: 28px 0 32px;
	text-align: left;
}

/* Riquadro data sopra il titolo (solo homepage). Il testo della data è già nella card. */
.fc-event-card__datechip {
	align-self: flex-start;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 54px;
	padding: 8px 12px;
	background-color: #fcf4f4;
	border: 1px solid #eed8d9;
	border-radius: 8px;
	color: #971a1d;
	line-height: 1;
}

.fc-event-card__datechip .fc-event-card__day {
	font-size: 1.6rem;
}

.fc-event-card__datechip .fc-event-card__month {
	margin-top: 3px;
	font-size: 0.75rem;
}

/* Due eventi: due colonne (senza, il terzo posto resterebbe vuoto). */
@media (min-width: 640px) {
	.fc-events__grid--double {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.fc-event-card__speaker {
	font-size: 0.9rem;
	color: #444;
}

/* ============================================
   ARCHIVIO /eventi/ - HEADER CON FOTO
   Si attiva solo con .fc-events__header--photo (aggiunta da
   archive-fc_evento.php quando l'immagine hero esiste).
   Senza immagine resta il riquadro rosato.
   Sopra i 1099px il testo sta in alto sulla foto, nella zona libera
   tra la pianta e l'uomo in piedi; sotto, la foto sta sotto il testo.
   ============================================ */

.fc-events__header.fc-events__header--photo {
	display: grid;
	gap: 24px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	text-align: left;
}

.fc-events__header--photo .fc-events__hero-text {
	text-align: left;
}

.fc-events__header--photo .fc-events__hero-text > * {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.fc-events__header--photo .fc-media {
	aspect-ratio: 16 / 9;
	margin: 0;
	border-radius: 10px;
}

.fc-events__header--photo .fc-media img {
	object-position: 65% center;
}

@media (min-width: 1100px) {
	.fc-events__header.fc-events__header--photo {
		gap: 0;
	}

	.fc-events__header--photo > * {
		grid-area: 1 / 1;
	}

	.fc-events__header--photo .fc-events__hero-text {
		position: relative;
		z-index: 2;
		align-self: start;
		max-width: 54%;
		padding: 32px 0 0 26%;
	}

	.fc-events__header--photo .fc-media {
		aspect-ratio: 21 / 9;
	}

	.fc-events__header--photo .fc-media img {
		object-position: center;
	}
}
/* Hero evento: immagine centrata in verticale rispetto al testo (desktop) */
@media (min-width: 900px) {
	.fc-event__hero {
		align-items: center;
	}
}