/* AOPA — página inicial (hub do OPA) */
.aopa {
	--ivory: #f8f4ec;
	--paper: #fbf8f2;
	--warm: #f3ebdd;
	--white: #ffffff;
	--ink: #1d2130;
	--ink-2: #4a4f61;
	--muted: #6e7284;
	--line: #e7e0d2;
	--red: #e2462a;
	--yellow: #f2b705;
	--green: #2f9a48;
	--teal: #1592a8;
	--yellow-ink: #8a6300;
	--serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(29, 33, 48, .05), 0 8px 24px rgba(29, 33, 48, .07);
	--shadow-hover: 0 2px 4px rgba(29, 33, 48, .08), 0 18px 40px rgba(29, 33, 48, .14);
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.aopa *, .aopa *::before, .aopa *::after { box-sizing: border-box; }
.aopa a { color: inherit; text-decoration: none; }
.aopa img { max-width: 100%; display: block; }
.aopa a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.aopa h1, .aopa h2 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.1; letter-spacing: -.01em; }

.aopa-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.aopa-skip { position: absolute; left: -9999px; }
.aopa-skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }

/* Faixa assinatura com as quatro cores do logotipo */
.aopa-stripe { display: flex; height: 5px; }
.aopa-stripe span { flex: 1; }
.aopa-stripe span:nth-child(1) { background: var(--red); }
.aopa-stripe span:nth-child(2) { background: var(--yellow); }
.aopa-stripe span:nth-child(3) { background: var(--green); }
.aopa-stripe span:nth-child(4) { background: var(--teal); }

.aopa-tone--red { --tone: var(--red); }
.aopa-tone--yellow { --tone: var(--yellow); }
.aopa-tone--green { --tone: var(--green); }
.aopa-tone--teal { --tone: var(--teal); }

/* Cabeçalho */
.aopa-header { background: rgba(248, 244, 236, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.aopa-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.aopa-brand { display: inline-flex; align-items: baseline; gap: 10px; }
.aopa-brand__mark { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: .02em; color: var(--red); }
.aopa-brand__name { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); }
.aopa-nav { display: flex; gap: 26px; }
.aopa-nav a { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.aopa-nav a:hover { color: var(--ink); border-bottom-color: var(--yellow); }

/* Abertura */
.aopa-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(520px 380px at 88% 18%, rgba(242, 183, 5, .22), transparent 70%),
		radial-gradient(460px 360px at 74% 88%, rgba(21, 146, 168, .16), transparent 70%),
		radial-gradient(420px 320px at 6% 92%, rgba(226, 70, 42, .12), transparent 70%),
		radial-gradient(380px 300px at 40% 0%, rgba(47, 154, 72, .10), transparent 70%),
		var(--ivory);
}
.aopa-hero__inner { padding-top: 96px; padding-bottom: 104px; text-align: center; }
.aopa-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.aopa-hero__title { font-size: clamp(44px, 9vw, 112px); font-weight: 600; line-height: .98; letter-spacing: -.025em; }
.aopa-hero__title em { font-style: italic; font-weight: 500; color: var(--red); }
.aopa-hero__motto { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 0; margin: 28px 0 0; font-family: var(--serif); font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-2); }
.aopa-hero__motto span + span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); margin: 0 16px; vertical-align: middle; }
.aopa-hero__motto span:nth-child(3)::before { background: var(--teal); }
.aopa-hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.aopa-btn {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 999px;
	background: var(--ink); color: #fff !important; font-size: 15px; font-weight: 600;
	transition: transform .15s ease, box-shadow .15s ease;
}
.aopa-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.aopa-btn--ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Faixas */
.aopa-band { padding: 88px 0; }
.aopa-band--paper { background: var(--paper); }
.aopa-band--white { background: var(--white); }
.aopa-band--warm { background: var(--warm); }
.aopa-head { margin-bottom: 36px; }
.aopa-title { font-size: clamp(32px, 4vw, 44px); }
.aopa-lead { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); max-width: 340px; }

/* Espaços */
.aopa-spaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.aopa-space {
	position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
	background: var(--white); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.aopa-space::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tone); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.aopa-space:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.aopa-space:hover::after { transform: scaleX(1); }
