/**
 * FAQ da home (accordion nativo com <details>). Tokens e cabeçalho de seção vêm de sections.css.
 * Mobile first: coluna única; título à esquerda e perguntas à direita a partir de 1024px.
 */
.sto-home .sto-faq {
	--sto-blend-from: var(--sto-color-cream);
}

.sto-faq__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.sto-faq__item {
	border-bottom: 1px solid var(--sto-color-line);
}

.sto-faq__item:first-child {
	border-top: 1px solid var(--sto-color-line);
}

.sto-faq__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 64px;
	padding: 20px 0;
	list-style: none;
	cursor: pointer;
}

.sto-faq__summary::-webkit-details-marker {
	display: none;
}

.sto-faq__summary:focus-visible {
	outline: 3px solid var(--sto-color-ink);
	outline-offset: 4px;
	border-radius: 8px;
}

.sto-faq__question {
	margin: 0;
	font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.375rem);
	font-weight: 600;
	line-height: 1.3;
	color: var(--sto-color-ink);
	transition: color 0.2s ease;
}

.sto-faq__summary:hover .sto-faq__question {
	color: var(--sto-color-brown);
}

/* Ícone de mais/menos desenhado em CSS: a barra vertical some quando o item abre. */
.sto-faq__icon {
	position: relative;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border: 1.5px solid var(--sto-color-gold);
	border-radius: 50%;
}

.sto-faq__icon::before,
.sto-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	margin: -1px 0 0 -6px;
	background-color: var(--sto-color-brown);
	transition: transform 0.25s var(--sto-ease);
}

.sto-faq__icon::after {
	transform: rotate(90deg);
}

.sto-faq__item[open] .sto-faq__icon::after {
	transform: rotate(0);
}

.sto-faq__answer {
	padding: 0 0 24px;
	color: var(--sto-color-brown);
}

@media (min-width: 768px) {
	.sto-faq__answer {
		padding-right: 56px;
	}
}

.sto-faq__item[open] .sto-faq__answer {
	animation: sto-faq-open 0.3s var(--sto-ease);
}

.sto-faq__answer > :first-child {
	margin-top: 0;
}

.sto-faq__answer > :last-child {
	margin-bottom: 0;
}

.sto-faq__answer p,
.sto-faq__answer ul,
.sto-faq__answer ol {
	margin: 0 0 1em;
}

.sto-faq__answer ul,
.sto-faq__answer ol {
	padding-left: 1.25em;
}

.sto-faq__answer a {
	color: var(--sto-color-ink);
	text-decoration: underline;
	text-decoration-color: var(--sto-color-gold);
	text-underline-offset: 3px;
}

.sto-faq__answer a:hover,
.sto-faq__answer a:focus-visible {
	text-decoration-thickness: 2px;
}

@keyframes sto-faq-open {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (min-width: 1024px) {
	.sto-faq__inner {
		grid-template-columns: 5fr 7fr;
		gap: 72px;
		align-items: start;
	}

	/* O cabeçalho acompanha a leitura enquanto a lista de perguntas rola. */
	.sto-faq__head {
		position: sticky;
		top: 120px;
		margin-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sto-faq__question,
	.sto-faq__icon::before,
	.sto-faq__icon::after {
		transition: none;
	}

	.sto-faq__item[open] .sto-faq__answer {
		animation: none;
	}
}
