/* Flower Show - Corsi. Colore di accento: Impostazioni > Corsi (variabile --fsc-accent). */

/* Elenco / griglia */
.fsc-grid {
	display: grid;
	grid-template-columns: repeat(var(--fsc-cols, 4), minmax(0, 1fr));
	gap: 2rem 1.5rem;
	margin: 1.5rem 0;
}
.fsc-card { text-align: center; margin: 0; }
.fsc-card-media {
	display: block;
	aspect-ratio: 400 / 260;
	overflow: hidden;
	background: rgba(0, 0, 0, .06);
}
.fsc-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .3s;
}
.fsc-card-media:hover img { opacity: .85; }
.fsc-card-title { margin: .7em 0 0; font-size: 1.1em; line-height: 1.3; }
.fsc-card-title a { color: inherit; text-decoration: none; }
.fsc-card-title a:hover,
.fsc-card-cats a:hover { color: var(--fsc-accent); }
.fsc-card-date { margin: .3em 0 0; font-size: .9em; opacity: .85; }
.fsc-card-cats { margin: .2em 0 0; font-size: .85em; }
.fsc-card-cats a { color: inherit; opacity: .75; text-decoration: none; }
.fsc-empty { margin: 1.5rem 0; }

@media (max-width: 959px) {
	.fsc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
	.fsc-grid { grid-template-columns: 1fr; }
}

/* Scheda corso */
.fsc-single-date {
	margin: 0 0 1.25rem;
	font-size: 1.1em;
	font-weight: 600;
	color: var(--fsc-accent);
}
.fsc-single-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}
.fsc-single-form {
	padding: 1.25rem;
	border: 1px solid var(--fsc-accent);
	border-radius: 4px;
}
.fsc-single-form .fsc-form-title { margin-top: 0; }
.fsc-single-form .wpcf7 input[type="text"],
.fsc-single-form .wpcf7 input[type="email"],
.fsc-single-form .wpcf7 input[type="tel"],
.fsc-single-form .wpcf7 textarea,
.fsc-single-form .wpcf7 select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.fsc-single-form .wpcf7 input[type="submit"] {
	background: var(--fsc-accent);
	color: #fff;
	border: 0;
	padding: .6em 1.4em;
	cursor: pointer;
}
.fsc-single-form .wpcf7 input[type="submit"]:hover { filter: brightness(.9); }
.fsc-single-form .wpcf7-acceptance { margin: 0; }

.fsc-logos {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: center;
	margin: 2rem 0 0;
}
.fsc-logos img { max-height: 90px; width: auto; }

.fsc-related { margin-top: 3rem; }
.fsc-related-title {
	margin: 0 0 1rem;
	padding-bottom: .4rem;
	border-bottom: 1px solid var(--fsc-accent);
}

@media (max-width: 767px) {
	.fsc-single-grid { grid-template-columns: 1fr; }
}

/* Paginazione */
.fsc-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}
.fsc-pagination a,
.fsc-pagination span {
	display: block;
	padding: .3em .8em;
	border: 1px solid currentColor;
	text-decoration: none;
	color: inherit;
}
.fsc-pagination .current { background: var(--fsc-accent); border-color: var(--fsc-accent); color: #fff; }

/* Campi precompilati (nome e data del corso) */
.fsc-single-form .fsc-prefilled { background: rgba(0, 0, 0, .04); cursor: default; }
