/* Archade Metrics: pagine di ingresso (accesso, primo accesso, invito).
   Nero profondo, griglia bianca a luce radente come un piano laser, box Archade retroilluminati.
   Colori del Brandbook: Quasi Nero #252220, Archancione #F64511, Bianco #ffffff (piu' il nero del fondo). */

@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("/static/fonts/space-grotesk.woff2") format("woff2");
}

.gate {
	--black: #000000;
	--qn: #252220;
	--o: #F64511;
	--w: #ffffff;
	--w60: rgba(255, 255, 255, .62);
	--w40: rgba(255, 255, 255, .4);
	--title: "neulis-neue", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	--text: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--unit: 24px;
	color-scheme: dark;
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--black);
	color: var(--w);
	font-family: var(--text);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	position: relative;
	overflow-x: hidden;
}

/* Il piano laser: griglia fine ogni 24px, linee maestre ogni 120px, sfuma verso i bordi */
.gate::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px),
		linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, var(--unit) var(--unit), var(--unit) var(--unit);
	background-position: center center;
	-webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 100%);
	mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 100%);
}

.gate * { box-sizing: border-box; }
.gate a { color: var(--w); text-underline-offset: 3px; }
.gate a:hover { color: var(--o); }
.gate :focus-visible { outline: 2px solid var(--o); outline-offset: 3px; }

.gate-wrap {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	min-height: 100dvh;
	max-width: 1104px;
	margin: 0 auto;
	padding: calc(var(--unit) * 2) var(--unit);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 456px;
	grid-template-rows: auto 1fr auto;
	column-gap: calc(var(--unit) * 4);
	row-gap: calc(var(--unit) * 2);
	align-items: center;
}

/* Marchio in alto */
.gate-top {
	grid-column: 1 / -1;
	align-self: start;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.gate-back {
	font-size: 14px;
	font-weight: 500;
	color: var(--w60) !important;
	text-decoration: none;
	border: 2px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	padding: 8px 16px;
}
.gate-back:hover { border-color: var(--w); color: var(--w) !important; }
.gate-brand {
	font-family: var(--title);
	font-weight: 600;
	font-size: 20px;
	letter-spacing: -.01em;
	line-height: 1;
	text-decoration: none;
	justify-self: start;
	display: inline-flex;
	align-items: center;
}
.gate-brand span { color: var(--o); }
.gate-brand .ax-mark { height: 1.7em; width: auto; flex: 0 0 auto; margin: -.3em 8px -.3em 0; overflow: visible; }
.gate-brand:hover { color: var(--w); }

/* Colonna sinistra: cosa c'e' dentro */
.gate-intro { max-width: 520px; }
.gate-intro h2 {
	font-family: var(--title);
	font-weight: 600;
	font-size: clamp(36px, 4.4vw, 54px);
	line-height: 1.04;
	letter-spacing: -.02em;
	margin: 0 0 var(--unit);
	text-wrap: balance;
}
.gate-intro h2 em { font-style: normal; color: var(--o); }
.gate-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gate-points li { display: flex; gap: 12px; align-items: center; font-size: 16px; color: var(--w); }
.gate-points li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--o); box-shadow: 0 0 10px var(--o); }
.gate-intro p {
	margin: 0 0 calc(var(--unit) * 1.5);
	color: var(--w60);
	font-size: 18px;
	max-width: 42ch;
}
.gate-sources {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.gate-sources li {
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	padding: 8px 14px;
	border: 1.5px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	color: var(--w60);
	background: rgba(0, 0, 0, .6);
}
.gate-sources li.on { border-color: var(--w); color: var(--w); }
.gate-sources li.on::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--o);
	margin-right: 8px;
	vertical-align: 1px;
	box-shadow: 0 0 8px var(--o);
}

