/*
 * Seção "Nosso Objetivo" (wrapper style2 special-alt) + passador de fotos.
 * Aumenta área das imagens, alinha conteúdo e corrige setas.
 */

body.index section.wrapper.style2.container.special-alt {
	text-align: left;
	border-radius: 1.35rem;
	overflow: hidden;
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.14);
}

/* SAIBA MAIS e outros .button da secção (main.css usa border-radius: 0) */
body.index section.wrapper.style2.container.special-alt a.button,
body.index section.wrapper.style2.container.special-alt .button {
	border-radius: 0.65rem !important;
}

body.index section.wrapper.style2.container.special-alt > .container {
	max-width: 72rem;
	margin-left: auto;
	margin-right: auto;
}

/* Grid responsivo: texto + galeria com mais espaço para fotos */
body.index section.wrapper.style2.container.special-alt .row.gtr-50 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem 3rem;
}

/* Sobrescreve larguras % do grid HTML5 UP para flex funcionar */
body.index section.wrapper.style2.container.special-alt .row > .col-8.col-12-narrower,
body.index section.wrapper.style2.container.special-alt .row > .col-4.col-12-narrower.imp-narrower {
	width: auto !important;
}

body.index section.wrapper.style2.container.special-alt .row > .col-8.col-12-narrower {
	flex: 1 1 18rem;
	max-width: 26rem;
	text-align: left;
}

body.index section.wrapper.style2.container.special-alt .row > .col-8.col-12-narrower header h2 {
	margin-top: 0;
}

body.index section.wrapper.style2.container.special-alt .row > .col-4.col-12-narrower.imp-narrower {
	flex: 1 1 min(100%, 26rem);
	max-width: 36rem;
	width: 100%;
	overflow: visible;
	padding-top: 0;
}

/* Card da galeria — área maior para as fotos */
body.index section.wrapper.style2 .carrossel {
	position: relative;
	width: 100%;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
	background: rgba(0, 0, 0, 0.2);
}

body.index section.wrapper.style2 .container-externo {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	/* Mais alto que 4:3 — retratos enchem o cartão com object-fit: cover (sem bandas laterais) */
	aspect-ratio: 4 / 5;
	max-height: min(78vh, 44rem);
	overflow: hidden;
	border-radius: 14px;
}

body.index section.wrapper.style2 .container-imagens {
	display: flex;
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-height: 0;
	transition: transform 0.45s ease;
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	body.index section.wrapper.style2 .container-imagens {
		transition: none;
	}
}

/*
 * Cada slide = 100% da largura do card; altura = viewport do .container-externo.
 * Sobrepõe main.css #objimg (object-fit: contain) que deixava fotos verticais “miúdas” com bandas.
 */
body.index section.wrapper.style2 .container-imagens img,
body.index section.wrapper.style2 .container-imagens img#objimg {
	flex: 0 0 100%;
	width: 100%;
	min-width: 0;
	max-width: none;
	height: 100%;
	min-height: 0;
	aspect-ratio: unset;
	max-height: none;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 0;
}

/* Setas dentro do card, clicáveis e visíveis */
body.index section.wrapper.style2 .seta {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

body.index section.wrapper.style2 .seta:hover {
	background: rgba(63, 177, 163, 0.85);
	border-color: rgba(255, 255, 255, 0.6);
}

body.index section.wrapper.style2 .seta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

body.index section.wrapper.style2 .seta.esquerda {
	left: 0.65rem;
	right: auto;
}

body.index section.wrapper.style2 .seta.direita {
	right: 0.65rem;
	left: auto;
}

/* Empilha em telas estreitas */
@media screen and (max-width: 980px) {
	body.index section.wrapper.style2.container.special-alt .row > .col-8.col-12-narrower,
	body.index section.wrapper.style2.container.special-alt .row > .col-4.col-12-narrower.imp-narrower {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

/* Telas largas: galeria um pouco maior que o texto */
@media screen and (min-width: 981px) {
	body.index section.wrapper.style2.container.special-alt .row > .col-8.col-12-narrower {
		flex: 0 1 38%;
		max-width: none;
	}

	body.index section.wrapper.style2.container.special-alt .row > .col-4.col-12-narrower.imp-narrower {
		flex: 1 1 0;
		max-width: none;
		min-width: min(100%, 28rem);
	}

	body.index section.wrapper.style2 .carrossel {
		max-width: none;
	}
}
