/* =========================================================================
   Slider de Depoimentos
   Ajuste as variáveis abaixo (ou sobrescreva no CSS do tema) para casar
   com a identidade visual do site.
   ========================================================================= */
.depo {
	--depo-por-vez: 1;            /* cards visíveis (muda nos breakpoints) */
	--depo-gap: 24px;
	--depo-bg: #ffffff;
	--depo-azul: #282a6e;
	--depo-laranja: #CC631D;

	--depo-texto: #3c4043;
	--depo-titulo: var(--depo-azul);
	--depo-suave: #70757a;
	--depo-estrela: var(--depo-laranja);
	--depo-estrela-vazia: #dadce0;
	--depo-destaque: var(--depo-azul);    /* avatar, bolinha ativa, link */
	--depo-destaque-2: var(--depo-laranja); /* hover das setas e do link */
	--depo-raio: 16px;
	--depo-sombra: 0 2px 12px rgba(0, 0, 0, .08);

	position: relative;
	max-width: 1200px;
	margin-inline: auto;
}

@media (min-width: 768px)  { .depo { --depo-por-vez: 2; } }
@media (min-width: 1100px) { .depo { --depo-por-vez: 3; } }

.depo__titulo {
	margin: 0 0 24px;
	text-align: center;
	color: var(--depo-titulo);
}

/* ---- Trilho (é ele que rola) ------------------------------------------ */
.depo__track {
	position: relative;           /* referência para offsetLeft no JS */
	display: flex;
	gap: var(--depo-gap);
	margin: 0;
	padding: 8px 4px 16px;        /* respiro para a sombra dos cards */
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;        /* Firefox */
	-webkit-overflow-scrolling: touch;
}
.depo__track::-webkit-scrollbar { display: none; }
.depo__track:focus-visible {
	outline: 2px solid var(--depo-destaque);
	outline-offset: 4px;
	border-radius: var(--depo-raio);
}

.depo__slide {
	flex: 0 0 calc((100% - (var(--depo-por-vez) - 1) * var(--depo-gap)) / var(--depo-por-vez));
	scroll-snap-align: start;
	display: flex;
	margin: 0;
}

/* ---- Card ------------------------------------------------------------- */
.depo__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	padding: 28px;
	background: var(--depo-bg);
	border-radius: var(--depo-raio);
	box-shadow: var(--depo-sombra);
	box-sizing: border-box;
}

.depo__estrelas {
	display: flex;
	gap: 2px;
}
.depo__estrela {
	width: 20px;
	height: 20px;
	fill: var(--depo-estrela-vazia);
}
.depo__estrela.is-cheia { fill: var(--depo-estrela); }

.depo__texto {
	flex: 1;                      /* empurra o autor para a base do card */
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--depo-texto);
	font-size: 1rem;
	line-height: 1.6;
	font-style: normal;
}
.depo__texto p { margin: 0; }

.depo__autor {
	display: flex;
	align-items: center;
	gap: 12px;
}

.depo__foto {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}
.depo__foto--inicial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--depo-destaque);
	color: #fff;
	font-weight: 600;
	font-size: 1.25rem;
}

.depo__info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}
.depo__nome {
	font-weight: 600;
	color: var(--depo-titulo);
}
.depo__fonte {
	font-size: .85rem;
	color: var(--depo-suave);
}

/* ---- Navegação -------------------------------------------------------- */
.depo__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 16px;
}

.depo__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--depo-estrela-vazia);
	border-radius: 50%;
	background: var(--depo-bg);
	color: var(--depo-titulo);
	cursor: pointer;
	transition: border-color .2s, color .2s;
}
.depo__btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.depo__btn:hover,
.depo__btn:focus-visible {
	border-color: var(--depo-destaque-2);
	color: var(--depo-destaque-2);
}

.depo__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.depo__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--depo-estrela-vazia);
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.depo__dot[aria-selected="true"] {
	background: var(--depo-destaque);
	transform: scale(1.2);
}

/* Quando todos os cards cabem na tela, a navegação some. */
.depo--estatico .depo__nav { display: none; }

.depo__link {
	margin: 20px 0 0;
	text-align: center;
}
.depo__link a {
	color: var(--depo-destaque);
	font-weight: 500;
	text-decoration: none;
}
.depo__link a:hover {
	color: var(--depo-destaque-2);
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.depo__track { scroll-behavior: auto; }
}
