@charset "utf-8";
/* ============================================================
   DESIGN SYSTEM — condiviso da tutto il sito.
   I font (Poppins/Cream Beige) sono registrati via @font-face
   in assets/css/quiz.css (caricato su ogni pagina in head.php):
   qui vengono solo referenziati tramite i token sotto.
   ============================================================ */

:root {
	--q-navy: #16265a;
	--q-navy-deep: #0b1c46;
	--q-sky-top: #6ec0ea;
	--q-sky-bottom: #2e6da4;
	--q-white: #ffffff;
	--q-bubble: #eaf4fc;
	--q-gray: #c7d3e2;
	--q-gray-text: #7c8bb0;

	--q-rosso: #d0302a;
	--q-arancione: #de782e;
	--q-giallo: #f1bf38;
	--q-verde: #75ac46;
	--q-azzurro: #0595d2;
	--q-blu: #273d86;
	--q-viola: #693486;

	--font-display: 'Cream Beige', 'Poppins', sans-serif;
	--font-body: 'Poppins', sans-serif;
}

/* ============================
	GENERALI
   ============================ */

body {
	font-family: var(--font-body);
	font-weight: normal;
	font-style: normal;
	font-size: 14px;
	color: var(--q-navy);
	background-image: url('../img/bg.jpg');
   background-size: cover;
   background-position: center;
}

.row {
	margin-left:0px;
	margin-right:0px;
}

h1, h2 {
	font-family: var(--font-display);
	font-weight: normal;
	color: var(--q-navy);
	letter-spacing: .3px;
}

h3, h4, h5, h6 {
	font-family: var(--font-body);
	font-weight: 700;
	color: var(--q-navy);
}

a {
	text-decoration: none;
	color: var(--q-navy);
}

.text-red {
	color: var(--q-rosso);
}

.text_giallo {
	color: var(--q-giallo);
}

.bg_blue {
	background-color: var(--q-navy);
	padding: .25rem 1rem;
	border-radius: 10px;
}

/* ============================
	MENU
   ============================ */

   .skip-to-main-content-link {
   	position: absolute;
   	left: -9999px;
   	z-index: 999;
   	padding: 1em;
   	background-color: black;
   	color: white;
   	opacity: 0;
   }
   .skip-to-main-content-link:focus {
   	left: 50%;
   	transform: translateX(-50%);
   	opacity: 1;
   }

   #attiva_menu {
   	max-width: 30px;
   	margin:10px 25px;
   	cursor: pointer;
   }

   #menu_logo {
   	max-width: 140px;
   	margin: 10px 0 10px 20px;
   }

   @media (min-width: 992px) {
   	#menu_logo {
   		max-width: 170px;
   		margin-left: 25px;
   	}
   }

   #menu {
   	background-color: #ffffff;
   	position: relative;
   }

   /* sfumatura arcobaleno, stessi 7 colori usati nel quiz ArcobaLete */
   #menu::after {
   	content: "";
   	position: absolute;
   	left: 0;
   	right: 0;
   	bottom: 0;
   	height: 5px;
   	background: linear-gradient(to right, var(--q-rosso), var(--q-arancione), var(--q-giallo), var(--q-verde), var(--q-azzurro), var(--q-blu), var(--q-viola));
   }

   #menu_list li {
   	list-style-type: none;
   	float: left;
   	margin: 4px 6px;
   }

   #menu_list li a {
   	display: inline-block;
   	text-align: center;
   	text-decoration: none;
   	font-family: var(--font-display);
   	font-size: 18px;
   	letter-spacing: .3px;
   	color: var(--q-navy);
   	background-color: #bfe3f7;
   	border-radius: 40px;
   	padding: 10px 26px;
   	box-shadow: 0 4px 10px rgba(11,28,70,.15);
   	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
   }

	#menu_list li a:hover,
	#menu_list li a:focus-visible,
	#menu_list li a.active {
		background-color: var(--q-navy);
		color: var(--q-white);
		transform: translateY(-2px);
		box-shadow: 0 8px 16px rgba(11,28,70,.25);
		outline: none;
   }

