/**
 * CF Widgets — Prova Social (vídeo + slider de testemunhos)
 */

/* ── Thumbnail do vídeo ─────────────────────────────────────── */

.cf-prova-thumb {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 16px;
	cursor: pointer;
	box-shadow: 0 16px 48px rgba( 61, 28, 8, 0.15 );
}

.cf-prova-thumb > img {
	width: 100%;
	display: block;
	max-height: 400px;
	object-fit: cover;
}

.cf-prova-thumb-overlay {
	position: absolute;
	inset: 0;
	background: rgba( 61, 28, 8, 0.4 );
	display: flex;
	align-items: center;
	justify-content: center;
}

.cf-prova-play {
	width: 72px;
	height: 72px;
	background: rgba( 255, 255, 255, 0.95 );
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .2s;
}

.cf-prova-thumb:hover .cf-prova-play { transform: scale( 1.08 ); }

.cf-prova-play span {
	width: 0;
	height: 0;
	border-top: 15px solid transparent;
	border-bottom: 15px solid transparent;
	border-left: 24px solid var( --cf-terra, #E8714A );
	margin-left: 6px;
}

.cf-prova-caption {
	position: absolute;
	bottom: 20px;
	left: 24px;
}

.cf-prova-caption strong {
	display: block;
	font-size: 16px;
	color: #fff;
	font-weight: 700;
}

.cf-prova-caption span {
	font-size: 13px;
	color: rgba( 255, 255, 255, 0.7 );
}

.cf-prova-legenda {
	text-align: center;
	font-size: 13px;
	color: var( --cf-muted, #B07850 );
	margin: 0 0 64px;
}

/* ── Slider ─────────────────────────────────────────────────── */

.cf-prova-wrapper { position: relative; }

.cf-prova-seta {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid rgba( 232, 113, 74, 0.25 );
	color: var( --cf-terra, #E8714A );
	font-size: 18px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba( 61, 28, 8, 0.08 );
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.cf-prova-seta--prev { left: -20px; }
.cf-prova-seta--next { right: -20px; }

.cf-prova-overflow {
	overflow: hidden;
	border-radius: 4px;
}

.cf-prova-track {
	display: flex;
	transition: transform 0.45s ease;
}

.cf-prova-slide {
	flex: 0 0 33.3333%;
	min-width: 33.3333%;
	padding: 0 8px;
	box-sizing: border-box;
}

@media ( max-width: 900px ) {
	.cf-prova-slide { flex-basis: 50%; min-width: 50%; }
}

@media ( max-width: 600px ) {
	.cf-prova-slide { flex-basis: 100%; min-width: 100%; }
	.cf-prova-seta--prev { left: 4px; }
	.cf-prova-seta--next { right: 4px; }
}

.cf-prova-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

.cf-prova-dots button {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: none;
	background: var( --cf-peach, #FFCBA4 );
	cursor: pointer;
	padding: 0;
	transition: background .2s, transform .2s;
}

.cf-prova-dots button.active {
	background: var( --cf-terra, #E8714A );
	transform: scale( 1.25 );
}

/* ── Cards de testemunho ────────────────────────────────────── */

.cf-testi {
	background: var( --cf-white, #FFFCF8 );
	border-radius: 24px;
	border: 1.5px solid rgba( 255, 203, 164, 0.4 );
	position: relative;
	overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}

.cf-testi:hover {
	transform: translateY( -4px );
	box-shadow: 0 16px 48px rgba( 61, 28, 8, 0.1 );
}

.cf-testi-img {
	padding: 10px;
	background: #fff;
	cursor: pointer;
}

.cf-testi-img-wrap {
	position: relative;
	height: 340px;
	background: #F5F0EB;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cf-testi-img-wrap img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.cf-testi-zoom {
	position: absolute;
	bottom: 8px;
	right: 10px;
	font-size: 16px;
	opacity: 0.4;
	pointer-events: none;
	transition: opacity .2s;
}

.cf-testi-img:hover .cf-testi-zoom { opacity: 0.9; }

/* Slide de vídeo */

.cf-testi--video {
	cursor: pointer;
	height: 340px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0;
}

.cf-testi--video > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.cf-testi--video-sombra {
	position: absolute;
	inset: 0;
	background: linear-gradient( to bottom, rgba( 61, 28, 8, 0.2 ) 0%, rgba( 61, 28, 8, 0.65 ) 100% );
}

.cf-testi--video-centro {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.cf-prova-play--mini {
	width: 64px;
	height: 64px;
	background: rgba( 255, 255, 255, 0.2 );
	border: 2px solid rgba( 255, 255, 255, 0.6 );
	backdrop-filter: blur( 4px );
}

.cf-prova-play--mini span {
	border-top-width: 14px;
	border-bottom-width: 14px;
	border-left: 22px solid #fff;
	margin-left: 4px;
}

.cf-testi--video-centro em {
	font-family: var( --cf-font-hand, 'Caveat' ), cursive;
	font-style: normal;
	font-size: 20px;
	color: #fff;
	text-shadow: 0 2px 8px rgba( 0, 0, 0, 0.4 );
}

.cf-testi--video-autor {
	position: relative;
	z-index: 1;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.cf-testi-av {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient( 135deg, var( --cf-peach, #FFCBA4 ), var( --cf-blush, #F2B5C0 ) );
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
	color: #fff;
}

.cf-testi--video-autor strong {
	display: block;
	font-size: 14px;
	color: #fff;
}

.cf-testi--video-autor span {
	font-size: 12px;
	color: rgba( 255, 255, 255, 0.7 );
}

/* ── Popups ─────────────────────────────────────────────────── */

.cf-prova-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.88 );
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.cf-prova-modal--img { background: rgba( 0, 0, 0, 0.92 ); }

.cf-prova-modal-caixa {
	position: relative;
	width: 100%;
	max-width: 880px;
}

.cf-prova-modal-caixa--img { max-width: 500px; }

.cf-prova-modal-fechar {
	position: absolute;
	top: -44px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
	opacity: 0.8;
}

.cf-prova-modal-video {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	border-radius: 12px;
	overflow: hidden;
}

.cf-prova-modal-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.cf-prova-modal-caixa--img img {
	width: 100%;
	border-radius: 16px;
	display: block;
	max-height: 85vh;
	object-fit: contain;
}

/* ── Botão de vídeo (teaser) ────────────────────────────────── */

.cf-video-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: none;
	border: 1.5px solid rgba( 61, 28, 8, 0.15 );
	color: var( --cf-brown, #3D1C08 );
	font-size: 14px;
	font-weight: 600;
	padding: 12px 22px;
	border-radius: 50px;
	cursor: pointer;
}

.cf-video-btn-play {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var( --cf-terra, #E8714A );
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.cf-video-btn-play span {
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 10px solid #fff;
	margin-left: 2px;
	display: inline-block;
}