/* Il box retroilluminato, in ArchadeGlass */
.gate-box {
	position: relative;
	margin: 0;
	width: 100%;
	max-width: none;
	background: linear-gradient(150deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .04) 32%, rgba(255, 255, 255, .015) 60%, rgba(255, 255, 255, .07) 100%), rgba(37, 34, 32, .38);
	-webkit-backdrop-filter: blur(22px) saturate(165%);
	backdrop-filter: blur(22px) saturate(165%);
	border: 2px solid var(--w);
	border-radius: 40px;
	padding: calc(var(--unit) * 2) calc(var(--unit) * 1.75);
	display: grid;
	gap: var(--unit);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .38),
		inset 0 -1px 0 rgba(255, 255, 255, .1),
		inset 0 0 28px rgba(255, 255, 255, .05),
		0 0 0 6px rgba(255, 255, 255, .035),
		0 0 24px rgba(255, 255, 255, .24),
		0 0 96px rgba(255, 255, 255, .12),
		0 40px 120px rgba(0, 0, 0, .9);
}
/* Segni di riferimento agli angoli, come su un disegno tecnico */
.gate-box .tick {
	position: absolute;
	width: 14px;
	height: 14px;
	border-color: rgba(255, 255, 255, .55);
	border-style: solid;
	border-width: 0;
	pointer-events: none;
}
.gate-box .tick.tl { top: -18px; left: -18px; border-top-width: 1px; border-left-width: 1px; }
.gate-box .tick.tr { top: -18px; right: -18px; border-top-width: 1px; border-right-width: 1px; }
.gate-box .tick.bl { bottom: -18px; left: -18px; border-bottom-width: 1px; border-left-width: 1px; }
.gate-box .tick.br { bottom: -18px; right: -18px; border-bottom-width: 1px; border-right-width: 1px; }

.gate-box h1 {
	font-family: var(--title);
	font-weight: 600;
	font-size: 36px;
	line-height: 1.05;
	letter-spacing: -.015em;
	margin: 0;
}
.gate-box > p { margin: 0; color: var(--w60); font-size: 15px; }
.gate-box > p a { color: var(--w); }

.gate .form { display: grid; gap: 18px; max-width: none; }
.gate .form label {
	display: grid;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--w);
}
.gate .form input {
	font: inherit;
	font-size: 16px;
	color: var(--w);
	background: var(--black);
	border: 2px solid rgba(255, 255, 255, .5);
	border-radius: 999px;
	padding: 0 20px;
	height: 52px;
	width: 100%;
	transition: none;
}
.gate .form input::placeholder { color: var(--w40); }
.gate .form input:hover { border-color: rgba(255, 255, 255, .8); }
.gate .form input:focus { outline: none; border-color: var(--o); box-shadow: 0 0 0 4px rgba(246, 69, 17, .18); }
.gate .form input:disabled { opacity: .6; }
.gate .form input:-webkit-autofill,
.gate .form input:-webkit-autofill:hover,
.gate .form input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--w);
	caret-color: var(--w);
	-webkit-box-shadow: 0 0 0 100px var(--black) inset;
	transition: background-color 9999s;
}
.gate .form input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 100px var(--black) inset, 0 0 0 4px rgba(246, 69, 17, .18); }
.gate .form .row { display: block; margin-top: 6px; }
.gate .form .lbl-row { display: flex; justify-content: space-between; gap: 12px; }
.gate .form .lbl-row a { font-weight: 400; color: var(--w60); font-size: 13px; }
.gate .form .lbl-row a:hover { color: var(--o); }
.gate .form label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--w60); cursor: pointer; }
.gate .form label.check a { color: var(--w); }
.gate .form label.check input {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	width: 24px;
	height: 24px !important;
	min-height: 0 !important;
	padding: 0;
	margin: 0;
	border-radius: 7px;
	border: 2px solid rgba(255, 255, 255, .6);
	background: var(--black);
	display: grid;
	place-content: center;
	cursor: pointer;
}
.gate .form label.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--w); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.gate .form label.check input:checked { background: var(--o); border-color: var(--w); }
.gate .form label.check input:checked::after { opacity: 1; }
.gate-alt { text-align: center; }
.gate .form p.muted { color: var(--w60); font-size: 14px; margin: 0; }

.gate .btn {
	appearance: none;
	width: 100%;
	height: 54px;
	border: 2px solid var(--w);
	border-radius: 999px;
	background: var(--o);
	color: var(--w);
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: none;
	box-shadow: 0 0 24px rgba(246, 69, 17, .35);
}
.gate .btn span { display: inline-block; transition: transform .18s ease; }
.gate .btn:hover, .gate .btn:focus-visible { background: var(--o); color: var(--w); outline: none; }
.gate .btn:hover span, .gate .btn:focus-visible span { transform: scale(1.07); }

.gate .flash { border: 2px solid var(--o); border-radius: 20px; padding: 12px 16px; font-size: 14px; color: var(--w); background: transparent; }
.gate .flash.ok { border-color: var(--w); }

