/* ==========================================================================
   Ecos do Amanhã: estilos do tema
   Referência: Figma "LP - Ecos do amanhã" (desktop 1440 px).
   ========================================================================== */

/* 1. Variáveis -------------------------------------------------------------- */
:root {
	--ecos-azul: #162043;
	--ecos-verde: #599e64;
	--ecos-laranja: #e0781d;
	--ecos-azul-claro: #0075db;
	--ecos-texto: #637390;
	--ecos-cinza: #b6b8bd;
	--ecos-gelo: #f1f8ff;
	--ecos-branco: #fff;
	--ecos-font-titulo: 'Titillium Web', Arial, sans-serif;
	--ecos-font-texto: 'Inter', Arial, sans-serif;
	--ecos-font-botao: 'DM Sans', Arial, sans-serif;
	--ecos-pad-x: 64px;
	--ecos-pad-y: 112px;
	--ecos-max: 1440px;
}

/* 2. Base ------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.ecos {
	margin: 0;
	background: var(--ecos-azul);
	color: var(--ecos-branco);
	font-family: var(--ecos-font-texto);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

:where(body.ecos) :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
:where(body.ecos) :where(ul) { padding: 0; list-style: none; }
:where(body.ecos) img { max-width: 100%; height: auto; display: block; }
:where(body.ecos) a { color: inherit; text-decoration: none; }
:where(body.ecos) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.ecos a:focus-visible,
.ecos button:focus-visible,
.ecos [tabindex]:focus-visible { outline: 2px solid var(--ecos-laranja); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.ecos-skip {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	padding: 12px 16px; background: var(--ecos-branco); color: var(--ecos-azul);
	font-family: var(--ecos-font-titulo); font-weight: 600;
}
.ecos-skip:focus { top: 16px; }

/* Âncoras: compensa a barra de admin do WordPress quando logado. */
.ecos-main section[id] { scroll-margin-top: 0; }
.admin-bar .ecos-main section[id] { scroll-margin-top: 32px; }

/* 3. Tipografia compartilhada ---------------------------------------------- */
.ecos-heading { display: flex; flex-direction: column; gap: 16px; }
.ecos-heading--center { text-align: center; align-items: center; }

.ecos-pretitle {
	font-family: var(--ecos-font-titulo);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--ecos-verde);
}

.ecos-title {
	font-family: var(--ecos-font-titulo);
	font-weight: 400;
	font-size: 36px;
	line-height: 1.2;
	color: var(--ecos-azul);
}
.ecos-title--light { color: var(--ecos-branco); }
.ecos-title strong { font-weight: 600; color: var(--ecos-laranja); }

.ecos-text { font-size: 18px; line-height: 1.6; font-weight: 400; }
.ecos-text--light { color: var(--ecos-branco); }
.ecos-text--muted { color: var(--ecos-texto); }
.ecos-text strong { font-weight: 700; }
/* No layout, os parágrafos são separados por uma linha em branco (28,8 px). */
.ecos-text p + p { margin-top: 1.6em; }

/* 4. Cabeçalho -------------------------------------------------------------- */
.ecos-header {
	position: relative;
	z-index: 50;
	background: var(--ecos-azul);
	padding: 24px 37px;
}
.ecos-header__inner {
	max-width: var(--ecos-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.ecos-header__brand { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.ecos-header__logo img { width: 235.161px; height: 88.37px; }
.ecos-header__divider { width: 2.9px; height: 84.919px; background: var(--ecos-branco); flex-shrink: 0; }
.ecos-header__partners { display: flex; align-items: center; gap: 36px; }
.ecos-header__repsol img { width: 107.366px; height: 52.831px; }
.ecos-header__unesco img { width: 82.452px; height: 61.03px; }

.ecos-nav { display: flex; align-items: center; gap: 32px; }
.ecos-nav__item {
	position: relative;
	display: flex;
	align-items: center;
	padding: 8px 17px;
	font-family: var(--ecos-font-titulo);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--ecos-branco);
	white-space: nowrap;
	transition: color .2s ease;
}
.ecos-nav__item::before {
	content: "";
	position: absolute;
	left: 0; top: 50%;
	width: 4px; height: 35px;
	transform: translateY(-50%);
	background: var(--ecos-verde);
}
.ecos-nav__item:hover { color: var(--ecos-verde); }

.ecos-nav-toggle { display: none; }

/* 5. Hero ------------------------------------------------------------------- */
.ecos-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--ecos-azul);
	background: var(--ecos-azul);
}
.ecos-hero__image { height: 735px; margin-bottom: -282px; }
.ecos-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.ecos-hero__content {
	position: relative;
	width: 100%;
	max-width: calc(1000px + 2 * var(--ecos-pad-x));
	margin: 0 auto;
	padding: 0 var(--ecos-pad-x);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}
