/* ════════════════════════════════════════════════════════════════════
   BV RISORSE GRATUITE — pagina libera, incorporata via shortcode
   [bv_risorse_gratuite]. Header/footer/menu restano quelli del tema.
   ════════════════════════════════════════════════════════════════════ */

.bv-res-breadcrumb,
.bv-res-breadcrumb ol {
	display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .125rem;
	list-style: none; font-size: .875rem; color: #5C7A6C;
	margin: 0 0 1.5rem;
}
.bv-res-breadcrumb a { color: #2d6a4f; text-decoration: none; }
.bv-res-breadcrumb a:hover { text-decoration: underline; }
.bv-res-breadcrumb li { display: flex; align-items: center; gap: .35rem; }
.bv-res-breadcrumb [aria-current="page"] { color: #234D38; font-weight: 500; }

.bv-res-wrap {
	--bv-res-green: #2d6a4f;
	--bv-res-green-light: #EDF6F0;
	--bv-res-text: #234D38;
	--bv-res-text-muted: #5C7A6C;
	--bv-res-border: #E5E7E1;
	--bv-res-radius: 20px;
	--bv-res-radius-sm: 12px;
	--bv-res-shadow: 0 20px 55px rgba(0, 0, 0, .09);
	--bv-res-shadow-sm: 0 12px 40px rgba(0, 0, 0, .05);
	--bv-res-t: .3s ease;

	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem 4rem;
	color: var(--bv-res-text);
	font-size: 15px;
	overflow-x: hidden;
}
.bv-res-wrap section { margin-bottom: 3rem; }
.bv-res-wrap section:last-child { margin-bottom: 0; }

.bv-res-section-title {
	font-size: clamp(1.75rem, 2.9vw, 2.125rem);
	font-weight: 800; text-align: center;
	margin: 0 0 2.5rem; color: var(--bv-res-text);
}

/* ── HERO ─────────────────────────────────────────────────────────────── */
.bv-res-hero {
	/* Le stesse variabili di design definite in .bv-res-wrap: l'Hero,
	   ora fuori da quel contenitore per lo sfondo a piena larghezza, non
	   le eredita più automaticamente e deve definirle anche qui. */
	--bv-res-green: #2d6a4f;
	--bv-res-green-light: #EDF6F0;
	--bv-res-text: #234D38;
	--bv-res-text-muted: #5C7A6C;
	--bv-res-border: #E5E7E1;
	--bv-res-radius: 20px;
	--bv-res-radius-sm: 12px;
	--bv-res-shadow: 0 20px 55px rgba(0, 0, 0, .09);
	--bv-res-shadow-sm: 0 12px 40px rgba(0, 0, 0, .05);
	--bv-res-t: .3s ease;

	/* Lo sfondo si estende a piena larghezza della finestra, oltre i
	   limiti di .bv-res-wrap — tecnica standard per le sezioni "a piena
	   larghezza" dentro un contenitore centrato: l'elemento diventa
	   largo quanto il viewport e si ricentra, indipendentemente da dove
	   si trova nel documento. */
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	width: 100vw;
	background: linear-gradient(135deg, var(--bv-res-green-light), #fff);
	padding: 3rem 0;
	margin-bottom: 3rem;
}
.bv-res-hero__inner {
	max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
}
.bv-res-hero__content {
	display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem;
	align-items: center;
}
.bv-res-hero__title {
	font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.25;
	margin: 0 0 1.25rem; color: var(--bv-res-text);
}
.bv-res-hero__highlight { color: #E07A2F; }
.bv-res-hero__desc { font-size: 1rem; color: var(--bv-res-text-muted); line-height: 1.65; margin: 0 0 2rem; max-width: 50ch; }
.bv-res-hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.bv-res-hero__stat { display: flex; flex-direction: column; gap: .375rem; }
.bv-res-hero__stat-icon { color: var(--bv-res-green); }
.bv-res-hero__stat-icon svg { width: 22px; height: 22px; }
.bv-res-hero__stat-number { font-size: 1.375rem; font-weight: 800; color: var(--bv-res-text); }
.bv-res-hero__stat-label { font-size: .75rem; color: var(--bv-res-text-muted); font-weight: 600; line-height: 1.3; }
.bv-res-hero__media { display: flex; align-items: center; justify-content: center; }
.bv-res-hero__media img { width: 100%; height: auto; border-radius: var(--bv-res-radius-sm); transform: scale(1.06); }

.bv-res-hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.bv-res-hero__cta {
	display: inline-flex; align-items: center; justify-content: center;
	height: 50px; padding: 0 1.75rem; border-radius: 50px;
	font-size: .9375rem; font-weight: 800; text-decoration: none;
	transition: transform var(--bv-res-t), box-shadow var(--bv-res-t), filter var(--bv-res-t), background var(--bv-res-t);
}
.bv-res-hero__cta--primary { background: var(--bv-res-green); color: #fff; box-shadow: var(--bv-res-shadow-sm); }
.bv-res-hero__cta--primary:hover { filter: brightness(.94); transform: scale(1.03); box-shadow: var(--bv-res-shadow); }
.bv-res-hero__cta--secondary { background: #fff; color: var(--bv-res-text); border: 1.5px solid var(--bv-res-border); }
.bv-res-hero__cta--secondary:hover { border-color: var(--bv-res-green); transform: scale(1.03); }

.bv-res-hero__microcopy {
	list-style: none; margin: 1.75rem 0 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
}
.bv-res-hero__microcopy li {
	display: flex; align-items: center; gap: .4rem;
	font-size: .75rem; font-weight: 700; color: var(--bv-res-text-muted);
}
.bv-res-hero__microcopy li span { color: var(--bv-res-green); display: flex; }
.bv-res-hero__microcopy li svg { width: 14px; height: 14px; }

/* ── CATEGORIE ────────────────────────────────────────────────────────── */
.bv-res-categories__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.bv-res-category-card {
	background: #fff; border: 1px solid var(--bv-res-border); border-radius: var(--bv-res-radius);
	overflow: hidden; text-align: center; box-shadow: var(--bv-res-shadow-sm);
	transition: transform var(--bv-res-t), box-shadow var(--bv-res-t);
	display: flex; flex-direction: column;
}
.bv-res-category-card:hover { transform: translateY(-8px); box-shadow: var(--bv-res-shadow); }
.bv-res-category-card__media {
	/* L'immagine occupa circa il 45% dell'altezza complessiva della card
	   (rapporto 4:3, con ritaglio automatico se le proporzioni non
	   corrispondono esattamente). */
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.bv-res-category-card__media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform var(--bv-res-t); will-change: transform;
}
.bv-res-category-card:hover .bv-res-category-card__media img { transform: scale(1.05); }
.bv-res-category-card__body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.bv-res-category-card__icon {
	width: 56px; height: 56px; border-radius: 50%; margin: 1.75rem auto 0;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bv-res-category-card__icon svg { width: 26px; height: 26px; }
.bv-res-category-card__title { font-size: 1.0625rem; font-weight: 800; margin: 0 0 .5rem; }
.bv-res-category-card__text { font-size: .8125rem; color: var(--bv-res-text-muted); line-height: 1.5; margin: 0 0 1rem; flex: 1; }
.bv-res-category-card__points { list-style: none; margin: 0 0 1.25rem; padding: 0; text-align: left; display: flex; flex-direction: column; gap: .5rem; }
.bv-res-category-card__points li { display: flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; color: var(--bv-res-text); }
.bv-res-category-card__points li span {
	flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%;
	background: var(--bv-res-green-light); color: var(--bv-res-green);
	display: flex; align-items: center; justify-content: center;
}
.bv-res-category-card__points li svg { width: 9px; height: 9px; }
.bv-res-category-card__footer { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-top: auto; }
.bv-res-category-card__count { font-size: .6875rem; font-weight: 800; letter-spacing: .04em; color: var(--bv-res-text-muted); }
.bv-res-category-card__btn {
	display: inline-block; color: #fff; font-size: .8125rem; font-weight: 800; letter-spacing: .03em;
	padding: .625rem 1.5rem; border-radius: 50px; text-decoration: none;
	transition: filter var(--bv-res-t), transform var(--bv-res-t);
}
.bv-res-category-card__btn:hover { filter: brightness(.92); transform: scale(1.03); }

/* ── OBIETTIVI ────────────────────────────────────────────────────────── */
.bv-res-goals__inner {
	background: #F8F7F2; border-radius: var(--bv-res-radius); padding: 2.5rem;
}
.bv-res-goals__title { font-size: 1.375rem; font-weight: 800; text-align: center; margin: 0 0 .5rem; }
.bv-res-goals__subtitle { font-size: .9375rem; color: var(--bv-res-text-muted); text-align: center; margin: 0 0 2rem; }
.bv-res-goals__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.bv-res-goal-card {
	display: flex; align-items: center; gap: .875rem;
	background: #fff; border: 1px solid var(--bv-res-border); border-radius: var(--bv-res-radius-sm);
	padding: 1.25rem; text-decoration: none; color: inherit;
	transition: border-color var(--bv-res-t), transform var(--bv-res-t), box-shadow var(--bv-res-t);
}
.bv-res-goal-card:hover { border-color: var(--bv-res-green); transform: translateY(-8px); box-shadow: var(--bv-res-shadow-sm); }
.bv-res-goal-card__icon {
	flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
	background: var(--bv-res-green-light); color: var(--bv-res-green);
	display: flex; align-items: center; justify-content: center;
}
.bv-res-goal-card__icon svg { width: 20px; height: 20px; }
.bv-res-goal-card__body { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.bv-res-goal-card__body strong { font-size: .875rem; color: var(--bv-res-text); }
.bv-res-goal-card__text { font-size: .75rem; color: var(--bv-res-text-muted); }
.bv-res-goal-card__arrow { flex-shrink: 0; color: var(--bv-res-text-muted); }
.bv-res-goal-card__arrow svg { width: 16px; height: 16px; }

/* ── CAROSELLO RISORSE ───────────────────────────────────────────────── */
.bv-res-carousel-section__head { margin-bottom: 2rem; text-align: center; }
.bv-res-carousel-section__eyebrow {
	display: inline-flex; align-items: center; gap: .5rem;
	background: var(--bv-res-green-light); color: var(--bv-res-green);
	font-size: .75rem; font-weight: 800; letter-spacing: .05em;
	padding: .5rem 1.25rem; border-radius: 50px; margin-bottom: 1.25rem;
}
.bv-res-carousel-section__eyebrow svg { width: 15px; height: 15px; color: #F5B942; }
.bv-res-carousel-section__subtitle { font-size: 1rem; color: var(--bv-res-text-muted); margin: -1.5rem 0 0; }
.bv-res-carousel-section__ecosystem {
	font-size: .9375rem; font-style: italic; color: var(--bv-res-text);
	max-width: 62ch; margin: 1.25rem auto 0; line-height: 1.6;
}
.bv-res-carousel-section__footer { display: flex; justify-content: center; margin-top: 2rem; }
.bv-res-carousel { position: relative; }
.bv-res-carousel__track {
	display: flex; gap: 1.25rem; overflow-x: auto; scroll-behavior: smooth;
	scrollbar-width: none; padding-bottom: .5rem;
}
.bv-res-carousel__track::-webkit-scrollbar { display: none; }
.bv-res-resource-card {
	flex: 0 0 270px; background: #fff; border: 1px solid var(--bv-res-border);
	border-radius: var(--bv-res-radius); overflow: hidden; box-shadow: var(--bv-res-shadow-sm);
	transition: transform var(--bv-res-t), box-shadow var(--bv-res-t);
}
.bv-res-resource-card:hover { transform: translateY(-5px); box-shadow: var(--bv-res-shadow); }
.bv-res-resource-card__media { position: relative; aspect-ratio: 6/7; background: var(--bv-res-green-light); overflow: hidden; }
.bv-res-resource-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; will-change: transform; }
.bv-res-resource-card:hover .bv-res-resource-card__media img { transform: scale(1.05); }
.bv-res-resource-card__badge {
	position: absolute; top: .75rem; left: .75rem;
	display: flex; align-items: center; gap: .3rem;
	color: #fff; font-size: .625rem; font-weight: 700; letter-spacing: .03em;
	padding: .3rem .75rem; border-radius: 50px;
	box-shadow: 0 2px 6px rgba(0,0,0,.14);
}
.bv-res-resource-card__badge svg { width: 10px; height: 10px; flex-shrink: 0; }
.bv-res-resource-card__body { padding: .875rem 1rem 1rem; }
.bv-res-resource-card__category {
	display: flex; align-items: center; gap: .375rem;
	font-size: .6875rem; font-weight: 800; letter-spacing: .05em; color: var(--bv-res-green); margin-bottom: .375rem;
}
.bv-res-resource-card__category svg { width: 13px; height: 13px; }
.bv-res-resource-card__title { font-size: .9375rem; font-weight: 800; margin: 0 0 .2rem; line-height: 1.25; }
.bv-res-resource-card__subtitle { font-size: .75rem; color: var(--bv-res-text-muted); margin: 0 0 .5rem; line-height: 1.35; }
.bv-res-resource-card__meta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .5rem; }
.bv-res-resource-card__meta-item { display: flex; align-items: center; gap: .3rem; font-size: .6875rem; font-weight: 600; color: var(--bv-res-text-muted); }
.bv-res-resource-card__meta-item svg { width: 12px; height: 12px; }
.bv-res-resource-card__rating { display: flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 500; margin-bottom: .625rem; color: var(--bv-res-text-muted); }
.bv-res-resource-card__rating svg { width: 12px; height: 12px; color: #F5B942; }
.bv-res-resource-card__review-count { font-weight: 400; opacity: .8; }
.bv-res-resource-card__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	text-align: center; background: var(--bv-res-green-light); color: var(--bv-res-green);
	font-size: .75rem; font-weight: 700; letter-spacing: .02em;
	padding: .5rem 1rem; border-radius: 50px; text-decoration: none;
	transition: background var(--bv-res-t), color var(--bv-res-t), transform var(--bv-res-t);
}
.bv-res-resource-card__btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.bv-res-resource-card__btn:hover { background: var(--bv-res-green); color: #fff; transform: scale(1.03); }

.bv-res-view-all-btn {
	display: inline-flex; align-items: center; gap: .625rem;
	background: #fff; border: 1.5px solid var(--bv-res-border); color: var(--bv-res-text);
	font-size: .875rem; font-weight: 800; letter-spacing: .03em;
	padding: .875rem 1.75rem; border-radius: 50px; text-decoration: none;
	transition: border-color var(--bv-res-t), transform var(--bv-res-t), background var(--bv-res-t);
}
.bv-res-view-all-btn svg { width: 16px; height: 16px; transition: transform var(--bv-res-t); }
.bv-res-view-all-btn:hover { border-color: var(--bv-res-green); background: var(--bv-res-green-light); transform: scale(1.03); }
.bv-res-view-all-btn:hover svg { transform: translateX(3px); }
.bv-res-carousel__nav {
	position: absolute !important; top: 50% !important; transform: translateY(-50%) !important;
	width: 36px !important; height: 36px !important; min-width: 36px !important; max-width: 36px !important;
	border-radius: 50% !important; border: 1px solid var(--bv-res-border) !important;
	background: #fff !important; color: var(--bv-res-text) !important; box-shadow: var(--bv-res-shadow-sm) !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	padding: 0 !important; margin: 0 !important; line-height: 1 !important; text-transform: none !important;
	cursor: pointer; z-index: 2; transition: background var(--bv-res-t), border-color var(--bv-res-t);
}
.bv-res-carousel__nav:hover { border-color: var(--bv-res-green) !important; background: var(--bv-res-green-light) !important; }
.bv-res-carousel__nav svg { width: 16px !important; height: 16px !important; flex-shrink: 0; }
.bv-res-carousel__nav--prev { left: -18px !important; }
.bv-res-carousel__nav--next { right: -18px !important; }

/* ── COME FUNZIONA ────────────────────────────────────────────────────── */
.bv-res-how__title { margin-bottom: 3rem; }
.bv-res-how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.bv-res-how__step { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.bv-res-how__step:not(.is-last)::after {
	content: ''; position: absolute; top: 24px; left: calc(50% + 45px); width: calc(100% - 60px);
	height: 2px;
	background: linear-gradient(to right, var(--bv-res-green), var(--bv-res-border));
	opacity: .35;
}
.bv-res-how__num {
	width: 48px; height: 48px; border-radius: 50%; background: var(--bv-res-green); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: 800;
	margin-bottom: 1rem; position: relative; z-index: 1;
}
.bv-res-how__icon { color: var(--bv-res-green); margin-bottom: .625rem; }
.bv-res-how__icon svg { width: 28px; height: 28px; }
.bv-res-how__step-title { font-size: 1rem; font-weight: 800; margin-bottom: .375rem; }
.bv-res-how__step-text { font-size: .8125rem; color: var(--bv-res-text-muted); max-width: 26ch; line-height: 1.5; }
/* Comparsa scaglionata dei tre step, quando la sezione entra nel
   viewport (la classe is-visible viene aggiunta dallo stesso
   meccanismo già usato per le altre sezioni). */
.bv-res-how__step {
	opacity: 0; transform: translateY(14px);
	transition: opacity .5s ease, transform .5s ease;
}
.bv-res-how.is-visible .bv-res-how__step { opacity: 1; transform: none; }
.bv-res-how.is-visible .bv-res-how__step:nth-child(1) { transition-delay: 0s; }
.bv-res-how.is-visible .bv-res-how__step:nth-child(2) { transition-delay: .12s; }
.bv-res-how.is-visible .bv-res-how__step:nth-child(3) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
	.bv-res-how__step { opacity: 1; transform: none; transition: none; }
}
.bv-res-how__closing {
	text-align: center; margin: 2.5rem 0 0; font-size: 1rem; font-weight: 700;
	color: var(--bv-res-green); padding: 1rem 1.5rem; background: var(--bv-res-green-light);
	border-radius: var(--bv-res-radius-sm); max-width: 46ch; margin-left: auto; margin-right: auto;
}

/* ── FIDUCIA + TESTIMONIANZE ──────────────────────────────────────────── */
.bv-res-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 5rem; }
.bv-res-trust__badges { background: #F8F7F2; border-radius: var(--bv-res-radius); padding: 2rem; }
.bv-res-trust__badges .bv-res-section-title { font-size: 1.25rem; margin-bottom: 1.75rem; }
.bv-res-trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.bv-res-trust__badge {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
	padding: 1.25rem 1rem; border-radius: var(--bv-res-radius-sm);
	transition: transform var(--bv-res-t), background var(--bv-res-t);
}
.bv-res-trust__badge:hover { background: #fff; box-shadow: var(--bv-res-shadow-sm); }
.bv-res-trust__badge span { color: var(--bv-res-green); display: inline-flex; transition: transform var(--bv-res-t), color var(--bv-res-t); }
.bv-res-trust__badge span svg { width: 42px; height: 42px; }
.bv-res-trust__badge:hover span { transform: translateY(-5px); color: #38a273; }
.bv-res-trust__badge strong { font-size: .8125rem; font-weight: 700; line-height: 1.4; }
.bv-res-trust__badge p { font-size: .75rem; color: var(--bv-res-text-muted); line-height: 1.45; margin: 0; }

.bv-res-testimonial {
	background: #fff; border: 1px solid var(--bv-res-border); border-radius: var(--bv-res-radius);
	padding: 2rem; box-shadow: var(--bv-res-shadow-sm);
	display: flex; flex-direction: column;
}
.bv-res-testimonial__track { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.bv-res-testimonial__slide { display: none; flex-direction: column; }
.bv-res-testimonial__slide.is-active { display: flex; height: 100%; min-height: 100%; flex: 1; }
.bv-res-testimonial__stars { display: flex; align-items: center; gap: .2rem; margin-bottom: 1rem; }
.bv-res-testimonial__star { color: var(--bv-res-border); }
.bv-res-testimonial__star svg { width: 16px; height: 16px; }
.bv-res-testimonial__star.is-filled { color: #F5B942; }
.bv-res-testimonial__rating-num { margin-left: .5rem; font-size: .8125rem; font-weight: 700; color: var(--bv-res-text-muted); }
.bv-res-testimonial__text { font-style: italic; font-size: .9375rem; line-height: 1.7; margin: 0 0 1.5rem; color: var(--bv-res-text); }
.bv-res-testimonial__author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.bv-res-testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.bv-res-testimonial__author span { display: flex; flex-direction: column; }
.bv-res-testimonial__author strong { font-size: .875rem; display: flex; align-items: center; gap: .375rem; }
.bv-res-testimonial__verified {
	display: inline-flex; align-items: center; justify-content: center;
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--bv-res-green); color: #fff; flex-shrink: 0;
}
.bv-res-testimonial__verified svg { width: 9px; height: 9px; }
.bv-res-testimonial__author small { font-size: .75rem; color: var(--bv-res-text-muted); }
.bv-res-testimonial__nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.bv-res-testimonial__arrow {
	flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
	border: 1px solid var(--bv-res-border); background: #fff; color: var(--bv-res-text);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	transition: border-color var(--bv-res-t), background var(--bv-res-t);
}
.bv-res-testimonial__arrow:hover { border-color: var(--bv-res-green); background: var(--bv-res-green-light); }
.bv-res-testimonial__arrow svg { width: 14px; height: 14px; }
.bv-res-testimonial__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 0; }
.bv-res-testimonial__dot {
	width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--bv-res-border);
	cursor: pointer; padding: 0; transition: background var(--bv-res-t);
}
.bv-res-testimonial__dot.is-active { background: var(--bv-res-green); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.bv-res-faq__search-wrap { position: relative; max-width: 480px; margin: 0 auto 2rem; }
.bv-res-faq__search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--bv-res-text-muted); pointer-events: none; }
.bv-res-faq__search-icon svg { width: 17px; height: 17px; }
.bv-res-faq__search {
	width: 100%; height: 48px; border-radius: 50px; border: 1.5px solid var(--bv-res-border);
	padding: 0 1.25rem 0 2.75rem; font-size: .875rem; color: var(--bv-res-text);
	transition: border-color var(--bv-res-t);
}
.bv-res-faq__search:focus { outline: none; border-color: var(--bv-res-green); }
.bv-res-faq__search::-webkit-search-cancel-button { cursor: pointer; }
.bv-res-faq__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.bv-res-faq__item {
	border: 1px solid var(--bv-res-border); border-radius: var(--bv-res-radius-sm);
	overflow: hidden;
	transition: border-color var(--bv-res-t), opacity var(--bv-res-t);
}
.bv-res-faq__item[hidden] { display: none; }
.bv-res-faq__item:hover { border-color: var(--bv-res-green); }
.bv-res-faq__item.is-open { border-color: var(--bv-res-green); }
.bv-res-faq__question {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	background: var(--bv-faq-q-bg, #fff); border: none; text-align: left; cursor: pointer;
	padding: 1.375rem 1.25rem; font-size: .875rem; font-weight: 700; color: var(--bv-faq-q-text, var(--bv-res-text));
}
.bv-res-faq__chevron { flex-shrink: 0; color: var(--bv-faq-q-text, var(--bv-res-text-muted)); opacity: .8; transition: transform var(--bv-res-t), color var(--bv-res-t); }
.bv-res-faq__chevron svg { width: 16px; height: 16px; }
.bv-res-faq__item.is-open .bv-res-faq__chevron { transform: rotate(180deg); color: var(--bv-res-green); opacity: 1; }
.bv-res-faq__answer { max-height: 0; overflow: hidden; transition: max-height var(--bv-res-t); background: var(--bv-faq-a-bg, #fff); }
.bv-res-faq__answer p { margin: 0; padding: 1rem 1.25rem 1.125rem; font-size: .8125rem; color: var(--bv-faq-a-text, var(--bv-res-text-muted)); line-height: 1.6; }
.bv-res-faq__empty { text-align: center; color: var(--bv-res-text-muted); font-size: .875rem; padding: 2rem 0; margin: 0; }
.bv-res-faq__expand {
	display: flex; align-items: center; justify-content: center; gap: .5rem;
	margin: 1.5rem auto 0; padding: .75rem 1.75rem;
	background: #fff; border: 1.5px solid var(--bv-res-border); border-radius: 50px;
	color: var(--bv-res-green); font-size: .875rem; font-weight: 700; cursor: pointer;
	transition: border-color var(--bv-res-t), background var(--bv-res-t);
}
.bv-res-faq__expand:hover { border-color: var(--bv-res-green); background: var(--bv-res-green-light); }
.bv-res-faq__expand-icon { display: flex; transition: transform var(--bv-res-t); }
.bv-res-faq__expand-icon svg { width: 14px; height: 14px; }
.bv-res-faq__expand.is-expanded .bv-res-faq__expand-icon { transform: rotate(180deg); }
.bv-res-faq__expand[hidden] { display: none; }

/* ── NEWSLETTER ───────────────────────────────────────────────────────── */
.bv-res-newsletter {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, var(--bv-res-green) 0%, #1f4a37 100%); color: #fff;
	border-radius: var(--bv-res-radius); padding: 3.5rem 3rem;
	display: grid; grid-template-columns: 1fr; align-items: center;
	box-shadow: var(--bv-res-shadow);
}
/* Forme decorative sfocate, sole per dare profondità — puramente
   ornamentali, ignorate dagli screen reader. */
.bv-res-newsletter::before,
.bv-res-newsletter::after {
	content: ''; position: absolute; border-radius: 50%; pointer-events: none;
	background: rgba(255,255,255,.06);
}
.bv-res-newsletter::before { width: 320px; height: 320px; top: -160px; right: -80px; }
.bv-res-newsletter::after { width: 220px; height: 220px; bottom: -120px; left: 8%; background: rgba(255,255,255,.04); }
.bv-res-newsletter > * { position: relative; z-index: 1; }
.bv-res-newsletter--with-image { grid-template-columns: 1.3fr 1fr; gap: 2.5rem; }
.bv-res-newsletter--image-left { grid-template-columns: 1fr 1.3fr; }
.bv-res-newsletter--image-left .bv-res-newsletter__media { order: -1; }
.bv-res-newsletter__content {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
}
.bv-res-newsletter--with-image .bv-res-newsletter__content { grid-template-columns: auto 1fr; grid-template-areas: "icon text" ". form" ". disclaimer"; }
.bv-res-newsletter--with-image .bv-res-newsletter__icon { grid-area: icon; }
.bv-res-newsletter--with-image .bv-res-newsletter__text { grid-area: text; }
.bv-res-newsletter--with-image .bv-res-newsletter__form,
.bv-res-newsletter--with-image .bv-res-newsletter__cta { grid-area: form; }
.bv-res-newsletter--with-image .bv-res-newsletter__disclaimer { grid-area: disclaimer; }
.bv-res-newsletter__icon {
	display: flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; border-radius: 50%;
	background: rgba(255,255,255,.12); color: #fff;
}
.bv-res-newsletter__icon svg { width: 30px; height: 30px; }
.bv-res-newsletter__text h2 { font-size: clamp(1.625rem, 2.6vw, 2rem); font-weight: 800; margin: 0 0 .5rem; color: #fff; line-height: 1.2; }
.bv-res-newsletter__text p { font-size: .9375rem; color: rgba(255,255,255,.82); margin: 0; line-height: 1.55; max-width: 46ch; }
.bv-res-newsletter__form { display: flex; gap: .625rem; margin-top: 1.5rem; flex-wrap: wrap; }
.bv-res-newsletter__input {
	min-width: 200px; height: 52px; border-radius: 50px; border: 2px solid transparent;
	padding: 0 1.25rem; font-size: .9375rem; flex: 1;
	transition: border-color var(--bv-res-t), box-shadow var(--bv-res-t);
}
.bv-res-newsletter__input:focus { outline: none; border-color: rgba(255,255,255,.6); box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.bv-res-newsletter__submit,
.bv-res-newsletter__cta {
	height: 52px; padding: 0 1.75rem; border-radius: 50px; border: none;
	background: #E07A2F; color: #fff; font-size: .875rem; font-weight: 800; letter-spacing: .03em;
	cursor: pointer; white-space: nowrap; transition: filter var(--bv-res-t), transform var(--bv-res-t), box-shadow var(--bv-res-t);
	box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.bv-res-newsletter__cta { margin-top: 1.5rem; display: inline-flex; align-items: center; justify-content: center; }
.bv-res-newsletter__submit:hover,
.bv-res-newsletter__cta:hover { filter: brightness(1.06); transform: scale(1.03); box-shadow: 0 8px 20px rgba(0,0,0,.24); }
.bv-res-newsletter__disclaimer { grid-column: 2 / 4; font-size: .6875rem; color: rgba(255,255,255,.6); margin: .625rem 0 0; }
.bv-res-newsletter--with-image .bv-res-newsletter__disclaimer { grid-column: auto; }
.bv-res-newsletter__iframe { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: none; }
.bv-res-newsletter__success {
	display: flex; align-items: center; gap: .5rem;
	margin: 1rem 0 0; font-size: .875rem; font-weight: 700; color: #fff;
	background: rgba(255,255,255,.15); padding: .75rem 1.125rem; border-radius: var(--bv-res-radius-sm);
	max-width: fit-content;
}
.bv-res-newsletter__success span { display: flex; flex-shrink: 0; }
.bv-res-newsletter__success svg { width: 18px; height: 18px; }
.bv-res-newsletter__media { display: flex; align-items: center; justify-content: center; }
.bv-res-newsletter__media img { width: 100%; height: auto; border-radius: var(--bv-res-radius-sm); max-height: 260px; object-fit: cover; }

/* ── FADE-IN LEGGERO (stessa classe già usata da Carrello/Checkout) ──── */
.bv-cart-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.bv-cart-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.bv-cart-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── ACCESSIBILITÀ ────────────────────────────────────────────────────── */
.bv-res-wrap a:focus-visible,
.bv-res-wrap button:focus-visible,
.bv-res-wrap input:focus-visible {
	outline: 3px solid var(--bv-res-green);
	outline-offset: 2px;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
	.bv-res-hero__content { grid-template-columns: 1fr; }
	.bv-res-hero__media { order: -1; max-width: 380px; margin: 0 auto; }
	.bv-res-categories__grid { grid-template-columns: repeat(2, 1fr); }
	.bv-res-goals__grid { grid-template-columns: repeat(2, 1fr); }
	.bv-res-trust { grid-template-columns: 1fr; }
	.bv-res-faq__grid { grid-template-columns: 1fr; }
	.bv-res-newsletter,
	.bv-res-newsletter--with-image { grid-template-columns: 1fr; text-align: center; }
	.bv-res-newsletter--with-image .bv-res-newsletter__media { order: -1; max-width: 320px; margin: 0 auto; }
	.bv-res-newsletter--with-image .bv-res-newsletter__content { grid-template-columns: 1fr; grid-template-areas: none; text-align: center; }
	.bv-res-newsletter__content { grid-template-columns: 1fr; text-align: center; }
	.bv-res-newsletter__icon { margin: 0 auto; }
	.bv-res-newsletter__form { justify-content: center; flex-wrap: wrap; }
	.bv-res-newsletter__disclaimer { grid-column: auto; }
}
@media (max-width: 700px) {
	.bv-res-wrap { padding: 1.75rem 1rem 3rem; }
	.bv-res-wrap section { margin-bottom: 2.5rem; }
	.bv-res-hero { padding: 2rem 0; margin-bottom: 2.5rem; }
	.bv-res-hero__inner { padding: 0 1.5rem; }
	.bv-res-hero__stats { grid-template-columns: repeat(2, 1fr); }
	.bv-res-hero__ctas { flex-direction: column; }
	.bv-res-hero__cta { width: 100%; }
	.bv-res-categories__grid { grid-template-columns: 1fr; }
	.bv-res-goals__grid { grid-template-columns: 1fr; }
	.bv-res-how__steps { grid-template-columns: 1fr; gap: 2.5rem; }
	.bv-res-how__step:not(.is-last)::after { display: none; }
	.bv-res-trust__grid { grid-template-columns: 1fr; }
	.bv-res-resource-card { flex: 0 0 200px; }
	.bv-res-carousel__nav { display: none; }
	.bv-res-faq__search-wrap { max-width: 100%; }
	.bv-res-newsletter { padding: 2rem 1.5rem; }
	.bv-res-newsletter__form { flex-direction: column; }
	.bv-res-newsletter__input { min-width: 0; width: 100%; }
	.bv-res-newsletter__submit { width: 100%; }
	.bv-res-newsletter__cta { width: 100%; }
	.bv-res-newsletter-modal__dialog { padding: 2rem 1.5rem; width: calc(100% - 2rem); }
}

/* ── MODAL POPUP NEWSLETTER ───────────────────────────────────────────── */
.bv-res-newsletter-modal {
	display: none; position: fixed; inset: 0; z-index: 999999;
	align-items: center; justify-content: center;
}
.bv-res-newsletter-modal.is-open { display: flex; }
.bv-res-newsletter-modal__overlay {
	position: absolute; inset: 0; background: rgba(20, 40, 30, .55);
	backdrop-filter: blur(3px); cursor: pointer;
}
.bv-res-newsletter-modal__dialog {
	position: relative; z-index: 1;
	background: linear-gradient(135deg, var(--bv-res-green) 0%, #1f4a37 100%); color: #fff;
	border-radius: var(--bv-res-radius); padding: 3rem; width: 460px; max-width: calc(100% - 2rem);
	text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.35);
	animation: bv-res-modal-in .3s ease;
}
@keyframes bv-res-modal-in {
	from { opacity: 0; transform: translateY(12px) scale(.97); }
	to   { opacity: 1; transform: none; }
}
.bv-res-newsletter-modal__close {
	position: absolute; top: 1rem; right: 1rem;
	width: 36px; height: 36px; border-radius: 50%; border: none;
	background: rgba(255,255,255,.15); color: #fff; font-size: 1.5rem; line-height: 1;
	cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: background var(--bv-res-t);
}
.bv-res-newsletter-modal__close:hover { background: rgba(255,255,255,.28); }
.bv-res-newsletter-modal__icon {
	display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem;
	width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.12);
}
.bv-res-newsletter-modal__icon svg { width: 30px; height: 30px; }
.bv-res-newsletter-modal__dialog h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .625rem; color: #fff; }
.bv-res-newsletter-modal__dialog p { font-size: .875rem; color: rgba(255,255,255,.82); margin: 0 0 1.5rem; line-height: 1.55; }
.bv-res-newsletter-modal__dialog .bv-res-newsletter__form { flex-direction: column; margin-top: 0; }
.bv-res-newsletter-modal__dialog .bv-res-newsletter__input { width: 100%; }
.bv-res-newsletter-modal__dialog .bv-res-newsletter__submit { width: 100%; }
.bv-res-newsletter-modal__dialog .bv-res-newsletter__disclaimer { text-align: center; }
.bv-res-newsletter-modal__dialog .bv-res-newsletter__success { margin: 1rem auto 0; }
@media (prefers-reduced-motion: reduce) {
	.bv-res-newsletter-modal__dialog { animation: none; }
}
