/* ============================================================
   PILAR ONLINE | INSTITUCIONAL PUBLICO
   /_css/institucional.css
   Compartilha header, menu, categorias e footer do site_begin/site_end.
   Estilos intencionalmente isolados em .po-inst para nao alterar
   o layout principal do marketplace.
   ============================================================ */
.po-inst {
    --poi-red: #c1272d;
    --poi-red-dark: #921a25;
    --poi-orange: #f47016;
    --poi-ink: #1e293b;
    --poi-muted: #64748b;
    --poi-line: #e8ebf0;
    --poi-soft: #f8f9fc;
    color: var(--poi-ink);
    background: #fff;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    width: 100%;
    min-width: 0;
}
.po-inst *, .po-inst *::before, .po-inst *::after { box-sizing: border-box; }
.po-inst h1, .po-inst h2, .po-inst h3, .po-inst p { margin: 0; }
.po-inst a { text-decoration: none; }
.po-inst a:focus-visible { outline: 3px solid var(--poi-orange); outline-offset: 4px; }
.po-inst-container { max-width: 1220px; width: min(100% - 48px, 1220px); margin-inline: auto; }

/* Hero institucional: alinhado ao vermelho da marca */
.po-inst-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(60px, 6.5vw, 102px) 0 clamp(60px, 6vw, 88px);
    color: #fff;
    background: linear-gradient(115deg, #881b26 0%, #ba2730 53%, #d34224 100%);
}
.po-inst-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -350px;
    right: -135px;
    width: 850px;
    height: 850px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,112,22,.24), rgba(244,112,22,0) 69%);
    pointer-events: none;
}
.po-inst-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 580px;
    height: 580px;
    bottom: -480px;
    left: -100px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    box-shadow: 0 0 0 85px rgba(255,255,255,.025), 0 0 0 190px rgba(255,255,255,.018);
    pointer-events: none;
}
.po-inst-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
    gap: clamp(36px, 5vw, 90px);
    align-items: center;
}
.po-inst-hero-copy { min-width: 0; }
.po-inst-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.085);
    color: rgba(255,255,255,.96);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .105em;
}
.po-inst-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffac58; box-shadow: 0 0 0 4px rgba(255,172,88,.15); }
.po-inst-hero h1 {
    max-width: 735px;
    margin-top: 23px;
    font-size: clamp(34px, 3.55vw, 56px);
    line-height: 1.16;
    letter-spacing: -.048em;
    font-weight: 750;
    color: #fff;
}
.po-inst-hero h1 em { color: #ffd5b2; font-style: normal; }
.po-inst-hero-copy > p {
    margin-top: 23px;
    max-width: 610px;
    color: rgba(255,255,255,.9);
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.85;
    font-weight: 400;
}
.po-inst-hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 15px 25px; }
.po-inst-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    min-height: 49px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
    transition: transform .18s, background .18s, box-shadow .18s;
}
.po-inst-btn:hover { transform: translateY(-2px); }
.po-inst-btn--light { background: #fff; color: #9e252b; box-shadow: 0 10px 23px rgba(65,6,17,.13); }
.po-inst-btn--light:hover { background: #fff6f0; }
.po-inst-hero-link { color: #fff; font-size: 12px; font-weight: 600; }
.po-inst-hero-link:hover { color: #ffdac1; }

/* Card visual Quem Somos */
.po-inst-showcase {
    position: relative;
    padding: 25px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 21px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 25px 65px rgba(72,9,21,.22);
    color: var(--poi-ink);
    transform: rotate(1deg);
}
.po-inst-showcase-top { display: flex; align-items: center; gap: 9px; color: #9a3440; font-size: 10px; letter-spacing: .11em; font-weight: 800; }
.po-inst-mini-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--poi-red); color: #fff; font-size: 17px; letter-spacing: -.06em; }
.po-inst-showcase-pulse { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--poi-orange); box-shadow: 0 0 0 5px rgba(244,112,22,.12); }
.po-inst-showcase h2 { margin: 23px 0 25px; color: #202b3e; font-weight: 750; letter-spacing: -.047em; line-height: 1.18; font-size: clamp(24px, 2.3vw, 33px); }
.po-inst-showcase h2 span { color: var(--poi-red); }
.po-inst-showcase-list { display: grid; gap: 8px; }
.po-inst-showcase-list > div { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f7f8fa; border: 1px solid #eceef2; border-radius: 11px; }
.po-inst-showcase-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; background: #fce8e7; color: #ac222d; border-radius: 10px; font-size: 11px; font-weight: 800; }
.po-inst-showcase-list > div > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.po-inst-showcase-list strong { font-size: 12px; color: #243043; }
.po-inst-showcase-list small { font-size: 10px; color: #768195; }
.po-inst-showcase-list > div > span:last-child { color: var(--poi-red); font-weight: 700; font-size: 17px; }
.po-inst-showcase-foot { display: flex; align-items: center; gap: 9px; margin-top: 17px; color: #68758b; font-size: 10px; font-weight: 500; }
.po-inst-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #20a36b; flex: 0 0 auto; }

/* Card lateral da Missão e dos Valores */
.po-inst-statement {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 345px;
    justify-content: center;
    padding: clamp(28px, 3vw, 42px);
    border-radius: 21px;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.11);
    box-shadow: 0 25px 60px rgba(78,11,21,.16), inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter: blur(7px);
}
.po-inst-statement-symbol { position: absolute; right: 28px; top: 12px; font-size: 67px; line-height: 1; color: rgba(255,255,255,.19); }
.po-inst-statement-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #ffd1b1; }
.po-inst-statement strong { display: block; margin-top: 20px; color: #fff; font-size: clamp(22px, 2vw, 28px); font-weight: 650; line-height: 1.45; letter-spacing: -.032em; }
.po-inst-statement-divider { width: 47px; height: 3px; margin-top: 25px; background: #ffad6a; border-radius: 4px; }
.po-inst-statement small { margin-top: 15px; color: rgba(255,255,255,.75); font-size: 11px; }

/* Navegação institucional dentro das páginas (não substitui menu geral) */
.po-inst-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    border-bottom: 1px solid var(--poi-line);
    min-height: 65px;
}
.po-inst-subnav a { display: inline-flex; align-items: center; align-self: stretch; position: relative; color: #647084; font-size: 12px; font-weight: 600; padding: 18px 1px; white-space: nowrap; }
.po-inst-subnav a:hover, .po-inst-subnav a.is-active { color: var(--poi-red); }
.po-inst-subnav a.is-active::after { position: absolute; content: ''; height: 3px; background: var(--poi-red); bottom: -1px; left: 0; right: 0; border-radius: 4px 4px 0 0; }

/* Seções e tipografia */
.po-inst-section { padding: clamp(52px, 6vw, 88px) 0; }
.po-inst-section--soft { background: var(--poi-soft); border-block: 1px solid #f0f1f4; }
.po-inst-section-head { margin-bottom: 34px; }
.po-inst-section-head--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 42px; align-items: end; }
.po-inst-section-head--split > p { padding-bottom: 5px; }
.po-inst-eyebrow { display: inline-block; color: var(--poi-red); font-weight: 750; font-size: 10.5px; letter-spacing: .14em; }
.po-inst-section h2, .po-inst-cta h2 { color: #242d3d; font-weight: 750; letter-spacing: -.043em; line-height: 1.27; font-size: clamp(25px, 2.75vw, 38px); }
.po-inst-section-head h2 { margin-top: 12px; max-width: 670px; }
.po-inst-section p { color: #5f6c7d; font-size: 13.5px; line-height: 1.85; }
.po-inst-section-head--center { max-width: 770px; margin-inline: auto; text-align: center; }
.po-inst-section-head--center h2 { margin-inline: auto; }
.po-inst-section-head--center p { margin-top: 14px; }

/* Cards padrão */
.po-inst-cards { display: grid; gap: 18px; }
.po-inst-cards--three, .po-inst-cards--values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.po-inst-card {
    min-width: 0;
    padding: 27px 25px 29px;
    border: 1px solid var(--poi-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 27px rgba(26,39,67,.035);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.po-inst-card:hover { transform: translateY(-3px); border-color: #e6b7b8; box-shadow: 0 15px 32px rgba(26,39,67,.065); }
.po-inst-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.po-inst-card-top > span:first-child { color: #a6adb9; font-size: 11px; font-weight: 750; letter-spacing: .13em; }
.po-inst-card-glyph { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: #fff0eb; color: var(--poi-red); font-size: 23px; line-height: 1; }
.po-inst-card h3 { color: #253044; font-size: 17px; font-weight: 700; line-height: 1.45; letter-spacing: -.025em; margin-bottom: 12px; }
.po-inst-card p { font-size: 12.5px; line-height: 1.85; }

/* Editorial Quem Somos */
.po-inst-editorial { display: grid; grid-template-columns: minmax(280px, .84fr) minmax(0, 1.16fr); align-items: center; gap: clamp(30px, 6vw, 80px); }
.po-inst-editorial-mark { position: relative; min-height: 330px; display: flex; flex-direction: column; justify-content: center; padding: 45px; overflow: hidden; border-radius: 18px; background: linear-gradient(132deg, #a21c28, #c82c2b 70%, #df6332); color: #fff; }
.po-inst-editorial-mark::after { content: ''; position: absolute; right: -100px; bottom: -170px; border-radius: 50%; height: 360px; width: 360px; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 0 0 52px rgba(255,255,255,.07), 0 0 0 115px rgba(255,255,255,.035); }
.po-inst-editorial-mark > span:first-child { font-weight: 750; font-size: 10px; letter-spacing: .16em; color: #ffceaf; }
.po-inst-editorial-mark strong { position: relative; z-index: 1; margin-top: 14px; font-size: clamp(30px, 3.5vw, 45px); line-height: 1.2; font-weight: 750; letter-spacing: -.06em; }
.po-inst-mark-line { height: 3px; width: 55px; margin-top: 23px; background: #ffbd89; border-radius: 4px; }
.po-inst-editorial-text h2 { margin: 12px 0 17px; }
.po-inst-editorial-text p + p { margin-top: 14px; }

/* Etapas Missão */
.po-inst-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.po-inst-step { position: relative; padding: 31px 26px 28px; border: 1px solid #e9e9ed; background: #fff; border-radius: 15px; }
.po-inst-step > span { color: #c32a31; font-weight: 750; font-size: 12px; letter-spacing: .08em; }
.po-inst-step h3 { margin-top: 28px; font-size: 18px; font-weight: 700; color: #263248; }
.po-inst-step p { margin-top: 9px; font-size: 12.5px; }
.po-inst-step::before { content: ''; position: absolute; top: 63px; left: 27px; width: 32px; height: 3px; background: linear-gradient(90deg, var(--poi-red), var(--poi-orange)); border-radius: 4px; }

/* Frase Valores */
.po-inst-principle { max-width: 990px; text-align: center; }
.po-inst-principle h2 { margin: 17px auto 19px; font-size: clamp(26px, 3.5vw, 47px); }
.po-inst-principle h2 em { color: var(--poi-red); font-style: normal; }
.po-inst-principle p { max-width: 730px; margin: auto; }
#nossos-valores { scroll-margin-top: 24px; }

/* CTA final compartilhado */
.po-inst-section--cta { padding-top: clamp(46px, 5vw, 70px); padding-bottom: clamp(46px, 5vw, 70px); }
.po-inst-cta { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: clamp(27px, 4vw, 45px); background: linear-gradient(110deg, #fff7f3, #fff 75%); border: 1px solid #f3e6e3; border-left: 4px solid var(--poi-red); border-radius: 16px; }
.po-inst-cta h2 { font-size: clamp(23px, 2.4vw, 32px); margin: 10px 0; }
.po-inst-cta p { max-width: 570px; }
.po-inst-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; }
.po-inst-btn--red { color: #fff; background: var(--poi-red); box-shadow: 0 7px 18px rgba(193,39,45,.12); }
.po-inst-btn--red:hover { background: #a62128; }
.po-inst-btn--outline { border-color: #ead3d3; background: #fff; color: #a72b30; }
.po-inst-btn--outline:hover { background: #fff6f3; }

@media (max-width: 1020px) {
    .po-inst-hero-grid { gap: 35px; }
    .po-inst-hero h1 { font-size: clamp(32px, 4vw, 47px); }
    .po-inst-showcase { padding: 19px; }
    .po-inst-section-head--split { gap: 24px; }
    .po-inst-cta { flex-wrap: wrap; }
    .po-inst-cta-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
    .po-inst-container { width: min(100% - 36px, 1220px); }
    .po-inst-hero { padding: 52px 0 54px; }
    .po-inst-hero-grid { grid-template-columns: 1fr; gap: 35px; }
    .po-inst-hero h1 { font-size: clamp(31px, 6vw, 43px); max-width: 640px; }
    .po-inst-hero-copy > p { font-size: 14px; }
    .po-inst-showcase { max-width: 520px; width: 100%; transform: none; }
    .po-inst-statement { min-height: 255px; max-width: 550px; }
    .po-inst-section-head--split, .po-inst-editorial { grid-template-columns: 1fr; }
    .po-inst-section-head--split { gap: 16px; }
    .po-inst-cards--three, .po-inst-cards--values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .po-inst-editorial-mark { min-height: 235px; }
    .po-inst-steps { grid-template-columns: 1fr; gap: 12px; }
    .po-inst-step { padding: 23px 24px; }
    .po-inst-step h3 { margin-top: 24px; }
    .po-inst-cta-actions { width: 100%; }
}
@media (max-width: 520px) {
    .po-inst-container { width: min(100% - 30px, 1220px); }
    .po-inst-kicker { font-size: 9px; }
    .po-inst-hero h1 { font-size: 31px; letter-spacing: -.045em; }
    .po-inst-hero-copy > p { margin-top: 17px; }
    .po-inst-hero-actions { margin-top: 24px; gap: 14px; }
    .po-inst-btn { min-height: 47px; padding: 12px 16px; font-size: 12px; }
    .po-inst-subnav { justify-content: space-between; gap: 10px; min-height: 57px; }
    .po-inst-subnav a { font-size: 10.5px; padding: 16px 0; }
    .po-inst-section { padding-top: 49px; padding-bottom: 49px; }
    .po-inst-section-head { margin-bottom: 27px; }
    .po-inst-section-head h2 { font-size: 26px; }
    .po-inst-cards--three, .po-inst-cards--values { grid-template-columns: 1fr; }
    .po-inst-card { padding: 24px; }
    .po-inst-card-top { margin-bottom: 16px; }
    .po-inst-editorial { gap: 26px; }
    .po-inst-editorial-mark { padding: 30px; min-height: 222px; }
    .po-inst-editorial-mark strong { font-size: 34px; }
    .po-inst-statement { padding: 26px; min-height: 245px; }
    .po-inst-statement strong { font-size: 22px; }
    .po-inst-cta { padding: 25px 19px; }
    .po-inst-cta h2 { font-size: 24px; }
    .po-inst-cta-actions { align-items: stretch; flex-direction: column; }
    .po-inst-cta-actions .po-inst-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .po-inst .po-inst-card, .po-inst .po-inst-btn { transition: none; }
}
