/**
 * MAAC — melhorias de responsividade (mobile-first)
 */

/* Base: evitar overflow horizontal */
html {
	overflow-x: clip;
}

body.maac-site {
	overflow-x: clip;
	overflow-x: hidden;
}

body.maac-site img,
body.maac-site video,
body.maac-site iframe,
body.maac-site svg {
	max-width: 100%;
	height: auto;
}

body.maac-site img.maac-home-banner__image {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
}

body.maac-site img.maac-card-media__image,
body.maac-site .maac-card-noticia__media img,
body.maac-site .maac-card-projeto__media img,
body.maac-site .maac-card-story__media img,
body.maac-site .maac-priority-panel__media img,
body.maac-site .maac-prioridade-hero__media img,
body.maac-site .maac-prioridade-card__media img {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
}

body.maac-site .maac-card-story__media,
body.maac-site .maac-card-story__media img,
body.maac-site .maac-card-story__media .maac-card-media__image {
	border-radius: 6px;
}

.prose-maac img,
.prose-maac-article img,
.prose-maac-area img {
	max-width: 100%;
	height: auto;
}

.prose-maac table,
.prose-maac-article table,
.prose-maac-area table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Grelhas fluidas em ecras estreitos */
.maac-card-grid--news,
.maac-doc-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}

@media (min-width: 640px) {
	.maac-legislation-grid {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
	}
}

.maac-card-grid--projects {
	gap: 1.5rem;
}

.maac-card-grid--projects > .maac-card-projeto {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
}

@media (min-width: 768px) {
	.maac-card-grid--projects {
		gap: clamp(1.75rem, 3.5vw, 2.75rem) 5%;
	}

	.maac-card-grid--projects > .maac-card-projeto {
		flex: 0 1 40%;
		width: 40%;
		max-width: 40%;
	}
}

.maac-scroll-carousel__track {
	grid-auto-columns: minmax(min(100%, 14.5rem), 1fr);
}

