@font-face {
	font-family: Manrope;
	src: url('manrope.ttf?v=3ae11c49db04') format('truetype');
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
}

:root {
	color-scheme: light;
	--go-ink: #071b50;
	--go-muted: #435279;
	--go-surface: #fbfcff;
	--go-card: rgb(255 255 255 / 94%);
	--go-card-hover: #fff;
	--go-card-shadow: 0 12px 32px rgb(7 27 80 / 14%);
	--go-card-shadow-hover: 0 12px 32px rgb(7 27 80 / 22%);
	--go-panel: rgb(255 255 255 / 88%);
	--go-control-border: #8390a8;
	--go-error: #a61d3c;
	--go-focus: #135bd3;
	--go-line-sky: #b34c80;
	--go-line-fastweb: #a77500;
	--go-radius: 2.5rem;
}

[data-bs-theme='dark'] {
	color-scheme: dark;
	--go-ink: #f5f7ff;
	--go-muted: #c2cee9;
	--go-surface: #071426;
	--go-card: #102442;
	--go-card-hover: #183456;
	--go-card-shadow: 0 12px 32px rgb(0 0 0 / 30%);
	--go-card-shadow-hover: 0 12px 32px rgb(0 0 0 / 45%);
	--go-panel: rgb(12 27 51 / 94%);
	--go-control-border: #8291ad;
	--go-error: #ffb3c4;
	--go-focus: #95c5ff;
	--go-line-sky: #f38eb8;
	--go-line-fastweb: #f1c34d;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--go-surface);
	color: var(--go-ink);
	font-family: Manrope, sans-serif;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--go-focus); text-decoration: none; }