.ecos-hero__title {
	max-width: 713px;
	font-family: var(--ecos-font-titulo);
	line-height: 1.2;
	color: var(--ecos-branco);
}
.ecos-hero__title-main { display: block; font-weight: 700; font-size: 64px; }
.ecos-hero__title-sub { display: block; font-weight: 300; font-size: 48px; line-height: 1.15; }
.ecos-hero__title-sub strong { font-weight: 600; color: var(--ecos-laranja); }
.ecos-hero__scroll {
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 10px;
	transition: transform .2s ease;
}
.ecos-hero__scroll img { width: 32px; height: 32px; }
.ecos-hero__scroll:hover { transform: translateY(4px); }

/* 6. Quem somos ------------------------------------------------------------- */
.ecos-quem {
	position: relative;
	margin-top: -1px;
	padding: var(--ecos-pad-y) var(--ecos-pad-x);
	background:
		linear-gradient(180deg, #162043 2.64%, rgba(22, 32, 67, .66) 51.128%, #162043 100%),
		url('../img/quem-somos-bg.webp') center / cover no-repeat,
		var(--ecos-azul);
}
.ecos-quem__inner {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}
.ecos-quem__heading { max-width: 524px; }
.ecos-quem__logos {
	display: flex;
	align-items: flex-end;
	gap: 76px;
	height: 176px;
}
.ecos-quem__repsol img { width: 237.408px; height: 116.82px; }
.ecos-quem__unesco img { width: 182.386px; height: 135px; }

/* 7. Objetivos -------------------------------------------------------------- */
.ecos-objetivos {
	padding: var(--ecos-pad-y) var(--ecos-pad-x);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	background: linear-gradient(180deg, #162043 0%, #162043 52.404%, #fff 52.414%, #f1f8ff 100%);
}
.ecos-objetivos__heading { max-width: 576px; }
.ecos-objetivos__grid {
	width: 100%;
	max-width: var(--ecos-max);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}
.ecos-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 20px;
	background: var(--ecos-branco);
	border-radius: 5px;
	text-align: center;
}
.ecos-card__icon { width: 80px; height: 80px; }
.ecos-card__title {
	font-family: var(--ecos-font-titulo);
	font-weight: 600;
	font-size: 24px;
	line-height: 1.3;
	color: var(--ecos-azul);
}
.ecos-card__text { font-size: 18px; line-height: 1.6; color: var(--ecos-texto); }

/* 8. Legado (slider) -------------------------------------------------------- */
.ecos-legado {
	position: relative;
	overflow: hidden;
	padding: var(--ecos-pad-y) var(--ecos-pad-x);
	background:
		linear-gradient(-64.117deg, rgba(0, 0, 0, 0) 30.945%, rgba(0, 0, 0, .79) 81.474%),
		url('../img/legado-bg.webp') center / cover no-repeat,
		var(--ecos-gelo);
}
.ecos-legado__inner {
	max-width: var(--ecos-max);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.ecos-legado__heading .ecos-title,
.ecos-legado__heading .ecos-text { max-width: 548px; }

.ecos-slider { display: flex; flex-direction: column; gap: 32px; }
/* A janela vai até a borda direita da tela: o 4º card aparece cortado, como no layout. */
.ecos-slider__window {
	margin-right: calc(-1 * var(--ecos-pad-x));
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.ecos-slider__window::-webkit-scrollbar { display: none; }
@media (min-width: 1569px) {
	/* Telas maiores que o layout: a janela também chega à borda da tela. */
	.ecos-slider__window { margin-right: calc((100vw - var(--ecos-max)) / -2); }
}
.ecos-slider__track {
	display: flex;
	gap: 30px;
	width: max-content;
	padding-right: var(--ecos-pad-x);
}
.ecos-legado-card {
	scroll-snap-align: start;
	flex: 0 0 auto;
	width: 417.333px;
	min-height: 752px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px 20px;
	background: var(--ecos-verde);
	border-radius: 5px;
	overflow: hidden;
}
.ecos-legado-card__head { display: flex; flex-direction: column; gap: 10px; max-width: 352px; }
.ecos-legado-card__title {
	font-family: var(--ecos-font-titulo);
	font-weight: 600;
	font-size: 24px;
	line-height: 1.3;
	color: var(--ecos-branco);
}
.ecos-legado-card__bar { display: block; width: 73px; height: 5px; background: var(--ecos-azul-claro); }
.ecos-legado-card__img { width: 100%; aspect-ratio: 377 / 349; object-fit: cover; border-radius: 10px; }
.ecos-legado-card__text { font-size: 18px; line-height: 1.6; color: var(--ecos-branco); }

.ecos-slider__nav { display: flex; justify-content: flex-end; gap: 20px; }
.ecos-slider__btn { width: 48px; height: 48px; border-radius: 5px; transition: opacity .2s ease, transform .2s ease; }
.ecos-slider__btn img { width: 48px; height: 48px; }
.ecos-slider__btn:not(:disabled):hover { transform: translateY(-2px); }
.ecos-slider__btn:disabled { cursor: default; }

/* 9. Governança ------------------------------------------------------------- */
.ecos-governanca {
	background: var(--ecos-branco);
	padding: var(--ecos-pad-x);
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--ecos-azul);
}
.ecos-governanca__intro {
	max-width: 1000px;
	width: 100%;
	padding: 64px 0 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}
.ecos-governanca__intro .ecos-heading { width: 100%; }

.ecos-parceiros {
	width: 100%;
	max-width: var(--ecos-max);
	padding: 24px 0 11px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 56px;
}
.ecos-parceiros__grupo { display: flex; flex-direction: column; align-items: stretch; gap: 16px; max-width: 100%; }
.ecos-parceiros__titulo {
	font-family: var(--ecos-font-titulo);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-transform: uppercase;
	text-align: center;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ecos-cinza);
}
.ecos-parceiros__titulo--laranja { color: var(--ecos-laranja); }
.ecos-parceiros__titulo--verde { color: var(--ecos-verde); }
.ecos-parceiros__titulo--azul { color: var(--ecos-azul); }
.ecos-parceiros__logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 24px 56px;
}
.ecos-parceiros__logos--chairs { padding-top: 7px; }
.ecos-parceiros__logos li { flex: 0 0 auto; max-width: 100%; }
.ecos-parceiros__logos img { width: 100%; height: auto; }
.ecos-parceiros__logos a { display: block; transition: opacity .2s ease; }
.ecos-parceiros__logos a:hover { opacity: .8; }

