/* ==========================================================================
   Paginas do Institucional em cards (mesmo padrao de O que fazemos / Estudio):
   fundo suave, linha de 1px, faixa de cor no topo, cantos arredondados
   pelos tokens --arte-radius-* (padrao arredondado 2026-11-03).
   Escopo por classe de pagina: pode ser carregado em todas as paginas.
   Nao altera fonte, justificacao, videos nem o card de doacao (doe-cta).
   ========================================================================== */

/* --- Nossa Historia (conteudo .pg-historia, pagina generica) --- */
.c-content .pg-historia > section.container:not(.slider-wrap) {
	--card-bg: #edf6ee;
	--card-line: #d5e5d5;
	--card-accent: #428355;
	box-sizing: border-box;
	margin-top: clamp(18px, 2.6vw, 28px);
	margin-bottom: clamp(18px, 2.6vw, 28px);
	padding: clamp(22px, 3.4vw, 40px);
	border: 1px solid var(--card-line);
	border-top: 4px solid var(--card-accent);
	border-radius: var(--arte-radius-lg, 24px);
	background: var(--card-bg);
	box-shadow: 0 5px 18px rgba(27, 58, 38, .035);
}

.c-content .pg-historia > section.container:not(.slider-wrap):nth-of-type(5n+2) {
	--card-bg: #fff1e6;
	--card-line: #f0ddcd;
	--card-accent: #b96d33;
}

.c-content .pg-historia > section.container:not(.slider-wrap):nth-of-type(5n+3) {
	--card-bg: #fff8dd;
	--card-line: #ede3bc;
	--card-accent: #a48021;
}

.c-content .pg-historia > section.container:not(.slider-wrap):nth-of-type(5n+4) {
	--card-bg: #eaf5f7;
	--card-line: #cee3e7;
	--card-accent: #347d8a;
}

.c-content .pg-historia > section.container:not(.slider-wrap):nth-of-type(5n) {
	--card-bg: #fbedeb;
	--card-line: #eed4d0;
	--card-accent: #b76557;
}

.c-content .pg-historia > section.container:not(.slider-wrap) h1,
.c-content .pg-historia > section.container:not(.slider-wrap) h2,
.c-content .pg-historia > section.container:not(.slider-wrap) h3 {
	color: #243a2e;
}

.c-content .pg-historia > section.container:not(.slider-wrap) > :last-child {
	margin-bottom: 0;
}

/* Subtitulos dentro do card ganham respiro e um traco de cor. */
.c-content .pg-historia > section.container:not(.slider-wrap) > h3 {
	margin-top: clamp(22px, 2.6vw, 30px);
	padding-top: clamp(16px, 2vw, 20px);
	border-top: 1px solid var(--card-line);
}

/* Fotos em faixa dentro do card: ocupam a largura do card. */
.c-content .pg-historia > section.container .strip {
	width: auto;
	margin-right: 0;
	margin-left: 0;
}

/* Bloco "Uma comunidade que resiste": card interno branco. */
.c-content .pg-historia .historia-comunidade {
	margin: clamp(18px, 2.4vw, 26px) 0;
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid var(--card-line, #d5e5d5);
	border-left: 5px solid var(--card-accent, #428355);
	border-radius: var(--arte-radius-md, 16px);
	background: #fff;
}

.c-content .pg-historia .historia-comunidade > :last-child {
	margin-bottom: 0;
}

/* Bio do fundador: texto no mesmo padrao de card. */
.c-content .pg-historia .bio .box:not(.video-box) {
	border: 1px solid #ede3bc;
	border-top: 4px solid #a48021;
	border-radius: var(--arte-radius-md, 16px);
	background: #fff8dd;
	box-shadow: 0 5px 18px rgba(27, 58, 38, .035);
}

/* --- Historico Internacional --- */
.international-page .international-page__intro {
	border-top: 4px solid #428355;
	border-radius: var(--arte-radius-lg, 24px) var(--arte-radius-lg, 24px) 0 0;
}

.international-page .international-history__text {
	box-sizing: border-box;
	min-width: 0;
	padding: clamp(20px, 2.8vw, 30px);
	border: 1px solid rgba(35, 67, 44, .1);
	border-top: 4px solid var(--history-accent, #428355);
	border-radius: var(--arte-radius-md, 16px);
	background: #f7f5ee;
	box-shadow: 0 5px 18px rgba(27, 58, 38, .035);
}

.international-page .international-history__text h3::before {
	display: none;
}

.international-page .international-history__text h3 {
	padding-left: 0;
}

.international-page .international-history__text h3:not(:first-child) {
	padding-top: 1em;
	border-top: 1px solid rgba(35, 67, 44, .1);
}

@media (max-width: 600px) {
	.c-content .pg-historia > section.container:not(.slider-wrap) {
		padding: 20px 16px;
		border-radius: var(--arte-radius-md, 16px);
	}

	.international-page .international-history__text {
		padding: 18px 16px;
		border-radius: var(--arte-radius-md, 16px);
	}
}


/* ==== Padrao arredondado 2026-11-03 (area institucional) ==== */
/* Nossa Historia: fotos e faixas no raio dos cards; setas do carrossel circulares. */
.c-content .pg-historia .strip figure,
.c-content .pg-historia .photo-center img,
.c-content .pg-historia .bio-photo {
	border-radius: var(--arte-radius-md, 16px);
}

.c-content .pg-historia .slider,
.c-content .pg-historia .slide {
	border-radius: var(--arte-radius-lg, 24px);
}

/* Maior especificidade que o reset global (identidade-arte.css) das setas. */
html:root body .c-content .pg-historia .nav button {
	border-radius: var(--arte-radius-pill, 999px) !important;
}

/* Card de doacao antigo (.doe-cta), caso ainda apareca no conteudo. */
.c-content .pg-historia .doe-cta {
	border-radius: var(--arte-radius-lg, 24px);
}

.c-content .pg-historia .doe-cta__media .circle {
	border-radius: var(--arte-radius-md, 16px);
}

html:root body .c-content .pg-historia .doe-cta__btn.o-btn {
	border-radius: var(--arte-btn-radius, 12px) !important;
}

@media (prefers-reduced-motion: no-preference) {
	html:root body .c-content .pg-historia .nav button {
		transition: transform var(--arte-dur, .22s) var(--arte-ease, ease), box-shadow var(--arte-dur, .22s) var(--arte-ease, ease), background-color var(--arte-dur, .22s) var(--arte-ease, ease);
	}

	html:root body .c-content .pg-historia .nav button:hover {
		transform: translateY(-1px);
		box-shadow: var(--arte-shadow-sm, 0 2px 8px rgba(30, 41, 34, .08)) !important;
	}

	html:root body .c-content .pg-historia .nav button:active {
		transform: translateY(0) scale(.96);
	}
}
