/* =========================================================
   Pagina Registrati — standalone full-screen eLier
   Gradiente animato, titolo typewriter, ingressi animati.
   ========================================================= */

/* La pagina carica questo CSS solo qui: posso normalizzare html/body senza effetti altrove. */
html {
	margin-top: 0 !important;
	background: #0d0005;
}

.elier-reg-standalone {
	margin: 0 !important;
	padding-top: 0 !important;
	min-height: 100vh;
	background: #0d0005;
}

/* Pagina pulita: niente admin bar WP né barre flottanti del tema che lascino gap. */
.elier-reg-standalone #wpadminbar {
	display: none !important;
}
html.admin-bar,
.elier-reg-standalone.admin-bar {
	margin-top: 0 !important;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.elier-reg {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: clamp(20px, 4vw, 40px);
	box-sizing: border-box;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.elier-reg * {
	box-sizing: border-box;
}

/* ---------- Sfondo: gradiente eLier (glow nel gradiente, niente blur) ---------- */
.elier-reg__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(60vmax 60vmax at 8% 0%, rgba(255, 70, 130, 0.45), transparent 60%),
		radial-gradient(55vmax 55vmax at 100% 18%, rgba(255, 150, 70, 0.32), transparent 60%),
		radial-gradient(60vmax 60vmax at 55% 120%, rgba(255, 210, 225, 0.22), transparent 60%),
		linear-gradient(160deg, #0d0005 0%, #2c0010 35%, #6a0028 75%, #a30139 100%);
}

/* Blob/grana rimossi per performance: un solo glow leggero animato in opacità (compositor-only) */
.elier-reg__blob--1 {
	position: absolute;
	left: -10vmax;
	top: -14vmax;
	width: 46vmax;
	height: 46vmax;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 50%, rgba(255, 90, 150, 0.4), rgba(255, 90, 150, 0) 70%);
	will-change: opacity;
	animation: elier-reg-pulse 9s ease-in-out infinite;
}

.elier-reg__blob--2,
.elier-reg__blob--3,
.elier-reg__grain {
	display: none;
}

@keyframes elier-reg-pulse {
	0%, 100% { opacity: 0.45; }
	50% { opacity: 0.8; }
}

/* ---------- Nav superiore (pillole) ---------- */
.elier-reg__nav {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.elier-reg__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.elier-reg__pill svg {
	transition: transform 0.25s ease;
}

.elier-reg__pill:hover,
.elier-reg__pill:focus-visible {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.4);
}

.elier-reg__pill--ghost {
	background: rgba(255, 255, 255, 0.06);
}
.elier-reg__pill--ghost:hover svg,
.elier-reg__pill--ghost:focus-visible svg {
	transform: translateX(-3px);
}

.elier-reg__pill span {
	opacity: 0.78;
	font-weight: 500;
}
.elier-reg__pill--ghost span {
	opacity: 1;
	font-weight: 600;
}
.elier-reg__pill strong {
	font-weight: 700;
}

/* ---------- Stage centrale ---------- */
.elier-reg__stage {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
	padding: clamp(24px, 5vh, 56px) 0;
}

/* ---------- Titolo typewriter ---------- */
.elier-reg__title {
	margin: 0;
	font-size: clamp(2rem, 6vw, 3.6rem);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.025em;
	color: #fff;
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
	min-height: 1.1em;
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
}

.elier-reg__caret {
	display: inline-block;
	width: 3px;
	height: 1em;
	margin-left: 6px;
	transform: translateY(0.12em);
	background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.6));
	border-radius: 2px;
	animation: elier-reg-blink 0.9s steps(1) infinite;
}

.elier-reg__title.is-typed .elier-reg__caret {
	animation: elier-reg-blink 0.9s steps(1) infinite;
	opacity: 0.8;
}

@keyframes elier-reg-blink {
	0%, 49% { opacity: 1; }
	50%, 100% { opacity: 0; }
}

/* ---------- Sottotitolo (compare dopo il typing) ---------- */
.elier-reg__subtitle {
	margin: 22px 0 0;
	font-size: clamp(1.02rem, 2.2vw, 1.25rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.86);
	max-width: 620px;
	opacity: 0;
	transform: translateY(14px);
}

.elier-reg.is-revealed .elier-reg__subtitle {
	animation: elier-reg-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: 0.1s;
}

/* ---------- Griglia box ---------- */
.elier-reg__grid {
	margin-top: clamp(28px, 5vh, 48px);
	display: grid;
	gap: 18px;
	width: 100%;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.elier-reg__grid[data-count="1"] {
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}
.elier-reg__grid[data-count="2"] {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Card ---------- */
.elier-reg-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 24px 22px;
	border-radius: 20px;
	text-align: left;
	text-decoration: none;
	color: #fff;
	background: rgba(26, 10, 16, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	opacity: 0;
	transform: translateY(26px);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.elier-reg.is-revealed .elier-reg-card {
	animation: elier-reg-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: calc(0.25s + var(--reg-delay, 0ms));
}

.elier-reg-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.16), transparent 55%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.elier-reg-card:hover,
.elier-reg-card:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(255, 255, 255, 0.32);
	box-shadow: 0 26px 64px rgba(0, 0, 0, 0.42);
}

.elier-reg-card:hover::before,
.elier-reg-card:focus-visible::before {
	opacity: 1;
}

.elier-reg-card__icon {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.9rem;
	line-height: 1;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
}

.elier-reg-card__icon img {
	width: 30px;
	height: 30px;
	object-fit: contain;
	display: block;
}

.elier-reg-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	flex: 1;
}

.elier-reg-card__title {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.25;
	font-style: normal;
}

.elier-reg-card__tagline {
	font-size: 0.9rem;
	font-style: italic;
	opacity: 0.85;
	line-height: 1.35;
}

.elier-reg-card__desc {
	font-size: 0.95rem;
	line-height: 1.55;
	opacity: 0.88;
}

.elier-reg-card__arrow {
	flex: 0 0 auto;
	align-self: center;
	opacity: 0.55;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.elier-reg-card:hover .elier-reg-card__arrow,
.elier-reg-card:focus-visible .elier-reg-card__arrow {
	transform: translateX(4px);
	opacity: 1;
}

@keyframes elier-reg-rise {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes elier-reg-card-in {
	0% {
		opacity: 0;
		transform: translateY(26px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
	.elier-reg {
		padding: 18px;
	}
	.elier-reg__nav {
		justify-content: center;
	}
	.elier-reg__grid {
		grid-template-columns: 1fr;
	}
	.elier-reg-card {
		padding: 20px 18px;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.elier-reg__blob {
		animation: none;
	}
	.elier-reg__caret {
		display: none;
	}
	.elier-reg__subtitle,
	.elier-reg-card {
		opacity: 1;
		transform: none;
		animation: none !important;
	}
}
