/* ==================== */
/* Pagina: mai scroll */
/* ==================== */

/* La login del filtro sta sempre in una schermata: i pannelli si adattano
   all'altezza disponibile invece di allungare la pagina. */
html,
body {
	height: 100%;
	margin: 0;
	overflow: hidden;
}

/* ==================== */
/* Panels */
/* ==================== */

.pannello {
	background-color: var(--background);
	height: 100%;
	box-sizing: border-box;
	padding: clamp(0.75rem, 3vh, 2rem) clamp(1rem, 3vw, 2.5rem);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-align: center;
	gap: clamp(0.5rem, 1.5vh, var(--spacing-sm));
	min-height: 0;
	overflow: hidden;
}

/* ==================== */
/* Input login */
/* ==================== */

/* Spiegazione sopra il codice: chi lo fornisce, in parole semplici */
.login-hint {
	max-width: 420px;
	margin: 0 0 var(--spacing-xs);
	color: var(--text-secondary);
	line-height: 1.45;
}

.otp-group {
	display: flex;
	gap: var(--spacing-sm);
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.otp-input {
	width: var(--spacing-2xl);
	height: var(--spacing-2xl);
	border: 2px solid var(--border-color);
	border-radius: var(--radius-md);
	background-color: var(--background-alt);
	text-align: center;
	font-size: 1.6rem;
	font-weight: bold;
	text-transform: uppercase;
	color: var(--text-primary);
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.otp-input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 18%, transparent);
	transform: translateY(-1px);
}

.otp-input.filled {
	border-color: var(--primary-color);
	background: var(--background);
}

@media only screen and (max-width: 600px) {
	.otp-group {
		gap: var(--spacing-sm);
	}

	.otp-input {
		font-size: 1.25rem;
	}
}

/* ==================== */
/* Main layout */
/* ==================== */

.containerlog {
	box-shadow: none;
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 100vh;
	height: 100dvh;
}

.form-container {
	position: absolute;
	top: 0;
	height: 100%;
	transition: all 0.6s ease-in-out;
}

/* Codice filtro (prima) e scheda evento (dopo l'accesso) occupano tutto lo
   schermo, uno al posto dell'altro, in dissolvenza. */
.sign-in-container {
	left: 0;
	width: 100%;
	z-index: 2;
}

.sign-up-container {
	left: 0;
	width: 100%;
	opacity: 0;
	z-index: 1;
}

.containerlog.right-panel-active .sign-in-container {
	opacity: 0;
	pointer-events: none;
}

.containerlog.right-panel-active .sign-up-container {
	opacity: 1;
	z-index: 5;
	animation: show 0.6s;
}

.panel-logo {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: clamp(0.25rem, 3vh, 2rem);
	flex: 0 0 auto;
}

.panel-logo img {
	width: min(280px, 70%);
	max-height: 9vh;
	object-fit: contain;
	height: auto;
	display: block;
}

/* ==================== */
/* Dopo l'accesso */
/* ==================== */

/* Barra in alto in tutta la larghezza, scheda evento al centro sotto. */
.pannello.destra {
	justify-content: flex-start;
	padding-top: 0;
}

.filter-topbar {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--spacing-md);
	padding: clamp(0.6rem, 2vh, 1.2rem) 0;
	border-bottom: 1px solid var(--border-color);
	flex: 0 0 auto;
}

.filter-topbar__logo {
	height: clamp(28px, 5vh, 44px);
	width: auto;
	display: block;
}

.filter-session {
	display: flex;
	align-items: center;
	gap: var(--spacing-md);
	min-width: 0;
}

.filter-session__operator {
	margin: 0;
	color: var(--text-secondary);
	text-align: right;
	overflow-wrap: anywhere;
}

.filter-session__operator operatore {
	color: var(--text-primary);
	font-weight: bold;
}

/* Scheda orizzontale: locandina a sinistra, informazioni e pulsante a destra */
.pannello.destra>.event-card {
	margin: auto 0;
	width: 100%;
	max-width: 1100px;
	min-height: 0;
	max-height: 100%;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	padding: clamp(1rem, 2.5vw, 2rem);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	background: var(--background-alt);
	box-shadow: var(--shadow-sm);
	text-align: left;
}

.event-media {
	min-width: 0;
	min-height: 0;
}

#locandina-evento {
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 60vh;
	object-fit: cover;
	display: block;
	border-radius: var(--radius-lg);
	background: var(--background);
}

.event-content {
	display: flex;
	flex-direction: column;
	gap: clamp(0.6rem, 2vh, var(--spacing-md));
	min-width: 0;
}

.event-kicker {
	margin: 0;
	font-size: 0.78rem;
	font-weight: bold;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--primary-color);
}

.event-title {
	margin: 0;
	font-size: clamp(1.4rem, 2.6vw, 2.2rem);
	line-height: 1.15;
	font-weight: bold;
	letter-spacing: 0;
	text-transform: none;
	color: var(--text-primary);
}

/* Date e ore su righe compatte con l'icona davanti */
.event-facts {
	display: grid;
	gap: var(--spacing-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.event-fact {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	color: var(--text-primary);
	font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.event-fact iconify-icon {
	flex: 0 0 auto;
	color: var(--primary-color);
	font-size: 1.3em;
}

#filtra_evento {
	margin-top: var(--spacing-xs);
	width: 100%;
	justify-content: center;
}

/* stato no events */
#no-events {
	margin: auto 0;
	text-align: center;
}

/* Schermi stretti: locandina sopra, informazioni sotto */
@media only screen and (max-width: 900px) {
	.pannello.destra>.event-card {
		grid-template-columns: 1fr;
		max-width: 560px;
	}

	#locandina-evento {
		max-height: 30vh;
	}
}

/* ==================== */
/* Schermi bassi: si toglie il superfluo */
/* ==================== */

@media (max-height: 560px) {
	.event-kicker {
		display: none;
	}

	#locandina-evento {
		max-height: 40vh;
	}

	.panel-logo img {
		max-height: 7vh;
	}
}

@media only screen and (max-width: 900px) and (max-height: 640px) {
	.event-media {
		display: none;
	}
}

/* ==================== */
/* Animations */
/* ==================== */

@keyframes show {

	0%,
	49.99% {
		opacity: 0;
		z-index: 1;
	}

	50%,
	100% {
		opacity: 1;
		z-index: 5;
	}
}

/* ==================== */
/* Responsive */
/* ==================== */

@media only screen and (max-width: 600px) {
	.containerlog {
		width: 100%;
		border-radius: 0;
	}

	.pannello {
		padding: 1.5rem;
	}

	.filter-session__operator {
		display: none;
	}
}
