/* UNIARA | Pós-graduação — Layout responsivo, sem dependência de frameworks */
:root {
  --uniara-blue: #009fdb;
  --uniara-blue-dark: #007ba9;
  --uniara-red: #e94534;
  --ink: #18324a;
  --ink-deep: #10263b;
  --muted: #5b6e7d;
  --border: #e4edf2;
  --surface: #ffffff;
  --canvas: #f7fafc;
  --shadow: 0 16px 40px rgba(22, 66, 94, .07);
  --radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--uniara-blue-dark); }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden], .empty-state[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--uniara-red); outline-offset: 3px; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 12px; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; z-index: 101; }
.skip-link:focus { top: 10px; color: #fff; }

/* Navegação */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(211,230,239,.8); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 126px; }
.brand-fallback { display: none; align-items: center; gap: 4px; color: var(--uniara-blue); font-size: 31px; font-weight: 850; line-height: 1; letter-spacing: -.075em; }
.brand-fallback span { font-size: 19px; color: var(--uniara-red); align-self: flex-start; line-height: .8; }
.is-logo-missing .brand-fallback { display: inline-flex; }
.is-logo-missing img[data-brand-image] { display: none; }
/* Logo original: 480 x 83 px. Exibir sem distorcer a proporção. */
.brand img { display: block; width: 220px; max-width: 100%; height: auto; object-fit: contain; }
.main-nav { display: flex; gap: 32px; margin-left: auto; align-items: center; }
.main-nav a { font-size: 14px; font-weight: 650; color: #395469; transition: color .2s; }
.main-nav a:hover { color: var(--uniara-blue); }
.header-link { border: 1px solid #b9deec; color: var(--uniara-blue-dark); background: #f3fbff; padding: 10px 18px; border-radius: 11px; font-size: 14px; font-weight: 750; white-space: nowrap; }
.header-link:hover { background: #dff5ff; }
.header-link span { margin-left: 8px; font-size: 16px; }

/* Destaque editorial */
.hero { overflow: hidden; background: radial-gradient(circle at 8% 22%, #dff5ff 0, transparent 36%), linear-gradient(120deg, #f5fcff 0%, #eaf8fe 62%, #f6fcff 100%); position: relative; }
.hero::after { content: ""; width: 480px; height: 480px; border: 1px solid rgba(0,159,219,.1); border-radius: 50%; position: absolute; left: -320px; bottom: -320px; pointer-events: none; }
/* Destaque com texto à esquerda e painel visual à direita. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: clamp(28px, 4vw, 68px); align-items: stretch; padding-block: 76px 86px; }
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: 850px; align-self: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #cdeaf5; color: #007fae; background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 11px; font-weight: 850; letter-spacing: .095em; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--uniara-red); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font-size: clamp(40px, 4.5vw, 64px); line-height: 1.09; font-weight: 830; letter-spacing: -.05em; color: var(--ink-deep); margin: 25px 0 21px; }
.hero h1 span { color: var(--uniara-blue); }
.hero-copy > p { max-width: 670px; font-size: 17px; line-height: 1.75; color: #516c7f; margin-bottom: 29px; }
/* Botões e destaques compartilham a mesma largura no desktop. */
.hero-controls { display: flex; flex-direction: column; width: max-content; max-width: 100%; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.button { border: 1px solid transparent; min-height: 50px; padding: 12px 22px; border-radius: 12px; display: inline-flex; justify-content: center; align-items: center; gap: 14px; font-size: 14px; line-height: 1.2; font-weight: 800; transition: transform .2s, background .2s, box-shadow .2s; text-align: center; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--uniara-blue); color: #fff; box-shadow: 0 10px 18px rgba(0,159,219,.18); }
.button-primary:hover { color: #fff; background: var(--uniara-blue-dark); box-shadow: 0 13px 24px rgba(0,159,219,.22); }
.button-ghost { background: #fff; border-color: #d6e9f1; color: #28627d; }
.button-ghost:hover { background: #f1faff; }
/* Os três destaques vão da borda do primeiro botão até o fim do segundo. */
.hero-highlights { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 8px; margin-top: 32px; color: #567589; font-size: 12px; font-weight: 650; }
.hero-highlights > span { white-space: nowrap; }
.hero-highlights > span { display: inline-flex; align-items: center; gap: 6px; }
.highlight-check { display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; color: #fff; background: var(--uniara-blue); width: 17px; height: 17px; font-size: 11px; font-weight: 900; }
/* Painel PÓS+: acompanha a altura do conteúdo à esquerda no desktop, sem altura mínima. */
.hero-art { align-self: stretch; min-height: 0; height: 100%; border-radius: 32px; position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(140deg,#008ac3,#009fdb 45%,#04608b); box-shadow: 0 24px 56px rgba(0,109,155,.19); padding: clamp(18px, 2.1vw, 28px) clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; justify-content: space-between; color: white; }
.hero-art::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 78% 14%, rgba(255,255,255,.21), transparent 45%); z-index: -1; }
.art-orbit { position: absolute; pointer-events: none; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; z-index: -1; }
.art-orbit-one { width: 470px; height: 470px; right: -155px; bottom: -220px; }
.art-orbit-two { width: 330px; height: 330px; right: -88px; top: -148px; }
.art-small-label { font-size: 11px; letter-spacing: .17em; font-weight: 800; color: #d5f4ff; }
.art-small-label span { margin-inline: 8px; color: #ffdfdb; }
/* Mantém a caixinha sempre ao lado do sinal +, inclusive se o painel mudar de largura. */
.art-headline { display: flex; align-items: center; gap: 5px; min-width: 0; }
.art-type { font-size: clamp(70px, 8vw, 116px); font-weight: 900; line-height: .9; letter-spacing: -.1em; color: rgba(255,255,255,.97); padding: 0; white-space: nowrap; flex: 0 0 auto; }
.art-type span { font-size: .49em; vertical-align: .23em; letter-spacing: 0; color: #ff9e90; }
.art-statement { font-weight: 760; font-size: clamp(21px, 2.2vw, 29px); line-height: 1.16; letter-spacing: -.04em; }
.art-bar { border-top: 1px solid rgba(255,255,255,.35); margin-top: 8px; padding-top: 10px; display: flex; justify-content: space-between; gap: 10px; font-size: clamp(8px, .75vw, 10px); letter-spacing: .11em; font-weight: 750; color: #d9f7ff; }
.art-floating { position: relative; display: inline-flex; flex: 0 0 auto; gap: 7px; align-items: center; background: #fff; color: #15506b; border-radius: 12px; box-shadow: 0 12px 22px rgba(0,36,64,.17); padding: 8px 10px 8px 8px; font-size: 10px; font-weight: 800; line-height: 1.22; letter-spacing: 0; transform: translateY(-7px) rotate(3deg); transform-origin: left center; }
.floating-mark { flex: 0 0 31px; width: 31px; height: 31px; border-radius: 9px; background: #ffe7e1; color: var(--uniara-red); font-size: 21px; display: grid; place-items: center; }

/* Grade pesquisável de programas */
.programs-section { background: var(--canvas); padding: 26px 0 105px; scroll-margin-top: 93px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.section-kicker { display: inline-block; text-transform: uppercase; color: var(--uniara-blue-dark); font-size: 11px; font-weight: 850; letter-spacing: .16em; margin-bottom: 14px; }
.section-heading h2, .faq-heading h2 { font-size: clamp(31px, 3.1vw, 43px); line-height: 1.15; letter-spacing: -.045em; color: var(--ink-deep); margin-bottom: 12px; }
.section-heading p { margin: 0; max-width: 640px; font-size: 15px; color: var(--muted); }
.program-count { flex: 0 0 auto; white-space: nowrap; padding: 9px 14px; background: #e6f5fc; color: #007cae; font-size: 12px; font-weight: 800; border-radius: 999px; }
.filter-panel { display: flex; gap: 14px; justify-content: space-between; align-items: center; background: white; padding: 12px; border: 1px solid var(--border); border-radius: 17px; box-shadow: 0 7px 18px rgba(13,73,106,.035); }
.filter-tabs { display: flex; gap: 4px; min-width: 0; }
.filter-tab { display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; padding: 12px 15px; background: transparent; border: 0; border-radius: 10px; color: #607685; font-weight: 750; font-size: 13px; transition: background .2s, color .2s; }
.filter-tab span { color: inherit; opacity: .72; font-size: 11px; }
.filter-tab:hover { background: #eff8fc; }
.filter-tab.is-active { background: var(--uniara-blue); color: #fff; box-shadow: 0 6px 12px rgba(0,159,219,.17); }
.search-box { flex: 0 1 320px; min-width: 200px; display: flex; align-items: center; gap: 10px; background: #f7fbfd; border: 1px solid #e2edf3; border-radius: 11px; padding: 0 13px; color: #7992a3; }
.search-box:focus-within { border-color: var(--uniara-blue); box-shadow: 0 0 0 3px rgba(0,159,219,.12); }
.search-box input { min-width: 0; width: 100%; height: 44px; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 13px; }
.search-box input:focus-visible { outline: 0; }
.search-box input::placeholder { color: #8199a7; }
.results-info { font-size: 12px; color: #677f90; margin: 22px 0 17px; }
.program-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; align-items: stretch; }
.program-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.program-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(22,66,94,.13); }
.program-cover { height: 185px; position: relative; overflow: hidden; background: linear-gradient(135deg, #e1f6ff 0%,#c9ebfb 48%, #b7e6f9 100%); }
.program-cover::before {
  content: none;
}

.program-cover img { height: 100%; width: 100%; display: block; object-fit: cover; object-position: center; }
.program-cover img.is-broken { display: none; }
.cover-type, .status-pill { position: absolute; z-index: 1; top: 14px; font-weight: 850; font-size: 10px; letter-spacing: .045em; border-radius: 999px; padding: 7px 12px; line-height: 1.3; }
.cover-type { left: 14px; color: #234e66; background: rgba(255,255,255,.94); }
.status-pill { right: 14px; color: #fff; max-width: calc(100% - 125px); text-align: center; }
.status-pill.is-closed { background: var(--uniara-red); }
.status-pill.is-open { background: #188a64; }
.status-pill.is-soon { background: #b9611d; }
.status-pill.is-pending { background: #5b7183; }
.program-content { display: flex; flex: 1 1 auto; flex-direction: column; padding: 22px 23px 0; }
.program-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.capes-badge { color: #007bb4; background: #e6f6fd; padding: 5px 9px; border-radius: 7px; font-size: 11px; font-weight: 850; line-height: 1.5; }
.program-category { font-size: 11px; color: #718898; font-weight: 680; }
.program-card h3 { color: var(--ink-deep); font-size: 18px; font-weight: 780; letter-spacing: -.025em; line-height: 1.36; margin: 0 0 17px; min-height: 73px; }
.program-period { display: grid; grid-template-columns: 19px 1fr; align-items: start; gap: 8px; border-top: 1px solid #ecf2f6; padding-top: 15px; margin-bottom: 21px; font-size: 12px; color: #5d7788; line-height: 1.55; }
.program-period svg { color: #80a2b6; margin-top: 2px; }
.program-period strong { display: block; font-size: 11px; color: #38566b; }
.program-period.awaiting { color: #728292; }
/* Ação única do card: abre o modal sem aumentar a altura da grade. */
.program-details { padding: 0 23px 20px; margin-top: auto; }
.program-details-trigger {
  width: 100%; min-height: 48px; border: 1px solid #bfe7f6;
  background: #effaff; color: #007cae; border-radius: 11px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 13px 15px; cursor: pointer; text-align: left;
  font-size: 13px; font-weight: 850; transition: background .2s, border-color .2s;
}
.program-details-trigger:hover { background: #d9f4ff; border-color: #7bcfea; color: #006a99; }
.detail-chevron, .faq-chevron { display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; flex: 0 0 auto; }
.program-details-trigger .detail-chevron { transform: rotate(-45deg); }
.detail-body { padding: 3px 0 22px; font-size: 13px; color: #526777; line-height: 1.67; overflow-wrap: anywhere; }
.detail-body p { margin: 0 0 8px; }
.detail-body ul { margin: 9px 0 13px; padding-left: 20px; }
.detail-body li { margin: 0 0 6px; }
.detail-body strong { color: #334f65; }
/* Cronograma dos processos seletivos: compacto no card e legível em telas pequenas. */
.selection-schedule { margin: 1px 0 23px; padding-bottom: 18px; border-bottom: 1px solid #e6eef4; }
.selection-schedule h4, .program-description h4 { font-size: 14px; margin: 0 0 15px; color: #123751; line-height: 1.4; }
.schedule-list { list-style: none; margin: 0 !important; padding: 0 0 0 7px !important; }
.schedule-event { position: relative; display: grid; grid-template-columns: 14px minmax(0,1fr); column-gap: 9px; margin: 0 !important; padding: 0 0 17px; }
.schedule-event:not(:last-child)::before { content: ""; position: absolute; top: 13px; bottom: 0; left: 5px; border-left: 1px solid #bedfeb; }
.schedule-marker { width: 11px; height: 11px; margin-top: 4px; border: 3px solid var(--uniara-blue); background: #fff; border-radius: 50%; position: relative; z-index: 1; }
.schedule-title { display: block; margin-bottom: 3px; font-size: 12px; line-height: 1.45; }
.schedule-date { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; font-weight: 740; color: #007cae; line-height: 1.48; }
.schedule-date svg { flex: 0 0 15px; height: 15px; margin-top: 1px; }
.schedule-event p { margin: 5px 0 0 !important; font-size: 12px; line-height: 1.6; }
.program-description { margin-top: 15px; }
.program-description h4 { margin-bottom: 10px; }

.whatsapp-link { margin-top: 18px; padding: 11px 14px; display: inline-flex; gap: 9px; align-items: center; border: 1px solid #bdebd5; border-radius: 10px; background: #f3fdf8; color: #167b4b; font-size: 12px; font-weight: 800; }
.whatsapp-link:hover { background: #e2f9ed; color: #116b41; }
.whatsapp-link svg { width: 17px; height: 17px; }
.empty-state { text-align: center; display: grid; justify-items: center; margin-top: 16px; padding: 45px 18px; border: 1px dashed #c8dfe9; border-radius: 20px; background: #fff; }
.empty-state > span { font-size: 52px; line-height: 1; color: var(--uniara-blue); }
.empty-state h3 { margin: 12px 0 6px; font-size: 22px; }
.empty-state p { color: var(--muted); font-size: 14px; }

/* Perguntas frequentes */
.faq-section { background: white; padding: 100px 0 112px; scroll-margin-top: 93px; }
.faq-layout { display: grid; grid-template-columns: minmax(240px,.82fr) minmax(0,1.18fr); gap: clamp(45px,8vw,126px); align-items: start; }
.faq-heading { position: sticky; top: 130px; }
.faq-heading h2 { font-size: clamp(34px,3.5vw,48px); margin: 0 0 17px; }
.faq-heading h2 span { color: var(--uniara-blue); }
.faq-heading p { color: var(--muted); max-width: 360px; font-size: 15px; line-height: 1.7; }
.faq-institutional-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 18px; color: var(--uniara-blue-dark); font-weight: 820; font-size: 14px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 15px; justify-content: space-between; padding: 22px 5px; font-size: 15px; line-height: 1.45; font-weight: 780; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--uniara-blue); }
.faq-item[open] .faq-chevron { transform: rotate(225deg); }
.faq-item[open] summary { color: var(--uniara-blue-dark); }
.faq-answer { padding: 0 35px 22px 5px; color: #63798a; font-size: 14px; line-height: 1.78; }

/* Conversão e rodapé */
.contact-section { background: #fff; padding: 0 0 85px; }
.contact-band { background: linear-gradient(115deg,#0786bb,#009fdb 72%,#19afdd); border-radius: 24px; padding: 40px 47px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; position: relative; }
.contact-band::before { content: ""; position: absolute; width: 250px; height: 250px; right: 110px; bottom: -175px; border: 35px solid rgba(255,255,255,.075); border-radius: 50%; }
.contact-band > * { position: relative; z-index: 1; }
.contact-eyebrow { font-size: 11px; color: #d0f6ff; letter-spacing: .15em; font-weight: 800; }
.contact-band h2 { margin: 10px 0 9px; max-width: 670px; font-size: clamp(24px,2.4vw,34px); line-height: 1.2; letter-spacing: -.032em; }
.contact-band p { color: #e2f8ff; margin: 0; font-size: 14px; }
.button-light { background: #fff; color: #007cae; white-space: nowrap; flex: 0 0 auto; }
.button-light:hover { color: #007cae; background: #e9f8ff; }
.site-footer { border-top: 1px solid var(--border); background: #f8fbfd; padding: 47px 0 26px; }
.footer-main { display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.footer-logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
/* A mesma logo 480 x 83 px do cabeçalho, em tamanho proporcional. */
.footer-logo-link img { display: block; width: 220px; max-width: 100%; height: auto; object-fit: contain; }
.footer-brand p { margin: 2px 0 0; color: #70899b; font-size: 12px; }
.footer-social { display: flex; gap: 17px; flex-wrap: wrap; }
.footer-social a { font-size: 12px; color: #506b7e; font-weight: 740; }
/* Logos institucionais: centralizadas mesmo com quantidade variável. */
.institutional-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 25px 35px;
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 34px;
  padding: 32px 0;
}
.institutional-logos img {
  display: block;
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  flex-shrink: 0;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); padding-top: 19px; }
.footer-bottom p { color: #7991a0; font-size: 11px; margin: 0; }
.footer-bottom a { color: #52738a; text-decoration: underline; text-underline-offset: 3px; }


/* Modal responsivo dos programas (dialog nativo com foco acessível). */
body.modal-open { overflow: hidden; }
.program-modal {
  position: fixed;
  width: min(940px, calc(100% - 40px));
  max-width: none;
  height: min(820px, calc(100dvh - 64px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #deebf2;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(4, 33, 52, .26);
  overflow: hidden;
}
.program-modal.is-compact { height: fit-content; }
.program-modal.is-compact .modal-shell { height: auto; max-height: calc(100dvh - 64px); }
.program-modal.is-compact .modal-body { max-height: calc(100dvh - 245px); }
.program-modal:not([open]) { display: none; }
.program-modal[open] { display: block; }
.program-modal::backdrop { background: rgba(7, 29, 46, .70); backdrop-filter: blur(5px); }
.modal-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex: 0 0 auto; padding: 27px 32px 24px; border-bottom: 1px solid var(--border); background: #fff; }
.modal-header-info { min-width: 0; }
.modal-kicker { display: inline-block; margin-bottom: 9px; color: var(--uniara-blue-dark); font-size: 11px; font-weight: 850; letter-spacing: .13em; }
.modal-header h2 { font-size: clamp(21px, 2.45vw, 29px); line-height: 1.2; letter-spacing: -.035em; margin: 0; max-width: 750px; color: var(--ink-deep); }
.modal-close { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #dce8ee; border-radius: 12px; color: #46687a; background: #f5fafc; transition: background .2s, color .2s; }
.modal-close:hover { background: #e7f5fb; color: #006f9b; }
.modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 32px 30px; scrollbar-gutter: stable; }
.modal-meta { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 15px; }
.modal-meta .capes-badge { font-size: 12px; }
.modal-status { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: #f2f6f9; color: #547082; font-size: 11px; font-weight: 820; }
.modal-status.is-open { background: #e4f8ee; color: #126b4f; }
.modal-status.is-closed { background: #fff0ee; color: #b33a2d; }
.modal-status.is-soon { background: #fff4df; color: #91511b; }
.modal-period { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 24px; padding: 12px 14px; border-radius: 11px; border: 1px solid #e0edf3; background: #f5fbff; font-size: 13px; color: #526e80; }
.modal-period svg { flex: 0 0 17px; margin-top: 2px; color: var(--uniara-blue-dark); }
.modal-period strong { color: var(--ink-deep); }
.modal-columns { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 30px; align-items: start; }
.modal-columns.is-single { grid-template-columns: 1fr; }
.modal-columns.is-single .modal-description { max-width: 760px; }
.modal-schedule { min-width: 0; padding: 22px; border: 1px solid #dfedf4; background: #f8fcff; border-radius: 16px; }
.modal-schedule .selection-schedule { margin: 0; padding: 0; border-bottom: 0; }
.modal-schedule .selection-schedule h4, .modal-description h3 { font-size: 17px; color: var(--ink-deep); letter-spacing: -.015em; margin: 0 0 22px; line-height: 1.35; }
.modal-schedule .schedule-title { font-size: 13px; }
.modal-schedule .schedule-date { font-size: 12px; }
.modal-schedule .schedule-event { padding-bottom: 19px; }
.modal-description { min-width: 0; overflow-wrap: anywhere; }
.modal-description-content { font-size: 13px; line-height: 1.75; color: #526777; }
.modal-description-content strong { color: var(--ink-deep); }
.modal-description-content ul { padding-left: 21px; margin: 10px 0 18px; }
.modal-description-content li { margin: 0 0 7px; }
/* Critérios avaliativos aparecem apenas nos programas que os informaram. */
.modal-selection-info {
  margin-bottom: 27px;
  padding: 18px 19px;
  border: 1px solid #d9ecf5;
  border-radius: 14px;
  background: #f5fbff;
}
.modal-selection-info h3 { margin-bottom: 12px; }
.modal-selection-info p { margin: 0 0 12px; }
.modal-selection-info p:last-child { margin-bottom: 0; }
.modal-footer { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; justify-content: flex-end; flex: 0 0 auto; padding: 17px 32px; border-top: 1px solid #e4edf2; background: #fff; }
.modal-site-link, .modal-whatsapp-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 11px; padding: 11px 17px; font-size: 13px; font-weight: 820; text-align: center; }
.modal-site-link { background: var(--uniara-blue); color: #fff; }
.modal-site-link:hover { background: var(--uniara-blue-dark); color: #fff; }
.modal-whatsapp-link { background: #edfbf4; color: #18744c; border: 1px solid #b9e6cc; }
.modal-whatsapp-link:hover { background: #ddf7e9; color: #105f3d; }
.modal-whatsapp-link svg { flex: 0 0 17px; width: 17px; }

@media (max-width: 680px) {
  .program-modal { width: calc(100% - 20px); height: min(100dvh - 20px, 920px); max-height: calc(100dvh - 20px); border-radius: 18px; }
  .program-modal.is-compact .modal-shell { max-height: calc(100dvh - 20px); }
  .program-modal.is-compact .modal-body { max-height: calc(100dvh - 230px); }
  .modal-header { padding: 20px 20px 17px; gap: 12px; }
  .modal-kicker { font-size: 10px; }
  .modal-header h2 { font-size: clamp(19px, 5.2vw, 25px); }
  .modal-close { flex-basis: 40px; width: 40px; height: 40px; }
  .modal-body { padding: 18px 19px 24px; }
  .modal-period { margin-bottom: 18px; }
  .modal-columns { grid-template-columns: 1fr; gap: 23px; }
  .modal-schedule { padding: 18px 16px; }
  .modal-footer { flex-direction: column; align-items: stretch; padding: 12px 19px 16px; gap: 9px; }
  .modal-site-link, .modal-whatsapp-link { width: 100%; }
}
@media (max-height: 500px) and (min-width: 681px) {
  .program-modal { height: calc(100dvh - 16px); }
  .modal-header { padding-block: 12px; }
  .modal-body { padding-block: 12px; }
  .modal-footer { padding-block: 10px; }
}

/* Telas menores: cards em duas colunas, logos institucionais em quatro. */
@media (max-width: 1050px) {
  .hero-grid { gap: 28px; }
  .hero-art { padding: clamp(18px, 2.1vw, 27px) clamp(20px, 2.4vw, 27px); }
  .art-type { font-size: clamp(70px, 8vw, 90px); }
  .brand img, .footer-logo-link img { width: 190px; }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-card h3 { min-height: 50px; }
  .program-count { display: none; }
  .institutional-logos { gap: 25px; }
  .institutional-logos img { max-width: 130px; max-height: 75px; }
}

@media (max-width: 780px) {
  .header-inner { min-height: 70px; }
  .main-nav { display: none; }
  .header-link { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; align-items: center; gap: 30px; padding-block: 54px 58px; }
  .hero-copy { align-self: auto; }
  .hero-art { min-height: 295px; height: auto; padding: 29px; }
  .art-type { font-size: 122px; padding: 4px 0; }
  .art-statement { font-size: 29px; }
  .hero-copy > p { max-width: 670px; }
  .programs-section { padding-block: 72px; }
  .filter-panel { flex-wrap: wrap; }
  .filter-tabs { width: 100%; }
  .filter-tab { flex: 1; }
  .search-box { flex-basis: 100%; }
  .faq-layout { grid-template-columns: 1fr; gap: 22px; }
  .faq-heading { position: static; }
  .faq-section { padding-block: 74px; }
  .contact-band { align-items: start; flex-direction: column; padding: 35px; }
  .footer-main, .footer-bottom { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, 1200px); }
  .header-inner { min-height: 67px; gap: 9px; }
  .brand img, .footer-logo-link img { width: 170px; height: auto; }
  .header-link { padding: 9px 12px; font-size: 12px; }
  .hero-grid { padding-block: 44px 43px; gap: 26px; }
  .hero-art { min-height: 245px; border-radius: 22px; padding: 22px; }
  .art-type { font-size: clamp(80px, 23vw, 112px); padding: 7px 0 0; }
  .art-statement { font-size: clamp(22px, 6vw, 26px); }
  .art-bar { font-size: 9px; margin-top: 12px; padding-top: 10px; }
  /* O selo permanece visível no mobile, mesmo em telas estreitas. */
  .art-headline { flex-wrap: wrap; gap: 7px 5px; align-items: center; }
  .art-type { font-size: clamp(65px, 19vw, 90px); }
  .art-floating {
    display: inline-flex;
    margin-left: 0;
    max-width: 100%;
    font-size: 9px;
    padding: 6px 8px 6px 6px;
    gap: 5px;
    transform: rotate(2deg);
  }
  .floating-mark { flex-basis: 25px; width: 25px; height: 25px; font-size: 17px; }
  .hero-art { min-height: 265px; }
  .hero h1 { font-size: clamp(37px, 9.6vw, 48px); margin: 20px 0 17px; }
  .hero-copy > p { font-size: 14px; line-height: 1.72; margin-bottom: 23px; }
  .eyebrow { font-size: 9px; }
  .hero-controls { width: 100%; }
  .hero-actions { align-items: stretch; flex-wrap: wrap; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-highlights { gap: 8px; margin-top: 22px; font-size: 11px; }
  .hero-highlights > span { white-space: nowrap; }
  .programs-section { padding-block: 61px 70px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading p { font-size: 14px; }
  .filter-panel { padding: 9px; gap: 9px; }
  .filter-tab { gap: 5px; padding: 11px 7px; font-size: 12px; }
  .filter-tab span { font-size: 10px; }
  .program-grid { grid-template-columns: 1fr; gap: 17px; }
  .program-cover { height: 168px; }
  .status-pill { top: 13px; right: 10px; max-width: calc(100% - 115px); font-size: 9px; padding: 7px 9px; }
  .cover-type { top: 13px; left: 10px; padding-inline: 9px; }
  .program-card h3 { min-height: 0; font-size: 19px; margin-bottom: 15px; }
  .program-content { padding: 21px 20px 0; }
  .program-details { padding-inline: 20px; }
  .results-info { margin-top: 16px; }
  .faq-section { padding-block: 63px 75px; }
  .faq-heading h2 { font-size: 36px; }
  .faq-item summary { font-size: 14px; padding-block: 19px; }
  .contact-section { padding-bottom: 57px; }
  .contact-band { border-radius: 20px; padding: 27px 23px; }
  .contact-band h2 { font-size: 25px; }
  .button-light { white-space: normal; }
  .site-footer { padding-top: 33px; }
  .institutional-logos {
    gap: 20px;
    padding: 25px 0;
  }
  .institutional-logos img {
    max-width: min(135px, 42%);
    max-height: 70px;
  }
}

@media (max-width: 350px) {
  .hero-art { min-height: 280px; }
  .art-floating { margin-left: auto; }
  .art-type { font-size: 75px; }
  .art-bar { letter-spacing: .04em; font-size: 8px; }
}

/* Em telas muito estreitas, evita aperto entre os três destaques. */
@media (max-width: 375px) {
  .hero-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .hero-highlights > span:nth-child(2) { justify-self: end; }
  .hero-highlights > span:last-child { grid-column: 1 / -1; justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* UNIARA | Programas que oferecem os dois níveis em um único card */
.program-cover.has-both .cover-type {
  max-width: calc(100% - 28px);
  letter-spacing: .025em;
}
.modal-level-description + .modal-level-description {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 20px;
}
.modal-level-description h4 {
  font-size: 14px;
  line-height: 1.35;
  color: var(--uniara-blue-dark);
  margin: 0 0 10px;
}
@media (max-width: 560px) {
  .program-cover.has-both .status-pill {
    top: 48px;
    right: 10px;
    max-width: calc(100% - 20px);
  }
}


/* Rodapé ampliado: mantém a paleta clara, as logos e a identidade visual já aprovadas. */
.site-footer {
  background: #f8fbfd;
  color: var(--ink);
  padding: 51px 0 26px;
}
.site-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(0,1.06fr) minmax(0,1fr) minmax(0,1.12fr);
  gap: clamp(28px, 4vw, 70px);
  justify-content: initial;
  align-items: start;
}
.site-footer .footer-logo-link img { width: 220px; max-width: 100%; height: auto; }
.site-footer .footer-brand .footer-about {
  max-width: 295px;
  color: #506e81;
  font-size: 14px;
  line-height: 1.72;
  margin: 20px 0 20px;
}
.site-footer .footer-social { gap: 11px; }
.site-footer .footer-social a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8e4ef;
  border-radius: 50%;
  background: #ebf8fe;
  color: #007ba9;
  transition: background .18s, color .18s, transform .18s;
}
.site-footer .footer-social a:hover {
  color: #fff;
  background: var(--uniara-blue);
  transform: translateY(-2px);
}
.site-footer .footer-social svg { width: 20px; height: 20px; display: block; }
.site-footer .footer-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 820;
  line-height: 1.35;
  margin: 4px 0 23px;
  color: var(--ink-deep);
}
.site-footer .footer-heading::before {
  content: '';
  width: 4px;
  height: 23px;
  border-radius: 4px;
  background: var(--uniara-red);
  flex: 0 0 4px;
}
.site-footer .footer-quick ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.site-footer .footer-quick a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #3c5e75;
}
.site-footer .footer-quick a::before {
  content: '›';
  color: var(--uniara-red);
  font-size: 22px;
  line-height: .9;
  font-weight: 800;
}
.site-footer .footer-quick a:hover { color: var(--uniara-blue-dark); }
.site-footer .footer-contact address { display: grid; gap: 14px; margin: 0 0 18px; font-style: normal; }
.site-footer .footer-contact address p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  color: #466579;
  line-height: 1.65;
}
.site-footer .footer-contact address a { font-weight: 750; color: #234b64; }
.site-footer .footer-contact address a:hover { color: var(--uniara-blue-dark); }
.site-footer .footer-contact address small { display: block; font-size: 11px; color: #668399; font-weight: 500; }
/* Ícones padronizados de contato — SVG, sem fontes externas */
.site-footer .contact-icon {
  display: inline-flex;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e9f7fc;
  border: 1px solid #d5edf7;
  color: var(--uniara-blue-dark);
}
.site-footer .contact-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.site-footer .footer-contact address p > span:last-child { min-width: 0; padding-top: 1px; }
.site-footer .footer-email svg { flex: 0 0 17px; }
.site-footer .footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #b8dce9;
  background: #fff;
  border-radius: 10px;
  color: #007ba9;
  font-size: 13px;
  font-weight: 800;
}
.site-footer .footer-email:hover { background: #e6f6fd; color: #006e9b; }
.site-footer .institutional-logos { margin-top: 40px; padding: 28px 0; }
.site-footer .footer-bottom {
  display: flex;
  gap: 15px 22px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  border-top: 1px solid var(--border);
  padding-top: 21px;
}
.site-footer .footer-bottom p { color: #647e8f; font-size: 12px; }
.site-footer .footer-bottom a { color: #007ba9; font-size: 12px; text-decoration: none; font-weight: 740; }
.site-footer .footer-bottom a:hover { text-decoration: underline; }
@media (max-width: 980px) {
  .site-footer .footer-main { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 35px; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer .footer-brand .footer-about { max-width: 560px; }
}
@media (max-width: 600px) {
  .site-footer { padding-top: 34px; }
  .site-footer .footer-main { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .site-footer .footer-brand { grid-column: auto; }
  .site-footer .footer-brand .footer-about { margin: 16px 0 18px; }
  .site-footer .footer-heading { margin: 0 0 15px; }
  .site-footer .footer-quick ul { gap: 13px; }
  .site-footer .footer-contact address { gap: 13px; }
  .site-footer .institutional-logos { margin-top: 32px; }
}
