:root {
    --portal-primary: #0b5ed7;
    --portal-primary-dark: #083b70;
    --portal-secondary: #198754;
    --portal-text: #172033;
    --portal-muted: #69758b;
    --portal-border: #e7eaf1;
    --portal-surface: #ffffff;
    --portal-bg: #f3f8fb;
    --portal-radius: 22px;
    --portal-shadow: 0 16px 45px rgba(8, 59, 112, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
    margin: 0;
    min-height: 100vh;
    padding-bottom: 88px;
    color: var(--portal-text);
    background:
        radial-gradient(circle at 6% 4%, rgba(11, 94, 215, .08), transparent 26%),
        radial-gradient(circle at 96% 30%, rgba(25, 135, 84, .08), transparent 24%),
        var(--portal-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }

.portal-bg-orb { position: fixed; z-index: -1; border-radius: 999px; pointer-events: none; }
.portal-bg-orb-1 { width: 420px; height: 420px; top: -270px; left: -190px; background: rgba(11,94,215,.08); }
.portal-bg-orb-2 { width: 360px; height: 360px; top: 340px; right: -230px; background: rgba(25,135,84,.08); }

.portal-shell { width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 16px 0 28px; }

/* Cabeçalho */
.portal-topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.portal-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.portal-logo-box { width: 132px; height: 60px; padding: 8px 12px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid rgba(11,94,215,.08); border-radius: 16px; box-shadow: 0 8px 24px rgba(8,59,112,.07); }
.portal-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.portal-brand-copy { display: flex; flex-direction: column; min-width: 0; }
.portal-brand-copy strong { font-size: 1.03rem; line-height: 1.15; }
.portal-brand-copy small { margin-top: 2px; color: var(--portal-muted); font-size: .71rem; }
.portal-eyebrow { color: var(--portal-primary); font-size: .67rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.portal-top-actions { display: flex; align-items: center; gap: 10px; }
.portal-date { height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 8px; color: var(--portal-muted); background: rgba(255,255,255,.82); border: 1px solid var(--portal-border); border-radius: 14px; font-size: .86rem; font-weight: 700; }
.portal-access-btn { height: 44px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; color: #fff; background: var(--portal-primary); border-radius: 14px; text-decoration: none; font-size: .82rem; font-weight: 800; box-shadow: 0 9px 22px rgba(11,94,215,.18); transition: .18s ease; }
.portal-access-btn:hover { color: #fff; background: #084ea8; transform: translateY(-2px); }

/* Hero */
.portal-hero { min-height: 330px; position: relative; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.5fr); align-items: center; overflow: hidden; padding: 44px 48px; margin-bottom: 14px; color: #fff; background: radial-gradient(circle at 82% 18%, rgba(255,255,255,.18), transparent 27%), linear-gradient(120deg,#083b70 0%,#0b5ed7 52%,#198754 125%); border-radius: 30px; box-shadow: 0 22px 55px rgba(8,59,112,.18); }
.portal-hero::after { content:""; position:absolute; width:320px; height:320px; right:-95px; bottom:-165px; border:1px solid rgba(255,255,255,.16); border-radius:50%; box-shadow:0 0 0 44px rgba(255,255,255,.035),0 0 0 92px rgba(255,255,255,.025); }
.portal-hero-content { position: relative; z-index: 2; max-width: 800px; }
.portal-hero-badge { display:inline-flex; align-items:center; gap:8px; padding:7px 11px; margin-bottom:16px; border:1px solid rgba(255,255,255,.17); border-radius:999px; background:rgba(255,255,255,.10); font-size:.77rem; font-weight:800; }
.portal-hero h1 { max-width: 760px; margin:0 0 14px; font-size:clamp(2.15rem,4.2vw,3.65rem); line-height:1.02; font-weight:880; letter-spacing:-.045em; }
.portal-hero h1 span { color:#c9f7df; }
.portal-hero p { max-width:720px; margin:0; color:rgba(255,255,255,.83); font-size:1.03rem; line-height:1.65; }
.portal-hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:23px; }
.hero-btn { min-height:42px; padding:0 14px; display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:12px; text-decoration:none; font-size:.79rem; font-weight:800; transition:.18s ease; }
.hero-btn-primary { color:var(--portal-primary-dark); background:#fff; }
.hero-btn-primary:hover { color:var(--portal-primary); transform:translateY(-2px); }
.hero-btn-light { color:#fff; border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.10); }
.hero-btn-light:hover { color:#fff; background:rgba(255,255,255,.16); transform:translateY(-2px); }
.portal-hero-meta { display:flex; flex-wrap:wrap; gap:9px; margin-top:20px; }
.portal-hero-meta span { display:inline-flex; align-items:center; gap:7px; padding:7px 10px; border-radius:10px; background:rgba(255,255,255,.08); color:rgba(255,255,255,.88); font-size:.73rem; }
.portal-hero-art { position:relative; z-index:2; min-height:230px; }
.hero-main-icon { position:absolute; right:52px; top:45px; width:136px; height:136px; display:grid; place-items:center; border-radius:35px; background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.18); backdrop-filter:blur(8px); transform:rotate(-5deg); font-size:4.1rem; box-shadow:0 18px 45px rgba(0,0,0,.13); }
.hero-icon { position:absolute; display:grid; place-items:center; border-radius:18px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.16); backdrop-filter:blur(7px); }
.hero-icon-a { width:54px; height:54px; right:6px; top:13px; transform:rotate(10deg); }
.hero-icon-b { width:52px; height:52px; right:210px; top:27px; transform:rotate(-10deg); }
.hero-icon-c { width:58px; height:58px; right:5px; bottom:12px; transform:rotate(8deg); }

/* Atalhos institucionais */
.school-shortcuts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.school-shortcut { min-width:0; display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:10px; align-items:center; padding:13px 14px; color:inherit; background:#fff; border:1px solid var(--portal-border); border-radius:16px; text-decoration:none; box-shadow:0 8px 25px rgba(8,59,112,.04); transition:.18s ease; }
.school-shortcut:hover { color:inherit; transform:translateY(-2px); border-color:#c9dfef; box-shadow:0 12px 28px rgba(8,59,112,.07); }
.school-shortcut-icon { width:44px; height:44px; display:grid; place-items:center; color:var(--portal-primary); background:#edf5ff; border-radius:13px; font-size:1.08rem; }
.school-shortcut-copy { min-width:0; display:flex; flex-direction:column; }
.school-shortcut-copy strong { font-size:.79rem; line-height:1.2; }
.school-shortcut-copy small { margin-top:3px; color:var(--portal-muted); font-size:.65rem; line-height:1.3; }
.school-shortcut-arrow { color:#a6adbb; font-size:.8rem; }

/* Comunicado destaque */
.portal-alert { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:16px; padding:17px 20px; margin-bottom:18px; background:linear-gradient(90deg,#f1f9ff,#f1fbf5); border:1px solid #cfe6db; border-radius:20px; box-shadow:0 10px 26px rgba(8,59,112,.04); }
.portal-alert-icon { width:48px; height:48px; display:grid; place-items:center; color:#147447; background:#dff5e9; border-radius:14px; font-size:1.25rem; }
.portal-alert-copy span { display:block; margin-bottom:2px; color:#147447; font-size:.65rem; font-weight:900; letter-spacing:.11em; }
.portal-alert-copy h2 { margin:0 0 2px; font-size:.98rem; font-weight:820; }
.portal-alert-copy p { margin:0; color:#587069; font-size:.84rem; line-height:1.42; }
.portal-alert-btn { white-space:nowrap; border:0; padding:10px 13px; border-radius:12px; color:#0b5ed7; background:#e7f2ff; font-size:.78rem; font-weight:800; transition:.18s ease; }
.portal-alert-btn:hover { transform:translateX(2px); background:#d7ecff; }

/* Blocos */
.portal-content-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(315px,.72fr); gap:18px; margin-bottom:18px; }
.portal-section { background:var(--portal-surface); border:1px solid var(--portal-border); border-radius:var(--portal-radius); box-shadow:var(--portal-shadow); }
.portal-news-section,.portal-events-section,.portal-services-section,.school-communications-section { padding:23px; }
.portal-section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.portal-section-heading h2 { margin:1px 0 0; font-size:1.28rem; font-weight:860; letter-spacing:-.025em; }
.portal-section-heading p { margin:5px 0 0; color:var(--portal-muted); font-size:.8rem; line-height:1.4; }
.section-kicker { display:block; color:var(--portal-primary); font-size:.63rem; font-weight:900; letter-spacing:.13em; }
.section-count { padding:6px 9px; border-radius:999px; color:var(--portal-muted); background:#f7f8fb; border:1px solid var(--portal-border); font-size:.69rem; font-weight:750; }
.section-heading-icon { color:var(--portal-primary); font-size:1.23rem; }

/* Notícias */
.portal-news-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.portal-news-card { overflow:hidden; display:grid; grid-template-columns:145px minmax(0,1fr); min-width:0; min-height:176px; background:#fff; border:1px solid var(--portal-border); border-radius:18px; transition:transform .18s ease,box-shadow .18s ease; }
.portal-news-card:hover { transform:translateY(-3px); box-shadow:0 14px 30px rgba(8,59,112,.08); }
.news-visual { position:relative; min-height:100%; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.news-visual > i { position:relative; z-index:2; color:#fff; font-size:2.55rem; }
.news-visual-pattern { position:absolute; inset:0; opacity:.18; background-image:radial-gradient(circle at 20% 20%,#fff 0 2px,transparent 3px); background-size:24px 24px; }
.theme-indigo .news-visual { background:linear-gradient(135deg,#0b5ed7,#2f80ed); }
.theme-cyan .news-visual { background:linear-gradient(135deg,#0877b9,#21a5d8); }
.theme-green .news-visual { background:linear-gradient(135deg,#157f5c,#2cb989); }
.theme-orange .news-visual { background:linear-gradient(135deg,#0d6f4b,#30a46c); }
.news-category { position:absolute; z-index:3; top:10px; left:10px; max-width:calc(100% - 20px); padding:5px 8px; color:#fff; background:rgba(0,0,0,.18); border:1px solid rgba(255,255,255,.18); border-radius:999px; font-size:.58rem; font-weight:850; }
.news-body { display:flex; flex-direction:column; min-width:0; padding:14px; }
.news-date { margin-bottom:7px; color:#8a94a8; font-size:.65rem; font-weight:700; }
.news-body h3 { margin:0 0 7px; font-size:.88rem; line-height:1.28; font-weight:840; }
.news-body p { margin:0 0 12px; color:var(--portal-muted); font-size:.72rem; line-height:1.47; }
.news-link { margin-top:auto; align-self:flex-start; padding:0; border:0; color:var(--portal-primary); background:transparent; font-size:.72rem; font-weight:850; }

/* Agenda */
.portal-event-list { display:flex; flex-direction:column; gap:9px; }
.portal-event-item { display:grid; grid-template-columns:52px minmax(0,1fr); gap:9px; align-items:stretch; }
.event-date-box { min-height:58px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--portal-primary); background:#edf5ff; border:1px solid #cfe0f7; border-radius:14px; }
.event-date-box strong { font-size:1.03rem; line-height:1; }
.event-date-box span { margin-top:3px; font-size:.57rem; font-weight:900; }
.event-copy { display:grid; grid-template-columns:34px minmax(0,1fr); gap:9px; align-items:center; padding:9px 10px; border:1px solid var(--portal-border); border-radius:14px; }
.event-icon { width:34px; height:34px; display:grid; place-items:center; color:var(--portal-secondary); background:#e9f8f0; border-radius:10px; }
.event-copy h3 { margin:0; font-size:.76rem; line-height:1.25; font-weight:820; }
.event-copy p { margin:3px 0 0; color:var(--portal-muted); font-size:.64rem; }
.portal-events-note { display:flex; align-items:flex-start; gap:8px; margin-top:12px; padding:10px; color:#6d778b; background:#f8f9fc; border-radius:12px; font-size:.67rem; line-height:1.35; }

/* Comunicados */
.school-communications-section { margin-bottom:18px; }
.school-communications-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.school-communication-card { display:grid; grid-template-columns:44px minmax(0,1fr); gap:12px; padding:15px; border:1px solid var(--portal-border); border-radius:16px; background:#fff; }
.communication-icon { width:44px; height:44px; display:grid; place-items:center; color:var(--portal-primary); background:#edf5ff; border-radius:13px; font-size:1rem; }
.school-communication-card small { color:var(--portal-primary); font-size:.6rem; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.school-communication-card h3 { margin:3px 0 5px; font-size:.82rem; font-weight:830; }
.school-communication-card p { margin:0; color:var(--portal-muted); font-size:.7rem; line-height:1.45; }

/* Serviços */
.portal-services-section { margin-bottom:18px; }
.services-heading { align-items:center; }
.services-heading-icon { width:46px; height:46px; display:grid; place-items:center; color:var(--portal-primary); background:#edf5ff; border-radius:14px; font-size:1.15rem; }
.portal-services-section code { padding:2px 5px; border-radius:5px; color:#0b5ed7; background:#edf5ff; }
.portal-services-grid > [class*="col-"] { display:flex; }
.portal-services-grid .app-card { width:100%; min-height:138px; border:1px solid var(--portal-border)!important; border-radius:18px!important; background:#fff!important; box-shadow:none!important; transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important; }
.portal-services-grid .app-card:hover { transform:translateY(-3px); border-color:#c9dfef!important; box-shadow:0 13px 30px rgba(8,59,112,.08)!important; }
.portal-services-grid .app-card .card-body { width:100%; display:flex; flex-direction:column; justify-content:center; padding:18px 13px!important; }
.portal-services-grid .icon-wrap { width:52px!important; height:52px!important; display:grid; place-items:center; margin:0 auto 8px!important; border-radius:15px!important; }
.portal-services-grid .card-title { margin-top:2px!important; font-size:.86rem!important; font-weight:830!important; color:var(--portal-text)!important; }
.portal-services-grid .card-text { margin-top:4px!important; color:var(--portal-muted)!important; font-size:.69rem!important; line-height:1.35; }

/* Faixa comunidade */
.school-community-banner { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:center; padding:22px 24px; margin-bottom:18px; color:#fff; background:linear-gradient(115deg,#083b70,#0b5ed7 55%,#198754); border-radius:22px; box-shadow:0 15px 35px rgba(30,50,85,.13); }
.community-banner-icon { width:50px; height:50px; display:grid; place-items:center; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.13); border-radius:15px; font-size:1.2rem; }
.school-community-banner span { color:#c9f7df; font-size:.61rem; font-weight:900; letter-spacing:.12em; }
.school-community-banner h2 { margin:3px 0 4px; font-size:1.05rem; font-weight:840; }
.school-community-banner p { margin:0; color:rgba(255,255,255,.75); font-size:.76rem; }
.school-community-banner a { white-space:nowrap; padding:10px 13px; color:#083b70; background:#fff; border-radius:12px; text-decoration:none; font-size:.73rem; font-weight:850; }

/* Rodapé e nav */
.portal-footer { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:5px 4px 10px; color:var(--portal-muted); font-size:.71rem; }
.portal-footer > div { display:flex; gap:7px; align-items:center; }
.portal-footer a { color:var(--portal-primary); font-weight:700; text-decoration:none; }
.floating-help { position:fixed; z-index:1040; right:18px; bottom:92px; width:48px; height:48px; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,var(--portal-primary),var(--portal-secondary)); border-radius:15px; box-shadow:0 12px 26px rgba(11,94,215,.28); text-decoration:none; transition:.18s ease; }
.floating-help:hover { color:#fff; transform:translateY(-2px); }
.portal-bottom-nav { position:fixed; z-index:1035; left:50%; bottom:12px; transform:translateX(-50%); width:min(520px,calc(100% - 24px)); min-height:62px; padding:6px; display:grid; grid-template-columns:repeat(4,1fr); background:rgba(255,255,255,.94); border:1px solid rgba(222,225,233,.95); border-radius:20px; box-shadow:0 14px 40px rgba(8,59,112,.15); backdrop-filter:blur(14px); }
.portal-bottom-nav a { min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:#8b93a4; border-radius:14px; text-decoration:none; font-size:.63rem; font-weight:750; transition:.18s ease; }
.portal-bottom-nav a > i { font-size:1rem; }
.portal-bottom-nav a.active { color:var(--portal-primary); background:#edf5ff; }
.portal-bottom-nav a:hover { color:var(--portal-primary); }

/* Modais / LuMi */
.portal-modal { border:0; border-radius:22px; box-shadow:0 24px 70px rgba(8,59,112,.22); }
.portal-modal .modal-header { padding:24px 24px 12px; }
.portal-modal .modal-body { padding:12px 24px 24px; color:var(--portal-muted); line-height:1.7; }
.modal-kicker { display:block; margin-bottom:4px; color:var(--portal-primary); font-size:.64rem; font-weight:900; letter-spacing:.12em; }
.portal-modal .modal-title { font-weight:850; letter-spacing:-.02em; }
.modal-news-date { margin-top:5px; color:#8c95a6; font-size:.74rem; }
.modal-news-content { white-space:pre-line; }
#videoLumi { position:fixed; z-index:1060; right:18px; bottom:92px; width:min(300px,calc(100vw - 36px)); aspect-ratio:1/1; overflow:hidden; background:#000; border-radius:20px; box-shadow:0 20px 60px rgba(0,0,0,.28); }
#videoLumi video { width:100%; height:100%; object-fit:cover; }
#videoLumi .close { position:absolute; top:8px; right:8px; width:32px; height:32px; display:grid; place-items:center; border:0; border-radius:50%; color:#fff; background:rgba(0,0,0,.55); font-size:1.1rem; }

@media (max-width: 1080px) {
    .school-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .portal-news-card { grid-template-columns:120px minmax(0,1fr); }
    .school-communications-grid { grid-template-columns:1fr; }
}

@media (max-width: 900px) {
    .portal-hero { grid-template-columns:1fr; min-height:auto; padding:38px; }
    .portal-hero-art { display:none; }
    .portal-content-grid { grid-template-columns:1fr; }
    .portal-event-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 767.98px) {
    body { padding-bottom:82px; }
    .portal-shell { width:min(100% - 20px,1320px); padding-top:9px; }
    .portal-topbar { min-height:62px; margin-bottom:10px; }
    .portal-logo-box { width:106px; height:50px; border-radius:13px; }
    .portal-brand-copy strong { font-size:.88rem; }
    .portal-brand-copy small { display:none; }
    .portal-eyebrow { font-size:.57rem; }
    .portal-access-btn { width:42px; height:42px; padding:0; justify-content:center; border-radius:12px; }

    .portal-hero { padding:29px 24px; border-radius:23px; margin-bottom:10px; }
    .portal-hero h1 { font-size:clamp(1.9rem,9vw,2.7rem); }
    .portal-hero p { font-size:.88rem; line-height:1.55; }
    .portal-hero-actions { margin-top:18px; }
    .hero-btn { flex:1 1 130px; }
    .portal-hero-meta { margin-top:15px; }
    .portal-hero-meta span { font-size:.64rem; }

    .school-shortcuts { grid-template-columns:1fr 1fr; gap:8px; margin-bottom:10px; }
    .school-shortcut { grid-template-columns:38px minmax(0,1fr); padding:11px; border-radius:14px; }
    .school-shortcut-icon { width:38px; height:38px; border-radius:11px; }
    .school-shortcut-copy small,.school-shortcut-arrow { display:none; }
    .school-shortcut-copy strong { font-size:.73rem; }

    .portal-alert { grid-template-columns:auto minmax(0,1fr); gap:11px; padding:14px; border-radius:16px; margin-bottom:10px; }
    .portal-alert-icon { width:42px; height:42px; border-radius:12px; }
    .portal-alert-copy p { font-size:.73rem; }
    .portal-alert-btn { grid-column:1/-1; width:100%; }

    .portal-content-grid { gap:10px; margin-bottom:10px; }
    .portal-news-section,.portal-events-section,.portal-services-section,.school-communications-section { padding:16px; border-radius:19px; }
    .portal-section-heading { margin-bottom:12px; }
    .portal-section-heading h2 { font-size:1.06rem; }
    .portal-section-heading p { font-size:.72rem; }
    .section-count { display:none; }
    .portal-news-grid { grid-template-columns:1fr; gap:9px; }
    .portal-news-card { grid-template-columns:94px minmax(0,1fr); min-height:135px; }
    .news-visual > i { font-size:1.9rem; }
    .news-category { left:6px; top:6px; padding:4px 6px; font-size:.5rem; }
    .news-body { padding:11px; }
    .news-body h3 { font-size:.79rem; }
    .news-body p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:.66rem; margin-bottom:7px; }

    .portal-event-list { grid-template-columns:1fr; gap:7px; }
    .portal-events-note { margin-top:9px; }
    .school-communications-section { margin-bottom:10px; }
    .school-communications-grid { gap:8px; }
    .school-communication-card { padding:12px; }

    .portal-services-section { margin-bottom:10px; }
    .services-heading-icon { display:none; }
    .portal-services-grid { --bs-gutter-x:.65rem; --bs-gutter-y:.65rem; }
    .portal-services-grid .app-card { min-height:122px; border-radius:15px!important; }
    .portal-services-grid .app-card .card-body { padding:14px 9px!important; }
    .portal-services-grid .icon-wrap { width:46px!important; height:46px!important; border-radius:13px!important; }
    .portal-services-grid .card-title { font-size:.76rem!important; }
    .portal-services-grid .card-text { font-size:.62rem!important; }

    .school-community-banner { grid-template-columns:44px minmax(0,1fr); gap:11px; padding:16px; border-radius:18px; margin-bottom:10px; }
    .community-banner-icon { width:44px; height:44px; border-radius:13px; }
    .school-community-banner h2 { font-size:.92rem; }
    .school-community-banner p { font-size:.68rem; }
    .school-community-banner a { grid-column:1/-1; text-align:center; }

    .portal-footer { flex-direction:column; align-items:flex-start; gap:4px; padding:3px 2px 10px; }
    .floating-help { right:13px; bottom:84px; width:44px; height:44px; border-radius:14px; }
    .portal-bottom-nav { bottom:8px; width:calc(100% - 16px); min-height:58px; border-radius:17px; }
}

@media (max-width: 420px) {
    .portal-brand-copy { display:none; }
    .portal-logo-box { width:116px; }
    .portal-hero { padding:25px 20px; }
    .portal-hero-meta span:nth-child(3) { display:none; }
    .school-shortcuts { grid-template-columns:1fr 1fr; }
    .portal-news-card { grid-template-columns:86px minmax(0,1fr); }
}


/* =========================================================
   HERO INSTITUCIONAL — versão compacta
   ========================================================= */
.portal-hero {
    min-height: 220px;
    grid-template-columns: minmax(0, 1.65fr) minmax(210px, .35fr);
    padding: 26px 34px;
    border-radius: 24px;
    margin-bottom: 10px;
}
.portal-hero-content { max-width: 820px; }
.portal-hero-badge {
    padding: 5px 9px;
    margin-bottom: 10px;
    gap: 6px;
    font-size: .68rem;
}
.portal-hero h1 {
    max-width: 820px;
    margin-bottom: 8px;
    font-size: clamp(1.65rem, 3vw, 2.65rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}
.portal-hero p {
    max-width: 760px;
    font-size: .88rem;
    line-height: 1.45;
}
.portal-hero-actions {
    gap: 8px;
    margin-top: 14px;
}
.hero-btn {
    min-height: 36px;
    padding: 0 12px;
    gap: 7px;
    border-radius: 10px;
    font-size: .72rem;
}
.portal-hero-meta {
    gap: 7px;
    margin-top: 12px;
}
.portal-hero-meta span {
    padding: 5px 8px;
    gap: 6px;
    border-radius: 8px;
    font-size: .65rem;
}
.portal-hero-art { min-height: 160px; }
.hero-main-icon {
    right: 35px;
    top: 24px;
    width: 100px;
    height: 100px;
    border-radius: 27px;
    font-size: 3rem;
}
.hero-icon-a { width: 42px; height: 42px; right: 2px; top: 5px; border-radius: 14px; }
.hero-icon-b { width: 40px; height: 40px; right: 152px; top: 16px; border-radius: 13px; }
.hero-icon-c { width: 43px; height: 43px; right: 2px; bottom: 5px; border-radius: 14px; }


@media (max-width: 1100px) {
    .portal-hero { min-height:auto; padding:24px 28px; }
}

@media (max-width: 768px) {
    .portal-hero { padding:20px 18px; border-radius:19px; }
    .portal-hero-badge { margin-bottom:8px; }
    .portal-hero h1 { font-size:clamp(1.55rem,7.4vw,2.15rem); margin-bottom:7px; }
    .portal-hero p { font-size:.79rem; line-height:1.4; }
    .portal-hero-actions { margin-top:12px; }
    .hero-btn { min-height:34px; padding:0 10px; font-size:.68rem; }
    .portal-hero-meta { margin-top:10px; gap:6px; }
    .portal-hero-meta span { font-size:.60rem; padding:4px 7px; }
}

@media (max-width: 420px) {
    .portal-hero { padding:18px 16px; }
    .portal-hero-actions { display:grid; grid-template-columns:1fr 1fr; }
    .hero-btn { width:100%; }
}

/* =========================================================
   HERO INSTITUCIONAL — correção responsiva mobile/tablet
   Evita a segunda coluna invisível do artwork estreitar o texto.
   ========================================================= */
@media (max-width: 900px) {
    .portal-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
    }

    .portal-hero-content {
        width: 100%;
        max-width: none;
    }

    .portal-hero-art {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .portal-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px 16px 15px;
        border-radius: 18px;
        margin-bottom: 10px;
    }

    .portal-hero-badge {
        margin-bottom: 7px;
        padding: 4px 8px;
        gap: 5px;
        font-size: .62rem;
    }

    .portal-hero h1 {
        width: 100%;
        max-width: none;
        margin-bottom: 6px;
        font-size: clamp(1.45rem, 6.5vw, 1.85rem);
        line-height: 1.06;
        letter-spacing: -.03em;
    }

    .portal-hero p {
        width: 100%;
        max-width: none;
        font-size: .76rem;
        line-height: 1.36;
    }

    .portal-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 11px;
    }

    .hero-btn {
        width: 100%;
        min-height: 32px;
        padding: 0 8px;
        gap: 5px;
        border-radius: 9px;
        font-size: .64rem;
        white-space: nowrap;
    }

    .portal-hero-meta {
        gap: 6px;
        margin-top: 9px;
    }

    .portal-hero-meta span {
        padding: 4px 6px;
        gap: 5px;
        border-radius: 8px;
        font-size: .56rem;
        line-height: 1.15;
    }
}

@media (max-width: 420px) {
    .portal-hero {
        padding: 15px 14px 14px;
    }

    .portal-hero h1 {
        font-size: clamp(1.38rem, 7vw, 1.65rem);
    }

    .portal-hero p {
        font-size: .73rem;
        line-height: 1.34;
    }

    .portal-hero-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-hero-meta span {
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }
}
