/*
 * quiz.css  (versione 2026-10-17 v1) — Quiz di viaggiagame.
 * Tutte le regole stanno sotto #qz: l'ID batte le regole generiche del sito
 * (.bg-centro h2, .bg-centro ul, ...) senza !important, e niente di quello
 * che c'e' qui puo' toccare le altre pagine.
 */
#qz {
	--qz-teal: #007E9E;
	--qz-teal-chiaro: #e3f2f6;
	--qz-arancio: #FF9900;
	--qz-testo: #2f3437;
	--qz-soft: #5d666b;
	--qz-linea: #d9dfe2;
	--qz-riga: #f4f7f8;
	--qz-ok: #2e9d55;
	--qz-ok-chiaro: #e4f5ea;
	--qz-ko: #d64236;
	--qz-ko-chiaro: #fbe7e5;
	max-width: 760px;
	margin: 0 auto;
	padding: 12px 12px 40px;
	color: var(--qz-testo);
	font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	box-sizing: border-box;
}
#qz *, #qz *::before, #qz *::after { box-sizing: border-box; }
#qz a { color: var(--qz-teal); }
#qz button { font: inherit; color: inherit; }
#qz :focus-visible { outline: 3px solid var(--qz-arancio); outline-offset: 2px; }
#qz [hidden] { display: none !important; }

/* ---- intestazione ---- */
#qz .qz-lead { margin: 0 0 14px; color: var(--qz-soft); font-size: 15px; line-height: 1.5; }
#qz .qz-meta { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-left: 4px; }
#qz .qz-diff { display: inline-flex; gap: 3px; vertical-align: middle; }
#qz .qz-diff i { width: 14px; height: 6px; border-radius: 3px; background: var(--qz-linea); display: inline-block; }
#qz .qz-diff i.on:nth-child(1) { background: #4CAF50; }
#qz .qz-diff i.on:nth-child(2) { background: #8BC34A; }
#qz .qz-diff i.on:nth-child(3) { background: #FFC107; }
#qz .qz-diff i.on:nth-child(4) { background: #FF9800; }
#qz .qz-diff i.on:nth-child(5) { background: #F44336; }

/* ---- scheda del quiz ---- */
#qz .qz-card { background: #fff; border: 1px solid var(--qz-linea); border-radius: 16px; box-shadow: 0 3px 14px rgba(0, 40, 55, .10); overflow: hidden; scroll-margin-top: 12px; }
#qz .qz-bar { display: flex; gap: 4px; padding: 16px 20px 0; }
#qz .qz-bar:empty { display: none; }
#qz .qz-bar i { flex: 1; height: 8px; border-radius: 4px; background: var(--qz-riga); transition: background .25s; }
#qz .qz-bar i.cur { background: var(--qz-teal-chiaro); box-shadow: inset 0 0 0 2px var(--qz-teal); }
#qz .qz-bar i.ok { background: var(--qz-ok); }
#qz .qz-bar i.ko { background: var(--qz-ko); }
#qz .qz-bar.qz-lunga { gap: 2px; }
#qz .qz-bar.qz-lunga i { height: 6px; border-radius: 2px; }

#qz .qz-domande { list-style: none; margin: 0; padding: 0; }
#qz .qz-q { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--qz-riga); }
#qz .qz-q:first-child { border-top: 0; }
/* con JavaScript si vede una domanda alla volta */
#qz.qz-js .qz-q { display: none; border-top: 0; }
#qz.qz-js .qz-q.cur { display: flex; }

#qz .qz-qtop { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--qz-soft); font-weight: 500; font-variant-numeric: tabular-nums; }
#qz .qz-qtop b { color: var(--qz-teal); font-weight: 600; }
#qz:not(.qz-js) .qz-conta { display: none; }
#qz .qz-ask {
	margin: 0; padding: 0; border: 0; text-transform: none; letter-spacing: 0;
	font-family: inherit; font-size: clamp(19px, 3.6vw, 23px); font-weight: 600; line-height: 1.3; color: var(--qz-testo);
	text-wrap: balance;
}
#qz .qz-ask:focus { outline: none; }
#qz .qz-img { display: flex; justify-content: center; padding: 4px 0; }
#qz .qz-img img { max-width: 100%; max-height: 260px; width: auto; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--qz-linea), 0 4px 12px rgba(0, 0, 0, .12); background: #fff; }

