/**
 * Página do ponto — Visita Guiada à Igreja.
 */

:root {
	--cmd-orange: #e05f32;
	--cmd-text: #1a1a1a;
	--cmd-muted: #5a5a5a;
	--cmd-white: #ffffff;
	--cmd-site-max-width: 1290px;
	--cmd-site-gutter: 20px;
}

@media (min-width: 768px) {
	:root {
		--cmd-site-gutter: 50px;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body.cmd-ponto-body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	min-height: 100dvh;
}

body.cmd-ponto-body {
	font-family: "polymath-text", sans-serif;
	color: var(--cmd-text);
	background: var(--cmd-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.cmd-ponto-body .skip-link,
body.cmd-ponto-body .screen-reader-text.skip-link {
	display: none !important;
}

.cmd-ponto {
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--cmd-white);
	padding-bottom: max(40px, env(safe-area-inset-bottom));
}

.cmd-ponto__container {
	width: 100%;
	max-width: var(--cmd-site-max-width);
	margin-inline: auto;
	padding-inline: var(--cmd-site-gutter);
}

.cmd-ponto__container--header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 12px;
}

.cmd-ponto__header {
	position: relative;
	z-index: 5;
	padding-top: max(8px, env(safe-area-inset-top));
}

.cmd-ponto__brand {
	display: inline-flex;
	line-height: 0;
}

.cmd-ponto__logo {
	display: block;
	width: 148px;
	max-width: 46vw;
	height: auto;
}

.cmd-ponto__menu-btn {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 10px;
	margin: 0;
	cursor: pointer;
	color: var(--cmd-text);
}

.cmd-ponto__menu-icon {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 22px;
}

.cmd-ponto__menu-icon span {
	display: block;
	height: 2px;
	width: 100%;
	background: currentColor;
	border-radius: 2px;
}

.cmd-ponto__main {
	padding-top: 8px;
}

.cmd-ponto__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	color: var(--cmd-text);
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cmd-ponto__back svg {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	color: var(--cmd-orange);
}

.cmd-ponto__title {
	margin: 0 0 28px;
	font-family: "polymath-display", sans-serif;
	font-size: clamp(2.2rem, 9vw, 3rem);
	line-height: 1.1;
	font-weight: 700;
	color: var(--cmd-text);
}

.cmd-ponto__gallery {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 14px;
}

.cmd-ponto__item--lead,
.cmd-ponto__item--full {
	grid-column: 1 / -1;
}

.cmd-ponto__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	-webkit-tap-highlight-color: transparent;
}

.cmd-ponto__thumb {
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: 18px;
	background: #ece8e4;
	aspect-ratio: 3 / 4;
}

.cmd-ponto__item--lead .cmd-ponto__thumb,
.cmd-ponto__item--full .cmd-ponto__thumb {
	aspect-ratio: 16 / 10;
}

.cmd-ponto__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cmd-ponto__caption {
	font-family: "polymath-display", sans-serif;
	font-size: 0.92rem;
	line-height: 1.35;
	font-weight: 500;
	color: var(--cmd-text);
}

.cmd-ponto__empty {
	margin: 0;
	color: var(--cmd-muted);
}

.cmd-reveal {
	opacity: 0;
	transform: translateY(8px);
	transition:
		opacity 0.28s ease var(--cmd-reveal-delay, 0ms),
		transform 0.28s ease var(--cmd-reveal-delay, 0ms);
}

.cmd-reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.cmd-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

@media (min-width: 768px) {
	.cmd-ponto {
		padding-bottom: 64px;
	}

	.cmd-ponto__main {
		padding-top: 20px;
	}

	.cmd-ponto__back {
		font-size: 0.82rem;
		margin-bottom: 20px;
	}

	.cmd-ponto__title {
		margin-bottom: 40px;
		font-size: clamp(2.6rem, 4vw, 3.4rem);
		max-width: 18ch;
	}

	.cmd-ponto__gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px 22px;
	}

	.cmd-ponto__item--lead {
		grid-column: 1 / -1;
	}

	.cmd-ponto__item--lead .cmd-ponto__thumb {
		aspect-ratio: 21 / 9;
		max-height: 420px;
	}

	.cmd-ponto__item--full {
		grid-column: span 1;
	}

	.cmd-ponto__item--full .cmd-ponto__thumb {
		aspect-ratio: 3 / 4;
	}

	.cmd-ponto__thumb {
		border-radius: 22px;
		transition: transform 0.25s ease;
	}

	.cmd-ponto__card:hover .cmd-ponto__thumb {
		transform: scale(1.01);
	}

	.cmd-ponto__caption {
		font-size: 1rem;
	}
}

@media (min-width: 1024px) {
	.cmd-ponto__title {
		font-size: clamp(3rem, 3.5vw, 3.75rem);
		margin-bottom: 48px;
	}

	.cmd-ponto__gallery {
		gap: 32px 24px;
	}

	.cmd-ponto__item--lead .cmd-ponto__thumb {
		aspect-ratio: 2.4 / 1;
		max-height: 480px;
	}
}
