/**
 * GAW FAQ — accordion styling.
 * Usa i design token del tema (theme.json) con fallback safe, così eredita
 * la palette Lovibes (rosa) restando portabile su altri temi GAW.
 */
.gaw-faq {
	--gaw-faq-accent: var(--wp--preset--color--primary, #ff309c);
	--gaw-faq-accent-dark: var(--wp--preset--color--primary-dark, #c2186f);
	--gaw-faq-border: var(--wp--preset--color--border, #e6e6e6);
	--gaw-faq-surface: var(--wp--preset--color--surface, #faf7f9);
	--gaw-faq-text: var(--wp--preset--color--contrast, #1a0d14);
	--gaw-faq-muted: var(--wp--preset--color--muted, #6b5560);
	margin: 1.5rem 0;
}

.gaw-faq__title {
	margin: 0 0 1.25rem;
}

.gaw-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.gaw-faq__item {
	border: 1px solid var(--gaw-faq-border);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gaw-faq__item[open] {
	border-color: var(--gaw-faq-accent);
	box-shadow: 0 6px 22px -12px var(--gaw-faq-accent);
}

.gaw-faq__q {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--gaw-faq-text);
}

.gaw-faq__q::-webkit-details-marker {
	display: none;
}

.gaw-faq__q::after {
	content: "";
	flex: 0 0 auto;
	width: 0.7rem;
	height: 0.7rem;
	border-right: 2px solid var(--gaw-faq-accent-dark);
	border-bottom: 2px solid var(--gaw-faq-accent-dark);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.gaw-faq__item[open] .gaw-faq__q::after {
	transform: rotate(-135deg);
}

.gaw-faq__q:focus-visible {
	outline: 2px solid var(--gaw-faq-accent);
	outline-offset: 2px;
}

.gaw-faq__a {
	padding: 0 1.25rem 1.25rem;
	color: var(--gaw-faq-muted);
	line-height: 1.65;
}

.gaw-faq__a > :first-child { margin-top: 0; }
.gaw-faq__a > :last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	.gaw-faq__item,
	.gaw-faq__q::after { transition: none; }
}