/* ============================
	FORM
   ============================ */

   .sfondo {
   	background-color: rgba(255,255,255,.85);
   	border-radius: 32px;
   	box-shadow: 0 18px 40px rgba(11,28,70,.22);
   }

#errore {
	color: var(--q-rosso);
	font-weight: bold;
	font-size: 24px;
}

   .form-control, .form-select {
   	border-radius: 14px;
   	border: 1px solid var(--q-navy);
   	color: var(--q-navy);
   	font-family: var(--font-body);
   }

   .form-control:focus, .form-select:focus {
   	border-color: var(--q-azzurro);
   	box-shadow: 0 0 0 .2rem rgba(5,149,210,.25);
   }

   .form-group {
   	margin-bottom: 15px;
   }

label[for=reg], label[for=tratt_dati]  {
	display: block;
}

   label a {
   	color: inherit;
   	text-decoration: underline;
   }

   small.small {
   	font-size: 10px;
   	line-height: 9px;
   }


.button {
	font-family: var(--font-display);
	background: var(--q-navy);
	color: var(--q-white);
	border-radius: 40px;
	border: none;
	font-size: 2rem;
	letter-spacing: .3px;
	padding: .5rem 2.2rem;
	width: max-content;
	max-width: 300px;
	box-shadow: 0 6px 14px rgba(11,28,70,.35);
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover {
	color: var(--q-white);
	background: var(--q-navy);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(11,28,70,.4);
}


@media (max-width:375px) {
	.button {
		font-size: 1.1rem;
	}
}

   @media (max-width: 575px) {
   	label {
   		font-size: .80rem;
   	}
   }

.modal-body {
	background-color: var(--q-navy);
	color: var(--q-white);
}


/* ============================
	FOOTER
   ============================ */

   footer {
   	font-family: var(--font-body);
   	font-size: 0.8rem;
	background-color: #fff;
	position: relative;
   }

   /* sfumatura arcobaleno, stessi 7 colori usati nel quiz ArcobaLete */
   /* footer::before {
   	content: "";
   	position: absolute;
   	left: 0;
   	right: 0;
   	top: 0;
   	height: 5px;
   	background: linear-gradient(to right, var(--q-rosso), var(--q-arancione), var(--q-giallo), var(--q-verde), var(--q-azzurro), var(--q-blu), var(--q-viola));
   } */

   footer p {
   	font-family: var(--font-body);
   	font-weight: normal;
   	font-style: normal;
   	font-size: 0.8rem;
	text-align: left;
	color: var(--q-navy);
   }

   footer p a {
   	text-decoration:underline;
   	font-weight: 700;
	color: var(--q-navy);
   }

   footer nav {
	margin: 0 0 3px auto;
	}

	footer nav ul {
		display: flex;
		flex-wrap: wrap;
		list-style: none;
		padding: 0;
		margin: 0;
	}

	footer nav ul li {
		padding: 0 10px;
		line-height: 1em;
	}

	footer nav ul li a {
		text-transform: uppercase;
		text-decoration: none;
		line-height: 1em;
		text-decoration:underline;
		font-weight: 700;
		color: var(--q-navy);
	}

	.logo img {
		display: block;
		max-width: 100%;
	}

	footer .payoff em {
		color: var(--q-navy);
		font-size: 24px;
		line-height: 1;
		padding: 0 0 0 15px;
		display: block;
	}

   footer .disclaimer {
		margin: 20px auto 0;
		padding: 20px 0 60px;
		background-color: #ebebeb;
	}


/* =========================
	COOKIE BAR
	======================= */

	.cc-window {
		font-size: .85rem !important;
		line-height: 1.2em !important;
	}

	@media (max-width:767px) {
		.cc-window {
			font-size: .75rem !important;
			line-height: 1.1em !important;
		}
	}



/* =========================
	 OCR LOADING
	======================= */

#ocr_loading, #ocr_loading > .modal-dialog, #ocr_loading > .modal-dialog > .modal-content, #ocr_loading > .modal-dialog > .modal-content > .modal-body {
	background-color: transparent !important;
}


/* ============================
	HOME — MECCANICA DI PARTECIPAZIONE
   ============================ */