/* Piede: un box solo, link in fila e riga societaria dentro, niente testi sciolti */
.gate-foot {
	grid-column: 1 / -1;
	align-self: end;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	border: 2px solid var(--w20, rgba(255,255,255,.2));
	border-radius: 24px;
	padding: 18px 24px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--w60);
}
.gate-foot p { margin: 0; }
.gate-foot a { color: var(--w); text-decoration: none; display: inline-block; padding: 6px 0; margin: -6px 0; }
.gate-foot a:hover, .gate-foot a:focus-visible { color: var(--o); }
.gate-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Caselle dei dati dell'azienda e della verifica in due passaggi */
.gate .form .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.gate .form .pair > * { min-width: 0; }
.gate .form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
.gate .form legend { padding: 0; margin-bottom: 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--w60); }
.gate .form select {
	font: inherit; font-size: 16px; color: var(--w); background-color: var(--black);
	border: 2px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 0 44px 0 20px; height: 52px; width: 100%;
	appearance: none; -webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--w) 50%), linear-gradient(135deg, var(--w) 50%, transparent 50%);
	background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.gate .form select:focus { outline: none; border-color: var(--o); box-shadow: 0 0 0 4px rgba(246, 69, 17, .18); }
.gate .form select option { background: var(--black); color: var(--w); }
.gate .code-input { font-size: 22px; letter-spacing: .3em; text-align: center; }
@media (max-width: 520px) { .gate .form .pair { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 1180px) {
	.gate-wrap { grid-template-columns: minmax(0, 1fr) 420px; column-gap: calc(var(--unit) * 2.5); }
}
@media (max-width: 960px) {
	.gate-wrap {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		max-width: 520px;
		row-gap: calc(var(--unit) * 1.5);
		align-items: start;
	}
	.gate-intro h2 { font-size: clamp(30px, 8vw, 40px); margin-bottom: 12px; }
	.gate-intro h2 em { font-style: normal; color: var(--o); }
.gate-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gate-points li { display: flex; gap: 12px; align-items: center; font-size: 16px; color: var(--w); }
.gate-points li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--o); box-shadow: 0 0 10px var(--o); }
.gate-intro p { font-size: 16px; margin-bottom: var(--unit); }
}
@media (max-width: 520px) {
	.gate { --unit: 20px; }
	.gate-wrap { padding: 28px 16px; }
	.gate-sources { display: none; }
	.gate-intro h2 em { font-style: normal; color: var(--o); }
.gate-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gate-points li { display: flex; gap: 12px; align-items: center; font-size: 16px; color: var(--w); }
.gate-points li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--o); box-shadow: 0 0 10px var(--o); }
.gate-intro p { margin-bottom: 0; }
	.gate-box { border-radius: 28px; padding: 28px 22px; }
	.gate-box .tick { display: none; }
	.gate-box h1 { font-size: 30px; }
	.gate-foot { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
	.gate-back { padding: 6px 12px; font-size: 13px; }
	.gate-points { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.gate .btn span { transition: none; }
}

/* Uscita secondaria (pagina dei nuovi termini) */
.gate .gate-out { font: inherit; font-size: 14px; color: var(--w); background: transparent; border: 2px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 10px 20px; cursor: pointer; }
.gate .gate-out:hover, .gate .gate-out:focus-visible { border-color: var(--o); outline: none; }
.gate .recovery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-family: ui-monospace, monospace; }

/* Mostra password e focus visibile (revisione UX del 12 ottobre 2026) */
.gate .pw { position: relative; display: block; }
.gate .pw input { padding-right: 104px; }
.gate .pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gate .pw-toggle:hover { border-color: #fff; }
.gate a:focus-visible, .gate .btn:focus-visible, .gate .pw-toggle:focus-visible, .gate .gate-out:focus-visible, .gate .form label.check input:focus-visible { outline: 2px solid transparent; outline-offset: 3px; box-shadow: 0 0 0 2px #000, 0 0 0 5px #fff; }
.gate .btn { font-size: 19px; }  /* testo grande: bianco su arancione pieno passa (3,63:1 sopra i 18,66 px grassetto) */
.gate .form label.check input { width: 24px; height: 24px; min-height: 24px; flex-basis: 24px; }
.gate .lbl-row a { display: inline-flex; align-items: center; min-height: 24px; }
.gate-brand { min-height: 24px; }

/* Iscrizione: la colonna di sinistra parte dall'alto, allineata al modulo (prima restava centrata con 400 px di vuoto sopra) */
@media (min-width: 961px) { .gate-intro { align-self: start; padding-top: 24px; } }
