/**
 * Single Projeto — alinhado à identidade visual Urbiágua (Astra + homepage).
 *
 * Paleta:
 *   #00A5CF ciano  |  #003B4A teal escuro  |  #236373 teal
 *   #D5E7EC gelo   |  #F7F7F7 fundo        |  #121212 texto
 * Tipografia: títulos Old Standard TT, corpo Inter, UI Poppins (typography.css).
 */

body.single-projeto {
	--projeto-cyan: var(--ast-global-color-2, #00a5cf);
	--projeto-teal: var(--ast-global-color-0, #003b4a);
	--projeto-teal-mid: var(--ast-global-color-1, #236373);
	--projeto-ice: #d5e7ec;
	--projeto-gray: var(--ast-global-color-6, #f7f7f7);
	--projeto-white: var(--ast-global-color-5, #ffffff);
	--projeto-ink: var(--ast-global-color-3, #121212);
	--projeto-muted: var(--ast-global-color-4, #54595f);
	--projeto-shell: 1200px;
	--projeto-text: 720px;
	--projeto-gutter: 40px;
	--projeto-section: 120px;
	--projeto-radius: 6px;
	--projeto-shadow: 0 40px 120px -24px rgba(0, 0, 0, 0.08);
	background: var(--projeto-white);
	color: var(--projeto-muted);
}

body.single-projeto #content {
	padding-top: 0;
	background: var(--projeto-white);
}

body.single-projeto .site-content > .ast-container {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	margin: 0;
}

body.single-projeto #primary,
body.single-projeto .site-main {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: none;
	float: none;
}

body.single-projeto.ast-separate-container .ast-article-single,
body.single-projeto article.projeto {
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
	margin: 0;
}

/* Header transparente + sobreposto ao hero (Astra e HFE). */
body.single-projeto.ast-theme-transparent-header #masthead,
body.single-projeto .ehf-header,
body.single-projeto header.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	width: 100%;
	background: transparent;
	box-shadow: none;
}

body.single-projeto .main-header-bar,
body.single-projeto .ast-primary-header-bar,
body.single-projeto .ast-main-header-wrap,
body.single-projeto .hfe-site-header {
	background-color: transparent !important;
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   Shell / hierarquia
   -------------------------------------------------------------------------- */

.projeto-shell {
	width: min(100% - (var(--projeto-gutter) * 2), var(--projeto-shell));
	margin-inline: auto;
}

.projeto-shell--narrow {
	width: min(100% - (var(--projeto-gutter) * 2), var(--projeto-text));
}

.projeto-kicker {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--projeto-cyan);
}

.projeto-kicker--light {
	color: var(--projeto-white);
}

.projeto-section-head {
	margin-bottom: 48px;
}

.projeto-facts__desc {
	max-width: var(--projeto-text);
	margin: 0 0 2.5rem;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--projeto-ink);
}

.projeto-facts__desc p {
	margin: 0 0 1em;
}

.projeto-facts__desc p:last-child {
	margin-bottom: 0;
}

.projeto-facts__desc h2,
.projeto-facts__desc h3 {
	margin: 0 0 0.55em;
	color: var(--projeto-ink);
}

.projeto-section-title {
	margin: 0 0 16px;
	font-size: 40px;
	font-weight: 700;
	font-style: italic;
	line-height: 1.4;
	color: var(--projeto-teal);
}

.projeto-divider {
	display: block;
	width: 64px;
	height: 2px;
	background: var(--projeto-cyan);
}

.projeto-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.7rem;
	border: 1px solid var(--projeto-cyan);
	color: var(--projeto-cyan);
	font-size: 11px;
	letter-spacing: 3px;
}

.projeto-kicker--light .projeto-badge {
	border-color: var(--projeto-white);
	color: var(--projeto-white);
}

/* --------------------------------------------------------------------------
   Hero — vídeo de fundo + fallback de imagem (padrão homepage)
   -------------------------------------------------------------------------- */

.projeto-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	height: 100vh;
	height: 100svh;
	min-height: 100vh;
	overflow: hidden;
	background: var(--projeto-teal);
	color: var(--projeto-white);
	text-align: start;
}

.projeto-hero__fallback,
.projeto-hero__media,
.projeto-hero__video-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	z-index: 0;
}

.projeto-hero__video-wrap {
	z-index: 1;
	pointer-events: none;
}

.projeto-hero__image,
.projeto-hero video,
.projeto-hero__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0;
	padding: 0;
	border: 0;
	object-fit: cover !important;
	object-position: 50% 50% !important;
	transform: none;
}

.projeto-hero__iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: max(100%, 177.78vh);
	height: max(100%, 56.25vw);
	border: 0;
}

.projeto-hero--embed .projeto-hero__iframe {
	transform: translate(-50%, -50%);
}