/* 10. Notícias -------------------------------------------------------------- */
.ecos-noticias {
	background: var(--ecos-branco);
	padding: var(--ecos-pad-y) 200px 64px;
	color: var(--ecos-azul);
}
.ecos-noticias__inner {
	max-width: 1040px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.ecos-noticias__titulo {
	font-family: var(--ecos-font-titulo);
	font-weight: 600;
	font-size: 24px;
	line-height: 1.3;
	color: var(--ecos-laranja);
}

.ecos-post-data { display: block; font-size: 14px; line-height: normal; color: #8e8e93; }

.ecos-destaque { display: flex; gap: 32px; align-items: flex-start; border-radius: 16px; }
.ecos-destaque__img { flex: 0 0 520px; display: block; }
.ecos-destaque__img img { width: 520px; height: 360px; object-fit: cover; border-radius: 12px; }
.ecos-destaque__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ecos-destaque__titulo {
	font-family: var(--ecos-font-titulo);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
	color: var(--ecos-azul);
}
.ecos-destaque__resumo { font-size: 16px; line-height: 1.6; color: #4e4e4e; }

.ecos-leia {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 500;
	line-height: normal;
	color: rgba(22, 32, 67, .7);
	transition: color .2s ease;
}
.ecos-leia img { width: 5.5px; height: 9.5px; }
.ecos-leia--destaque { gap: 8px; }
.ecos-leia--destaque img { width: 18px; height: 18px; }
.ecos-leia:hover { color: var(--ecos-azul); }
.ecos-destaque__titulo a:hover,
.ecos-lista__titulo a:hover { color: var(--ecos-azul-claro); }

.ecos-lista { display: flex; flex-direction: column; }
.ecos-lista__item { display: flex; gap: 12px; align-items: flex-start; padding: 24px 0; }
.ecos-lista__icon { flex: 0 0 48px; width: 48px; height: 29px; }
.ecos-lista__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ecos-lista__titulo {
	font-family: var(--ecos-font-titulo);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	color: var(--ecos-azul);
}
.ecos-lista__resumo {
	width: 100%;
	font-size: 15px;
	line-height: 1.5;
	color: #4e4e4e;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* No layout há 16 px entre o bloco de texto e o "Leia mais" (8 px de gap + 8 px). */
.ecos-lista__body .ecos-leia { margin-top: 8px; }

.ecos-noticias__mais { display: flex; justify-content: flex-end; }
.ecos-ver-tudo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--ecos-font-botao);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.5;
	color: #000;
	font-variation-settings: "opsz" 14;
}
.ecos-ver-tudo img { width: 24px; height: 24px; transition: transform .2s ease; }
.ecos-ver-tudo:hover img { transform: translate(2px, -2px); }

/* 11. Nas redes ------------------------------------------------------------- */
.ecos-redes {
	padding: var(--ecos-pad-y) var(--ecos-pad-x);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 51px;
	background: var(--ecos-azul);
}
.ecos-redes__head {
	width: 100%;
	max-width: var(--ecos-max);
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 32px;
}
.ecos-redes__head .ecos-heading { width: 652px; max-width: 100%; }
.ecos-redes__title { max-width: 548px; }
.ecos-redes__text { width: 548px; max-width: 100%; flex-shrink: 0; }
.ecos-redes__grid {
	width: 100%;
	max-width: var(--ecos-max);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}
.ecos-ig-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 19px; /* 20 px no Figma, com a borda por dentro */
	background: var(--ecos-branco);
	border: 1px solid var(--ecos-cinza);
	border-radius: 20px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ecos-ig-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, .25); }
