/* Form di iscrizione ed elenco eventi. Neutri di proposito: prendono colori e
   caratteri dal tema del cliente, così non stonano su nessun sito. */

/* ------------------------------------------------------------ elenco */

.gaw-ev-mesi {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2.4rem;
}

.gaw-ev-mese {
	padding: 0.45rem 1.1rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.92rem;
	text-decoration: none;
	color: inherit;
	opacity: 0.65;
	transition: opacity 0.3s ease, background 0.3s ease;
	text-transform: capitalize;
}

.gaw-ev-mese:hover { opacity: 1; }

/* Il mese scelto si segna col peso e col bordo, non riempiendo la pillola:
   un fondo pieno qui richiederebbe di conoscere i colori del tema. */
.gaw-ev-mese.is-attivo {
	opacity: 1;
	font-weight: 700;
	box-shadow: inset 0 0 0 1px currentColor;
}

/* Se il tema non definisce una griglia sua, questa fa da rete. */
.gaw-ev-griglia:not(.cb-eventi) {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.2rem;
}

.gaw-ev-pagine {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	margin-top: 3rem;
}

.gaw-ev-pagina {
	min-width: 40px;
	padding: 0.5rem 0.7rem;
	text-align: center;
	border: 1px solid currentColor;
	text-decoration: none;
	color: inherit;
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.gaw-ev-pagina:hover,
.gaw-ev-pagina.is-attivo { opacity: 1; }

.gaw-ev-vuoto { opacity: 0.8; }

@media (max-width: 1024px) {
	.gaw-ev-griglia:not(.cb-eventi) { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.gaw-ev-griglia:not(.cb-eventi) { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- form */

.gaw-ev-form-wrap {
	max-width: 760px;
	margin-inline: auto;
}

.gaw-ev-form__titolo { margin-top: 0; }

.gaw-ev-quota {
	padding: 0.9rem 1.1rem;
	margin-bottom: 1.6rem;
	background: rgba(0, 0, 0, 0.04);
	border-left: 3px solid currentColor;
}

.gaw-ev-campi-front {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.1rem 1.4rem;
}

.gaw-ev-campo { display: flex; flex-direction: column; gap: 0.4rem; grid-column: span 2; }
.gaw-ev-campo--meta { grid-column: span 1; }

.gaw-ev-campo label { font-weight: 600; font-size: 0.95rem; }
.gaw-ev-obbl { color: #c0392b; }

.gaw-ev-campo input[type="text"],
.gaw-ev-campo input[type="email"],
.gaw-ev-campo input[type="tel"],
.gaw-ev-campo input[type="number"],
.gaw-ev-campo input[type="date"],
.gaw-ev-campo select,
.gaw-ev-campo textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.22);
	border-radius: 2px;
}

.gaw-ev-campo input:focus-visible,
.gaw-ev-campo select:focus-visible,
.gaw-ev-campo textarea:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.gaw-ev-scelte { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }

.gaw-ev-scelta {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-weight: 400 !important;
	font-size: 0.95rem;
	line-height: 1.5;
	cursor: pointer;
}

.gaw-ev-scelta input { margin-top: 0.25rem; flex: 0 0 auto; }

.gaw-ev-consensi {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	margin: 1.6rem 0;
	padding-top: 1.4rem;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.gaw-ev-aiuto { opacity: 0.75; font-size: 0.85rem; }

/* Il tema del cliente può ridipingerlo: qui serve solo che sia leggibile. */
.gaw-ev-invia {
	margin-top: 0.6rem;
	padding: 0.85rem 2rem;
	font: inherit;
	font-weight: 600;
	color: #ffffff;
	background: #14213d;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.gaw-ev-invia:hover { opacity: 0.9; }

.gaw-ev-avviso {
	padding: 1.1rem 1.3rem;
	border-left: 4px solid currentColor;
	background: rgba(0, 0, 0, 0.04);
}

.gaw-ev-avviso p { margin: 0; }
.gaw-ev-avviso--ok { border-left-color: #2e7d32; }
.gaw-ev-avviso--attenzione { border-left-color: #ef6c00; }
.gaw-ev-avviso--chiuso { border-left-color: #757575; }

@media (max-width: 600px) {
	.gaw-ev-campi-front { grid-template-columns: 1fr; }
	.gaw-ev-campo--meta { grid-column: span 1; }
}
