/* ==========================================================================
   Ondina — componentes das páginas (blocos core + classes "on-*")
   Medidas transcritas das páginas Elementor. Breakpoints: ≤1024px, ≤767px.
   ========================================================================== */

.on-page { display: block; }
.on-page p,
.on-page figure { margin: 0; }
.on-page img { display: block; max-width: 100%; height: auto; }

/* ---------- Tipografia (globais do kit) ---------- */
.on-title {
	font-family: var(--f-serif);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--c-primary);
}
.on-card-title {
	font-family: var(--f-serif);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--c-primary);
}
.on-text {
	font-family: var(--f-sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--c-primary);
}
@media (max-width: 767px) {
	.on-text { font-size: 16px; }
}

/* ---------- Secções ---------- */
.on-section {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: var(--container);
	margin-inline: auto;
	padding-bottom: 60px;
}
@media (max-width: 767px) {
	.on-section { padding-bottom: 40px; }
}

/* ---------- Botões (core/button) ----------
   O wrapper reproduz a linha de texto do widget do Elementor (16px/24px de sistema),
   onde o botão inline-block assenta na baseline: é isso que dá o espaçamento exato. */
.on-page .wp-block-buttons {
	display: block;
	font-family: var(--f-system);
	font-size: 16px;
	line-height: 24px;
}
.on-page .wp-block-button { display: block; }
.on-page .wp-block-button__link {
	display: inline-block;
	padding: 10px 20px;
	border: 1px solid var(--c-primary);
	border-radius: var(--radius);
	background-color: transparent;
	font-family: var(--f-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: var(--c-primary);
	text-align: center;
	cursor: pointer;
	transition: background-color .3s, color .3s, border-color .3s, transform .25s ease, box-shadow .25s ease;
}
.on-page .wp-block-button__link:hover { transform: scale(1.02); }
.on-page .is-style-outline .wp-block-button__link:hover { background-color: var(--c-white-hover); }

/* Link sublinhado ("Know More") */
.on-page .is-style-underline .wp-block-button__link {
	padding: 0 0 5px;
	border-width: 0 0 1px;
	border-radius: 0;
}

/* Link com seta ("Explore Surf") — seta à direita, 0.8em, 10px de intervalo */
.on-page .is-style-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	border: 0;
}
.on-page .is-style-arrow .wp-block-button__link::after {
	content: "";
	width: .8em;
	height: .8em;
	background-color: currentColor;
	-webkit-mask: url("../icons/ui/arrow-up-right-light.svg") center / contain no-repeat;
	mask: url("../icons/ui/arrow-up-right-light.svg") center / contain no-repeat;
}

/* Contorno branco (sobre imagem) */
.on-page .is-style-outline-light .wp-block-button__link { color: var(--c-text); border-color: var(--c-text); }
.on-page .is-style-outline-light .wp-block-button__link:hover { background-color: #fffefc0f; }

/* ==========================================================================
   Hero com slideshow
   ========================================================================== */
.on-hero {
	--hero-gutter: calc((100% - 60px) * .04);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 20px;
	min-height: 90vh;
	padding: 0 var(--hero-gutter) 80px calc(60px + var(--hero-gutter));
	overflow: hidden;
	background-color: #8fadb8;
	border-radius: 0;
	transform-origin: top center;
	transition: transform .7s cubic-bezier(.25, .1, .25, 1), padding .7s cubic-bezier(.25, .1, .25, 1), border-radius .7s cubic-bezier(.25, .1, .25, 1);
}
/* Gradiente escuro no canto inferior esquerdo, por cima das imagens */
.on-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image: radial-gradient(at bottom left, var(--c-dark) 38%, transparent 60%);
	opacity: .3;
	border-radius: inherit;
	pointer-events: none;
}
.on-hero__slides {
	position: absolute !important;
	inset: 0;
	z-index: 0;
	margin: 0;
	overflow: hidden;
	border-radius: inherit;
}
.on-hero__slides > figure {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .5s ease;
}
.on-hero__slides > figure:first-child,
.on-hero__slides > figure.is-active { opacity: 1; }
.on-hero__slides.is-ready > figure:first-child:not(.is-active) { opacity: 0; }
/* <picture> com o recorte para o telemóvel (inc/autoload/hero-mobile.php): não altera o layout. */
.on-hero__slides picture { display: contents; }
.on-hero__slides img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	transform: scale(1.3);
	transition: transform 10s linear;
}
/* Ken Burns "out" (como no Elementor): o slide ativo afasta-se de 1.3× até 1× */
.on-hero__slides > figure.is-active img { transform: scale(1); transition-duration: 20s; }
/* Sem animação (reduzir movimento, ou capturas de comparação): imagem no estado final. */
.on-hero__slides.is-frozen img { transform: scale(1) !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
	.on-hero__slides img { transform: none !important; transition: none !important; }
}