#qz .qz-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#qz .qz-opts li { margin: 0; padding: 0; }
#qz .qz-opt {
	width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
	padding: 13px 16px; min-height: 54px; border-radius: 12px; border: 2px solid var(--qz-linea); background: var(--qz-riga);
	font-size: 16px; font-weight: 500; line-height: 1.3; transition: border-color .15s, background .15s, transform .1s;
}
#qz .qz-k { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #fff; border: 1px solid var(--qz-linea); color: var(--qz-soft); }
#qz .qz-opt:hover:not([disabled]) { border-color: var(--qz-teal); background: var(--qz-teal-chiaro); }
#qz .qz-opt:active:not([disabled]) { transform: scale(.99); }
#qz .qz-opt[disabled] { cursor: default; color: var(--qz-testo); }
#qz .qz-opt.ok { border-color: var(--qz-ok); background: var(--qz-ok-chiaro); }
#qz .qz-opt.ok .qz-k { background: var(--qz-ok); border-color: var(--qz-ok); color: #fff; }
#qz .qz-opt.ko { border-color: var(--qz-ko); background: var(--qz-ko-chiaro); }
#qz .qz-opt.ko .qz-k { background: var(--qz-ko); border-color: var(--qz-ko); color: #fff; }
#qz .qz-opt.dim { opacity: .55; }

#qz .qz-fb { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 46px; }
#qz:not(.qz-js) .qz-fb { display: none; }
#qz .qz-msg { font-weight: 600; }
#qz .qz-msg.ok { color: var(--qz-ok); }
#qz .qz-msg.ko { color: var(--qz-ko); }
#qz .qz-hint { color: var(--qz-soft); font-size: 13px; }

#qz .qz-btn { border: 0; border-radius: 10px; padding: 11px 20px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; line-height: 1.3; }
#qz .qz-primary { background: var(--qz-arancio); color: #1d1400; }
#qz .qz-primary:hover { filter: brightness(1.06); color: #1d1400; }
#qz .qz-ghost { background: var(--qz-riga); color: var(--qz-testo); border: 1px solid var(--qz-linea); }
#qz .qz-ghost:hover { border-color: var(--qz-teal); color: var(--qz-testo); }
#qz .qz-noscript { padding: 16px 20px; margin: 0; color: var(--qz-ko); font-weight: 600; }

