/*
 * Carrossel de depoimentos + modal (depoimentos-carrossel.php). Padrão do UIGuide (/unidade/<slug>).
 * Mobile-first, tudo escopado em .depo-*. Tokens do blog: roxo profundo #120363, amarelo #EEDB03 (Unitri),
 * tinta forte #000C33, tinta #2C3550, metadado #5B6478, linha #E5E7EB, superfície quente #FDFDF9.
 */

.depo-secao {
	padding: 64px 0;
	overflow: hidden;
	background: #fff;
	font-family: 'Open Sans', system-ui, sans-serif;
	color: #2C3550;
}

.depo-container {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Cabeçalho: título à esquerda, botão de pausa à direita (como o SectionHeader do UIGuide). */
.depo-cabecalho {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
}

.depo-titulo {
	margin: 0;
	font-family: 'Open Sans', system-ui, sans-serif;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #000C33;
}

.depo-subtitulo {
	margin: 8px 0 0;
	font-size: 16px;
	line-height: 1.5;
	color: #5B6478;
}

.depo-pausa {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #120363;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.depo-pausa:hover {
	background: #2A1BA8;
}

.depo-pausa svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.depo-icone-play,
.depo-pausa[aria-pressed="true"] .depo-icone-pausa {
	display: none;
}

.depo-pausa[aria-pressed="true"] .depo-icone-play {
	display: block;
}

/* Faixa: duas cópias lado a lado; a animação anda meia faixa e recomeça sem salto. */
.depo-trilho {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.depo-faixa {
	display: flex;
	align-items: stretch;
	width: max-content;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	animation: depo-marquee var(--depo-duracao, 70s) linear infinite;
}

.depo-trilho:hover .depo-faixa,
.depo-trilho:focus-within .depo-faixa,
.depo-secao[data-depo-pausado] .depo-faixa {
	animation-play-state: paused;
}

@keyframes depo-marquee {
	to {
		transform: translateX(-50%);
	}
}

.depo-item {
	display: flex;
	flex-shrink: 0;
	box-sizing: border-box;
	width: 84vw;
	max-width: 400px;
	padding-right: 24px;
}

/* Card */
.depo-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 24px;
	border: 1px solid #E5E7EB;
	border-radius: 24px;
	background: #FDFDF9;
	box-shadow: 0 2px 8px rgba(0, 21, 79, 0.08);
}

.depo-aspas {
	flex-shrink: 0;
	width: 36px;
	height: 28px;
	color: #EEDB03;
}

.depo-corpo {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.depo-texto {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: 'Open Sans', system-ui, sans-serif;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.375;
	color: #000C33;
}

.depo-texto--resumo {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

.depo-ler-mais {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: auto;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	color: #120363;
	text-decoration: underline;
	text-decoration-color: #EEDB03;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	cursor: pointer;
}

.depo-ler-mais:hover {
	color: #2A1BA8;
}

.depo-autor {
	display: flex;
	align-items: center;
	gap: 16px;
}

.depo-foto {
	flex-shrink: 0;
	box-sizing: border-box;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #EEF0FF;
	object-fit: cover;
	box-shadow: 0 0 0 4px #EEDB03;
	/* Foto quebrada: some o ícone/alt em vez de vazar do círculo. */
	overflow: hidden;
	color: transparent;
	font-size: 0;
}

.depo-foto--iniciais {
	display: grid;
	place-items: center;
	background: #120363;
	font-size: 18px;
	font-weight: 800;
	color: #fff;
}

.depo-nome {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #000C33;
}

.depo-legenda {
	display: block;
	font-size: 14px;
	color: #5B6478;
}

.depo-pausa:focus-visible,
.depo-ler-mais:focus-visible,
.depo-modal-fechar:focus-visible {
	outline: 3px solid #EEDB03;
	outline-offset: 2px;
}

/* Modal (dialog nativo: foco preso, Esc fecha, camada de topo). Folha de baixo no celular, centrado a partir de 576px. */
.depo-modal {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	max-height: 92dvh;
	margin: auto auto 0;
	padding: 0;
	border: 0;
	border-radius: 24px 24px 0 0;
	background: #fff;
	color: #2C3550;
	font-family: 'Open Sans', system-ui, sans-serif;
	box-shadow: 0 24px 48px rgba(0, 12, 51, 0.24);
}

.depo-modal::backdrop {
	background: rgba(18, 3, 99, 0.6);
}

.depo-modal[open] {
	display: flex;
	animation: depo-sobe 0.25s ease-out;
}

@keyframes depo-sobe {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

.depo-modal-caixa {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	max-height: 92dvh;
	padding: 24px;
}

.depo-modal-topo {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.depo-modal-nome {
	margin: 0;
	font-family: 'Open Sans', system-ui, sans-serif;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	color: #000C33;
}

.depo-modal-legenda {
	margin: 4px 0 0;
	font-size: 15px;
	color: #5B6478;
}

.depo-modal-legenda:empty {
	display: none;
}

.depo-modal-fechar {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -8px -8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #000C33;
	cursor: pointer;
}

.depo-modal-fechar:hover {
	background: #F6F7FB;
}

.depo-modal-fechar svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.depo-modal-corpo {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-height: 0;
	margin: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.depo-modal-cabeca {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 4px;
}

.depo-foto--modal {
	width: 64px;
	height: 64px;
}

.depo-modal-texto {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 17px;
	line-height: 1.65;
	color: #2C3550;
	white-space: pre-line;
}

html.depo-modal-aberto {
	overflow: hidden;
}

@media (min-width: 576px) {
	.depo-modal {
		width: calc(100% - 48px);
		max-width: 768px;
		margin: auto;
		border-radius: 24px;
	}

	.depo-card {
		padding: 32px;
	}
}

@media (min-width: 768px) {
	.depo-secao {
		padding: 80px 0;
	}

	.depo-cabecalho {
		margin-bottom: 40px;
	}

	.depo-titulo {
		font-size: 34px;
	}

	.depo-texto {
		font-size: 21.5px;
	}

	.depo-modal-caixa {
		padding: 32px;
	}
}

/* Movimento reduzido: sem animação, rolagem manual; sem cópias e sem botão de pausa. */
@media (prefers-reduced-motion: reduce) {
	.depo-faixa {
		animation: none;
	}

	.depo-trilho {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.depo-faixa {
		padding-left: 20px;
	}

	.depo-item[aria-hidden="true"],
	.depo-pausa {
		display: none;
	}

	.depo-modal[open] {
		animation: none;
	}
}
