:root {
    --color-primary: #1d4f7a;
    --color-secondary: #c9a227;
    --text: #1c2430;
    --muted: #5b6675;
    --bg: #f6f3ec;
    --card: #fff;
    --radius: 16px;
    --shadow: 0 12px 40px rgba(18, 38, 63, .08);
    --font: "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:has(body.layout-nuti) { scroll-padding-top: var(--nuti-chrome-height, 120px); }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; }
img, video, audio { max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link {
    position: absolute;
    left: 8px;
    top: -40px;
    z-index: 100;
    background: #fff;
    color: #1351b4;
    padding: 8px 12px;
    font-weight: 700;
}
.skip-link:focus { top: 8px; }
.govbr-bar {
    background: #071d41;
    color: #fff;
    font-family: "Rawline", "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
}
.govbr-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 32px;
    padding: 6px 0;
}
.govbr-logo {
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: .01em;
    white-space: nowrap;
}
.govbr-logo strong { font-weight: 800; }
.govbr-logo span { font-weight: 400; }
.govbr-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.govbr-links a {
    color: #fff;
    text-transform: uppercase;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 0 10px;
    border-right: 1px solid rgba(255,255,255,.35);
}
.govbr-links li:last-child a { border-right: 0; padding-right: 0; }
.govbr-links li:first-child a { padding-left: 0; }
.topbar { display: none; }
.ic-utility { display: none; }
.site-header { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--color-primary); display: flex; align-items: center; }
.logo img { max-height: 48px; }
.site-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.nav-toggle { display: none; }
.search-form { margin-left: auto; display: flex; gap: 8px; }
.search-form input, .search-form button, .btn, select, input, textarea { font: inherit; }
.search-form input, input, select, textarea { border: 1px solid #d7deea; border-radius: 10px; padding: .6rem .75rem; width: 100%; }
.search-form input { width: 180px; }
.btn, button.btn { display: inline-block; border: 0; border-radius: 999px; padding: .7rem 1.1rem; cursor: pointer; font-weight: 700; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-secondary { background: var(--color-secondary); color: #1c2430; }
.btn-light { background: #e8eef5; color: var(--color-primary); }
.hero { padding: 28px 0 8px; }
.hero-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.hero-card div { padding: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--color-secondary); font-size: .75rem; font-weight: 800; }
.section { padding: 28px 0 48px; }
.grid-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.card-post { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; }
.thumb {
    position: relative;
    display: block;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary), #89a7c2);
}
.thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
}
.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), #89a7c2);
}
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.badge { background: #eef4fa; color: var(--color-primary); padding: .2rem .55rem; border-radius: 999px; font-size: .8rem; width: max-content; }
.badge-ghost { background: #f4f1e8; color: #6a5a1e; }
.badge-open { background: #e6f6ea; color: #1d6b38; }
.badge-project-planejamento { background: #eef0f2; color: #5b6675; }
.badge-project-andamento { background: #e8eef5; color: #1d4f7a; }
.badge-project-concluido { background: #e6f6ea; color: #1d6b38; }
.badge-project-suspenso { background: #f8f3de; color: #8a7010; }
.badge-project-encerrado { background: #f8e8e6; color: #9b2c2c; }
.grid-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}
.project-cover-link { display: block; color: inherit; }
.project-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #0b2744, #1d4f7a 58%, #12355b);
}
.project-cover-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.project-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 39, 68, .12), rgba(11, 39, 68, .78));
}
.project-cover-nuti,
.project-cover-nuti-text {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    height: 34px;
    max-width: 30%;
    object-fit: contain;
    background: #fff;
    padding: 4px 6px;
    border-radius: 6px;
}
.project-cover-nuti-text {
    display: grid;
    place-items: center;
    color: #0b2744;
    font-weight: 800;
    font-size: .8rem;
    width: auto;
    max-width: none;
    padding: 6px 10px;
    height: auto;
}
.project-cover:not(.is-fallback) .project-cover-partner {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    height: 38px;
    max-width: 32%;
    object-fit: contain;
    background: #fff;
    padding: 4px 6px;
    border-radius: 6px;
}
.project-cover.is-fallback .project-cover-shade {
    background: linear-gradient(180deg, rgba(11, 39, 68, .08), rgba(11, 39, 68, .52));
}
.project-cover.is-fallback .project-cover-partner {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-height: 42%;
    max-width: 44%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .25));
}
.project-cover.is-fallback:not(:has(.project-cover-partner)) .project-cover-name {
    bottom: auto;
    top: 52%;
    transform: translateY(-50%);
    text-align: center;
}
.project-cover-name {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.25;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.project-cover:not(.is-fallback) .project-cover-name { right: 38%; }
.project-card-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0;
    font-size: .85rem;
    font-weight: 700;
    color: var(--color-primary);
}
.project-card-sep { opacity: .45; }
.card-project .card-body h2 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-project .card-body > p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.project-card-meta { margin: 0; font-size: .9rem; color: #556; }
.project-hero { margin: 0 0 24px; }
.project-hero .project-cover { border-radius: 12px; }
.project-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin: 12px 0 0;
}
.project-logos img {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}
@media (max-width: 960px) {
    .grid-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .grid-projects { grid-template-columns: 1fr; }
    .project-cover:not(.is-fallback) .project-cover-name { right: 14px; }
}
.news-kicker {
    margin: 0;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-secondary, #c9a227);
}
.news-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.news-card-media { display: block; color: inherit; }
.news-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #0b2744, #1d4f7a 55%, #12355b);
}
.news-cover-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.news-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 39, 68, .08), rgba(11, 39, 68, .55));
    pointer-events: none;
}
.news-cover:not(.is-fallback) .news-cover-shade { background: transparent; }
.news-cover-mark {
    position: absolute;
    right: -18%;
    bottom: -28%;
    width: 58%;
    padding-top: 58%;
    border-radius: 50%;
    border: 18px solid rgba(201, 162, 39, .22);
    pointer-events: none;
}
.news-cover:not(.is-fallback) .news-cover-mark { display: none; }
.news-cover-logo,
.news-cover-logo-text {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    height: 36px;
    max-width: 28%;
    object-fit: contain;
    background: #fff;
    padding: 4px 6px;
    border-radius: 6px;
}
.news-cover-logo-text {
    display: grid;
    place-items: center;
    color: #0b2744;
    font-weight: 800;
    font-size: .8rem;
    height: auto;
    max-width: none;
    padding: 6px 10px;
}
.news-cover-topic {
    position: absolute;
    top: 16px;
    right: 14px;
    z-index: 2;
    color: #f4e7b5;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.news-cover-name {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.25;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
}
.news-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.news-card-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
}
.news-card-title a { color: inherit; }
.news-card-excerpt {
    margin: 0;
    color: #445;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
}
.news-card-meta {
    margin: 0;
    color: #667;
    font-size: .9rem;
}
.news-more {
    margin-top: auto;
    font-weight: 700;
    color: var(--color-primary);
    width: max-content;
}
.news-more:hover { text-decoration: underline; }
.news-card.is-feature {
    display: grid;
    grid-template-columns: 55fr 45fr;
    align-items: stretch;
}
.news-card.is-feature .news-cover { height: 100%; aspect-ratio: auto; min-height: 260px; }
.news-card.is-feature .news-card-title { font-size: 1.55rem; }
.news-card.is-lead .news-card-title { font-size: 1.45rem; }
.news-card.is-side {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 0;
}
.news-card.is-side .news-card-body { padding: 12px 14px; gap: 6px; }
.news-card.is-side .news-card-title { font-size: 1.02rem; -webkit-line-clamp: 3; line-clamp: 3; }
.news-editorial {
    display: grid;
    grid-template-columns: 1.35fr .9fr;
    gap: 20px;
    align-items: stretch;
}
.news-editorial-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}
.news-editorial-side:not(:has(.news-card:nth-child(2))) {
    grid-template-rows: 1fr;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
    align-items: stretch;
}
.news-grid.is-page { margin-top: 0; }
.news-featured { margin: 0 0 24px; }
.news-featured .news-cover { border-radius: 12px; }
.news-featured figcaption { margin-top: 8px; color: #667; font-size: .9rem; }
.news-show .news-kicker { margin-bottom: 8px; }
@media (max-width: 960px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-editorial { grid-template-columns: 1fr; }
    .news-editorial-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
    .news-card.is-feature { grid-template-columns: 1fr; }
    .news-card.is-feature .news-cover { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-editorial-side,
    .news-card.is-side { grid-template-columns: 1fr; }
}
.event-type-minicurso { --event-type-color: #0f7a5a; }
.event-type-hackathon { --event-type-color: #c45c12; }
.event-type-palestra { --event-type-color: #1d4f7a; }
.event-type-mesa-redonda { --event-type-color: #6b3fa0; }
.event-type-workshop { --event-type-color: #c9a227; }
.event-type-mostra-academica { --event-type-color: #b42318; }
.event-type-outros { --event-type-color: #5b6675; }
.badge.event-type-minicurso { background: #e6f4ef; color: #0f7a5a; }
.badge.event-type-hackathon { background: #fbeee4; color: #c45c12; }
.badge.event-type-palestra { background: #e8eef5; color: #1d4f7a; }
.badge.event-type-mesa-redonda { background: #f1ebf7; color: #6b3fa0; }
.badge.event-type-workshop { background: #f8f3de; color: #8a7010; }
.badge.event-type-mostra-academica { background: #f8e8e6; color: #b42318; }
.badge.event-type-outros { background: #eef0f2; color: #5b6675; }
.event-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.event-card-meta { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; display: grid; gap: 4px; }
.event-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 16px;
    margin: 0 0 24px;
    padding: 16px;
    background: #f5f8fb;
    border-radius: 12px;
    list-style: none;
}
.event-facts strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.event-facts a { font-weight: 700; }
.event-cta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    background: #eef4fa;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 0 0 24px;
}
.event-cta h2 { margin: 0 0 6px; }
.event-cta p { margin: 0; }
.event-agenda { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.event-agenda li {
    display: grid;
    gap: 4px;
    padding: 12px 0 12px 14px;
    border-left: 3px solid var(--color-secondary);
}
.event-agenda time { color: var(--muted); font-size: .9rem; }
.event-speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.event-speakers article { background: #f7f9fc; border-radius: 12px; padding: 16px; }
.event-speakers img, .event-speakers .nuti-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.event-speakers h3 { margin: 10px 0 6px; }
.event-calendar {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr);
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.event-calendar-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.event-calendar-head h3 {
    margin: 0;
    text-transform: capitalize;
    font-size: 1.25rem;
}
.event-calendar-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eef4fa;
    color: var(--color-primary);
    font-size: 1.4rem;
    font-weight: 700;
}
.event-calendar-nav.is-disabled { opacity: .25; }
.event-calendar-filters {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.event-calendar-filters button {
    border: 1px solid #d7e2ee;
    background: #fff;
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--event-type-color, var(--color-primary));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--event-type-color, transparent) 28%, transparent);
}
.event-calendar-filters button.is-active {
    background: var(--event-type-color, var(--color-primary));
    color: #fff;
    border-color: transparent;
    box-shadow: none;
}
.event-calendar-grid { min-width: 0; display: grid; gap: 6px; }
.event-calendar-weekdays,
.event-calendar-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}
.event-calendar-weekdays span {
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    padding: 4px 0 8px;
}
.event-calendar-day {
    min-height: 88px;
    border: 1px solid #e6edf5;
    background: #fbfcfe;
    border-radius: 10px;
    padding: 8px;
    text-align: left;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}
.event-calendar-day.is-out { background: transparent; border-color: transparent; cursor: default; }
.event-calendar-day.is-today { box-shadow: inset 0 0 0 2px var(--color-secondary); }
.event-calendar-day.has-events { background: #eef5fb; }
.event-calendar-day.is-selected {
    background: #fff;
    color: inherit;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary);
}
.event-calendar-day.is-today.is-selected {
    box-shadow: 0 0 0 2px var(--color-primary), inset 0 0 0 2px var(--color-secondary);
}
.event-calendar-day:not(.has-events) .event-calendar-dots,
.event-calendar-day:not(.has-events) .event-calendar-titles { display: none; }
.event-calendar-num { font-weight: 800; }
.event-calendar-dots { display: flex; gap: 3px; }
.event-calendar-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--event-type-color, var(--color-secondary));
    display: block;
}
.event-calendar-titles { display: grid; gap: 2px; }
.event-calendar-titles small {
    font-size: .68rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--event-type-color, inherit);
}
.event-calendar-titles [data-event-type][hidden],
.event-calendar-dots [data-event-type][hidden],
.event-calendar-panel [data-event-type][hidden] { display: none !important; }
.event-calendar-panel h4 { margin: 0 0 10px; }
.event-calendar-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.event-calendar-panel a {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f8fb;
    border-left: 4px solid var(--event-type-color, var(--color-primary));
}
.event-calendar-panel time,
.event-calendar-panel span { color: var(--muted); font-size: .85rem; }
.page-head { background: var(--color-primary); color: #fff; padding: 36px 0; }
.page-head a, .page-head p { color: #fff; }
.article { background: var(--card); margin: 24px auto 48px; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.featured { width: 100%; border-radius: 12px; margin: 16px 0; }
.content img { border-radius: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.embed { position: relative; padding-top: 56.25%; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.share, .related { margin-top: 28px; }
.site-footer { background: #132132; color: #dce6f2; padding: 32px 0 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.copyright { text-align: center; opacity: .8; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.pagination a { background: #fff; padding: .4rem .75rem; border-radius: 8px; }
.pagination .current { background: var(--color-primary); color: #fff; }
.search-form.large input { width: min(480px, 100%); }
@media (max-width: 800px) {
    .govbr-links { display: none; }
    .hero-card { grid-template-columns: 1fr; }
    .nav-toggle { display: inline-block; margin-left: auto; }
    .site-nav { display: none; width: 100%; flex-direction: column; }
    .site-nav.open { display: flex; }
    .search-form { margin-left: 0; width: 100%; }
    .search-form input { width: 100%; }
    .event-calendar { grid-template-columns: 1fr; }
    .event-calendar-day { min-height: 56px; padding: 6px; }
    .event-calendar-titles { display: none; }
}