a:hover { text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
	outline: 3px solid var(--go-focus);
	outline-offset: 7px;
}
.light-scene {
	position: fixed;
	inset: -2%;
	z-index: -1;
	pointer-events: none;
	background: url('luce.webp?v=fee1c7c46c05') center / cover no-repeat;
}
[data-bs-theme='dark'] .light-scene { opacity: .17; }
.landing-detail .light-scene { opacity: .45; }
[data-bs-theme='dark'] .landing-detail .light-scene { opacity: .1; }
[data-ambient-state='running'] .light-scene { will-change: transform; }
.landing-shell {
	width: min(94%, 1280px);
	margin-inline: auto;
	padding-block: 4svh 3svh;
	text-align: center;
}
.brand-identity img {
	display: block;
	width: min(36.6vw, 410px);
	height: auto;
	max-height: 120px;
	object-fit: contain;
	margin-inline: auto;
}
[data-bs-theme='dark'] .brand-identity img {
	background: #fff;
	border-radius: .5rem;
	padding: .5rem .75rem;
}
.landing-shell .brand-identity img { width: min(30vw, 280px); max-height: 88px; }
.landing-shell .affiliate-name { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.landing-heading {
	margin: 3svh 0 3.5svh;
	font-size: clamp(1.8rem, 4.6vw, 3rem);
	white-space: pre-line;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -.045em;
	text-wrap: balance;
}
.brand-choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 2rem);
}
.brand-choices:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 550px; margin-inline: auto; }
.brand-choice {
	display: grid;
	place-items: center;
	aspect-ratio: 1.04;
	padding: 2rem;
	border: 2px solid var(--go-line-sky);
	border-radius: clamp(1.5rem, 4vw, 3rem);
	background: var(--go-card);
	box-shadow: var(--go-card-shadow);
	transition: background-color 200ms ease, box-shadow 200ms ease;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.brand-choice--fastweb { border-color: var(--go-line-fastweb); }
.brand-choice:hover, .brand-choice:active { background: var(--go-card-hover); box-shadow: inset 0 0 0 1px currentColor, var(--go-card-shadow-hover); }
.brand-choice--sky { color: var(--go-line-sky); }
.brand-choice--fastweb { color: var(--go-line-fastweb); }
.provider-logo { display: block; object-fit: contain; height: auto; max-width: 100%; }
.brand-choice--sky .provider-logo { width: 82%; }
.brand-choice--fastweb .provider-logo { width: 100%; }
.landing-qr { margin: 3svh 0 0; }
.landing-qr > img { display: block; width: clamp(140px, 22vw, 190px); height: auto; margin-inline: auto; background: #fff; }
.landing-qr figcaption { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.5; margin-top: 0; font-weight: 500; letter-spacing: -.025em; }

.detail-shell { width: min(90%, 760px); margin: auto; padding-block: 2.5rem 4rem; }
.detail-shell .brand-identity img { width: 260px; max-width: 75%; }
.back-link { display: inline-flex; min-height: 48px; align-items: center; margin-block: 2rem 1rem; font-size: .95rem; }
.callback-panel { background: var(--go-panel); border: 1px solid var(--bs-border-color); border-radius: var(--go-radius); padding: clamp(1.5rem, 5vw, 3rem); }
.detail-brand { width: 120px; height: 68px; object-fit: contain; margin-bottom: 1.5rem; }
.callback-heading { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.13; letter-spacing: -.04em; margin: 0 0 1rem; }
.callback-intro { margin-bottom: 1.75rem; color: var(--go-muted); line-height: 1.6; }
.callback-fields { display: grid; gap: 1.5rem; }
.form-label { font-weight: 600; }
.form-control { min-height: 54px; border-radius: .8rem; font-size: 1.125rem; }
.callback-consent { margin-block: 1.5rem; }
.form-check { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); column-gap: .65rem; align-items: start; padding-left: 0; margin-block: 0; line-height: 1.6; }
.form-check-input { float: none; width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; }
.form-check .form-check-input { float: none; margin-left: 0; }
.form-control, .form-check-input { border-color: var(--go-control-border); }
.pair-validation-error { margin-top: .5rem; color: var(--go-error); font-size: .9rem; line-height: 1.5; }
.pair-validation-summary { margin-bottom: 1.5rem; }
.pair-validation-summary__title { font-size: 1rem; font-weight: 700; }
.pair-validation-summary ul { margin-bottom: 0; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 1.5rem; padding: .5rem .9rem; border: 1px solid var(--go-control-border); border-radius: 2rem; background: var(--go-card); color: var(--go-ink); font: inherit; font-size: .875rem; cursor: pointer; }
.motion-toggle:hover, .motion-toggle:active { background: var(--go-card-hover); color: var(--go-ink); }
.motion-toggle[hidden] { display: none; }
[data-device='phone'] .landing-qr { display: none; }
[data-device='phone'] .landing-shell, [data-device='phone'] .detail-shell { grid-template-columns: minmax(0, 1fr); }
.form-check-label { font-size: .9rem; color: var(--go-muted); }
.privacy-details { font-size: .9rem; line-height: 1.65; margin-top: 1rem; }
.privacy-copy { white-space: pre-line; max-height: 20rem; overflow: auto; padding: 1rem 0; }
.callback-submit { min-height: 56px; width: 100%; border-radius: .8rem; font-weight: 700; font-size: 1.1rem; --bs-btn-bg: #0b2858; --bs-btn-border-color: #0b2858; --bs-btn-hover-bg: #173e78; --bs-btn-hover-border-color: #173e78; }
.callback-submit:disabled { opacity: .6; }
.detail-shell .landing-qr { text-align: center; margin-top: 2.5rem; }
.detail-shell .landing-qr img { width: 160px; }
.detail-shell .landing-qr figcaption { font-size: 1rem; margin-top: .5rem; }
.confirmation-panel { text-align: center; padding-block: 3rem; }
.confirmation-panel .detail-brand { margin-bottom: 2rem; }
.demo-note { font-size: .875rem; color: var(--go-muted); margin-top: 1rem; }
.form-error { padding: 1rem; border-left: 3px solid #bd2746; background: var(--go-card-hover); color: var(--go-ink); margin-bottom: 1.5rem; }

@media (min-width: 1000px) and (min-aspect-ratio: 6/5) {
	.landing-shell { display: grid; grid-template-columns: minmax(0, 1fr) 176px; column-gap: 2rem; padding-block: 4svh; min-height: 100svh; align-content: center; }
	.brand-identity, .landing-heading { grid-column: 1 / -1; }
	.landing-heading { margin: 2.5svh 0 3.5svh; font-size: clamp(1.8rem, 3vw, 2.75rem); }
	.brand-choices { align-self: center; }
	.brand-choice { aspect-ratio: auto; height: clamp(260px, 48svh, 450px); padding: 1.5rem; }
	.landing-qr { margin: 0; align-self: center; }
	.landing-qr img { width: 160px; max-width: 100%; }
	.landing-qr figcaption { font-size: .95rem; margin-top: .75rem; }
	.motion-toggle { grid-column: 1 / -1; justify-self: center; margin-top: 1rem; }
}
@media (max-width: 599px) {
	html:not([data-device='tablet']) .landing-shell { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 3rem; }
	html:not([data-device='tablet']) .landing-qr { display: none; }
	.detail-shell { padding-top: 1.5rem; }
	.detail-shell .brand-identity img { width: 220px; }
	.back-link { margin-block: 1.25rem .75rem; }
	.detail-brand { height: 52px; margin-bottom: 1rem; }
	.callback-intro { margin-bottom: 1.5rem; }
	.landing-shell { width: 94%; padding-block: 5svh 4svh; }
	.landing-shell .brand-identity img { width: 52vw; max-width: 210px; max-height: 72px; }
	.landing-heading { margin: 4svh 0 4svh; font-size: clamp(1.65rem, 6.4vw, 2.25rem); }
	.brand-choice { padding: 1.25rem; border-radius: 1.75rem; aspect-ratio: 1.55; }
	.brand-choices { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	.brand-choice--sky .provider-logo { width: 66%; }
	.brand-choice--fastweb .provider-logo { width: 90%; }
	.landing-qr { margin-top: 7svh; }
	.landing-qr img { width: 180px; }
	.landing-qr figcaption { margin-top: .75rem; font-size: 1.05rem; }
}
@media (max-height: 550px) and (orientation: landscape) {
	.landing-shell { padding-block: 1.5rem; max-width: 800px; }
	.brand-identity img { width: 180px; }
	.landing-heading { font-size: 2rem; margin: 1.5rem 0; }
	.brand-choice { max-height: 180px; padding: 1.5rem; }
	.landing-qr { margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


.confirmation-panel { margin-top: 3rem; }
.confirmation-panel .callback-submit { display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 1000px) and (min-aspect-ratio: 6/5) {
	.detail-shell { width: min(90%, 1080px); display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 3rem; }
	.detail-shell .brand-identity, .detail-shell .back-link { grid-column: 1 / -1; }
	.detail-shell { padding-block: 1.5rem 2rem; }
	.detail-shell .back-link { margin-block: 1.25rem .75rem; }
	.detail-shell .callback-panel { padding: 2rem; }
	.detail-shell .detail-brand { height: 52px; margin-bottom: 1rem; }
	.detail-shell .callback-heading { font-size: 2.5rem; }
	.callback-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.detail-shell .landing-qr { align-self: center; margin: 0; }
	.detail-shell .confirmation-panel { grid-column: 1 / -1; max-width: 760px; width: 100%; margin-inline: auto; }
}

[data-bs-theme='dark'] .callback-submit { --bs-btn-bg: #245fc0; --bs-btn-border-color: #527fd1; --bs-btn-hover-bg: #2056ad; --bs-btn-hover-border-color: #76a1ea; }

/* identità condivisa: il nome conserva gerarchia e leggibilità anche senza logo. */
.affiliate-name { display: block; max-width: 30ch; margin-inline: auto; font-size: clamp(1.4rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: balance; }
.affiliate-name[hidden], [data-affiliate-logo][hidden] { display: none; }
.detail-shell .affiliate-name { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
