/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* =========================================================================
   Comparador "Antes / Depois" — Clínica Estética do Sorriso
   PARTE 2 de 3 — cole isto em Elementor → Site Settings → Custom CSS
   (ou Aparência → Personalizar → CSS Adicional).
   ========================================================================= */

.cds-ba-wrapper {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
}

.cds-ba-container {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1; /* ajuste conforme a proporção real das suas fotos */
	overflow: hidden;
	border-radius: 60px;
	border: 6px solid #1386ad;
	cursor: ew-resize;
	user-select: none;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	height: 500px;
}

.cds-ba-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.cds-ba-after-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	clip-path: inset(0 0 0 50%);
}
.cds-ba-after-wrap .cds-ba-img {
	position: absolute;
}

.cds-ba-label {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	padding: 8px 16px;
	border-radius: 6px;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
	z-index: 3;
}
.cds-ba-label-before { left: 16px; }
.cds-ba-label-after { right: 16px; }

@media (hover: hover) {
	.cds-ba-container:hover .cds-ba-label {
		opacity: 1;
	}
}
@media (hover: none) {
	.cds-ba-label {
		opacity: 1;
	}
}

.cds-ba-handle {
	position: absolute;
	top: 0;
	left: 50%;
	width: 4px;
	height: 100%;
	background: #fff;
	transform: translateX(-50%);
	z-index: 4;
	pointer-events: none;
}
.cds-ba-handle-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	height: 44px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #1386ad;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	letter-spacing: 2px;
}
#header-top {
	transition: background-color 0.25s ease, padding 0.25s ease;
}
 
#header-top.is-scrolled {
	background-color: #7c7d7c !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

@media (max-width: 480px) {
	.cds-ba-handle-icon {
		width: 36px;
		height: 36px;
		font-size: 12px;
	}
	.cds-ba-label {
		font-size: 12px;
		padding: 6px 12px;
	}
	.cds-ba-container {
		height: 300px;
	}
}