/* About (página 34) — medidas da produção (Elementor post-34). Breakpoints: ≤1024px, ≤767px. */

.on-about-page .on-about__justify { text-align: justify; }
.on-about-page .on-about__col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.on-about-page .on-about__offset { padding-top: 42px; } /* espaçador de 22px + 20px de gap, como no Elementor */
.on-about-page .on-about__paras { --flow-gap: 14.4px; display: flex; flex-direction: column; gap: 14.4px; } /* margem dos <p> do editor de texto (0.9rem) */

/* ---------- Imagem de topo ---------- */
.on-about-top__img img {
	width: 100%;
	height: 50vh;
	object-fit: cover;
	object-position: top center;
	border-radius: var(--radius);
}

/* ---------- Citação ---------- */
.on-about-quote { width: 60%; text-align: center; }
.on-quote { margin: 0; padding: 0; border: 0; }
.on-quote::before {
	content: "\201C";
	display: block;
	height: .6em;
	font-family: "Times New Roman", Times, serif;
	font-size: 120px;
	font-weight: 900;
	line-height: 1;
	color: var(--c-primary);
}
.on-about-page .on-quote p {
	margin-top: 10px;
	font-family: var(--f-serif);
	font-size: 22px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.5;
	color: var(--c-primary);
}
.on-quote cite {
	display: block;
	margin-top: 20px;
	font-family: var(--f-sans);
	font-size: 17px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	color: var(--c-primary-hover);
}

/* ---------- Carrosséis de imagens ("Our Story", "The Surroundings") ----------
   on-carousel sem "sangrar" para a margem; imagens a 50vh; pontos sempre visíveis
   (na produção ocupam o mesmo espaço de 36px, mas o LiteSpeed removeu o estilo dos pontos). */
.on-about-page .on-about__images { --per-view: 1; --bleed: 0px; }
.on-about-page .on-surr__images { --per-view: 2; }
.on-about__images img {
	width: 100%;
	height: 50vh;
	object-fit: cover;
	border-radius: var(--radius);
}
.on-about-page .on-about__images + .on-carousel__dots {
	display: flex;
	gap: 16px;
	height: 7px;
	margin-top: 21px;
	padding-bottom: 8px;
}
.on-about-page .on-about__images + .on-carousel__dots[hidden] { visibility: hidden; }
.on-about-page .on-about__images + .on-carousel__dots .on-carousel__dot {
	width: 7px;
	height: 7px;
	background: var(--c-grey);
	opacity: 1;
}
.on-about-page .on-about__images + .on-carousel__dots .on-carousel__dot[aria-current="true"] { background: var(--c-primary-hover); }

/* ---------- Our Story: 30% | resto | 30% ---------- */
.on-story { flex-direction: row; gap: 60px; }
.on-story__intro, .on-story__aside { flex: 0 1 30%; }
.on-story__media { flex: 1 0 30%; }
.on-about-page .on-story__media, .on-about-page .on-surr__media { gap: 0; }

/* ---------- The Team ---------- */
.on-team__card { display: flex; flex-direction: column; gap: 10px; }
.on-team__img img { width: 100%; border-radius: var(--radius); }
.on-team__name { margin-left: 10px; }
.on-about-page .on-team .on-carousel__dots { display: none; }

/* ---------- The Surroundings: 2 colunas de texto + carrossel a toda a largura ---------- */
.on-surr { flex-direction: row; flex-wrap: wrap; gap: 20px 60px; }
.on-surr__intro, .on-surr__more { flex: 1 0 40%; }
.on-surr__media { flex: 1 0 30%; }

/* ---------- Vídeo ---------- */
.on-about-video .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.on-about-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--radius);
}

@media (max-width: 1024px) {
	.on-about-top__img img { height: 30vh; }
	.on-about-quote { width: 80%; }
	.on-story { gap: 20px; }
	.on-about-page .on-story__media { justify-content: center; }
	.on-surr { column-gap: 20px; }
}

@media (max-width: 767px) {
	.on-about-top { padding-bottom: 20px; }
	.on-about-top__img img { height: 25vh; }
	.on-about-quote { width: 92%; }
	.on-quote cite { font-size: 16px; }
	.on-about-page .on-about__offset { padding-top: 0; }

	.on-story { flex-wrap: wrap; }
	.on-story > .on-about__col { flex: 1 0 100%; }

	.on-surr > .on-about__col { flex: 1 0 100%; }
	.on-surr__intro { order: 1; }
	.on-surr__media { order: 2; }
	.on-surr__more { order: 3; }
	.on-about-page .on-surr__images { --per-view: 1; }

	/* Na produção o vídeo fica com a altura do iframe (360px) + a linha: 366px. */
	.on-about-video .wp-block-embed__wrapper { aspect-ratio: auto; height: 366px; }
}
.on-team > .on-title { width: 80%; } /* deixa espaço para as setas, como no Elementor */

/* O Swiper do Elementor calcula a largura dos slides a partir da largura do contentor arredondada ao píxel
   (ex.: telemóvel 366.6 → 367px). Igualar evita desvios de subpíxel nas imagens e na altura dos cartões. */
.on-about-page .on-carousel > * {
	flex-basis: calc((round(100%, 1px) - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
}
