/* DX Testemunhos — frontend
   Digital Xperience · https://digitalxperience.pt */

/* ------------------------------------------------------------------ */
/* Núcleo mínimo do Swiper (autónomo — não depende do CSS do Swiper)   */
/* ------------------------------------------------------------------ */
.dx-carousel {
	position: relative;
	overflow: hidden;
	list-style: none;
	padding: 0;
	margin: 0;
	z-index: 1;
}
.dx-carousel .swiper-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 1;
	display: flex;
	transition-property: transform;
	box-sizing: content-box;
	/* O recorte tem de ser feito por .dx-carousel: se o wrapper recortar, os slides
	   (deslocados por translate) desaparecem e o carrossel fica em branco. */
	overflow: visible;
}
.dx-carousel .swiper-slide {
	flex-shrink: 0;
	width: 100%;
	height: auto;
	position: relative;
	transition-property: transform;
	display: flex;
}

/* Fallback: se o Swiper não carregar, vira lista com scroll horizontal */
.dx-no-swiper .dx-carousel .swiper-wrapper {
	overflow-x: auto;
	gap: 24px;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
}
.dx-no-swiper .dx-carousel .swiper-slide {
	width: min(100%, 360px);
	scroll-snap-align: start;
}
.dx-no-swiper .dx-nav-btn,
.dx-no-swiper .dx-dots {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Grelha                                                              */
/* ------------------------------------------------------------------ */
.dx-grid {
	display: grid;
	grid-template-columns: repeat(var(--dx-cols, 3), minmax(0, 1fr));
	gap: 24px;
}

/* ------------------------------------------------------------------ */
/* Cartão                                                              */
/* ------------------------------------------------------------------ */
.dx-cards {
	--dx-foot-justify: flex-start;
}
.dx-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid #eaecf0;
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05), 0 1px 2px rgba(16, 24, 40, 0.04);
}

.dx-quote {
	position: absolute;
	top: 20px;
	right: 22px;
	color: #eef0f4;
	line-height: 0;
	pointer-events: none;
}
.dx-quote svg {
	width: 34px;
	height: 34px;
	fill: currentColor;
}

/* Estrelas */
.dx-stars {
	--dx-star-on: #f59e0b;
	--dx-star-off: #e4e7ec;
	display: inline-flex;
	gap: 3px;
	font-size: 18px;
	line-height: 1;
	justify-content: var(--dx-foot-justify, flex-start);
}
.dx-star {
	position: relative;
	width: 1em;
	height: 1em;
	display: inline-block;
	color: var(--dx-star-on);
}
.dx-star svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}
.dx-star.is-off {
	color: var(--dx-star-off);
}
.dx-star-top {
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	overflow: hidden;
	color: var(--dx-star-on);
}

/* Texto */
.dx-card-text {
	margin: 0;
	color: #475467;
	font-size: 16px;
	line-height: 1.7;
}

/* Campos extra */
.dx-card-extras {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 13px;
	color: #667085;
	justify-content: var(--dx-foot-justify, flex-start);
}
.dx-extra-label {
	font-weight: 600;
}

/* Rodapé: avatar + nome + cargo */
.dx-card-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 2px;
	justify-content: var(--dx-foot-justify, flex-start);
}
.dx-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #101828;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 0.5px;
	flex: none;
}
.dx-card-who {
	min-width: 0;
	text-align: left;
}
.dx-card-name {
	display: block;
	font-weight: 600;
	color: #101828;
	font-size: 15px;
	line-height: 1.35;
}
.dx-card-role {
	display: block;
	color: #667085;
	font-size: 13px;
	line-height: 1.4;
	margin-top: 1px;
}

/* ------------------------------------------------------------------ */
/* Navegação do carrossel                                              */
/* ------------------------------------------------------------------ */
.dx-carousel-wrap {
	position: relative;
}
/* Seletores compostos para prevalecer sobre estilos de botões do tema. */
.dx-carousel-wrap .dx-nav-btn {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 42px;
	height: 42px;
	min-width: 0;
	min-height: 0;
	line-height: 1;
	font-size: 0;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #eaecf0;
	box-shadow: 0 2px 10px rgba(16, 24, 40, 0.1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #344054;
	padding: 0;
	margin: 0;
	transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.dx-carousel-wrap .dx-nav-btn:hover,
.dx-carousel-wrap .dx-nav-btn:focus {
	background: #ffffff;
	color: #101828;
	border-color: #d0d5dd;
}
.dx-carousel-wrap .dx-nav-btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.dx-carousel-wrap .dx-nav-prev {
	left: -6px;
}
.dx-carousel-wrap .dx-nav-next {
	right: -6px;
}
.dx-carousel-wrap .dx-nav-btn.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.dx-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 22px;
	min-height: 8px;
}
.dx-dots .swiper-pagination-bullet {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 99px;
	background: #d0d5dd;
	cursor: pointer;
	transition: background-color 0.25s ease, width 0.25s ease;
	border: 0;
	padding: 0;
	opacity: 1;
}
.dx-dots .swiper-pagination-bullet-active {
	background: #101828;
	width: 24px;
}

/* ------------------------------------------------------------------ */
/* Aviso de conteúdo de exemplo (só no editor)                         */
/* ------------------------------------------------------------------ */
.dx-demo-note {
	background: #fffaeb;
	border: 1px solid #fedf89;
	color: #b54708;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-size: 13px;
	line-height: 1.5;
}