.on-hero__title,
.on-hero__lead { position: relative; z-index: 2; width: 495px; max-width: 495px; color: var(--c-text); }
.on-hero__title { font-family: var(--f-serif); font-size: 40px; font-weight: 400; line-height: 1.2; }
.on-hero__lead { font-family: var(--f-sans); font-size: 18px; font-weight: 400; line-height: 1.2; }

/* Encolhe ligeiramente ao fazer scroll (substitui o snippet "Shrink Hero") */
.on-hero.is-shrunk { transform: scale(.92); border-radius: 12px; margin-bottom: -20px; }

@media (max-width: 1024px) {
	.on-hero { --hero-gutter: calc((100% - 60px) * .03); min-height: 70vh; }
	.on-hero::before { background-image: radial-gradient(at bottom left, var(--c-dark) 40%, transparent 70%); }
	.on-hero__title, .on-hero__lead { width: 60%; max-width: 60%; }
	.on-hero.is-shrunk { transform: scale(.94); margin-bottom: 0; }
}
@media (max-width: 767px) {
	.on-hero { --hero-gutter: calc(100% * .03); min-height: 65vh; padding: 0 var(--hero-gutter) 40px; }
	.on-hero::before { background-image: radial-gradient(at bottom left, var(--c-dark) 50%, transparent 80%); }
	.on-hero__title { width: 320px; max-width: 320px; font-size: 32px; }
	.on-hero__lead { width: 92%; max-width: 92%; }
	/* Enquadramento à volta do ponto de foco de cada foto (inc/autoload/hero-mobile.php); o zoom do
	   Ken Burns também parte desse ponto, para a pessoa não sair do ecrã. */
	.on-hero__slides img { object-position: var(--hero-pos, 50%) center; transform-origin: var(--hero-pos, 50%) center; }
}

/* ==========================================================================
   About (cartão cinzento)
   ========================================================================== */
.on-about { padding-top: 20px; }
.on-card--about {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 60px 0;
	background-color: var(--c-grey);
	border-radius: var(--radius);
	text-align: center;
}
.on-card--about > * { width: 60%; }
@media (max-width: 1024px) {
	.on-card--about { padding-block: 40px; }
	.on-card--about > * { width: 80%; }
}
@media (max-width: 767px) {
	.on-about { padding-top: 40px; }
	.on-card--about > * { width: 90%; }
}

/* ==========================================================================
   Carrossel de cartões ("What We Offer", eventos)
   ========================================================================== */
.on-carousel {
	--per-view: 4;
	--gap: 20px;
	/* A faixa estende-se até à margem direita do ecrã, para o cartão seguinte espreitar. */
	--bleed: calc((100vw - 100%) / 2);
	display: flex;
	gap: var(--gap);
	margin-right: calc(-1 * var(--bleed));
	padding-right: var(--bleed);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.on-carousel::-webkit-scrollbar { display: none; }
.on-carousel > * {
	flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
	min-width: 0;
	scroll-snap-align: start;
}
.on-carousel-wrap { position: relative; }
.on-carousel__dots {
	display: none;
	justify-content: center;
	gap: 12px;
	margin-top: -8.5px; /* 20px de gap da secção − 8.5px = 11.5px abaixo dos cartões */
	padding-bottom: 11px;
	box-sizing: content-box;
	height: 6px;
}
.on-carousel__dot {
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #000;
	opacity: .2;
	cursor: pointer;
}
.on-carousel__dot[aria-current="true"] { opacity: 1; }

/* Setas (on-carousel--arrows): círculos de 28px no topo à direita, 46px acima da faixa (como o nested-carousel) */
.on-carousel-shell { position: relative; }
.on-carousel__arrows { position: absolute; top: -46px; right: 0; display: flex; gap: 12px; }
.on-carousel__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 4px;
	border: 1px solid var(--c-primary);
	border-radius: 50%;
	background: none;
	color: var(--c-primary);
	cursor: pointer;
}
.on-carousel__arrow .icon { width: 18px; height: 18px; }
.on-carousel__arrow:hover { background: var(--c-white-hover); }