.aopa-space__media { display: block; aspect-ratio: 300 / 176; background: #2b2a2c; overflow: hidden; }
.aopa-space__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .4s ease; }
.aopa-space:hover .aopa-space__media img { transform: scale(1.04); }
.aopa-space__body { display: flex; flex-direction: column; gap: 2px; padding: 16px 44px 18px 18px; }
.aopa-space__name { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.aopa-space__desc { font-size: 13.5px; color: var(--muted); }
.aopa-space__arrow { position: absolute; right: 18px; bottom: 20px; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.aopa-space:hover .aopa-space__arrow { transform: translateX(3px); color: var(--ink); }

/* Grupos */
.aopa-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 56px; align-items: start; }
.aopa-head--side { position: sticky; top: 100px; }
.aopa-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.aopa-group {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
	min-height: 132px; padding: 20px; border-radius: var(--radius);
	background: var(--paper); border: 1px solid var(--line); overflow: hidden;
	transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.aopa-group::before { content: ''; position: absolute; top: 18px; left: 20px; width: 28px; height: 4px; border-radius: 4px; background: var(--tone); }
.aopa-group:hover { background: var(--white); border-color: var(--tone); transform: translateY(-3px); }
.aopa-group__kicker { font-size: 12px; color: var(--muted); }
.aopa-group__name { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.15; }

/* Projetos e lugares */
.aopa-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; }
.aopa-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.aopa-chips a {
	display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px;
	background: var(--white); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink-2);
	transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.aopa-chips a:hover { border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow); }
.aopa-places { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(29, 33, 48, .14); }
.aopa-places li { border-bottom: 1px solid rgba(29, 33, 48, .14); }
.aopa-places a { display: flex; align-items: center; gap: 14px; padding: 16px 4px; font-family: var(--serif); font-size: 21px; }
.aopa-places__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: none; }
.aopa-places li:nth-child(4n+1) .aopa-places__dot { background: var(--red); }
.aopa-places li:nth-child(4n+2) .aopa-places__dot { background: var(--yellow); }
.aopa-places li:nth-child(4n+3) .aopa-places__dot { background: var(--green); }
.aopa-places__arrow { margin-left: auto; color: var(--muted); font-family: var(--sans); font-size: 16px; transition: transform .2s ease; }
.aopa-places a:hover .aopa-places__arrow { transform: translateX(4px); color: var(--ink); }

/* Notícias */
.aopa-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.aopa-post { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.aopa-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.aopa-post__media { display: block; aspect-ratio: 16 / 10; background: var(--warm); overflow: hidden; }
.aopa-post__media img { width: 100%; height: 100%; object-fit: cover; }
.aopa-post__ph { display: flex; align-items: center; justify-content: center; height: 100%; font-family: var(--serif); font-size: 40px; color: var(--red); opacity: .6; }
.aopa-post__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.aopa-post__date { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-ink); }
.aopa-post__title { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.3; }

/* Rodapé */
.aopa-footer { background: var(--ink); color: #c9ccd6; padding: 72px 0 32px; }
.aopa-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.aopa-footer__brand { margin: 0; font-family: var(--serif); font-size: 26px; color: #fff; }
.aopa-footer__brand span { color: var(--yellow); font-weight: 700; margin-right: 6px; }
.aopa-footer__motto { margin: 8px 0 18px; font-family: var(--serif); font-style: italic; color: #9fa4b5; }
.aopa-footer__site { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.aopa-footer__title { margin: 0 0 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8d93a6; }
.aopa-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.aopa-footer ul a { font-size: 14.5px; color: #d6d9e2; }
.aopa-footer ul a:hover, .aopa-footer__site:hover { color: var(--yellow); }
.aopa-footer__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8d93a6; }

/* Responsivo */
@media (max-width: 1024px) {
	.aopa-spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aopa-split, .aopa-two { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.aopa-head--side { position: static; }
	.aopa-lead { max-width: none; }
	.aopa-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.aopa-wrap { padding: 0 18px; }
	.aopa-nav { display: none; }
	.aopa-band { padding: 64px 0; }
	.aopa-hero__inner { padding-top: 64px; padding-bottom: 72px; }
	.aopa-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aopa-news { grid-template-columns: minmax(0, 1fr); }
	.aopa-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 420px) {
	.aopa-spaces { grid-template-columns: minmax(0, 1fr); }
	.aopa-brand__name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.aopa * { transition: none !important; }
}