.ecos-ig-card__img { width: 100%; height: 358px; object-fit: cover; border-radius: 10px; }
.ecos-ig-card__perfil { display: flex; align-items: center; gap: 15px; height: 64px; }
.ecos-ig-card__avatar {
	flex: 0 0 64px;
	width: 64px; height: 64px;
	border-radius: 50%;
	background: var(--ecos-azul);
	display: flex; align-items: center; justify-content: center;
}
.ecos-ig-card__avatar img { width: 51.84px; height: 19.481px; }
.ecos-ig-card__handle { font-size: 14px; line-height: 1.6; color: var(--ecos-azul-claro); }

/* 12. Rodapé ---------------------------------------------------------------- */
.ecos-footer {
	background: var(--ecos-azul);
	padding: 32px var(--ecos-pad-x) 64px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 80px;
}
.ecos-footer__top,
.ecos-footer__bottom {
	width: 100%;
	max-width: var(--ecos-max);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.ecos-footer__top {
	padding: 19px 0; /* bordas por dentro, como no Figma */
	border-top: 1px solid rgba(255, 255, 255, .1);
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.ecos-footer__nav { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.ecos-footer__nav a {
	font-family: var(--ecos-font-titulo);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--ecos-branco);
	transition: color .2s ease;
}
.ecos-footer__nav a:hover { color: var(--ecos-verde); }
.ecos-footer__social { display: flex; align-items: center; gap: 16px; }
.ecos-footer__social img { width: 27.69px; height: 27.69px; }
.ecos-footer__social a:hover { opacity: .8; }

.ecos-footer__brand { position: relative; width: 335px; height: 46.991px; flex-shrink: 0; }
.ecos-footer__brand > * { position: absolute; }
.ecos-footer__logo { left: 0; top: 0; width: 122.783px; height: 46.14px; }
.ecos-footer__divider { left: 144.38px; top: .38px; width: 1.52px; height: 44.338px; background: var(--ecos-branco); }
.ecos-footer__repsol { left: 164.47px; top: 6.32px; }
.ecos-footer__repsol img { width: 81.733px; height: 40.218px; }
.ecos-footer__unesco { left: 272.4px; top: 0; }
.ecos-footer__unesco img { width: 62.495px; height: 46.34px; }
.ecos-footer__copy { font-size: 14px; line-height: 1.6; color: var(--ecos-branco); text-align: center; }

/* 13. Posts e listagens (fora do layout aprovado) -------------------------- */
.ecos-conteudo {
	background: var(--ecos-branco);
	color: var(--ecos-azul);
	padding: 80px var(--ecos-pad-x) 112px;
}
.ecos-conteudo > * { max-width: 800px; margin-left: auto; margin-right: auto; }
.ecos-artigo { display: flex; flex-direction: column; gap: 24px; }
.ecos-artigo__titulo {
	font-family: var(--ecos-font-titulo);
	font-weight: 700;
	font-size: 40px;
	line-height: 1.2;
	color: var(--ecos-azul);
	margin-bottom: 24px;
}
.ecos-artigo .ecos-artigo__titulo { margin-bottom: 0; }
.ecos-artigo__img img { width: 100%; border-radius: 12px; }
.ecos-artigo__texto { color: #4e4e4e; }
.ecos-artigo__texto > * + * { margin-top: 1em; }
.ecos-artigo__texto a { color: var(--ecos-azul-claro); text-decoration: underline; }
.ecos-artigo__texto h2,
.ecos-artigo__texto h3 { font-family: var(--ecos-font-titulo); color: var(--ecos-azul); line-height: 1.3; }
.ecos-artigo__texto ul { list-style: disc; padding-left: 1.4em; }
.ecos-paginacao .nav-links { display: flex; gap: 12px; margin-top: 24px; font-family: var(--ecos-font-titulo); font-weight: 600; }
.ecos-paginacao .current { color: var(--ecos-laranja); }

/* 14. Responsivo ------------------------------------------------------------
   O layout aprovado é desktop (1440 px). Abaixo disso, mesma linguagem visual,
   reorganizada (validar na homologação). */
@media (max-width: 1280px) {
	.ecos-header__inner { gap: 16px; }
	.ecos-nav { gap: 8px; }
	.ecos-nav__item { padding: 8px 12px; }
	.ecos-noticias { padding-left: var(--ecos-pad-x); padding-right: var(--ecos-pad-x); }
}

@media (max-width: 1100px) {
	:root { --ecos-pad-x: 40px; --ecos-pad-y: 88px; }

	/* Menu passa a abrir por botão */
	.ecos-header { padding: 16px 24px; }
	.ecos-nav-toggle {
		display: flex; flex-direction: column; justify-content: center; gap: 6px;
		width: 44px; height: 44px; padding: 10px; flex-shrink: 0;
	}
	.ecos-nav-toggle span { display: block; height: 2px; background: var(--ecos-branco); transition: transform .2s ease, opacity .2s ease; }
	.ecos-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.ecos-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.ecos-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.ecos-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px 24px 24px;
		background: var(--ecos-azul);
		border-top: 1px solid rgba(255, 255, 255, .1);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
		display: none;
	}
	.ecos-nav.is-open { display: flex; }
	.ecos-nav__item { padding: 16px 17px; }

	.ecos-objetivos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ecos-objetivos { background: linear-gradient(180deg, #162043 0%, #162043 30%, #fff 30.01%, #f1f8ff 100%); }
	.ecos-redes__head { flex-direction: column; align-items: flex-start; }
	.ecos-redes__text { width: auto; max-width: 548px; }
	.ecos-redes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ecos-redes__grid > :nth-child(3) { display: none; }
	.ecos-ig-card__img { height: auto; aspect-ratio: 377 / 358; }
	.ecos-destaque { flex-direction: column; }
	.ecos-destaque__img { flex: none; width: 100%; }
	.ecos-destaque__img img { width: 100%; height: auto; aspect-ratio: 520 / 360; }
}

@media (max-width: 782px) {
	.admin-bar .ecos-main section[id] { scroll-margin-top: 46px; }
}

@media (max-width: 767px) {
	:root { --ecos-pad-x: 20px; --ecos-pad-y: 64px; }
	body.ecos { font-size: 16px; }

	.ecos-header__brand { gap: 12px; }
	.ecos-header__logo img { width: 141px; height: 53px; }
	.ecos-header__divider { width: 2px; height: 51px; }
	.ecos-header__partners { gap: 12px; }
	.ecos-header__repsol img { width: 64px; height: 32px; }
	.ecos-header__unesco img { width: 49px; height: 37px; }

	.ecos-title { font-size: 28px; }
	.ecos-text, .ecos-card__text, .ecos-legado-card__text { font-size: 16px; }

	.ecos-hero__image { height: 520px; margin-bottom: -160px; }
	.ecos-hero__title-main { font-size: 40px; }
	.ecos-hero__title-sub { font-size: 30px; }

	.ecos-quem__logos { height: auto; gap: 32px; padding-top: 32px; }
	.ecos-quem__repsol img { width: 150px; height: 74px; }
	.ecos-quem__unesco img { width: 115px; height: 85px; }

	.ecos-objetivos__grid { grid-template-columns: 1fr; }
	.ecos-objetivos { background: linear-gradient(180deg, #162043 0%, #162043 15%, #fff 15.01%, #f1f8ff 100%); }

	.ecos-legado-card { width: min(320px, calc(100vw - 2 * var(--ecos-pad-x) - 24px)); min-height: 0; }

	.ecos-governanca__intro { padding-top: 24px; }
	.ecos-parceiros { gap: 40px; }
	.ecos-parceiros__logos { gap: 24px 32px; }
	.ecos-parceiros__logos li { max-width: 42%; }

	.ecos-redes__grid { grid-template-columns: 1fr; }
	.ecos-redes__grid > :nth-child(3) { display: flex; }
	.ecos-ig-card__img { height: auto; aspect-ratio: 377 / 358; }

	.ecos-footer { gap: 40px; }
	.ecos-footer__top, .ecos-footer__bottom { flex-direction: column; align-items: flex-start; }
	.ecos-footer__nav { flex-direction: column; gap: 16px; }

	.ecos-artigo__titulo { font-size: 30px; }
}

@media (max-width: 480px) {
	.ecos-header { padding: 12px 16px; }
	.ecos-header__inner { gap: 12px; }
	.ecos-header__brand, .ecos-header__partners { gap: 10px; }
	.ecos-header__logo img { width: 120px; height: 45px; }
	.ecos-header__divider { height: 44px; }
	.ecos-header__repsol img { width: 54px; height: 27px; }
	.ecos-header__unesco img { width: 41px; height: 31px; }
	.ecos-nav { padding: 8px 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.ecos *, .ecos *::before, .ecos *::after { transition: none !important; }
	.ecos-slider__window { scroll-behavior: auto; }
}