.on-offer__card { display: flex; flex-direction: column; gap: 20px; }
.on-offer__img img { width: 100%; border-radius: var(--radius); }
.on-offer__body { display: flex; flex-direction: column; gap: 10px; padding: 0 10px; }

@media (max-width: 1024px) {
	.on-carousel { --per-view: 3; }
	.on-carousel__dots { display: flex; }
}
@media (max-width: 767px) {
	.on-carousel { --per-view: 2; }
	.on-offer__card { gap: 10px; }
}

/* ==========================================================================
   Separadores ("Our Activities")
   ========================================================================== */
.on-tabs { display: flex; gap: 60px; }
.on-tabs__nav {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 0 0 28%;
	width: 28%;
}
.on-tabs__tab {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 18px 40px;
	border: 0;
	border-radius: var(--radius);
	background: var(--c-grey);
	font-family: var(--f-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 19.2px;
	color: var(--c-primary);
	text-align: start;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.on-tabs__tab span { font-size: 18px; }
.on-tabs__tab[aria-selected="true"],
.on-tabs__tab:hover { background: var(--c-primary); color: var(--c-text); }
.on-tabs__icon { width: 22px; height: 22px; flex: none; }

.on-tabs__content { display: flex; flex: 1 1 auto; min-width: 0; }
.on-tabs__panel { display: flex; flex: 1 1 auto; align-items: center; gap: 40px; }
.on-tabs__panel[hidden] { display: none; }
.on-tabs__img { flex: 0 1 80%; min-width: 0; }
.on-tabs__img img { width: 100%; height: 280px; object-fit: cover; object-position: center; border-radius: var(--radius); }
.on-tabs__body { display: flex; flex-direction: column; gap: 20px; flex: 0 1 100%; min-width: 0; }

@media (max-width: 1024px) {
	.on-tabs { gap: 40px; }
	.on-tabs__nav { flex-basis: 240px; width: 240px; }
	.on-tabs__panel { gap: 20px; }
	.on-tabs__img img { height: 240px; }
}
@media (max-width: 767px) {
	.on-tabs { flex-direction: column; gap: 20px; }
	.on-tabs__nav {
		flex-direction: row;
		flex: none;
		width: 100%;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.on-tabs__nav::-webkit-scrollbar { display: none; }
	.on-tabs__tab { flex: 0 0 auto; justify-content: center; gap: 10px; padding: 12px 22px; white-space: nowrap; text-align: center; }
	.on-tabs__icon { width: 16px; height: 16px; }
	.on-tabs__panel { flex-wrap: wrap; }
	.on-tabs__img, .on-tabs__body { flex-basis: 100%; }
	.on-tabs__img img { height: 200px; }
}

/* ==========================================================================
   Galeria em carrossel ("House & Surroundings") + lightbox
   ========================================================================== */
.on-gallery-carousel {
	--per-view: 3;
	position: relative;
	display: flex;
	gap: 20px;
	margin: 0;
	overflow: hidden;
}
.on-gallery-carousel > figure {
	flex: 0 0 calc((100% - (var(--per-view) - 1) * 20px) / var(--per-view));
	min-width: 0;
	margin: 0 0 6px;
	transition: transform .4s ease;
}
.on-gallery-carousel img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	border-radius: var(--radius);
	cursor: zoom-in;
}
.on-gallery__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-text);
	font-size: 30px;
	transform: translateY(-50%);
	cursor: pointer;
}
.on-gallery__arrow .icon { width: 30px; height: 30px; }
.on-gallery__arrow--prev { left: 10px; }
.on-gallery__arrow--next { right: 10px; }
@media (max-width: 1024px) {
	.on-gallery-carousel { --per-view: 2; }
}

