.novaTestimonios {
	--testimonios-gap: 16px;
	--testimonios-card-width: calc((100% - (var(--testimonios-gap) * 3)) / 4);
	width: min(1391px, 100%);
	margin: 0 auto;
	padding: 0 24px 32px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"header controls"
		"viewport viewport";
	column-gap: 24px;
	row-gap: 40px;
	background: #fff;
}

.novaTestimonios__header {
	grid-area: header;
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.novaTestimonios__title {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1 1 auto;
	min-width: 0;
}

.novaTestimonios__accent {
	background: #ef7c23;
	border-radius: 4px;
	width: 483px;
	min-height: 42px;
	padding: 4px 0;
	display: inline-flex;
	align-items: center;
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.novaTestimonios__text {
	font-size: 48px;
	font-weight: 500;
	line-height: 54px;
	text-transform: uppercase;
	white-space: nowrap;
}

.novaTestimonios__controls {
	grid-area: controls;
	display: flex;
	gap: 16px;
	flex: 0 0 auto;
	width: 182.99px;
	justify-content: flex-end;
	align-self: center;
}

.novaTestimonios__nav {
	width: 64px;
	height: 64px;
	border: 0;
	border-radius: 999px;
	background: rgba(29, 29, 31, 0.2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
}

.novaTestimonios__nav:hover,
.novaTestimonios__nav:focus-visible {
	background: #ef7c23;
}

.novaTestimonios__nav:hover img,
.novaTestimonios__nav:focus-visible img {
	filter: brightness(0) invert(1);
}

.novaTestimonios__nav:disabled:hover img,
.novaTestimonios__nav:disabled:focus-visible img {
	filter: none;
}

.novaTestimonios__nav:disabled {
	background: rgba(29, 29, 31, 0.08);
	cursor: not-allowed;
}

.novaTestimonios__nav:disabled img {
	opacity: 0.4;
}

.novaTestimonios__nav img {
	width: 24px;
	height: 24px;
	display: block;
	transition: filter 0.2s ease;
}

.novaTestimonios__viewport {
	grid-area: viewport;
	overflow-x: auto;
	overflow-y: hidden;
	width: 100%;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	scroll-behavior: smooth;
}

.novaTestimonios__viewport::-webkit-scrollbar {
	display: none;
}

.novaTestimonios__track {
	display: flex;
	gap: var(--testimonios-gap);
}

.novaTestimonios__card {
	flex: 0 0 var(--testimonios-card-width);
	width: var(--testimonios-card-width);
	min-width: var(--testimonios-card-width);
	max-width: var(--testimonios-card-width);
	display: flex;
	flex-direction: column;
	gap: 24px;
	scroll-snap-align: start;
}

.novaTestimonios__photo {
	margin: 0;
	width: 100%;
	height: auto;
	aspect-ratio: 335.75 / 350;
	border-radius: 24px;
	overflow: hidden;
	position: relative;
}

.novaTestimonios__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
}

.novaTestimonios__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.novaTestimonios__quote {
	margin: 0;
	padding: 0 16px;
	font-size: 22px;
	font-style: italic;
	line-height: 1.25;
	color: #202020;
}

.novaTestimonios__author {
	margin: -8px 0 0;
	padding: 0 16px;
	font-size: 16px;
	line-height: 22px;
	color: #202020;
}

@media (max-width: 1180px) {
	.novaTestimonios {
		--testimonios-card-width: calc((100% - (var(--testimonios-gap) * 2)) / 3);
		grid-template-columns: 1fr;
		grid-template-areas:
			"header"
			"viewport"
			"controls";
		row-gap: 32px;
	}

	.novaTestimonios__header {
		display: block;
	}

	.novaTestimonios__title {
		flex-wrap: wrap;
		align-items: flex-start;
		row-gap: 12px;
	}

	.novaTestimonios__accent,
	.novaTestimonios__text {
		max-width: 100%;
		white-space: normal;
	}

	.novaTestimonios__controls {
		width: auto;
		justify-content: flex-start;
	}
}

@media (max-width: 900px) {
	.novaTestimonios {
		--testimonios-card-width: calc((100% - var(--testimonios-gap)) / 2);
	}
}

@media (max-width: 768px) {
	.novaTestimonios {
		--testimonios-gap: 12px;
		--testimonios-card-width: min(82vw, 296px);
		padding: 0 16px 32px;
		grid-template-columns: 1fr;
		grid-template-areas:
			"header"
			"viewport"
			"controls";
		row-gap: 32px;
	}

	.novaTestimonios__header {
		display: block;
	}

	.novaTestimonios__title {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.novaTestimonios__accent,
	.novaTestimonios__text {
		max-width: 100%;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.novaTestimonios__accent {
		width: fit-content;
		min-height: 0;
		padding: 6px 10px;
		font-size: clamp(28px, 8.8vw, 36px);
		line-height: 0.95;
	}

	.novaTestimonios__text {
		font-size: clamp(30px, 10vw, 38px);
		line-height: 0.95;
	}

	.novaTestimonios__controls {
		width: auto;
		justify-content: center;
		justify-self: center;
	}

	.novaTestimonios__card {
		gap: 20px;
	}

	.novaTestimonios__quote,
	.novaTestimonios__author {
		padding: 0 8px;
	}

	.novaTestimonios__quote {
		font-size: clamp(19px, 5.8vw, 22px);
		line-height: 1.2;
	}
}