.maac-home-news__track,
.maac-scroll-carousel__track {
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

/* —— Menu mobile — painel fullscreen animado —— */
@media (max-width: 767px) {
	:root {
		--site-header-offset: calc(3.85rem + env(safe-area-inset-top, 0px));
	}

	.maac-nav-toggle {
		width: 2.75rem;
		height: 2.75rem;
		min-width: 2.75rem;
		min-height: 2.75rem;
	}

	.maac-mobile-shell {
		position: fixed;
		inset: 0;
		z-index: 1200;
		display: block;
		pointer-events: none;
		visibility: hidden;
	}

	.maac-mobile-shell.is-open {
		pointer-events: auto;
		visibility: visible;
	}

	.maac-mobile-shell__backdrop {
		position: absolute;
		inset: 0;
		border: 0;
		background: rgb(15 23 42 / 0.52);
		opacity: 0;
		backdrop-filter: blur(0);
		-webkit-backdrop-filter: blur(0);
		transition:
			opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
			backdrop-filter 0.38s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.maac-mobile-shell.is-open .maac-mobile-shell__backdrop {
		opacity: 1;
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
	}

	.maac-mobile-shell__panel {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		width: min(100%, 24.5rem);
		max-width: 100%;
		background:
			linear-gradient(180deg, #fff 0%, var(--maac-porcelain, #fcfff7) 100%);
		box-shadow: -12px 0 40px rgb(4 104 101 / 0.14);
		transform: translateX(104%);
		transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
		will-change: transform;
	}

	.maac-mobile-shell.is-open .maac-mobile-shell__panel {
		transform: translateX(0);
	}

	.maac-mobile-shell__head {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 0.75rem;
		padding:
			calc(0.85rem + env(safe-area-inset-top, 0px))
			1rem 0.85rem 1.15rem;
		border-bottom: 1px solid rgb(var(--maac-storm-rgb, 4 104 101) / 0.1);
		background: linear-gradient(135deg, var(--maac-storm, #046865) 0%, #035652 100%);
		color: #fff;
	}

	.maac-mobile-shell__eyebrow {
		margin: 0;
		font-size: 0.6875rem;
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: rgb(255 255 255 / 0.78);
	}

	.maac-mobile-shell__title {
		margin: 0.25rem 0 0;
		font-size: 1.125rem;
		font-weight: 700;
		line-height: 1.25;
		color: #fff;
	}

	.maac-mobile-shell__close {
		display: inline-flex;
		flex-shrink: 0;
		align-items: center;
		justify-content: center;
		width: 2.5rem;
		height: 2.5rem;
		padding: 0;
		border: 1px solid rgb(255 255 255 / 0.28);
		border-radius: 999px;
		background: rgb(255 255 255 / 0.1);
		color: #fff;
		cursor: pointer;
		transition: background 0.2s ease, transform 0.2s ease;
	}

	.maac-mobile-shell__close:hover,
	.maac-mobile-shell__close:focus-visible {
		background: rgb(255 255 255 / 0.2);
		transform: scale(1.04);
	}

	.maac-mobile-shell__body {
		flex: 1;
		min-height: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		padding: 1rem 1rem 0.5rem;
	}

	.maac-mobile-search {
		position: relative;
		display: block;
		margin-bottom: 1rem;
	}

	.maac-mobile-search__icon {
		position: absolute;
		top: 50%;
		left: 0.85rem;
		color: #64748b;
		pointer-events: none;
		transform: translateY(-50%);
	}

	.maac-mobile-search input {
		width: 100%;
		min-height: 2.85rem;
		padding: 0.65rem 0.85rem 0.65rem 2.5rem;
		border: 1px solid #e2e8f0;
		border-radius: 999px;
		background: #fff;
		font: inherit;
		font-size: 1rem;
		box-shadow: 0 2px 10px rgb(15 23 42 / 0.04);
	}

	.maac-mobile-shell__menu .maac-mobile-nav__tree {
		display: flex;
		flex-direction: column;
		gap: 0.65rem;
	}

	.maac-mobile-shell.is-open .maac-mobile-nav__item {
		opacity: 0;
		transform: translateY(0.65rem);
		animation: maac-mobile-item-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	}

	.maac-mobile-shell.is-open .maac-mobile-nav__item:nth-child(1) { animation-delay: 0.05s; }
	.maac-mobile-shell.is-open .maac-mobile-nav__item:nth-child(2) { animation-delay: 0.09s; }
	.maac-mobile-shell.is-open .maac-mobile-nav__item:nth-child(3) { animation-delay: 0.13s; }
	.maac-mobile-shell.is-open .maac-mobile-nav__item:nth-child(4) { animation-delay: 0.17s; }
	.maac-mobile-shell.is-open .maac-mobile-nav__item:nth-child(5) { animation-delay: 0.21s; }
	.maac-mobile-shell.is-open .maac-mobile-nav__item:nth-child(6) { animation-delay: 0.25s; }
	.maac-mobile-shell.is-open .maac-mobile-nav__item:nth-child(7) { animation-delay: 0.29s; }

	@keyframes maac-mobile-item-in {
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.maac-mobile-nav__item--link,
	.maac-mobile-nav__item--mega {
		overflow: hidden;
		border: 1px solid rgb(var(--maac-storm-rgb, 4 104 101) / 0.12);
		border-radius: 5px;
		background: #fff;
		box-shadow: 0 4px 14px rgb(4 104 101 / 0.06);
	}

	.maac-mobile-nav__item--link > a {
		display: flex;
		align-items: center;
		min-height: 3rem;
		padding: 0.85rem 1rem;
		font-size: 0.9375rem;
		font-weight: 700;
		color: var(--maac-storm, #046865);
		text-decoration: none;
	}

	.maac-mobile-nav__item--link > a:hover,
	.maac-mobile-nav__item--link > a:focus-visible {
		background: rgb(var(--maac-storm-rgb, 4 104 101) / 0.05);
	}

	.maac-mobile-nav__mega-toggle {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		gap: 0.65rem;
		min-height: 3rem;
		padding: 0.85rem 1rem;
		border: 0;
		background: transparent;
		font: inherit;
		font-size: 0.9375rem;
		font-weight: 700;
		color: var(--maac-storm, #046865);
		text-align: left;
		cursor: pointer;
	}

	.maac-mobile-nav__item--mega.is-open > .maac-mobile-nav__mega-toggle {
		background: rgb(var(--maac-storm-rgb, 4 104 101) / 0.06);
	}

	.maac-mobile-nav__chevron {
		flex-shrink: 0;
		color: var(--maac-sea, #21a0a0);
		transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.maac-mobile-nav__item--mega.is-open .maac-mobile-nav__chevron {
		transform: rotate(180deg);
	}

	.maac-mobile-nav__mega-panel {
		padding: 0 0.85rem 0.85rem;
		border-left: none;
		margin-left: 0;
	}

	.maac-mobile-nav__mega-panel[hidden] {
		display: none !important;
	}

	.maac-mobile-nav__col + .maac-mobile-nav__col {
		margin-top: 0.85rem;
	}

	.maac-mobile-nav__col-title {
		margin: 0 0 0.4rem;
		padding: 0 0.15rem;
		color: #64748b;
	}

	.maac-mobile-nav__col-links {
		display: grid;
		gap: 0.35rem;
	}

	.maac-mobile-nav__col-links a {
		display: block;
		padding: 0.55rem 0.65rem;
		border: 1px solid #eef2f7;
		border-radius: 5px;
		background: #f8fafc;
		text-decoration: none;
	}

	.maac-mobile-nav__col-links a:hover,
	.maac-mobile-nav__col-links a:focus-visible {
		border-color: rgb(var(--maac-sea-rgb, 33 160 160) / 0.35);
		background: #fff;
	}

	.maac-mobile-nav__link-label {
		font-size: 0.875rem;
		font-weight: 600;
		color: #1e293b;
	}

	.maac-mobile-nav__mega-desc,
	.maac-mobile-nav__link-desc {
		display: none !important;
	}

	.maac-mobile-nav__cta {
		display: inline-flex;
		align-items: center;
		margin-top: 0.65rem;
		padding: 0.45rem 0.15rem;
		font-size: 0.8125rem;
		font-weight: 700;
		color: var(--maac-sea, #21a0a0);
		text-decoration: none;
	}

	.maac-mobile-shell__foot {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.65rem;
		padding:
			0.85rem 1rem
			calc(0.85rem + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid rgb(var(--maac-storm-rgb, 4 104 101) / 0.1);
		background: rgb(255 255 255 / 0.92);
		backdrop-filter: blur(8px);
	}

	.maac-mobile-shell__cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 2.75rem;
		padding: 0.55rem 0.75rem;
		border: 1px solid rgb(var(--maac-storm-rgb, 4 104 101) / 0.18);
		border-radius: 5px;
		background: #fff;
		font-size: 0.8125rem;
		font-weight: 700;
		color: var(--maac-storm, #046865);
		text-decoration: none;
		text-align: center;
	}

	.maac-mobile-shell__cta--accent {
		border-color: transparent;
		background: var(--maac-sea, #21a0a0);
		color: #fff;
	}

	body.maac-mobile-nav-open {
		overflow: hidden;
		touch-action: none;
	}

	body.maac-mobile-nav-open .maac-mobile-shell__body {
		touch-action: pan-y;
	}

	@media (prefers-reduced-motion: reduce) {
		.maac-mobile-shell__backdrop,
		.maac-mobile-shell__panel,
		.maac-mobile-shell.is-open .maac-mobile-nav__item,
		.maac-nav-toggle span[aria-hidden="true"],
		.maac-mobile-nav__chevron {
			animation: none !important;
			transition: none !important;
		}

		.maac-mobile-shell.is-open .maac-mobile-nav__item {
			opacity: 1;
			transform: none;
		}
	}
}

/* —— Telefone (ate 639px) —— */
@media (max-width: 639px) {
	:root {
		--site-header-offset: calc(4.15rem + env(safe-area-inset-top, 0px));
	}

	.maac-container {
		padding-inline: clamp(0.75rem, 3.5vw, 1rem);
	}

	.maac-section-y {
		padding-block: clamp(2rem, 6vw, 2.75rem);
	}

	.maac-site-header .maac-brand__eyebrow {
		display: none;
	}

	.maac-site-footer__identity .maac-brand__eyebrow {
		display: block;
	}

	.maac-site-header .maac-brand__title {
		font-size: 0.6875rem;
		line-height: 1.25;
	}

	.maac-brand__mark {
		width: 2.125rem;
		height: 2.125rem;
	}

	.maac-site-header .maac-brand__logo,
	.maac-site-header .maac-brand__logo .custom-logo-link {
		display: inline-flex;
		align-items: center;
		max-width: min(var(--maac-logo-header-max-width, 12rem), calc(100vw - 6.5rem));
		min-width: 0;
	}

	.maac-site-header .maac-brand__logo img {
		max-width: 100%;
		max-height: var(--maac-logo-header-height, 2.75rem);
		width: auto;
		height: auto;
	}

	.maac-brand__logo--footer img {
		max-width: var(--maac-logo-footer-max-width, 9rem);
		max-height: var(--maac-logo-footer-max-height, 2.75rem);
		height: auto;
	}

	/* Banner home */
	.maac-home-banner {
		--maac-banner-nav-inset: 0.25rem;
		--maac-banner-nav-size: 2.5rem;
	}

	.maac-home-banner__viewport {
		aspect-ratio: 5 / 4;
	}

	.maac-home-banner__overlay {
		background: linear-gradient(
			to top,
			rgb(17 24 39 / 0.9) 0%,
			rgb(17 24 39 / 0.48) 36%,
			rgb(17 24 39 / 0.14) 64%,
			rgb(17 24 39 / 0.04) 100%
		);
	}

	.maac-home-banner__content,
	.maac-home-banner--has-events .maac-home-banner__content,
	.maac-container.maac-home-banner__content {
		justify-content: flex-end;
		align-items: flex-start;
		gap: 0;
		padding-top: 3.5rem;
		padding-bottom: 3.75rem;
		padding-inline: var(--maac-banner-content-gutter);
		max-width: none;
		width: 100%;
	}

	.maac-home-banner__title {
		max-width: 100%;
		font-size: clamp(1.15rem, 5vw, 1.45rem);
		line-height: 1.2;
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		text-shadow: 0 1px 12px rgb(0 0 0 / 0.35);
	}

	.maac-home-banner__desc {
		max-width: 100%;
		margin-top: 0.5rem;
		font-size: 0.8125rem;
		line-height: 1.4;
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		color: rgb(255 255 255 / 0.88);
	}

	.maac-home-banner__cta {
		margin-top: 0.75rem;
		padding: 0.4rem 0.9rem;
		font-size: 0.8125rem;
	}

	.maac-home-banner__nav {
		top: 50%;
		width: var(--maac-banner-nav-size);
		height: var(--maac-banner-nav-size);
		min-width: var(--maac-banner-nav-size);
		min-height: var(--maac-banner-nav-size);
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		font-size: 1.75rem;
		font-weight: 300;
		line-height: 1;
		color: rgb(255 255 255 / 0.95);
		text-shadow: 0 1px 10px rgb(0 0 0 / 0.5);
	}

	.maac-home-banner__nav--prev {
		left: var(--maac-banner-nav-inset);
	}

	.maac-home-banner__nav--next {
		right: var(--maac-banner-nav-inset);
	}

	.maac-home-banner__nav:hover,
	.maac-home-banner__nav:focus-visible {
		background: transparent;
		border: 0;
		color: #fff;
	}

	/* Hero institucional (mapa, etc.) */
	.maac-hero {
		padding: 2rem 0 1.5rem;
	}

	.maac-hero h1 {
		font-size: clamp(1.375rem, 5vw, 2rem);
		line-height: 1.2;
	}

	.maac-hero__lead {
		font-size: 0.9375rem;
	}

	/* Stats home */
	.maac-container.maac-home-hero {
		padding-block: 2rem;
	}

	.maac-home-hero__copy {
		max-width: none;
	}

	.maac-home-hero__stats {
		gap: 0.65rem;
	}

	.maac-home-hero .maac-stat-card {
		min-height: 5.5rem;
		padding: 0.9rem 0.65rem;
	}

	/* Carrosseis */
	.maac-scroll-carousel__nav {
		display: none;
	}

	.maac-scroll-carousel__track {
		scroll-snap-type: x mandatory;
		padding-inline: 0.15rem;
	}

	.maac-scroll-carousel__slide {
		scroll-snap-align: start;
	}

	/* Artigos / noticias — layout list trata mobile em maac-cards-pages.css */

	.maac-evento-details__actions {
		flex-direction: column;
	}

	.maac-evento-details__actions .maac-btn {
		width: 100%;
		justify-content: center;
	}

	.maac-story-main {
		padding: 1.25rem 0;
	}

	.maac-story-banner h1 {
		font-size: clamp(1.35rem, 5vw, 1.85rem);
	}

	.maac-story-banner__overlay {
		padding: 2rem 0 2.25rem;
	}

	.maac-evento-main {
		padding: 1.25rem 1.1rem;
	}

	.maac-article-hero h1 {
		font-size: clamp(1rem, 4.2vw, 1.25rem);
	}

	.maac-article-breadcrumbs .maac-container {
		font-size: 0.8125rem;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.maac-article-breadcrumbs [aria-current="page"] {
		display: block;
		margin-top: 0.2rem;
	}

	.maac-article-body {
		padding-block: 1.75rem 2rem;
	}

	.maac-article-lead {
		font-size: 1rem;
		padding-left: 1rem;
	}

	.maac-article-footer {
		justify-content: stretch;
	}

	.maac-article-footer .maac-btn {
		width: 100%;
	}

	.maac-share-bar__btn {
		min-width: 2.75rem;
		min-height: 2.75rem;
		padding: 0.375rem;
	}

	/* Comentarios */
	.maac-comments {
		padding-block: 1.75rem 2rem;
	}

	.maac-comment-form__field input[type="text"],
	.maac-comment-form__field input[type="email"],
	.maac-comment-form__field textarea {
		font-size: 1rem;
	}

	/* Formularios publicos — evitar zoom automatico no iOS */
	.maac-contact-form input,
	.maac-contact-form select,
	.maac-contact-form textarea,
	.maac-denuncia-form input,
	.maac-denuncia-form select,
	.maac-denuncia-form textarea,
	.maac-denuncia-track-form input,
	.maac-candidatura-form input,
	.maac-candidatura-form select,
	.maac-candidatura-form textarea,
	.maac-newsletter__form input,
	.maac-newsletter__form select,
	.maac-search__panel input,
	.maac-documents-archive-search__field input {
		font-size: 1rem;
	}

	.maac-evento-banner--image .maac-evento-banner__overlay,
	.maac-evento-banner--gradient .maac-evento-banner__overlay {
		padding: 1.75rem 0 1.5rem;
	}

	.maac-evento-banner h1 {
		font-size: clamp(1.45rem, 5.5vw, 2rem);
	}

	.maac-evento-banner__lead {
		font-size: 0.9375rem;
	}

	/* Areas tematicas */
	.maac-area-tabs {
		grid-template-columns: 1fr;
	}

	.maac-area-page__content,
	.maac-area-page__intro {
		padding: 0;
	}

	.maac-area-page__body {
		padding-block: 2rem 3rem;
	}

	/* Projectos home */
	.maac-home-projects__layout {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.maac-home-projects__intro {
		order: -1;
		padding-left: 0;
	}

	.maac-home-projects__intro::before {
		display: none;
	}

	.maac-home-projects__more .maac-btn {
		width: 100%;
		justify-content: center;
	}

	.maac-home-projects__carousel {
		padding-inline: 0;
	}

	.maac-home-projects__carousel .maac-scroll-carousel__track {
		padding-inline: 0;
	}

	.maac-home-projects__carousel .maac-scroll-carousel__slide--project {
		flex: 0 0 100%;
		flex-basis: 100%;
		width: 100%;
		min-width: 100%;
		max-width: 100%;
		align-items: stretch;
		justify-content: stretch;
		padding-inline: 0;
	}

	.maac-home-projects__carousel .maac-scroll-carousel__slide--project .maac-card-projeto--institutional {
		width: 100%;
		max-width: none;
		margin-inline: 0;
	}

	.maac-home-projects__carousel .maac-scroll-carousel__slide--project .maac-card-projeto {
		width: 100%;
		max-width: none;
		margin-inline: 0;
	}

	.maac-home-projects__carousel .maac-scroll-carousel__slide--project .maac-card-projeto__media {
		aspect-ratio: 4 / 3;
	}

	.maac-home-projects__carousel .maac-scroll-carousel__slide--project .maac-card-projeto__body {
		padding: 0.85rem 0.9rem 0.45rem;
	}

	.maac-home-projects__carousel .maac-scroll-carousel__slide--project .maac-card-projeto__title {
		font-size: 0.9375rem;
	}

	.maac-home-projects__carousel .maac-scroll-carousel__slide--project .maac-card-projeto__summary {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: 0.8125rem;
	}

	.maac-home-projects__carousel .maac-scroll-carousel__slide--project .maac-card-projeto__footer {
		padding: 0.65rem 0.9rem 0.85rem;
	}

	.maac-home-projects__carousel .maac-scroll-carousel__slide--project .maac-card-projeto__meta {
		display: none;
	}

	/* Eventos home — cards empilhados em telemovel */
	.maac-home-events__grid,
	.maac-eventos-archive .maac-evento-grid,
	.maac-related-eventos .maac-evento-grid {
		grid-template-columns: 1fr;
	}

	.maac-evento-list-item {
		grid-template-columns: 4.75rem 1fr;
		gap: 0.75rem;
		padding: 0.75rem;
	}

	.maac-evento-list-item__action {
		display: none;
	}

	.maac-evento-list-item__meta {
		flex-direction: column;
		gap: 0.15rem;
	}

	.maac-evento-mini {
		grid-template-columns: 3.75rem 1fr;
	}

	.maac-evento-mini__thumb {
		width: 3.75rem;
		height: 3.75rem;
	}

	/* Projectos */
	.maac-project-hero {
		min-height: clamp(20rem, 48vh, 30rem);
		padding: 2.5rem 0 2rem;
	}

	.maac-project-hero--image {
		min-height: clamp(22rem, 52vh, 34rem);
	}

	.maac-project-hero h1 {
		font-size: clamp(1.35rem, 5vw, 2rem);
	}

	.maac-project-section-nav {
		padding-inline: 0.25rem;
	}

	/* Documentos */
	.maac-doc-file-card--inline {
		grid-template-columns: auto 1fr;
	}

	.maac-doc-file-card--inline .maac-doc-file-card__header {
		grid-row: 1;
	}

	.maac-doc-file-card--inline .maac-doc-file-card__actions {
		grid-column: 1 / -1;
		flex-direction: column;
		margin-top: 0.65rem;
		padding-top: 0.65rem;
		border-top: 1px solid #f3f4f6;
	}

	.maac-doc-file-card__actions .maac-btn {
		width: 100%;
	}

	.maac-pdf-preview__header {
		flex-direction: column;
		align-items: stretch;
		gap: 0.65rem;
	}

	.maac-pdf-preview__toolbar {
		flex-wrap: wrap;
	}

	/* Home — comunicados, noticias e mapa */
	.maac-home-comunicados {
		margin-bottom: 1.25rem;
	}

	.maac-home-priorities {
		padding-bottom: 0;
	}

	.maac-home-priorities + .maac-band-teal {
		padding-top: 2.25rem;
	}

	.maac-home-priorities__intro {
		padding-inline: 0.15rem;
		margin-bottom: 1rem;
	}

	/* Mobile — modelo tipo World Bank: pilha vertical com gaps */
	.maac-home-priorities__stage {
		min-height: 0;
		overflow: visible;
		background: transparent;
		box-shadow: none;
		padding-inline: 0.85rem;
	}

	.maac-home-priorities__panels {
		flex-direction: column;
		align-items: stretch;
		gap: 0.55rem;
		min-height: 0;
	}

	.maac-priority-panel {
		z-index: 1;
		flex: 0 0 auto;
		width: 100%;
		min-height: 4.75rem;
		border-radius: 0.65rem;
		overflow: hidden;
		box-shadow: 0 4px 14px rgb(2 28 48 / 0.12);
		transition: min-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.maac-priority-panel.is-open,
	.maac-priority-panel:hover,
	.maac-priority-panel:focus-within {
		z-index: 2;
	}

	.maac-priority-panel.is-open {
		min-height: clamp(18rem, 52vh, 26rem);
	}

	.maac-priority-panel + .maac-priority-panel {
		border-left: 0;
		border-top: 0;
	}

	.maac-priority-panel__content {
		justify-content: flex-end;
		padding: 0.85rem 0.95rem 0.95rem;
		max-width: none;
	}

	.maac-priority-panel.is-open .maac-priority-panel__content {
		padding: 1.35rem 1.15rem 1.4rem;
		max-width: none;
	}

	.maac-priority-panel__footer {
		align-items: center;
		min-height: 0;
		gap: 0.75rem;
	}

	.maac-priority-panel:not(.is-open) .maac-priority-panel__footer {
		min-height: 2.75rem;
	}

	.maac-priority-panel__name {
		font-size: 1.05rem;
		font-weight: 700;
		line-height: 1.2;
		overflow-wrap: normal;
	}

	.maac-priority-panel.is-open .maac-priority-panel__name {
		font-size: clamp(1.55rem, 6.5vw, 2rem);
		font-weight: 800;
	}

	.maac-priority-panel.is-open .maac-priority-panel__footer {
		align-items: flex-start;
	}

	/* Aberto: como no anexo — só título, texto e «Saber mais» (sem botão −) */
	.maac-priority-panel.is-open .maac-priority-panel__plus {
		display: none;
	}

	.maac-priority-panel__excerpt {
		font-size: 0.95rem;
		line-height: 1.45;
		max-width: 36rem;
	}

	.maac-priority-panel__details {
		margin-top: 0;
	}

	.maac-priority-panel.is-open .maac-priority-panel__details {
		margin-top: 0.65rem;
	}

	.maac-priority-panel__plus {
		flex: 0 0 2.65rem;
		width: 2.65rem;
		height: 2.65rem;
		min-width: 2.65rem;
	}

	.maac-priority-panel__shade {
		background:
			linear-gradient(
				to top,
				rgb(0 0 0 / 0.72) 0%,
				rgb(0 0 0 / 0.4) 40%,
				rgb(0 0 0 / 0.12) 70%,
				transparent 100%
			);
	}

	.maac-priority-panel.is-open .maac-priority-panel__shade {
		background:
			linear-gradient(
				to top,
				rgb(0 0 0 / 0.78) 0%,
				rgb(0 0 0 / 0.48) 35%,
				rgb(0 0 0 / 0.16) 65%,
				transparent 100%
			);
	}

	.maac-home-comunicados__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		margin-bottom: 0.85rem;
	}

	.maac-home-comunicados__head h3 {
		font-size: 0.9375rem;
	}

	.maac-comunicado-card {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 0.5rem 1rem;
		min-height: 3.75rem;
		padding: 0.9rem 1rem;
	}

	.maac-comunicado-card__title {
		flex: 1 1 12rem;
		font-size: 0.9375rem;
		line-height: 1.45;
		overflow-wrap: anywhere;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.maac-comunicado-card__date {
		flex: 0 0 auto;
		margin-left: auto;
		font-size: 0.8125rem;
		white-space: nowrap;
	}

	.maac-comunicados-carousel__slide {
		transform: translateX(0.75rem);
	}

	.maac-comunicados-carousel__slide.is-leaving {
		transform: translateX(-0.75rem);
	}

	.maac-home-news__intro {
		margin-bottom: 1.25rem;
	}

	.maac-home-news__more .maac-btn {
		width: 100%;
		max-width: 20rem;
		margin-inline: auto;
	}

	.maac-band-teal .maac-scroll-carousel__slide--news {
		flex: 0 0 min(82%, 20rem);
		max-width: min(82%, 20rem);
	}

	.maac-map-cta {
		padding: 1.15rem 1rem;
	}

	.maac-map-cta h2 {
		font-size: clamp(1.2rem, 4.8vw, 1.5rem);
	}

	.maac-map-cta p {
		font-size: 0.875rem;
	}

	/* Parceiros */
	.maac-partners-marquee__list {
		gap: 1.25rem 1.5rem;
	}

	.maac-partners__item {
		width: 6.5rem;
	}

	/* Botoes full-width em formularios */
	.maac-contact-form .maac-btn,
	.maac-concurso-card .maac-btn {
		width: 100%;
	}

	.maac-concurso-card__actions .maac-btn--sm {
		min-height: 2.75rem;
		font-size: 0.875rem;
	}

	.maac-concurso-card--featured .maac-concurso-card__meta {
		grid-template-columns: 1fr;
	}

	.maac-concurso-card__meta-item dd {
		overflow-wrap: anywhere;
	}

	/* Indicadores ambientais */
	.maac-indicators-period-filter {
		flex-direction: column;
		align-items: stretch;
	}

	.maac-indicators-period-filter__fields {
		width: 100%;
	}

	.maac-indicators-period-filter__field {
		flex: 1;
		min-width: 0;
	}

	.maac-indicators-period-filter__field select {
		width: 100%;
		min-height: 2.75rem;
		font-size: 1rem;
	}

	.maac-indicators-highlights__value strong {
		font-size: clamp(1.5rem, 6vw, 1.85rem);
	}

	.maac-indicators-map-band {
		flex-direction: column;
		align-items: stretch;
	}

	.maac-indicators-map-band .maac-btn {
		width: 100%;
		justify-content: center;
	}

	.maac-indicator-chart__group {
		flex: 1 1 100%;
	}

	.maac-indicator-chart-card__body--columns,
	.maac-indicator-chart-card__body--series,
	.maac-indicator-chart-card__body--bars {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Multimédia */
	.maac-multimedia-carousel__nav {
		min-width: 2.75rem;
		min-height: 2.75rem;
	}

	.maac-multimedia-carousel:not(.maac-multimedia-carousel--video):not(.maac-multimedia-carousel--album) {
		padding-inline: 0.5rem;
	}

	.maac-multimedia-carousel--album {
		padding-inline: 2.5rem;
	}

	.maac-multimedia-carousel--video .maac-multimedia-carousel__nav {
		width: 2.75rem;
		height: 2.75rem;
	}

	/* Pagina O Ministerio */
	.maac-page-hero h1 {
		font-size: clamp(1.35rem, 5.2vw, 1.85rem);
	}

	.maac-page-hero__lead {
		font-size: 0.9375rem;
		line-height: 1.55;
	}

	.maac-page-hero__inner {
		padding-block: clamp(1.75rem, 4vw, 2.25rem) clamp(1.35rem, 3vw, 2rem);
	}

	.maac-page-hero__map,
	.maac-area-hero__map {
		width: min(72%, 18rem);
		height: 88%;
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
		mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
	}

	.maac-page-hero__map img,
	.maac-area-hero__map img {
		opacity: 0.16;
	}

	.maac-page-breadcrumbs {
		padding-block: 0.65rem;
		font-size: 0.8125rem;
		line-height: 1.45;
	}

	.maac-page-breadcrumbs [aria-current="page"] {
		overflow-wrap: anywhere;
	}

	.maac-page-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.maac-page-hero__actions .maac-btn {
		width: 100%;
		justify-content: center;
	}

	.maac-ministerio-split__grid {
		gap: 1.5rem;
	}

	.maac-ministerio-highlight {
		padding: 0;
	}

	.maac-ministerio-highlight p {
		font-size: 0.9375rem;
		line-height: 1.6;
	}

	.maac-ministerio-institution__image img {
		max-height: 16rem;
	}

	.maac-ministerio-indicators {
		padding-block: 1.75rem;
	}

	.maac-ministerio-indicators__stats {
		gap: 0.65rem;
	}

	.maac-ministerio-indicators .maac-stat-card {
		min-height: 6rem;
		padding: 1rem 0.75rem;
	}

	.maac-ministerio-indicators .maac-stat-card__value {
		font-size: clamp(1.625rem, 7vw, 2rem);
	}

	.maac-ministerio-indicators .maac-stat-card__label {
		font-size: 0.75rem;
		line-height: 1.3;
		hyphens: auto;
		overflow-wrap: break-word;
	}

	.maac-ministerio-parallax__viewport {
		height: clamp(16rem, 58vw, 24rem);
	}

	.maac-home-minister {
		text-align: center;
	}

	.maac-home-minister .maac-btn {
		width: 100%;
		max-width: 20rem;
		margin-inline: auto;
	}

	.maac-ministerio-team__grid {
		gap: 0.85rem;
	}

	.maac-team-card__name {
		font-size: 0.9375rem;
	}

	.maac-organic-structure__chart-wrap {
		-webkit-overflow-scrolling: touch;
		scroll-padding-inline: 1rem;
	}

	.maac-org-card {
		font-size: 0.8125rem;
	}

	/* Lightbox */
	.maac-lightbox {
		padding: 0.65rem;
	}

	.maac-lightbox__close {
		top: 0.65rem;
		right: 0.65rem;
		width: 2.75rem;
		height: 2.75rem;
		min-width: 2.75rem;
		min-height: 2.75rem;
	}

	.maac-lightbox__nav {
		width: 2.75rem;
		height: 2.75rem;
		min-width: 2.75rem;
		min-height: 2.75rem;
		font-size: 1.5rem;
	}

	.maac-lightbox__nav--prev {
		left: 0.35rem;
	}

	.maac-lightbox__nav--next {
		right: 0.35rem;
	}

	.maac-lightbox__figure img {
		max-height: 72vh;
	}

	/* Contactos */
	.maac-contact-page {
		gap: 1.5rem;
	}

	.maac-contact-meta-item {
		padding: 1rem 0;
	}

	.maac-contact-faq {
		margin-top: 2rem;
		min-width: 0;
		max-width: 100%;
		overflow-x: clip;
	}

	.maac-accordion__trigger-layout {
		align-items: flex-start;
	}

	/* Areas tematicas — hero */
	.maac-area-hero {
		min-height: 220px;
	}

	.maac-area-hero .maac-container--area {
		padding-block: 1.75rem 1.35rem;
	}

	.maac-area-hero h1 {
		font-size: clamp(1.5rem, 6vw, 2rem);
	}

	.maac-area-hero__lead {
		font-size: 0.9375rem;
	}

	.maac-area-hero__stats {
		gap: 0.5rem;
	}

	.maac-area-hero__stat {
		min-width: calc(50% - 0.35rem);
		flex: 1 1 calc(50% - 0.35rem);
	}

	.maac-home-areas__grid {
		grid-template-columns: 1fr;
	}

	/* Perfil de projeto */
	.maac-project-profile-main {
		gap: 1.25rem;
	}

	.maac-denuncia-layout {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.maac-denuncia-hotline__card {
		padding: 1rem 1.1rem;
	}

	.maac-denuncia-track-form {
		max-width: none;
	}

	.maac-denuncia-track-form .maac-btn {
		width: 100%;
	}
}

/* —— Rodape mobile (ate 767px) —— */
@media (max-width: 767px) {
	.maac-site-footer__identity .maac-brand--footer {
		gap: 0.85rem;
	}

	.maac-site-footer__identity .maac-brand__title {
		font-size: 0.9375rem;
	}

	.maac-site-footer__identity-desc {
		font-size: 0.875rem;
		line-height: 1.55;
	}

	.maac-site-footer__body {
		gap: 1.75rem;
	}

	.maac-site-footer__nav-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.maac-site-footer__col {
		padding-block: 1.1rem;
		border-bottom: 1px solid rgb(255 255 255 / 0.1);
	}

	.maac-site-footer__col:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.maac-site-footer__col h3 {
		margin-bottom: 0.6rem;
		font-size: 0.8125rem;
	}

	.maac-site-footer__col:not(.maac-site-footer__col--contact) ul {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}

	.maac-site-footer__col:not(.maac-site-footer__col--contact) li + li {
		margin-top: 0;
	}

	.maac-site-footer__col a {
		display: inline-block;
		padding-block: 0.4rem;
		font-size: 0.875rem;
		line-height: 1.45;
		overflow-wrap: anywhere;
	}

	.maac-site-footer__col--contact .maac-site-footer__contact {
		max-width: none;
	}

	.maac-site-footer__denuncia-cta {
		margin-top: 0.85rem;
	}

	.maac-site-footer__denuncia-cta .maac-btn--denuncia {
		width: 100%;
	}

	.maac-site-footer__utility {
		padding-top: 0.35rem;
		border-top: 1px solid rgb(255 255 255 / 0.14);
	}

	.maac-site-footer__tagline {
		max-width: none;
		font-size: 0.8125rem;
	}

	.maac-site-footer__contact {
		font-size: 0.8125rem;
	}

	.maac-site-footer__utility .maac-site-footer__legal-nav a {
		font-size: 0.8125rem;
	}

	.maac-site-footer__bottom .maac-container {
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
		text-align: center;
	}

	.maac-site-footer__legal-copy {
		font-size: 0.75rem;
		line-height: 1.45;
	}

	.maac-site-footer__credit {
		text-align: center;
		font-size: 0.75rem;
	}
}

/* —— Cabecalho desktop estreito (menu + acoes no mesmo nivel) —— */
@media (min-width: 768px) and (max-width: 1279px) {
	.maac-site-header__inner {
		gap: 0.5rem;
	}

	.maac-nav__item > a,
	.maac-nav__trigger,
	.maac-nav__list--wp > li > a {
		padding-inline: 0.55rem;
		font-size: 0.875rem;
	}

	.maac-btn--header {
		min-height: 2.5rem;
		padding-inline: 0.85rem;
	}
}

/* —— Cabecalho mobile / tablet estreito (ate 767px) —— */
@media (max-width: 767px) {
	.maac-site-header__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "brand aside";
		gap: 0.5rem;
		padding-block: 0.4rem;
		min-height: 3.25rem;
	}

	.maac-site-header__brand {
		position: static;
		z-index: 2;
		max-width: none;
		transform: none;
		justify-self: start;
		pointer-events: auto;
	}

	.maac-site-header__brand .maac-brand {
		justify-content: flex-start;
	}

	.maac-site-header__brand .maac-brand__text {
		display: none;
	}

	.maac-site-header__mobile-title {
		display: none;
	}

	.maac-nav {
		display: none;
	}

	.maac-site-header__aside {
		position: relative;
		z-index: 2;
		grid-area: aside;
		grid-column: auto;
		width: auto;
		min-width: 0;
		justify-self: end;
		justify-content: flex-end;
	}

	.maac-site-header__search-slot .maac-search__panel {
		right: 0;
		left: auto;
	}

	.maac-site-header__contact-slot {
		display: none;
	}
}

/* —— Equipa do ministerio —— */
@media (min-width: 1280px) {
	.maac-ministerio-team__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 1279px) {
	.maac-ministerio-team__grid {
		--maac-team-photo-h: 10rem;
		--maac-team-card-h: 21rem;
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 1023px) {
	.maac-ministerio-team__grid {
		--maac-team-photo-h: 9.75rem;
		--maac-team-card-h: 20.75rem;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.maac-ministerio-team__grid {
		--maac-team-photo-h: 11.5rem;
		--maac-team-card-h: auto;
		grid-template-columns: 1fr;
		gap: 1rem;
		max-width: 22rem;
		margin-inline: auto;
	}

	.maac-team-card {
		height: auto;
	}

	.maac-team-card__inner {
		height: auto;
		max-height: none;
		overflow: visible;
	}

	.maac-team-card__content {
		flex: 0 0 auto;
		gap: 0.55rem;
		min-height: 0;
		padding: 0.85rem 1rem 1rem;
		overflow: visible;
	}

	.maac-team-card__body {
		flex: 0 0 auto;
		overflow: visible;
	}

	.maac-team-card__name {
		overflow: visible;
		font-size: 1.0625rem;
		font-weight: 700;
		line-height: 1.35;
		letter-spacing: normal;
		display: block;
		-webkit-line-clamp: unset;
		-webkit-box-orient: unset;
		word-break: break-word;
	}

	.maac-team-card__role {
		margin-top: 0.3rem;
		overflow: visible;
		font-size: 0.875rem;
		line-height: 1.4;
		display: block;
		-webkit-line-clamp: unset;
		-webkit-box-orient: unset;
	}

	.maac-team-card__dept {
		margin-top: 0.2rem;
		overflow: visible;
		font-size: 0.8125rem;
		line-height: 1.4;
		display: block;
		-webkit-line-clamp: unset;
		-webkit-box-orient: unset;
	}

	.maac-team-card__contacts {
		margin-top: 0.55rem;
		gap: 0.25rem;
	}

	.maac-team-card__contact {
		font-size: 0.8125rem;
		line-height: 1.4;
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
		overflow-wrap: anywhere;
	}

	.maac-team-card__social {
		gap: 0.5rem;
	}

	.maac-team-card__social-link {
		width: 2.5rem;
		height: 2.5rem;
		min-width: 2.5rem;
		min-height: 2.5rem;
	}

	.maac-team-card__social-icon {
		width: 0.875rem;
		height: 0.875rem;
	}

	/* Hero de artigo / noticia — imagem visivel, titulo e meta no rodape */
	.maac-article-hero__image,
	.maac-article-hero__fallback {
		aspect-ratio: 4 / 3;
		min-height: clamp(280px, 58vw, 440px);
	}

	.maac-article-hero__image .maac-lightbox-trigger img {
		object-position: center center;
	}

	.maac-article-hero__overlay {
		inset: 0;
		display: flex;
		align-items: flex-end;
		padding-bottom: 0;
		background: linear-gradient(
			to top,
			rgb(0 0 0 / 0.9) 0%,
			rgb(0 0 0 / 0.74) 22%,
			rgb(0 0 0 / 0.42) 48%,
			rgb(0 0 0 / 0.12) 72%,
			transparent 100%
		);
		pointer-events: none;
	}

	.maac-article-hero__overlay .maac-container {
		padding: 0.85rem clamp(0.85rem, 4vw, 1.25rem) 1rem;
		background: none;
	}

	.maac-article-hero h1 {
		margin-top: 0.3rem;
		line-height: 1.22;
		max-width: none;
	}

	.maac-article-hero__badge {
		font-size: 0.625rem;
		padding: 0;
	}

	.maac-article-hero__meta {
		display: block;
		margin-top: 0.35rem;
		line-height: 1.4;
	}

	.maac-article-hero__meta-item {
		display: inline;
	}

	.maac-article-hero__meta-item dt {
		display: none;
	}

	.maac-article-hero__meta-item dd {
		display: inline;
		font-size: 0.75rem;
		font-weight: 500;
		color: rgb(255 255 255 / 0.88);
	}

	.maac-article-hero__meta-item:not(:first-child)::before {
		content: " · ";
		color: rgb(255 255 255 / 0.55);
		font-weight: 400;
	}
}

@media (max-width: 479px) {
	.maac-ministerio-team__grid {
		--maac-team-photo-h: 11rem;
		--maac-team-card-h: auto;
		grid-template-columns: 1fr;
		max-width: 20rem;
	}

	.maac-team-card__name {
		font-size: 1rem;
	}

	.maac-team-card__contact {
		font-size: 0.8125rem;
	}
}

/* —— Tablet (640–1023): mesma pilha vertical do mobile —— */
@media (min-width: 640px) and (max-width: 1023px) {
	.maac-home-priorities__stage {
		min-height: 0;
		overflow: visible;
		background: transparent;
		box-shadow: none;
		padding-inline: 1rem;
	}

	.maac-home-priorities__panels {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0.6rem;
		min-height: 0;
	}

	.maac-priority-panel {
		flex: 0 0 auto;
		width: 100%;
		min-height: 5.25rem;
		border-radius: 0.7rem;
		overflow: hidden;
		box-shadow: 0 4px 14px rgb(2 28 48 / 0.12);
	}

	.maac-priority-panel.is-open {
		flex: 0 0 auto;
		min-height: clamp(20rem, 48vh, 28rem);
	}

	.maac-priority-panel + .maac-priority-panel {
		border-left: 0;
		border-top: 0;
	}

	.maac-priority-panel.is-open .maac-priority-panel__plus {
		display: none;
	}
}

/* —— Tablet pequeno (640–767) —— */
@media (min-width: 640px) and (max-width: 767px) {
	.maac-home-hero__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.maac-related-news__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.maac-area-tabs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* —— Tablet (768px+) —— */
@media (min-width: 768px) {
	.maac-mobile-search {
		display: none;
	}

	.maac-home-hero__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.maac-ministerio-indicators__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem;
	}

	.maac-home-minister {
		text-align: left;
	}

	.maac-home-minister .maac-btn {
		width: auto;
		max-width: none;
		margin-inline: 0;
	}

	.maac-article-hero__meta {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

/* —— Desktop (1024px+) —— */
@media (min-width: 1024px) {
	.maac-home-hero__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(2, minmax(0, 1fr));
	}

	.maac-ministerio-parallax__viewport {
		height: clamp(22rem, 48vw, 38rem);
	}
}

/* —— Tablet e telemovel (ate 960px) —— */
@media (max-width: 960px) {
	.maac-container {
		padding-inline: clamp(0.85rem, 3vw, 1.25rem);
	}

	.maac-home-projects__layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.maac-home-projects__intro {
		order: -1;
		padding-left: 0;
	}

	.maac-home-projects__intro::before {
		display: none;
	}

	.maac-home-projects__more .maac-btn {
		width: 100%;
		justify-content: center;
	}

	.maac-home-projects__carousel {
		padding-inline: 0;
	}

	.maac-home-projects__carousel .maac-scroll-carousel__track {
		padding-inline: 0;
	}

	.maac-home-projects__carousel .maac-scroll-carousel__slide--project {
		align-items: stretch;
		justify-content: stretch;
		padding-inline: 0;
	}

	.maac-home-projects__carousel .maac-scroll-carousel__slide--project .maac-card-projeto {
		width: 100%;
		max-width: none;
		margin-inline: 0;
	}

	/* Banner home — proporcao legivel em tablet/telemovel */
	.maac-home-banner__viewport {
		aspect-ratio: 4 / 3;
		min-height: 0;
	}

	.maac-area-hero__map {
		width: min(58%, 15rem);
		height: 82%;
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 52%);
		mask-image: linear-gradient(90deg, transparent 0%, #000 52%);
	}

	.maac-page-hero__map img,
	.maac-area-hero__map img {
		opacity: 0.14;
	}

	/* Eventos — grelha single column */
	.maac-home-events__grid,
	.maac-evento-grid {
		grid-template-columns: 1fr !important;
	}

	.maac-eventos-archive .maac-evento-grid,
	.maac-related-eventos .maac-evento-grid {
		grid-template-columns: 1fr;
		justify-content: stretch;
	}

	.maac-evento-list-item {
		grid-template-columns: 4.75rem 1fr;
	}

	.maac-evento-list-item__action {
		display: none;
	}

	.maac-evento-filters__btn,
	.maac-evento-filters__btn.is-active {
		min-height: 2.75rem;
		padding-block: 0.625rem;
	}

	.maac-evento-card__action {
		min-width: 2.75rem;
		min-height: 2.75rem;
	}

	.maac-site-header__aside {
		min-width: 0;
	}

	.maac-home-events__body {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		gap: 1.25rem;
	}

	.maac-home-events__intro-head,
	.maac-home-events__intro-panel,
	.maac-home-events__featured {
		grid-column: 1;
		grid-row: auto;
	}

	.maac-home-events__intro-head .maac-section-lead {
		max-width: none;
	}

	.maac-home-events__featured {
		order: 2;
	}

	.maac-home-events__intro-panel {
		order: 3;
	}

	.maac-home-events__month-list {
		flex: none;
		justify-content: flex-start;
		gap: 0.75rem;
		margin-bottom: 1rem;
	}

	.maac-home-events__month-list .maac-evento-mini {
		flex: none;
		min-height: 0;
	}

	.maac-home-events__grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.maac-home-events__carousel {
		padding-inline: 1.75rem;
		--maac-home-events-visible: 1;
	}

	.maac-home-events__carousel .maac-scroll-carousel__slide--event {
		flex: none;
		max-width: none;
	}

	.maac-home-events__grid .maac-evento-card__media,
	.maac-home-events__carousel .maac-evento-card__media {
		aspect-ratio: 4 / 3;
		flex: none;
	}

	.maac-eventos-archive .maac-evento-grid,
	.maac-related-eventos .maac-evento-grid {
		grid-template-columns: 1fr;
	}
}

/* Banner — cards de eventos em tablet (768–960px) */
@media (min-width: 768px) and (max-width: 960px) {
	.maac-home-banner--has-events {
		margin-bottom: 6rem;
	}

	.maac-home-banner--has-events .maac-home-banner__content {
		padding-bottom: 4.5rem;
		padding-right: clamp(0.85rem, 4vw, 1.25rem);
	}

	.maac-home-banner--has-events .maac-home-banner__dots {
		bottom: 1rem;
		left: calc(clamp(1rem, 4vw, 2rem) + 2.75rem);
		transform: none;
	}

	.maac-home-banner__events {
		right: auto;
		left: 50%;
		width: calc(100% - 1.5rem);
		max-width: 20rem;
		transform: translate(-50%, 50%);
	}

	.maac-home-banner__events-track {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}

	.maac-evento-banner-card {
		flex: 1 1 auto;
		min-height: 0;
		padding: 0.7rem 0.75rem 0.7rem 0.65rem;
		gap: 0.65rem;
		border-radius: 0.45rem;
		box-shadow: 0 6px 18px rgb(17 24 39 / 0.12);
	}

	.maac-evento-banner-card__when {
		width: 2.5rem;
		padding: 0.3rem 0.2rem;
		border-radius: 0.3rem;
	}

	.maac-evento-banner-card__day {
		font-size: 1rem;
	}

	.maac-evento-banner-card__month {
		font-size: 0.5625rem;
	}

	.maac-evento-banner-card__title {
		font-size: 0.8125rem;
		line-height: 1.3;
		-webkit-line-clamp: 2;
	}

	.maac-evento-banner-card__local {
		font-size: 0.625rem;
		line-height: 1.25;
		white-space: normal;
		display: -webkit-box;
		overflow: hidden;
		-webkit-line-clamp: 1;
		-webkit-box-orient: vertical;
	}

	.maac-evento-banner-card__arrow {
		font-size: 1.125rem;
	}
}

/* Banner — mobile sem cards de eventos (sem area reservada) */
@media (max-width: 767px) {
	.maac-home-banner {
		--maac-banner-nav-inset: 0.25rem;
		--maac-banner-nav-size: 2.5rem;
	}

	.maac-home-banner__events {
		display: none !important;
	}

	.maac-home-banner--has-events {
		margin-bottom: 0;
	}

	.maac-home-banner__content,
	.maac-home-banner--has-events .maac-home-banner__content,
	.maac-container.maac-home-banner__content {
		justify-content: flex-end;
		padding-bottom: 3.75rem;
		padding-inline: var(--maac-banner-content-gutter);
	}

	.maac-home-banner__nav {
		top: 50%;
		width: var(--maac-banner-nav-size);
		height: var(--maac-banner-nav-size);
		min-width: var(--maac-banner-nav-size);
		min-height: var(--maac-banner-nav-size);
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		font-size: 1.75rem;
		text-shadow: 0 1px 10px rgb(0 0 0 / 0.5);
	}

	.maac-home-banner__nav--prev {
		left: var(--maac-banner-nav-inset);
	}

	.maac-home-banner__nav--next {
		right: var(--maac-banner-nav-inset);
	}

	.maac-home-banner__dots {
		left: 50%;
		right: auto;
		bottom: 0.55rem;
		transform: translateX(-50%);
		justify-content: center;
		gap: 0.25rem;
		pointer-events: auto;
	}

	.maac-home-banner__dot {
		width: 2rem;
		height: 2rem;
		min-width: 2rem;
		min-height: 2rem;
	}

	.maac-home-banner__dot::after {
		width: 0.375rem;
		height: 0.375rem;
	}

	.maac-home-banner__dot.is-active::after {
		width: 1.35rem;
		height: 0.375rem;
	}

	.maac-home-banner__nav:hover,
	.maac-home-banner__nav:focus-visible {
		background: transparent;
		border: 0;
	}
}

/* Landscape em telefone */
@media (max-width: 896px) and (orientation: landscape) {
	.maac-article-hero__image,
	.maac-article-hero__fallback {
		max-height: 62vh;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.maac-article-hero__image .maac-lightbox-trigger img {
		object-fit: cover;
		object-position: center center;
	}

	.maac-home-banner__viewport {
		aspect-ratio: 16 / 10;
	}
}

/* Preferencia: menos animacao em mobile com movimento reduzido */
@media (max-width: 639px) and (prefers-reduced-motion: no-preference) {
	.maac-scroll-carousel__track {
		scroll-behavior: smooth;
	}
}

/* —— Conteudo Gutenberg / prose em ecras estreitos —— */
@media (max-width: 767px) {
	.prose-maac .wp-block-columns,
	.prose-maac-article .wp-block-columns,
	.prose-maac-area .wp-block-columns,
	.entry-content .wp-block-columns {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	.prose-maac .wp-block-column,
	.prose-maac-article .wp-block-column,
	.prose-maac-area .wp-block-column,
	.entry-content .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
		max-width: 100%;
	}

	.prose-maac .alignwide,
	.prose-maac .alignfull,
	.prose-maac-article .alignwide,
	.prose-maac-article .alignfull {
		max-width: 100%;
		margin-inline: 0;
	}

	.maac-site-header__aside .maac-search__toggle,
	.maac-site-header__aside .maac-btn--header,
	.maac-mobile-nav__item--link > a,
	.maac-mobile-nav__mega-toggle,
	.maac-mobile-nav__cta {
		min-height: 2.75rem;
	}

	.maac-btn,
	.maac-mapa-wrap .maac-btn,
	.maac-mapa-toolbar button,
	.maac-mapa-sidebar-toggle {
		min-height: 2.75rem;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.maac-nav__list {
		flex-wrap: wrap;
		row-gap: 0.25rem;
		justify-content: flex-end;
	}
}

@media (min-width: 1024px) {
	.maac-nav__list {
		flex-wrap: nowrap;
	}
}

@media (max-width: 767px) {
	.maac-evento-details__grid {
		grid-template-columns: 1fr;
	}

	.maac-page-hero h1,
	.maac-section-title {
		overflow-wrap: anywhere;
	}

	.maac-documents-tabs__nav,
	.maac-documents-tabs .maac-legislation-tabs,
	.maac-documents-archive-tabs-wrap {
		max-width: 100%;
	}
}
