.casa-slideshow {
	position: relative;
	width: 100%;
	height: var(--casa-slideshow-height, 420px);
	overflow: hidden;
	background: #1a1a1a;
}
.casa-slideshow-track {
	position: relative;
	width: 100%;
	height: 100%;
}
.casa-slideshow-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}
.casa-slideshow-slide.ativo {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}
.casa-slideshow-slide-inner {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	isolation: isolate;
}
.casa-slideshow-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	position: relative;
	z-index: 0;
}
.casa-slideshow-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}
/* Overlay (efeitos nuvem, escurecer, gradiente) */
.casa-slideshow-overlay {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
}
/* Parallax: imagem um pouco maior para permitir movimento */
.casa-slideshow--parallax .casa-slideshow-img {
	width: 100%;
	height: calc(100% + 20%);
	max-width: none;
	object-fit: cover;
	object-position: center 20%;
}

.casa-slideshow--zoom .casa-slideshow-img {
	transform: scale(1.08);
	transition: transform 0.9s ease;
}

.casa-slideshow--zoom .casa-slideshow-slide.ativo .casa-slideshow-img {
	transform: scale(1);
}
/* Texto sobre a imagem (DM Sans por padrão; Personalizar pode sobrescrever) */
.casa-slide-text {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	pointer-events: none;
	padding: clamp(1.25rem, 4vw, 3rem);
	box-sizing: border-box;
}
.casa-slide-text-inner {
	max-width: min(36rem, 52%);
	width: 100%;
	min-width: 0;
	font-family: var(--casa-font-body);
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
	line-height: 1.45;
}

.casa-slide-text-title > *:first-child,
.casa-slide-text-title {
	margin-top: 0;
}

.casa-slide-text-title > *:last-child,
.casa-slide-text-description > *:last-child {
	margin-bottom: 0;
}

/* Título: DM Sans (herda do contentor / Personalizar) */
.casa-slide-text-title {
	font-family: inherit;
	font-weight: 700;
	font-size: clamp(1.85rem, 4.5vw, 3.1rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: inherit;
}

.casa-slide-text-title :where(p, span, a, strong, em, h1, h2, h3) {
	color: inherit;
}

/* Parágrafos do TinyMCE: não reduzem nem «apagam» o título com estilos inline */
.casa-slide-text-title :where(p) {
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
	margin-bottom: 0.35em;
}

.casa-slide-text-title :where(p:last-child) {
	margin-bottom: 0;
}

/* Resumo: mesma família do contentor (DM Sans por padrão) */
.casa-slide-text-description {
	margin-top: 1rem;
	font-family: inherit;
	font-size: 0.95em;
	font-weight: 400;
	line-height: 1.68;
	opacity: 0.98;
	color: inherit;
}

.casa-slide-text-description :where(p, span, a, li) {
	color: inherit;
}

.casa-slide-text-description :where(p) {
	font-size: inherit;
	line-height: inherit;
	margin-top: 0;
	margin-bottom: 0.5em;
}

.casa-slide-text-description :where(p:last-child) {
	margin-bottom: 0;
}

.casa-slide-text-btn-row {
	margin-top: 1.1rem;
	line-height: normal;
}

.casa-slideshow-btn {
	display: inline-block;
	padding: 0.55em 1.85em;
	font-family: inherit;
	font-weight: 500;
	text-decoration: none;
	line-height: 1.3;
	text-shadow: none;
	box-sizing: border-box;
	pointer-events: auto;
	cursor: pointer;
	transition: background-color 0.2s ease, filter 0.2s ease, transform 0.15s ease;
}

.casa-slideshow-btn:hover {
	filter: brightness(1.06);
}

.casa-slideshow-btn--ghost:hover {
	filter: none;
	background-color: rgba(255, 255, 255, 0.14) !important;
}

.casa-slideshow-btn:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.95);
	outline-offset: 3px;
}
.casa-slide-text--top-left      { align-items: flex-start; justify-content: flex-start; text-align: left; }
.casa-slide-text--top-center   { align-items: flex-start; justify-content: center; text-align: center; }
.casa-slide-text--top-right    { align-items: flex-start; justify-content: flex-end; text-align: right; }
.casa-slide-text--center-left  { align-items: center; justify-content: flex-start; text-align: left; }
.casa-slide-text--center      { align-items: center; justify-content: center; text-align: center; }
.casa-slide-text--center-right { align-items: center; justify-content: flex-end; text-align: right; }
.casa-slide-text--bottom-left  { align-items: flex-end; justify-content: flex-start; text-align: left; }
.casa-slide-text--bottom-center{ align-items: flex-end; justify-content: center; text-align: center; }
.casa-slide-text--bottom-right { align-items: flex-end; justify-content: flex-end; text-align: right; }
.casa-slideshow-bullets {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	gap: 0.5rem;
}

.casa-slideshow-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.42);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(4px);
	transition: background 0.2s ease, transform 0.2s ease;
}

.casa-slideshow-arrow:hover {
	background: rgba(17, 17, 17, 0.62);
}

.casa-slideshow-arrow:focus-visible {
	outline: 2px solid rgba(255,255,255,0.95);
	outline-offset: 2px;
}

.casa-slideshow-arrow--prev {
	left: 1rem;
}

.casa-slideshow-arrow--next {
	right: 1rem;
}

.casa-slideshow-arrow-icon {
	display: inline-flex;
	width: 24px;
	height: 24px;
}

.casa-slideshow-arrow-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}
.casa-slideshow-bullet {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.9);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease;
}
.casa-slideshow-bullet:hover {
	background: rgba(255,255,255,0.5);
}
.casa-slideshow-bullet.ativo {
	background: #fff;
}

@media (max-width: 640px) {
	.casa-slide-text-inner {
		max-width: 100%;
	}

	.casa-slideshow-arrow {
		width: 40px;
		height: 40px;
	}

	.casa-slideshow-arrow--prev {
		left: 0.75rem;
	}

	.casa-slideshow-arrow--next {
		right: 0.75rem;
	}
}