.projeto-hero__chrome {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.projeto-hero__chrome::before,
.projeto-hero__chrome::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 72px;
	pointer-events: none;
}

.projeto-hero__chrome::before {
	top: 0;
	background: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.projeto-hero__chrome::after {
	bottom: 0;
	background: linear-gradient(to top, #000 0%, transparent 100%);
}

.projeto-hero.is-video-failed .projeto-hero__video-wrap {
	display: none;
}

.projeto-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background-color: var(--projeto-teal);
	opacity: 0.4;
	pointer-events: none;
}

.projeto-hero__content {
	position: relative;
	z-index: 3;
	width: 100%;
	padding: 290px 0 40px;
	text-align: start;
}

.projeto-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	text-align: start;
}

body.single-projeto .projeto-hero__title,
.projeto-hero__title {
	margin: 0 0 16px;
	margin-inline: 0 auto;
	max-width: min(780px, 100%);
	font-size: clamp(2.5rem, 5.4vw, 6.5rem);
	font-weight: 400;
	font-style: italic;
	line-height: 1.1;
	text-align: start;
	text-transform: uppercase;
	color: var(--projeto-white);
}

.projeto-hero__location {
	margin: 0;
	max-width: min(36rem, 100%);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--projeto-white);
	text-align: start;
}

/* --------------------------------------------------------------------------
   Ficha técnica
   -------------------------------------------------------------------------- */

.projeto-facts {
	padding: var(--projeto-section) 0;
	background: var(--projeto-gray);
}

.projeto-facts__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.5rem 2rem;
	margin: 0 0 2.5rem;
	padding: 0;
}

.projeto-facts__item {
	margin: 0;
	padding-top: 1.15rem;
	border-top: 1px solid var(--projeto-cyan);
}

.projeto-facts__item dt {
	margin: 0 0 0.5rem;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--projeto-cyan);
}

.projeto-facts__item dd {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	font-style: italic;
	line-height: 1.3;
	color: var(--projeto-teal);
}

.projeto-solutions {
	margin-top: 1.75rem;
}

.projeto-solutions + .projeto-solutions {
	margin-top: 1.35rem;
}

.projeto-solutions__label {
	margin: 0 0 1rem;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--projeto-cyan);
}

.projeto-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.projeto-pills__item {
	padding: 0.5rem 1rem;
	border: 1px solid var(--projeto-ice);
	border-radius: var(--projeto-radius);
	background: var(--projeto-white);
	font-size: 14px;
	color: var(--projeto-teal);
}

.projeto-pills--produtos .projeto-pills__item {
	border-color: var(--projeto-cyan);
	background: var(--projeto-gray);
}

/* --------------------------------------------------------------------------
   Texto
   -------------------------------------------------------------------------- */

.projeto-story {
	padding: var(--projeto-section) 0;
	background: var(--projeto-white);
}

.projeto-story__body {
	max-width: none;
	font-size: 18px;
	line-height: 1.8;
	color: var(--projeto-muted);
}

.projeto-story__body > *:first-child {
	margin-top: 0;
}

.projeto-story__body p {
	margin: 0 0 1.4em;
}

.projeto-story__body a {
	color: var(--projeto-cyan);
}

/* --------------------------------------------------------------------------
   Vídeo
   -------------------------------------------------------------------------- */

.projeto-film {
	padding: 0 0 var(--projeto-section);
	background: var(--projeto-white);
}

.projeto-film__item + .projeto-film__item {
	margin-top: 56px;
}

.projeto-film__caption {
	margin: 0 0 16px;
}

.projeto-film__heading {
	margin: 0;
	font-size: 28px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.3;
	color: var(--projeto-teal);
}

.projeto-film__frame {
	overflow: hidden;
	border-radius: var(--projeto-radius);
	background: var(--projeto-teal);
	box-shadow: 0 32px 40px -12px rgba(0, 0, 0, 0.24);
}

.projeto-film__embed {
	position: relative;
	height: 0;
	padding-bottom: 56.25%;
	overflow: hidden;
}

.projeto-film__embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	transform: none;
}

.projeto-film__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0;
	padding: 0;
	border: 0;
	object-fit: cover !important;
	object-position: 50% 50% !important;
	transform: none;
}

.projeto-film__poster {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: 50% 50% !important;
	pointer-events: none;
}

.projeto-film__embed.is-playing .projeto-film__poster {
	opacity: 0;
}

.projeto-film__chrome {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.projeto-film__chrome::before,
.projeto-film__chrome::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 64px;
}