/* ---- finale ---- */
#qz .qz-res { padding: 24px 20px; display: flex; flex-direction: column; gap: 20px; }
#qz .qz-score { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
#qz .qz-ring { position: relative; width: 120px; height: 120px; flex: none; }
#qz .qz-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
#qz .qz-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; font-family: 'Quicksand', 'Poppins', sans-serif; font-weight: 700; font-size: 34px; font-variant-numeric: tabular-nums; }
#qz .qz-n small { font-size: 16px; color: var(--qz-soft); align-self: center; padding-top: 10px; }
#qz .qz-verdict { flex: 1; min-width: 200px; }
#qz .qz-verdict h2 {
	margin: 0 0 4px; padding: 0; border: 0; text-transform: none; letter-spacing: 0;
	font-family: 'Quicksand', 'Poppins', sans-serif; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--qz-testo);
}
#qz .qz-verdict h2:focus { outline: none; }
#qz .qz-verdict p { margin: 0; color: var(--qz-soft); font-size: 15px; }
#qz .qz-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#qz .qz-sect {
	margin: 0; padding: 0; border: 0; font-family: inherit; color: var(--qz-soft);
	font-size: 12px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600;
}
#qz .qz-rowhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
#qz .qz-filter { display: flex; gap: 6px; }
#qz .qz-filter button { border: 1px solid var(--qz-linea); background: #fff; border-radius: 20px; padding: 3px 12px; font-size: 12.5px; cursor: pointer; }
#qz .qz-filter button[aria-pressed="true"] { border-color: var(--qz-teal); color: var(--qz-teal); font-weight: 600; }
#qz .qz-recap { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#qz .qz-recap li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--qz-riga); align-items: start; margin: 0; }
#qz .qz-recap li.ko { background: var(--qz-ko-chiaro); }
#qz .qz-recap li > div { min-width: 0; }
#qz .qz-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }
#qz .qz-recap .ok .qz-ic { background: var(--qz-ok); }
#qz .qz-recap .ko .qz-ic { background: var(--qz-ko); }
#qz .qz-mini { float: right; width: 52px; height: auto; margin: 0 0 4px 10px; border-radius: 3px; box-shadow: 0 0 0 1px var(--qz-linea); }
#qz .qz-rq { font-weight: 500; }
#qz .qz-ra { font-size: 13.5px; color: var(--qz-soft); }
#qz .qz-ra s { color: var(--qz-ko); }
#qz .qz-ra b { color: var(--qz-ok); font-weight: 600; }
#qz .qz-others { display: flex; flex-wrap: wrap; gap: 8px; }
#qz .qz-others a { padding: 7px 14px; border-radius: 20px; background: var(--qz-riga); color: var(--qz-testo); font-size: 13.5px; font-weight: 500; text-decoration: none; border: 1px solid var(--qz-linea); }
#qz .qz-others a:hover { background: var(--qz-arancio); border-color: var(--qz-arancio); color: #1d1400; }

/* ---- altri quiz della famiglia (link veri) ---- */
#qz .qz-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
#qz .qz-picker a { font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--qz-linea); background: #fff; color: var(--qz-teal); text-decoration: none; white-space: nowrap; line-height: 1.5; }
#qz .qz-picker a:hover { background: var(--qz-teal-chiaro); }
#qz .qz-picker a.active { background: var(--qz-teal); border-color: var(--qz-teal); color: #fff; font-weight: 600; }

/* ---- testo in fondo (per chi legge e per Google) ---- */
#qz .qz-info { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--qz-soft); }
#qz .qz-info h2 {
	margin: 0 0 6px; padding: 0; border: 0; text-transform: none; letter-spacing: 0;
	font-family: inherit; font-size: 15px; font-weight: 600; color: var(--qz-testo);
}
#qz .qz-info p { margin: 0 0 6px; font-size: inherit; line-height: inherit; color: inherit; }

/* ---- indice ---- */
#qz .qz-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
#qz .qz-fam { background: #fff; border: 1px solid var(--qz-linea); border-radius: 12px; padding: 14px 16px 16px; min-width: 0; }
#qz .qz-fam h2, #qz .qz-index > h2 {
	margin: 0 0 4px; padding: 0; border: 0; text-transform: none; letter-spacing: 0;
	font-family: 'Quicksand', 'Poppins', sans-serif; font-size: 19px; font-weight: 700; color: var(--qz-teal);
}
#qz .qz-fam p { margin: 0 0 10px; font-size: 13px; color: var(--qz-soft); }
#qz .qz-fam ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#qz .qz-fam li { margin: 0; padding: 0; }
#qz .qz-fam a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--qz-riga); color: var(--qz-testo); font-size: 14px; font-weight: 500; text-decoration: none; }
#qz .qz-fam a:hover { background: var(--qz-arancio); color: #1d1400; }
#qz .qz-more { margin: 18px 0 0; font-size: 13.5px; color: var(--qz-soft); }

@media (max-width: 520px) {
	#qz { padding: 8px 4px 32px; }
	#qz .qz-bar { padding: 14px 14px 0; }
	#qz .qz-q, #qz .qz-res { padding-left: 14px; padding-right: 14px; }
	#qz .qz-ring { width: 100px; height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
	#qz * { transition: none !important; }
}
