/* ============================================================
   2Maker Aviso — modal de aviso (1x por sessão)
   ============================================================ */

.maviso {
	position: fixed;
	inset: 0;
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s;
}

.maviso.is-open {
	opacity: 1;
	visibility: visible;
}

.maviso[hidden] {
	display: none;
}

.maviso-fundo {
	position: absolute;
	inset: 0;
	background: rgba(16, 31, 53, .65);
}

.maviso-caixa {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background-color: #1d3960;
	background-size: cover;
	background-position: center;
	box-shadow: 0 30px 60px rgba(16, 31, 53, .35);
	transform: translateY(14px);
	transition: transform .35s ease;
}

.maviso.is-open .maviso-caixa {
	transform: none;
}

/* Véu escuro sobre a imagem, para o texto continuar legível em
   qualquer foto que for escolhida no painel. */
.maviso-caixa::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(16, 31, 53, .55);
}

.maviso-conteudo {
	position: relative;
	padding: 56px 48px;
	color: #fff;
	text-align: center;
}

.maviso-titulo {
	margin: 0 0 16px;
	color: #fff;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}

.maviso-texto {
	color: rgba(255, 255, 255, .9);
	font-size: 16px;
	line-height: 1.6;
}

.maviso-texto p {
	margin: 0 0 12px;
}

.maviso-texto p:last-child {
	margin-bottom: 0;
}

.maviso-botao {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 26px;
	padding: 13px 30px;
	background: #fff;
	color: #1d3960;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .3s ease, color .3s ease;
}

.maviso-botao:hover,
.maviso-botao:focus {
	background: #101f35;
	color: #fff;
}

.maviso-x {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, .15);
	color: #fff;
	cursor: pointer;
	transition: background-color .3s ease;
}

.maviso-x:hover,
.maviso-x:focus {
	background: rgba(255, 255, 255, .3);
}

@media (max-width: 600px) {
	.maviso-conteudo {
		padding: 46px 24px;
	}

	.maviso-titulo {
		font-size: 24px;
	}
}

/* Sem animação para quem pediu menos movimento no sistema. */
@media (prefers-reduced-motion: reduce) {
	.maviso,
	.maviso-caixa {
		transition: none;
	}

	.maviso-caixa {
		transform: none;
	}
}
