/* =========================================================================
   Base Geo — FAQ front-end (accordion)
   Stile autonomo e neutro: usa variabili sovrascrivibili dal tema.
   Brand: accento viola #7426fb, dettaglio lime #d0f600.
   ========================================================================= */
.ageo-faq {
	--bgeo-accent:  #7426fb;
	--bgeo-accent2: #d0f600;
	--bgeo-ink:     #20212a;
	--bgeo-muted:   #5d5f6b;
	--bgeo-line:    #e7e7ee;
	--bgeo-bg:      #ffffff;
	--bgeo-soft:    #f7f6fd;
	--bgeo-radius:  14px;
	max-width: 820px;
	margin: 2rem auto;
	font-family: inherit;
	color: var(--bgeo-ink);
}
.ageo-faq__title {
	font-size: 1.6rem;
	line-height: 1.2;
	margin: 0 0 1.1rem;
	font-weight: 700;
	letter-spacing: -.01em;
}
.ageo-faq__list { display: flex; flex-direction: column; gap: .7rem; }

/* --- Card / item --- */
.ageo-faq__item {
	background: var(--bgeo-bg);
	border: 1px solid var(--bgeo-line);
	border-radius: var(--bgeo-radius);
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}
.ageo-faq__item:hover { border-color: #d8d4f5; }
.ageo-faq.is-accordion .ageo-faq__item[open] {
	border-color: var(--bgeo-accent);
	box-shadow: 0 10px 30px -18px rgba(116,38,251,.55);
}

/* --- Domanda (summary) --- */
.ageo-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding: 1.05rem 1.25rem;
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
	color: var(--bgeo-ink);
	transition: color .2s, background .2s;
}
.ageo-faq__q::-webkit-details-marker { display: none; }
.ageo-faq__q:hover { background: var(--bgeo-soft); }
.ageo-faq__item[open] .ageo-faq__q { color: var(--bgeo-accent); }
.ageo-faq__qtext { flex: 1; }

/* Chevron */
.ageo-faq__chev {
	flex: 0 0 auto;
	color: var(--bgeo-accent);
	transition: transform .28s ease;
}
.ageo-faq__item[open] .ageo-faq__chev { transform: rotate(180deg); }

/* Barra accento lime a sinistra quando aperto */
.ageo-faq.is-accordion .ageo-faq__item[open] .ageo-faq__q {
	box-shadow: inset 4px 0 0 0 var(--bgeo-accent2);
}

/* --- Risposta --- */
.ageo-faq__a {
	padding: 0 1.25rem 1.15rem;
	color: var(--bgeo-muted);
	line-height: 1.6;
}
.ageo-faq__a > :first-child { margin-top: 0; }
.ageo-faq__a > :last-child { margin-bottom: 0; }
.ageo-faq__a a { color: var(--bgeo-accent); }

/* Reveal animato all'apertura (il contenuto è renderizzato solo da aperto) */
.ageo-faq.is-accordion .ageo-faq__item[open] .ageo-faq__a {
	animation: ageo-faq-reveal .26s ease;
}
@keyframes ageo-faq-reveal {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: none; }
}

/* --- Variante statica (layout="list"): tutte aperte --- */
.ageo-faq__q--static { cursor: default; padding-bottom: .4rem; }
.ageo-faq__item--static:hover { border-color: var(--bgeo-line); }

@media (prefers-reduced-motion: reduce) {
	.ageo-faq__chev, .ageo-faq.is-accordion .ageo-faq__item[open] .ageo-faq__a { transition: none; animation: none; }
}