.on-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 60px;
	border: 0;
	background: var(--c-text);
	color: var(--c-primary);
}
.on-lightbox:not([open]) { display: none; }
.on-lightbox img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: var(--radius); }
.on-lightbox__btn {
	position: absolute;
	display: flex;
	padding: 10px;
	border: 0;
	background: none;
	color: var(--c-primary);
	cursor: pointer;
}
.on-lightbox__btn:hover { color: var(--c-primary-hover); }
.on-lightbox__btn .icon { width: 30px; height: 30px; }
.on-lightbox__close { top: 15px; right: 15px; font-size: 32px; line-height: 1; }
.on-lightbox__prev { left: 15px; top: 50%; transform: translateY(-50%); }
.on-lightbox__next { right: 15px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   "Organize your own retreat"
   ========================================================================== */
.on-retreat { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: stretch; }
.on-retreat__img { flex: 1 1 20%; min-width: 0; }
.on-retreat__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.on-retreat__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	flex: 0 1 50%;
	min-width: 0;
	padding-left: 40px;
}
.on-retreat__body .wp-block-buttons { margin-top: 10px; }
@media (max-width: 1024px) {
	.on-retreat__body { padding-left: 0; }
}
@media (max-width: 767px) {
	.on-retreat { flex-wrap: wrap; }
	.on-retreat__body { flex-basis: 100%; justify-content: flex-start; }
}

/* ==========================================================================
   Chamada final com imagem de fundo
   ========================================================================== */
.on-cta__box {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	min-height: 50vh;
	padding: 60px;
	overflow: hidden;
	border-radius: var(--radius);
	text-align: center;
}
/* O Elementor tinha uma camada #01132366 definida, mas no site publicado ela não se aplicava
   (o CSS foi removido pelo LiteSpeed). Mantém-se sem camada, como os visitantes a veem. */
.on-cta__bg { position: absolute !important; inset: 0; z-index: 0; }
.on-cta__bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.on-cta__bg--mobile { display: none; }
.on-cta__title {
	position: relative;
	z-index: 2;
	font-family: var(--f-serif);
	font-size: 40px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--c-text);
}
.on-cta__box .wp-block-buttons { position: relative; z-index: 2; margin-top: 10px; }
@media (max-width: 767px) {
	.on-cta__box { padding: 40px; }
	.on-cta__bg--desktop { display: none; }
	.on-cta__bg--mobile { display: block; }
	.on-cta__title { font-size: 32px; }
}

/* ==========================================================================
   Reviews (widget Trustindex via shortcode)
   ========================================================================== */
.on-reviews { gap: 40px; padding-bottom: 40px; }

/* ==========================================================================
   Formulários (bloco ondina/form — Book Now, Hire Us)
   Medidas do widget Form do Elementor: colunas com 10px de intervalo, linhas com 12px,
   rótulo 17px/1 + 4px, campos 40px com borda #607384 e cantos 12px.
   ========================================================================== */
