/**
 * Pagina Quiz e Test — strato CSS aggiuntivo.
 * Riusa ampiamente resources.css (hero, testimonianze, FAQ) e le classi
 * già introdotte da Ebook Gratuiti (bv-ebooks-hero__badge/subtitle,
 * bv-ebooks-cta-final, bv-ebooks-tf__grid, bv-contact-leaf-cluster):
 * qui solo ciò che è specifico di questa pagina.
 */

.bv-quiz-wrap { --bv-cs-section-gap: 96px; }
.bv-quiz-wrap > section { margin-top: var(--bv-cs-section-gap); }
.bv-quiz-wrap > section:first-child { margin-top: 0; }
.bv-quiz-wrap .bv-res-section-title { position: relative; padding-bottom: .85rem; margin-bottom: 2rem; }
.bv-quiz-wrap .bv-res-section-title::after {
	content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
	width: 46px; height: 3px; border-radius: 2px; background: var(--bv-res-green, #2d6a4f);
}
.bv-quiz-wrap .bv-res-section-title[style*="text-align:left"]::after { left: 0; transform: none; }
@media (max-width: 700px) { .bv-quiz-wrap { --bv-cs-section-gap: 56px; } }

/* ── Hero: più respiro, pulsante più grande, immagine più protagonista ──── */
.bv-quiz-hero .bv-res-hero__title { margin-bottom: 1.75rem; }
.bv-quiz-hero .bv-ebooks-hero__subtitle { margin-bottom: 1.5rem; }
.bv-quiz-hero .bv-res-hero__desc { margin-bottom: 2.5rem; }
.bv-quiz-hero .bv-res-hero__cta { height: 58px; padding: 0 2.25rem; font-size: 1rem; }
.bv-quiz-hero__media img { transform: scale(1.27); }
@media (max-width: 900px) { .bv-quiz-hero__media img { transform: none; } }

/* ── Barra vantaggi: più respiro verticale, icone più grandi ─────────────── */
.bv-quiz-advantages {
	background: var(--bv-res-green-light, #EDF6F0);
	display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem 3.5rem;
	padding: 2rem 1.5rem; max-width: 1280px; margin: 0 auto 96px; border-radius: 0 0 16px 16px;
}
.bv-quiz-advantages__item { display: flex; align-items: center; gap: .85rem; }
.bv-quiz-advantages__item span[aria-hidden] {
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--bv-res-green, #2d6a4f);
}
.bv-quiz-advantages__item span[aria-hidden] svg { width: 20px !important; height: 20px !important; }
.bv-quiz-advantages__item strong { display: block; font-size: .875rem; color: var(--bv-res-text, #1a1a2e); }
.bv-quiz-advantages__item span + div span { font-size: .75rem; color: var(--bv-res-text-muted, #6b7280); }
@media (max-width: 700px) { .bv-quiz-advantages { gap: 1.25rem 1.75rem; padding: 1.5rem; margin-bottom: 56px; } }

/* ── Fiducia sotto la Hero ────────────────────────────────────────────── */
.bv-quiz-trust-stats {
	max-width: 640px; margin: 0 auto 56px; text-align: center; padding: 0 1.5rem;
}
.bv-quiz-trust-stats__stars { display: inline-flex; gap: 2px; margin-bottom: .5rem; }
.bv-quiz-trust-stats__stars span { display: flex; color: #F5B942; }
.bv-quiz-trust-stats strong { display: block; font-size: 1.125rem; font-weight: 800; color: var(--bv-res-text, #1a1a2e); margin-bottom: .375rem; }
.bv-quiz-trust-stats p { margin: 0; font-size: .875rem; color: var(--bv-res-text-muted, #6b7280); line-height: 1.5; }

/* ── Catalogo: ricerca + filtri ───────────────────────────────────────────── */
.bv-quiz-catalog { text-align: center; }
.bv-quiz-catalog__search {
	max-width: 460px; margin: 0 auto 1.5rem; display: flex; align-items: center; gap: .6rem;
	border: 1.5px solid var(--bv-res-border, #e5e7eb); border-radius: 999px; padding: .9rem 1.5rem;
	background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.04); transition: border-color .2s ease, box-shadow .2s ease;
}
.bv-quiz-catalog__search:focus-within { border-color: var(--bv-res-green, #2d6a4f); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.bv-quiz-catalog__search span { display: flex; color: var(--bv-res-text-muted, #6b7280); }
.bv-quiz-catalog__search input { flex: 1; border: none; outline: none; font-size: .9375rem; background: transparent; }
.bv-quiz-catalog__filters { display: flex; justify-content: center; margin-bottom: 2rem; }
.bv-quiz-filter-select {
	appearance: none; -webkit-appearance: none;
	border: 1.5px solid var(--bv-res-border, #e5e7eb); background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d6a4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 1rem center / 14px;
	border-radius: 999px; padding: .75rem 2.75rem .75rem 1.5rem; font-size: .875rem; font-weight: 700;
	color: var(--bv-res-text, #1a1a2e); cursor: pointer; min-width: 220px;
	transition: border-color .2s ease;
}
.bv-quiz-filter-select:hover, .bv-quiz-filter-select:focus { border-color: var(--bv-res-green, #2d6a4f); outline: none; }
/* Pulsanti usati solo dallo shortcode standalone [bv_quiz_categories] */
.bv-quiz-filter {
	border: 1.5px solid var(--bv-res-border, #e5e7eb) !important; background: #fff !important; color: var(--bv-res-text, #1a1a2e) !important;
	border-radius: 999px; padding: .4rem .95rem; font-size: .75rem; font-weight: 700; cursor: pointer;
	text-decoration: none; display: inline-block; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.bv-quiz-filter:hover { border-color: var(--bv-res-green, #2d6a4f) !important; }
.bv-quiz-filter.is-active {
	background: var(--bv-res-green, #2d6a4f) !important; border-color: var(--bv-res-green, #2d6a4f) !important; color: #fff !important;
}
.bv-quiz-catalog__empty { color: var(--bv-res-text-muted, #6b7280); font-size: .875rem; padding: 2rem 0; }

.bv-quiz-grid {
	display: grid; grid-template-columns: repeat(var(--bv-q-desktop, 5), 1fr);
	gap: 1.5rem; text-align: left;
}
.bv-quiz-grid > * { transition: opacity .22s ease, transform .22s ease; }
.bv-quiz-grid.is-filtering > * { opacity: 0; transform: translateY(10px); }
@media (max-width: 1200px) { .bv-quiz-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .bv-quiz-grid { grid-template-columns: repeat(var(--bv-q-tablet, 2), 1fr); } }
@media (max-width: 560px) { .bv-quiz-grid { grid-template-columns: repeat(var(--bv-q-mobile, 1), 1fr); } }

.bv-quiz-load-more {
	display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem;
	background: #fff; border: 1.5px solid var(--bv-res-border, #e5e7eb); color: var(--bv-res-text, #1a1a2e);
	border-radius: 999px; padding: .75rem 1.75rem; font-size: .8125rem; font-weight: 700; cursor: pointer;
	transition: border-color .2s ease, transform .2s ease;
}
.bv-quiz-load-more:hover { border-color: var(--bv-res-green, #2d6a4f); }
.bv-quiz-load-more[data-loading] { opacity: .6; pointer-events: none; }

/* ── Card Quiz ──────────────────────────────────────────────────────────── */
.bv-quiz-card {
	background: #fff; border: 1px solid var(--bv-res-border, #e5e7eb); border-radius: 20px;
	overflow: hidden; display: flex; flex-direction: column; position: relative;
	transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.bv-quiz-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0,0,0,.14); }
.bv-quiz-card__media { position: relative; aspect-ratio: 4/3; background: var(--bv-res-green-light, #EDF6F0); overflow: hidden; }
.bv-quiz-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bv-quiz-card:hover .bv-quiz-card__media img { transform: scale(1.08); }
.bv-quiz-card__badge {
	position: absolute; top: .75rem; left: .75rem; background: var(--bv-res-green, #2d6a4f); color: #fff;
	font-size: .625rem; font-weight: 800; letter-spacing: .03em; padding: .3rem .65rem; border-radius: 999px;
	box-shadow: 0 2px 6px rgba(0,0,0,.14);
}
.bv-quiz-card__body { padding: 1.125rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .375rem; flex: 1; }
.bv-quiz-card__category { font-size: .625rem; font-weight: 800; letter-spacing: .04em; }
.bv-quiz-card__title { font-size: .9375rem; font-weight: 800; margin: 0; color: var(--bv-res-text, #1a1a2e); line-height: 1.3; }
.bv-quiz-card__excerpt { font-size: .75rem; color: var(--bv-res-text-muted, #6b7280); line-height: 1.5; margin: 0; }
.bv-quiz-card__meta { display: flex; gap: 1rem; font-size: .75rem; color: var(--bv-res-text-muted, #6b7280); margin-top: .25rem; }
.bv-quiz-card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.bv-quiz-card__completions { font-size: .6875rem; color: var(--bv-res-text-muted, #6b7280); margin: 0; }
.bv-quiz-card__btn {
	margin-top: auto; display: flex; align-items: center; justify-content: center;
	background: var(--bv-res-green, #2d6a4f); color: #fff; text-decoration: none;
	border-radius: 999px; padding: .8rem 1rem; font-size: .75rem; font-weight: 800; letter-spacing: .02em;
	transition: filter .2s, transform .2s;
}
.bv-quiz-card__btn:hover { filter: brightness(.94); transform: scale(1.02); }

/* ── Quale quiz fa per te ───────────────────────────────────────────────── */
.bv-quiz-quale__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.bv-quiz-quale__card {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem;
	border-radius: 18px; padding: 2rem 1.5rem; text-decoration: none; color: var(--bv-res-text, #1a1a2e);
	transition: transform .25s ease, box-shadow .25s ease;
}
.bv-quiz-quale__card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.bv-quiz-quale__icon {
	display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
	border-radius: 50%; background: rgba(255,255,255,.65); color: var(--bv-res-green, #2d6a4f);
}
.bv-quiz-quale__title { font-size: .9375rem; font-weight: 700; margin: 0; line-height: 1.4; }
.bv-quiz-quale__link { font-size: .8125rem; font-weight: 800; color: var(--bv-res-green, #2d6a4f); display: inline-flex; align-items: center; gap: .3rem; }
.bv-quiz-quale__link span { display: flex; transition: transform .2s ease; }
.bv-quiz-quale__card:hover .bv-quiz-quale__link span { transform: translateX(3px); }

@media (max-width: 900px) { .bv-quiz-quale__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bv-quiz-quale__grid { grid-template-columns: 1fr; } }

/* ── Come funzionano + Perché fare un quiz (affiancate) ──────────────────── */
.bv-quiz-how-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: stretch; }
.bv-quiz-how, .bv-quiz-why {
	background: var(--bv-res-green-light, #EDF6F0); border-radius: 20px; padding: 2.5rem;
	box-shadow: 0 12px 30px rgba(0,0,0,.05); position: relative; overflow: hidden;
}
.bv-quiz-how { display: flex; flex-direction: column; justify-content: center; }
.bv-quiz-how::after {
	content: ''; position: absolute; right: -30px; bottom: -30px; width: 130px; height: 130px;
	background-color: var(--bv-res-green, #2d6a4f); opacity: .08; pointer-events: none;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='black' stroke-width='3'><path d='M50 95C30 80 20 60 25 35 45 30 65 25 80 10'/><path d='M25 35c8 5 14 13 16 24'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='black' stroke-width='3'><path d='M50 95C30 80 20 60 25 35 45 30 65 25 80 10'/><path d='M25 35c8 5 14 13 16 24'/></svg>") center / contain no-repeat;
}
.bv-quiz-how__desc { font-size: .875rem; line-height: 1.6; color: var(--bv-res-text-muted, #6b7280); margin: 0; position: relative; z-index: 1; }
.bv-quiz-how__desc p { margin: 0 0 .75rem; }
.bv-quiz-how__desc p:last-child { margin-bottom: 0; }
.bv-quiz-how__desc a { color: var(--bv-res-green, #2d6a4f); font-weight: 700; text-decoration: underline; }
.bv-quiz-how__steps { display: flex; align-items: flex-start; gap: .5rem; position: relative; z-index: 1; margin-top: 1.75rem; }
.bv-quiz-how__step { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.bv-quiz-how__num {
	display: flex; align-items: center; justify-content: center; width: 26px; height: 26px;
	border-radius: 50%; background: var(--bv-res-green, #2d6a4f); color: #fff; font-size: .75rem; font-weight: 800;
}
.bv-quiz-how__icon {
	display: flex; align-items: center; justify-content: center; width: 68px; height: 68px;
	border-radius: 50%; background: #fff; color: var(--bv-res-green, #2d6a4f); margin: .25rem 0;
	box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.bv-quiz-how__icon svg { width: 30px !important; height: 30px !important; }
.bv-quiz-how__step strong { font-size: .875rem; }
.bv-quiz-how__step p { font-size: .75rem; color: var(--bv-res-text-muted, #6b7280); margin: 0; line-height: 1.4; }
.bv-quiz-how__arrow { display: flex; color: var(--bv-res-text-muted, #6b7280); margin-top: 1.9rem; flex-shrink: 0; }

.bv-quiz-why { display: flex; flex-direction: column; gap: 1.25rem; padding: 0 0 2.5rem; }
.bv-quiz-why__media { margin: 0 -2.5rem; }
.bv-quiz-why__media img { display: block; width: 100%; height: auto; aspect-ratio: 16/11; object-fit: cover; border-radius: 0; }
.bv-quiz-why__text { padding: 0 2.5rem; display: flex; flex-direction: column; flex: 1; justify-content: center; }
.bv-quiz-why__text .bv-res-section-title { margin-bottom: 1rem; }
.bv-quiz-why__text .bv-res-hero__microcopy { flex-direction: column; align-items: flex-start; gap: .75rem; }
@media (max-width: 700px) { .bv-quiz-why__media { margin: 0 -1.5rem; } .bv-quiz-why__text { padding: 0 1.5rem; } }

@media (max-width: 900px) {
	.bv-quiz-how-why__grid { grid-template-columns: 1fr; }
	.bv-quiz-how__steps { flex-direction: column; align-items: stretch; }
	.bv-quiz-how__arrow { display: none; }
}

/* ── FAQ (colonna destra di Testimonianze+FAQ), stesso scoping di Ebook Gratuiti ── */
#bv-quiz-faq .bv-res-faq__search-wrap { display: none; }
#bv-quiz-faq .bv-res-faq__grid { grid-template-columns: 1fr; gap: .875rem; }
#bv-quiz-faq .bv-res-faq__item { background: transparent; border: none; border-radius: 12px !important; overflow: hidden; }
#bv-quiz-faq .bv-res-faq__question { background: var(--bv-faq-q-bg, var(--bv-res-green-light, #EDF6F0)); padding: 1.125rem 1.25rem; border-radius: 12px 12px 0 0 !important; }
#bv-quiz-faq .bv-res-faq__item:not(.is-open) .bv-res-faq__question { border-radius: 12px !important; }
#bv-quiz-faq .bv-res-faq__answer { background: var(--bv-faq-a-bg, var(--bv-res-green-light, #EDF6F0)); border-radius: 0 0 12px 12px !important; }
#bv-quiz-faq .bv-res-faq__answer p { padding: .25rem 1.25rem 1.125rem; }

/* ── Fix: alcuni pulsanti verdi mostravano testo scuro invece che bianco.
   Causa: essendo elementi <a>, il tema può imporre il proprio colore
   link con una regola più specifica del nostro semplice "color:#fff",
   caricata dopo il nostro foglio di stile (stessa dinamica già trovata
   per il border-radius delle domande FAQ). Qui forziamo il bianco con
   priorità più alta solo sui pulsanti a sfondo verde di questa pagina. */
.bv-quiz-hero .bv-res-hero__cta--primary,
.bv-quiz-why .bv-res-hero__cta--primary,
.bv-quiz-card__btn,
.bv-quiz-filter.is-active { color: #fff !important; }

/* ── Testimonianze: slider automatico visibile (solo puntini, niente frecce) ── */
.bv-quiz-wrap .bv-ebooks-tf__col .bv-res-testimonial__nav { display: flex !important; }
.bv-quiz-wrap .bv-ebooks-tf__col .bv-res-testimonial__arrow { display: none; }
.bv-quiz-wrap .bv-ebooks-tf__col .bv-res-testimonial__dots { margin-top: 0; }

/* ── CTA finale: layout verticale centrato, più solido e leggibile ───────── */
.bv-quiz-cta-final {
	position: relative; overflow: hidden; border-radius: 24px; padding: 3.5rem 2rem; text-align: center;
}
.bv-quiz-cta-final--verde { background: var(--bv-res-green, #2d6a4f); color: #fff; }
.bv-quiz-cta-final--bianco { background: #fff; border: 1px solid var(--bv-res-border, #e5e7eb); color: var(--bv-res-text, #1a1a2e); }
.bv-quiz-cta-final--immagine { color: #fff; }
.bv-quiz-cta-final--immagine::before { content: ''; position: absolute; inset: 0; background: rgba(24,44,34,.55); z-index: 0; }
.bv-quiz-cta-final__inner { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.bv-quiz-cta-final__icon {
	display: flex; align-items: center; justify-content: center; width: 60px; height: 60px;
	border-radius: 50%; background: #fff; color: var(--bv-res-green, #2d6a4f); margin-bottom: 1.25rem;
}
.bv-quiz-cta-final--bianco .bv-quiz-cta-final__icon { background: var(--bv-res-green-light, #EDF6F0); }
.bv-quiz-cta-final__inner h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 800; margin: 0 0 .75rem; }
.bv-quiz-cta-final__desc { font-size: .9375rem; line-height: 1.6; margin: 0 0 1.75rem; opacity: .92; }
.bv-quiz-cta-final__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	background: #fff; color: var(--bv-res-green, #2d6a4f); text-decoration: none;
	border-radius: 999px; padding: 1rem 2.25rem; font-size: .875rem; font-weight: 800; letter-spacing: .02em;
	transition: transform .2s ease, filter .2s ease;
}
.bv-quiz-cta-final--bianco .bv-quiz-cta-final__btn { background: var(--bv-res-green, #2d6a4f); color: #fff; }
.bv-quiz-cta-final__btn:hover { transform: scale(1.03); filter: brightness(.97); }
.bv-quiz-cta-final__btn span { display: flex; transition: transform .25s ease; }
.bv-quiz-cta-final__btn:hover span { transform: translateX(4px); }

/* ── Statistica in evidenza nella CTA finale (numero grande) ─────────────── */
.bv-quiz-cta-stat {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.22);
}
.bv-quiz-cta-final--bianco .bv-quiz-cta-stat { border-top-color: var(--bv-res-border, #e5e7eb); }
.bv-quiz-cta-stat__number { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.bv-quiz-cta-stat__text { font-size: .8125rem; font-weight: 600; opacity: .9; margin-top: .375rem; }
