/* RDC Cards de Universo — CSS estrutural base.
   Cores, fontes e espaçamentos vêm dos controles de estilo do widget
   no Elementor. Aqui só a estrutura do grid e o preenchimento garantido
   da imagem dentro do card (mesma técnica à prova de falhas usada nos
   outros widgets RDC). */

.rdc-capa-wrapper,
.rdc-capa-wrapper * {
	box-sizing: border-box;
}

.rdc-capa-wrapper {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.rdc-capa-carousel-root {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.rdc-capa-wrapper.rdc-capa-carousel {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
	flex: 1;
	min-width: 0;
}

.rdc-capa-wrapper.rdc-capa-carousel::-webkit-scrollbar {
	display: none;
}

.rdc-capa-wrapper.rdc-capa-carousel.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.rdc-capa-wrapper.rdc-capa-carousel .rdc-capa-card {
	flex: 0 0 calc((100% - (var(--rdc-capa-gap, 20px) * (var(--rdc-capa-visible, 4) - 1))) / var(--rdc-capa-visible, 4));
	scroll-snap-align: start;
}

.rdc-capa-arrow {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: none;
	background: #111111;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 0;
}

.rdc-capa-arrow:hover {
	opacity: 0.85;
}

.rdc-capa-empty {
	opacity: 0.6;
	font-size: 14px;
	grid-column: 1 / -1;
}

.rdc-capa-card {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 3 / 2;
	text-decoration: none;
	background-color: #e5e5e5;
}

.rdc-capa-media {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.rdc-capa-media img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center !important;
	margin: 0 !important;
	display: block !important;
	transition: transform 0.35s ease;
}

.rdc-capa-card.rdc-capa-no-image {
	background-image:
		linear-gradient(45deg, transparent 48%, currentColor 49%, currentColor 51%, transparent 52%),
		linear-gradient(-45deg, transparent 48%, currentColor 49%, currentColor 51%, transparent 52%);
	color: #cfcfcf;
}

.rdc-capa-hover-zoom-yes .rdc-capa-card:hover .rdc-capa-media img {
	transform: scale(1.06);
}

.rdc-capa-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.05) 60%, rgba(0, 0, 0, 0) 75%);
}

.rdc-capa-title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	margin: 0;
	padding: 16px;
	color: #ffffff;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
}

@media (max-width: 900px) {
	.rdc-capa-wrapper {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.rdc-capa-wrapper {
		grid-template-columns: 1fr;
	}
}