.projeto-film__chrome::before {
	top: 0;
	background: linear-gradient(to bottom, #003b4a 0%, transparent 100%);
}

.projeto-film__chrome::after {
	bottom: 0;
	background: linear-gradient(to top, #003b4a 0%, transparent 100%);
}

.projeto-film__play {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 59, 74, 0.32);
	cursor: pointer;
}

.projeto-film__play-icon {
	position: relative;
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(0, 165, 207, 0.94);
	box-shadow: 0 12px 32px rgba(0, 59, 74, 0.28);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.projeto-film__play-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent #fff;
	transform: translate(-40%, -50%);
}

.projeto-film__play:hover .projeto-film__play-icon,
.projeto-film__play:focus-visible .projeto-film__play-icon {
	background: #00a5cf;
	transform: scale(1.06);
}

.projeto-film__embed.is-playing .projeto-film__play {
	opacity: 0;
	background: transparent;
	transition: opacity 0.25s ease;
}

.projeto-film__embed.is-playing:hover .projeto-film__play {
	opacity: 1;
	background: rgba(0, 59, 74, 0.22);
}

.projeto-film__embed.is-playing .projeto-film__play-icon {
	background: rgba(0, 59, 74, 0.72);
}

.projeto-film__embed.is-playing .projeto-film__play-icon::after {
	width: 16px;
	height: 18px;
	border: 0;
	border-left: 5px solid #fff;
	border-right: 5px solid #fff;
	transform: translate(-50%, -50%);
}

/* --------------------------------------------------------------------------
   Galeria
   -------------------------------------------------------------------------- */

.projeto-gallery {
	padding: var(--projeto-section) 0;
	background: var(--projeto-white);
}

.projeto-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.projeto-gallery__item {
	margin: 0;
}

.projeto-gallery__link {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--projeto-radius);
	line-height: 0;
	box-shadow: var(--projeto-shadow);
	cursor: zoom-in;
}

.projeto-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: opacity 0.3s ease, transform 0.5s ease;
}

.projeto-gallery__zoom {
	display: none;
}

.projeto-gallery__link:hover .projeto-gallery__image,
.projeto-gallery__link:focus-visible .projeto-gallery__image {
	opacity: 0.8;
}

.projeto-gallery__caption {
	padding: 0.7rem 0.1rem 0;
	font-size: 13px;
	color: var(--projeto-muted);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.projeto-lightbox {
	width: min(92vw, 88rem);
	max-width: 92vw;
	max-height: 92vh;
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--projeto-white);
}

.projeto-lightbox::backdrop {
	background: rgba(0, 59, 74, 0.92);
}

.projeto-lightbox__figure {
	margin: 0;
	text-align: center;
}

.projeto-lightbox__image {
	display: block;
	max-width: 92vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
	border-radius: var(--projeto-radius);
}

.projeto-lightbox__caption {
	margin-top: 0.85rem;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.75);
}

.projeto-lightbox__close,
.projeto-lightbox__nav {
	position: fixed;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid var(--projeto-white);
	background: transparent;
	color: var(--projeto-white);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.projeto-lightbox__close:hover,
.projeto-lightbox__nav:hover {
	background: var(--projeto-white);
	color: var(--projeto-teal);
}

.projeto-lightbox__close {
	top: 1.25rem;
	right: 1.25rem;
}

.projeto-lightbox__nav--prev {
	top: 50%;
	left: 1.25rem;
	transform: translateY(-50%);
}

.projeto-lightbox__nav--next {
	top: 50%;
	right: 1.25rem;
	transform: translateY(-50%);
}

.projeto-lightbox.is-single .projeto-lightbox__nav {
	display: none;
}

/* --------------------------------------------------------------------------
   Responsivo (mesmos cortes do Elementor: 1024 / 767)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	body.single-projeto {
		--projeto-section: 80px;
		--projeto-gutter: 40px;
	}

	.projeto-hero__content {
		padding: 200px 0 40px;
	}

	.projeto-section-title {
		font-size: 32px;
	}

	.projeto-facts__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.projeto-facts__item {
		padding: 1.35rem 0;
	}

	.projeto-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.single-projeto {
		--projeto-section: 64px;
		--projeto-gutter: 24px;
	}

	.projeto-hero {
		min-height: 100vh;
	}

	.projeto-hero__content {
		padding: 120px 0 24px;
	}

	.projeto-section-title {
		font-size: 22px;
	}

	.projeto-film__heading {
		font-size: 22px;
	}

	.projeto-facts__item dd {
		font-size: 22px;
	}

	.projeto-gallery__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	body.single-projeto .site-footer {
		color: #333333;
	}

	.projeto-lightbox__nav--prev {
		left: 0.5rem;
	}

	.projeto-lightbox__nav--next {
		right: 0.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.projeto-gallery__image {
		transition: none;
	}

	.projeto-hero__video-wrap {
		display: none;
	}
}

/* RTL (Polylang + Astra definem dir="rtl"): o flex-start já espelha; só o text-align físico precisa de correção. */
html[dir="rtl"] .projeto-hero,
html[dir="rtl"] .projeto-hero__title,
html[dir="rtl"] .projeto-hero__inner,
html[dir="rtl"] .projeto-hero__content {
	text-align: start;
}