.how-header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 34px;
}

.how-kicker {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 1rem;
	letter-spacing: .5px;
	color: var(--q-azzurro);
	background: var(--q-bubble);
	border-radius: 40px;
	padding: 4px 20px;
	margin-bottom: 12px;
}

.how-title {
	font-size: 2rem;
	margin-bottom: 14px;
}

.how-rainbow-bar {
	display: block;
	width: 120px;
	height: 6px;
	border-radius: 3px;
	margin: 0 auto 14px;
	background: linear-gradient(to right, var(--q-rosso), var(--q-arancione), var(--q-giallo), var(--q-verde), var(--q-azzurro), var(--q-blu), var(--q-viola));
}

.how-payoff {
	font-family: var(--font-body);
	font-weight: 700;
	color: var(--q-navy);
	font-size: 1.1rem;
	margin: 0;
}

/* mascotte ArcobaLete (spenta / accesa) */
.how-mascot {
	text-align: center;
	margin: 0 auto 40px;
	max-width: 500px;
}

.how-mascot__img {
	max-width: 500px;
	width: 100%;
	height: auto;
	margin: 0 auto 14px;
	filter: drop-shadow(0 12px 18px rgba(11,28,70,.25));
	animation: howFloat 3.6s ease-in-out infinite;
	animation-play-state: paused;
}

.how-mascot.is-visible .how-mascot__img {
	animation-play-state: running;
}

.how-mascot--lit .how-mascot__img {
	filter: drop-shadow(0 0 20px rgba(241,191,56,.6)) drop-shadow(0 12px 18px rgba(11,28,70,.25));
}

.how-mascot__caption {
	font-family: var(--font-body);
	font-weight: 700;
	color: var(--q-navy);
	font-size: 1rem;
	line-height: 1.4;
	margin: 0;
}

@keyframes howFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* riga dei 7 colori che si accendono in sequenza, uno dopo l'altro */
.how-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px 18px;
	margin: 0 auto 50px;
	max-width: 680px;
}

.how-dot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.how-dot__circle {
	display: block;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--dot-color);
	opacity: .3;
	animation: howDotLight 3.5s ease-in-out infinite;
	animation-delay: var(--dot-delay, 0s);
	animation-play-state: paused;
}

.how-dots.is-visible .how-dot__circle {
	animation-play-state: running;
}

.how-dot__label {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: .68rem;
	text-transform: uppercase;
	letter-spacing: .3px;
	color: var(--q-gray-text);
}

@keyframes howDotLight {
	0%, 60%, 100% { opacity: .3; transform: scale(1); box-shadow: 0 0 0 rgba(11,28,70,0); }
	20% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 16px var(--dot-color); }
}

.how-section-title {
	margin-bottom: 8px;
}

.how-subcopy {
	color: var(--q-gray-text);
	font-weight: 500;
	max-width: 640px;
	margin: 0 auto 30px;
}

/* 4 passi della meccanica */
.how-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px 24px;
	max-width: 1120px;
	margin: 0 auto 60px;
}

@media (min-width: 576px) {
	.how-steps {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1200px) {
	.how-steps {
		grid-template-columns: repeat(4, 1fr);
	}
}

.how-step {
	position: relative;
	background: var(--q-white);
	border-radius: 24px;
	padding: 30px 24px 24px;
	box-shadow: 0 10px 24px rgba(11,28,70,.15);
	text-align: center;
	transition: transform .2s ease, box-shadow .2s ease;
}

.how-step:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(11,28,70,.22);
}

.how-step__num {
	position: absolute;
	top: -16px;
	left: 50%;
	transform: translateX(-50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--step-color, var(--q-navy));
	color: var(--q-white);
	font-family: var(--font-display);
	font-size: 1.05rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px rgba(11,28,70,.3);
}

.how-step__icon {
	display: block;
	width: 40px;
	height: 40px;
	margin: 12px auto 12px;
	color: var(--step-color, var(--q-navy));
}

.how-step__icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.how-step h3 {
	font-size: 1rem;
	margin-bottom: 8px;
}