.on-form { position: relative; }
.on-form__fields {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -5px -12px;
}
.on-form__group {
	display: flex;
	flex-direction: column;
	flex: 0 0 100%;
	width: 100%;
	padding: 0 5px;
	margin-bottom: 12px;
}
.on-form__group.is-half { flex-basis: 50%; width: 50%; }
.on-form__label {
	display: block;
	padding-bottom: 4px;
	font-family: var(--f-sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	color: var(--c-primary);
}
.on-form__group.is-required .on-form__label::after {
	content: "*";
	padding-inline-start: .2em;
	color: var(--c-primary);
}
.on-form__field {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 40px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--c-muted);
	border-radius: var(--radius);
	background-color: var(--c-text);
	font-family: var(--f-sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--c-primary);
	box-shadow: none;
	outline: none;
	transition: border-color .3s;
}
.on-form__field::placeholder { color: #7a8794; opacity: 1; }
.on-form__field:focus { border-color: var(--c-primary); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.on-form__field[aria-invalid="true"] { border-color: #b32d2e; }
textarea.on-form__field { height: auto; padding: 5px 14px; resize: vertical; }

/* Select com seta (como o caret do Elementor, na cor #607384) */
.on-form__select { position: relative; }
.on-form__select select.on-form__field {
	padding: 5px 20px 5px 14px;
	line-height: 1.5;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.on-form__select::after {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-end: 10px;
	width: 11px;
	height: 11px;
	transform: translateY(-50%);
	background-color: var(--c-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 571 1000'%3E%3Cpath d='M571 393Q571 407 561 418L311 668Q300 679 286 679T261 668L11 418Q0 407 0 393T11 368 36 357H536Q550 357 561 368T571 393Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 571 1000'%3E%3Cpath d='M571 393Q571 407 561 418L311 668Q300 679 286 679T261 668L11 418Q0 407 0 393T11 368 36 357H536Q550 357 561 368T571 393Z'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}

/* Hóspedes: [−] [ n ] [+] (design do CSS personalizado do formulário) */
.guest-stepper {
	display: flex;
	align-items: center;
	gap: 2px;
	max-width: 200px;
	overflow: hidden;
	border-radius: 8px;
}
.guest-stepper input.on-form__field {
	flex: 1;
	min-width: 0;
	height: 40px;
	border: none;
	border-radius: 0;
	font-size: 18px;
	text-align: center;
	-moz-appearance: textfield;
}
.guest-stepper input::-webkit-inner-spin-button,
.guest-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.guest-stepper button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: #022f57;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: all .2s ease;
}
.guest-stepper button:hover { background: var(--c-primary-hover); }
.guest-stepper button:disabled { opacity: .4; cursor: not-allowed; background: #e6c799; }

/* Aceitação da política de privacidade */
/* Grupo "acceptance" do Elementor: caixa 4.8px abaixo do topo, texto numa linha de 24px. */
.on-form__check { display: flex; align-items: flex-start; padding-top: 1.3px; }
/* Booking: o Elementor tinha um campo HTML vazio (script do +/−) a seguir, que somava 13px. */
.on-form--booking .on-form__group--acceptance { margin-bottom: 25px; }
/* Hire: rótulos com 2px por baixo (Booking: 4px). */
.on-form--hire .on-form__label { padding-bottom: 2px; }
.on-form__check input {
	display: inline-block;
	flex: none;
	width: 24.5px;
	height: 18px;
	margin: 3.5px 4.2px 0 0;
	accent-color: var(--c-primary);
}
.on-form__check label {
	font-family: var(--f-sans);
	font-size: 17px;
	line-height: 24px;
	color: var(--c-primary);
	cursor: pointer;
}
.on-form__label { align-self: flex-start; }
.on-form__check a { color: var(--c-primary); text-decoration: underline; }

/* Botão de envio (largura total, 47px, seta à direita) */
.on-form__group--submit { margin-bottom: 12px; }
.on-form__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 47px;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--radius);
	background-color: var(--c-primary);
	font-family: var(--f-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: var(--c-text);
	cursor: pointer;
	transition: background-color .3s, transform .25s ease;
}
.on-form__submit::after {
	content: "";
	width: .8em;
	height: .8em;
	background-color: currentColor;
	-webkit-mask: url("../icons/ui/arrow-up-right-light.svg") center / contain no-repeat;
	mask: url("../icons/ui/arrow-up-right-light.svg") center / contain no-repeat;
}
.on-form__submit:hover { background-color: var(--c-primary-hover); transform: scale(1.02); }
.on-form.is-sending .on-form__submit { opacity: .6; cursor: progress; }

/* No Elementor ficavam 35px entre o botão e o fim do cartão (contando os 20px de padding do cartão). */
.on-form { padding-bottom: 15px; }
.on-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.on-form__error { margin-top: 4px; font-family: var(--f-sans); font-size: 14px; color: #b32d2e; }
.on-form__message { margin-top: 10px; font-family: var(--f-sans); font-size: 16px; color: var(--c-primary); }
.on-form__message.is-error { color: #b32d2e; }

@media (max-width: 767px) {
	.on-form__label, .on-form__field, .on-form__check label { font-size: 16px; }
	.on-form__check { padding-top: 1.8px; }
	.on-form__check input { margin-top: 3px; }
	.on-form__check label { line-height: 23px; }
}

/* Seletor de datas (flatpickr) nas cores do site */
.flatpickr-calendar { font-family: var(--f-sans); }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--c-primary); border-color: var(--c-primary); }

/* ---------- Popup "Thank You!" ---------- */
.on-popup {
	width: 540px;
	max-width: calc(100vw - 32px);
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background-color: var(--c-text);
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
	color: var(--c-primary);
}
.on-popup::backdrop { background: transparent; }
.on-popup__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	padding: 40px;
	text-align: center;
}
.on-popup__icon {
	width: 40px;
	height: 40px;
	background-color: #89cf8e;
	-webkit-mask: url("../icons/ui/arrow-up-right-light.svg") center / contain no-repeat;
	mask: url("../icons/ui/arrow-up-right-light.svg") center / contain no-repeat;
}
.on-popup__title { margin: 0; font-family: var(--f-serif); font-size: 22px; font-weight: 400; line-height: 1.2; }
.on-popup__text { margin: 0; font-family: var(--f-sans); font-size: 18px; line-height: 1.2; }
.on-popup__close {
	position: absolute;
	top: 10px;
	right: 14px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: var(--c-primary);
	cursor: pointer;
}
.on-popup__close:hover { color: var(--c-muted); }
@media (max-width: 1024px) { .on-popup { width: 60vw; } }
@media (max-width: 767px) { .on-popup { width: 90vw; } }

/* ---------- Parágrafos seguidos do mesmo bloco de texto ----------
   No Elementor, parágrafos dentro do mesmo widget de texto ficam a .9rem (14.4px) um do outro,
   independentemente do gap do contentor. --flow-gap = gap do contentor onde estão (20px por omissão). */
.on-text + .on-text { margin-top: calc(14.4px - var(--flow-gap, 20px)); }

/* ---------- Divisória (widget Divider do Elementor: 1px #F7F6F2) ---------- */
.on-page hr.on-divider {
	width: 100%;
	height: 0;
	margin: 0;
	border: 0;
	border-top: 1px solid var(--c-grey);
	opacity: 1;
}
.on-page hr.on-divider--spaced { margin-block: 10px; }

/* ---------- Cartão do formulário (Book Now, Hire Us) ---------- */
.on-form-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px 40px;
	background-color: var(--c-grey);
	border-radius: var(--radius);
}
.on-form-card .on-title { font-size: 22px; }
@media (max-width: 1024px) {
	.on-form-card { padding: 20px; }
}

/* ==========================================================================
   Cartão "sem eventos" (parts/event-card-empty.php): grelha do /events/ e carrossel da homepage
   ========================================================================== */
.on-event-empty {
	display: flex;
	width: 100%;
	min-height: 340px;
	overflow: hidden;
	background-color: var(--c-grey);
	border-radius: var(--radius);
}
.on-event-empty__media { position: relative; flex: 0 0 45%; min-width: 0; }
.on-page .on-event-empty__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.on-event-empty__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
	padding: 40px 60px;
}
.on-page .on-event-empty__title {
	margin: 0;
	font-family: var(--f-serif);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--c-primary);
}
.on-page .on-event-empty__text {
	margin: 0;
	font-family: var(--f-sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--c-muted);
}
.on-event-empty__cta { margin-top: 8px; }
.on-page .on-event-empty__cta .wp-block-button__link { background-color: var(--c-primary); color: var(--c-text); }
.on-page .on-event-empty__cta .wp-block-button__link:hover { background-color: var(--c-primary-hover); border-color: var(--c-primary-hover); }
@media (max-width: 1024px) {
	.on-event-empty__body { padding: 32px 40px; }
	.on-page .on-event-empty__title { font-size: 24px; }
}
@media (max-width: 767px) {
	.on-event-empty { flex-direction: column; min-height: 0; }
	.on-event-empty__media { flex: none; aspect-ratio: 16 / 10; }
	.on-event-empty__body { padding: 24px; gap: 12px; }
	.on-page .on-event-empty__title { font-size: 22px; }
	.on-page .on-event-empty__text { font-size: 16px; }
}
