/* =========================================================
   BLOCOS "SOBRE NÓS": apresentação, missão/visão/valores, cronologia
   ========================================================= */

/* ---------- Apresentação ---------- */
.ab-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 84px); align-items: center; }
.ab-grid.no-media { grid-template-columns: minmax(0, 820px); justify-content: center; }
.ab-media { position: relative; padding: 0 0 0 0; }
.ab-media.has-second { padding: 0 64px 64px 0; }
.ab-main { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.3; box-shadow: 0 30px 60px rgba(10, 30, 18, .16); background: var(--bg-alt); }
.ab-main img { width: 100%; height: 100%; object-fit: cover; }
.ab-second { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; margin: 0; border-radius: 16px; overflow: hidden; border: 8px solid var(--bg); box-shadow: 0 20px 44px rgba(10, 30, 18, .2); background: var(--bg-alt); }
.bg-alt .ab-second { border-color: var(--bg-alt); }
.ab-second img { width: 100%; height: 100%; object-fit: cover; }
.ab-badge { position: absolute; left: -22px; top: 34px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 124px; padding: 18px 22px; border-radius: 16px; background: var(--accent-2); color: #fff; box-shadow: 0 18px 36px color-mix(in srgb, var(--accent-2) 38%, transparent); text-align: center; }
.ab-badge small { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.ab-badge strong { font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.ab-dots { position: absolute; left: -26px; bottom: 30px; z-index: -1; width: 120px; height: 120px; background-image: radial-gradient(color-mix(in srgb, var(--accent) 40%, transparent) 2px, transparent 2.5px); background-size: 16px 16px; }

.ab-title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; letter-spacing: -.01em; text-transform: none; margin: 0 0 20px; }
.ab-prose { font-size: 16px; line-height: 1.9; }
.ab-prose p:last-child { margin-bottom: 0; }
.ab-quote { position: relative; margin: 26px 0 0; padding: 20px 24px 20px 66px; border: 0; border-radius: 14px; background: var(--accent-soft); }
.ab-quote-mark { position: absolute; left: 18px; top: 6px; font-family: Georgia, serif; font-size: 64px; line-height: 1; color: var(--accent-2); }
.ab-quote p { margin: 0; font-family: var(--font-head); font-size: 16.5px; font-weight: 600; line-height: 1.6; color: var(--heading); }
.ab-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ab-facts li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin: 0; }
.ab-fact-ico { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
html[data-theme="dark"] .ab-fact-ico, html[data-theme="dark"] .mvv-ico, html[data-theme="dark"] .mvv-values li span { color: color-mix(in srgb, var(--accent) 45%, #9fe0b9); }
.ab-facts strong { display: block; font-family: var(--font-head); font-size: 14.5px; font-weight: 700; color: var(--heading); line-height: 1.35; }
.ab-facts small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.ab-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Missão, visão e valores ---------- */
.mvv-grid { display: grid; gap: 24px; }
.mvv-grid.cols-1 { grid-template-columns: minmax(0, 640px); justify-content: center; }
.mvv-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mvv-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mvv-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mvv-card { position: relative; overflow: hidden; padding: 34px 30px 32px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0, 0, 0, .03); transition: transform .35s var(--ease, ease), box-shadow .35s; transition-delay: var(--d, 0ms); }
.mvv-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(.18); transform-origin: left; transition: transform .45s var(--ease, ease); }
.mvv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.mvv-card:hover::before { transform: scaleX(1); }
.mvv-num { position: absolute; right: 22px; top: 14px; font-family: var(--font-head); font-size: 54px; font-weight: 800; line-height: 1; color: var(--heading); opacity: .06; }
.mvv-ico { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; transition: background .3s, color .3s; }
.mvv-card:hover .mvv-ico { background: var(--accent); color: #fff; }
.mvv-card h3 { font-size: 19px; margin: 0 0 10px; }
.mvv-card p { margin: 0; font-size: 15px; line-height: 1.8; }
.mvv-values { margin-top: 30px; display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; padding: 24px 28px; border-radius: 16px; background: var(--surface); border: 1px dashed var(--input-border, var(--border)); }
.mvv-values-title { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); flex-shrink: 0; }
.mvv-values ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mvv-values li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--bg-alt); font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--heading); }
.bg-alt .mvv-values li { background: var(--bg); }
.mvv-values li span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }

/* ---------- Cronologia ---------- */
.tl { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 980px; }
.tl::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; margin-left: -1px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent-2) 70%, transparent)); border-radius: 2px; }
.tl-item { position: relative; width: 50%; margin: 0; padding: 0 44px 34px 0; }
.tl-item:last-child { padding-bottom: 0; }
/* Os cartões alternados encaixam uns nos outros (sem grandes espaços vazios) */
@media (min-width: 721px) { .tl-item + .tl-item { margin-top: -64px; } }
.tl-item.tl-right { margin-left: 50%; padding: 0 0 34px 44px; }
.tl-item.tl-right:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; top: 22px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 4px solid var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); z-index: 1; }
.bg-alt .tl-dot { background: var(--bg-alt); }
.tl-right .tl-dot { right: auto; left: -9px; }
.tl-card { position: relative; padding: 22px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.tl-card::after { content: ""; position: absolute; top: 24px; right: -7px; width: 12px; height: 12px; background: var(--surface); border-right: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.tl-right .tl-card::after { right: auto; left: -7px; transform: rotate(-135deg); }
.tl-year { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--accent-2); color: #fff; font-family: var(--font-head); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.tl-card h3 { font-size: 17px; line-height: 1.4; margin: 0 0 6px; }
.tl-card p { margin: 0; font-size: 14.5px; line-height: 1.75; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
    .mvv-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .ab-grid { grid-template-columns: minmax(0, 1fr); }
    .ab-media { max-width: 620px; }
    .ab-badge { left: 12px; top: 12px; min-width: 100px; padding: 12px 16px; }
    .ab-badge strong { font-size: 26px; }
    .mvv-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .ab-media.has-second { padding: 0 34px 44px 0; }
    .ab-dots { display: none; }
    .ab-facts { grid-template-columns: minmax(0, 1fr); }
    .ab-quote { padding: 18px 18px 18px 54px; }
    .ab-quote-mark { left: 14px; font-size: 52px; }
    .mvv-grid.cols-2, .mvv-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
    .mvv-card { padding: 28px 22px; }
    .mvv-values { padding: 20px; }
    .tl::before { left: 9px; }
    .tl-item, .tl-item.tl-right { width: auto; margin-left: 0; padding: 0 0 22px 38px; }
    .tl-item .tl-dot, .tl-right .tl-dot { left: 0; right: auto; }
    .tl-card::after, .tl-right .tl-card::after { right: auto; left: -7px; transform: rotate(-135deg); }
}