.how-step p {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: .88rem;
	line-height: 1.5;
	color: var(--q-navy);
	margin: 0;
}

/* anteprima dei 7 Supercolori */
.how-super {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px 22px;
	max-width: 820px;
	margin: 0 auto 20px;
}

.how-super__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 96px;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font-family: inherit;
	cursor: pointer;
}

.how-super__item:focus-visible {
	outline: 3px solid var(--ring-color, var(--q-navy));
	outline-offset: 4px;
	border-radius: 20px;
}

.how-super__img {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top center;
	border: 5px solid var(--ring-color, var(--q-navy));
	box-shadow: 0 8px 16px rgba(11,28,70,.22);
	transition: transform .25s ease, box-shadow .25s ease;
}

.how-super__item:hover .how-super__img {
	transform: scale(1.08) rotate(-4deg);
	box-shadow: 0 12px 22px rgba(11,28,70,.3);
}

.how-super__label {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: .72rem;
	text-transform: uppercase;
	color: var(--q-navy);
}

.how-note {
	color: var(--q-gray-text);
	font-weight: 500;
	font-size: .85rem;
	max-width: 560px;
	margin: 0 auto 10px;
}

/* modal "Scopri il tuo Supercolore" — aperta al click su una card della gallery */
.how-super-modal .modal-dialog {
	max-width: 420px;
}

.how-super-modal .modal-content {
	border: none;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(11,28,70,.35);
}

.how-super-modal .modal-header {
	background: var(--modal-ring, var(--q-navy));
	border: none;
	padding: 18px 22px;
}

.how-super-modal .modal-title {
	font-family: var(--font-display);
	color: var(--q-white);
	font-size: 1.3rem;
	letter-spacing: .3px;
	margin: 0;
}

.how-super-modal .btn-close {
	filter: brightness(0) invert(1);
	opacity: .9;
}

.how-super-modal .modal-body {
	background: var(--q-white);
	color: var(--q-navy);
	padding: 24px 24px 8px;
}

.how-super-modal .modal-body img {
	max-width: 320px;
	width: 100%;
	border-radius: 20px;
	box-shadow: 0 14px 30px rgba(11,28,70,.25);
}

.how-super-modal .modal-footer {
	background: var(--q-white);
	border: none;
	padding: 10px 24px 26px;
}

.button--ghost {
	background: var(--q-blu);
	color: var(--q-white);
	border: 2px solid var(--q-blu);
	box-shadow: 0px 0px 6px rgba(0,0,0,.5);
}

.button--ghost:hover {
	background: transparent;
	color: var(--q-blu);
}

/* CTA "PARTECIPA" della home: su mobile resta fissa in fondo allo schermo
   per essere sempre raggiungibile. Su desktop (>767px) resta inline com'era. */
@media (max-width: 767.98px) {
	.home-cta {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 10px;
		z-index: 1030;
		margin: 0 !important;
		padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
		background: rgba(255,255,255,.95);
		backdrop-filter: blur(6px);
		box-shadow: 0 -6px 16px rgba(11,28,70,.15);
	}

	.home-cta .button {
		width: 100%;
		max-width: 100%;
		font-size: 1.3rem;
		padding: .6rem 1.5rem;
		text-align: center;
	}

	/* spazio extra DOPO il footer: evita che la CTA fissa copra il testo
	   o il footer quando si scorre fino in fondo al sito (main e footer
	   sono fratelli nel markup, vedi head.php/footer.php) */
	.has-fixed-cta ~ footer {
		margin-bottom: calc(94px + env(safe-area-inset-bottom));
	}
}

/* reveal-on-scroll: nascosto/in pausa finché assets/js/home.js
   non aggiunge "is-visible" via IntersectionObserver */
.js-reveal {
	opacity: 0;
	animation-play-state: paused;
}

.js-reveal.is-visible {
	opacity: 1;
	animation-play-state: running;
}

@media (max-width: 575px) {
	.how-title {
		font-size: 1.6rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.how-mascot__img,
	.how-dot__circle {
		animation: none !important;
	}
}

/* =========================
	 STAMPA
	======================= */

@media print {
	#menu,
	footer {
		display: none !important;
	}
}
