/* ===============================
   Popup Modal (administrável pelo painel)
   =============================== */
.site-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.65);
	z-index: 99998;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}
.site-popup-overlay.is-open {
	display: flex;
}
.site-popup {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 600px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 6px;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
	text-align: center;
	padding: 40px 35px 35px;
	box-sizing: border-box;
	transform: scale(0.92);
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.site-popup-overlay.is-open .site-popup {
	transform: scale(1);
	opacity: 1;
}
.site-popup--pequeno { max-width: min(400px, 92vw); }
.site-popup--medio { max-width: min(600px, 92vw); }
.site-popup--grande { max-width: min(1100px, 94vw); }

.site-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	line-height: 32px;
	border-radius: 50%;
	background: #f2f2f2;
	color: #333;
	font-size: 18px;
	cursor: pointer;
	border: none;
	transition: background 0.2s ease, transform 0.2s ease;
}
.site-popup__close:hover {
	background: #e2e2e2;
	transform: rotate(90deg);
}
.site-popup__imagem {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	/* Cresce até quase preencher a tela verticalmente, mas nunca ultrapassa —
	   87vh de imagem + o resto do popup ainda cabe dentro do max-height:90vh
	   do .site-popup, que também tem overflow-y:auto como rede de segurança. */
	max-height: 75vh;
	object-fit: contain;
	border-radius: 4px;
	margin: 0 auto 20px;
	/* Borda fina e desfocada: em vez de um corte reto, a beirada da imagem
	   se dissolve suavemente no fundo branco do card (só a última faixinha
	   da borda, o miolo da imagem continua todo nítido). */
	-webkit-mask-image: radial-gradient(ellipse 100% 100% at center, #000 92%, transparent 100%);
	mask-image: radial-gradient(ellipse 100% 100% at center, #000 92%, transparent 100%);
}
.site-popup__titulo {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 15px;
	color: #252525;
}
.site-popup__conteudo {
	font-size: 15px;
	line-height: 1.6;
	color: #555;
	margin-bottom: 20px;
	text-align: left;
}
.site-popup__conteudo img {
	max-width: 100%;
	height: auto;
}
.site-popup__botao {
	display: inline-block;
	background: #29b6f6;
	color: #fff !important;
	padding: 12px 30px;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
}
.site-popup__botao:hover {
	background: #1e97cf;
	text-decoration: none;
}

@media only screen and (max-width: 480px) {
	.site-popup {
		padding: 30px 20px 25px;
	}
	.site-popup__titulo {
		font-size: 20px;
	}
}
