/* Layout institucional */
.fflch-institutional-top {
  background: var(--fflch-blue-dark);
  color: #fff;
  padding: 12px 0;
}

.fflch-institutional-top .fflch-container,
.fflch-header-grid,
.fflch-footer-cols {
  display: grid;
  gap: 24px;
  align-items: center;
}

.fflch-institutional-top .fflch-container {
  grid-template-columns: auto 1fr;
}

.fflch-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 800;
}

.fflch-logo-usp,
.fflch-logo-fflch {
  color: #fff;
  text-decoration: none;
}

.fflch-header {
  background: #fff;
  border-bottom: 1px solid var(--fflch-border);
}

.fflch-header-grid {
  grid-template-columns: 1fr auto;
  padding: 28px 0;
}

.fflch-site-title {
  text-decoration: none;
  color: var(--fflch-blue);
  display: flex;
  flex-direction: column;
}

.fflch-site-title strong {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.fflch-site-title span {
  color: var(--fflch-muted);
}

.fflch-header-search form {
  display: flex;
  gap: 8px;
}

.fflch-header-search input {
  border: 1px solid var(--fflch-border);
  border-radius: 999px;
  padding: 12px 16px;
  min-width: 280px;
}

.fflch-header-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--fflch-blue);
  color: #fff;
  font-weight: 700;
}

.fflch-nav-main {
  background: var(--fflch-blue);
  border-top: 4px solid var(--fflch-gold);
}

.fflch-nav-main ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fflch-nav-main a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  padding: 15px 0;
  font-weight: 700;
}

.fflch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0;
}

.fflch-layout:has(.fflch-sidebar-first):has(.fflch-sidebar-second) {
  grid-template-columns: 260px minmax(0, 1fr) 260px;
}

.fflch-layout:has(.fflch-sidebar-first):not(:has(.fflch-sidebar-second)) {
  grid-template-columns: 280px minmax(0, 1fr);
}

.fflch-layout:not(:has(.fflch-sidebar-first)):has(.fflch-sidebar-second) {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.fflch-footer {
  background: var(--fflch-blue-dark);
  color: #fff;
  margin-top: 48px;
}

.fflch-footer-grid {
  background: var(--fflch-blue);
  padding: 32px 0;
}

.fflch-footer-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 40px 0;
}

.fflch-footer a {
  color: #fff;
}

.fflch-bottom-bar {
  border-top: 1px solid rgba(255,255,255,.2);
  padding: 14px 0;
  font-size: .9rem;
}

@media (max-width: 900px) {
  .fflch-header-grid,
  .fflch-layout,
  .fflch-layout:has(.fflch-sidebar-first):has(.fflch-sidebar-second),
  .fflch-layout:has(.fflch-sidebar-first):not(:has(.fflch-sidebar-second)),
  .fflch-layout:not(:has(.fflch-sidebar-first)):has(.fflch-sidebar-second),
  .fflch-footer-cols {
    grid-template-columns: 1fr;
  }

  .fflch-header-search input {
    min-width: 0;
    width: 100%;
  }
}

/* Footer social + créditos */
.fflch-footer-social {
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 22px 0;
}

.fflch-social-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fflch-social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fflch-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.fflch-social-links a:hover {
  background: rgba(255,255,255,.12);
}

.fflch-bottom-credits {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.9);
}

@media (max-width: 700px) {
  .fflch-social-footer,
  .fflch-bottom-credits {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Refinamento premium das redes sociais no rodapé */
.fflch-social-footer {
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.fflch-social-footer strong {
  font-size: .95rem;
  opacity: .9;
}

.fflch-social-links {
  gap: 0;
}

.fflch-social-links a {
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: auto;
  font-weight: 500;
  opacity: .86;
}

.fflch-social-links a + a::before {
  content: "·";
  margin: 0 10px;
  color: rgba(255,255,255,.55);
}

.fflch-social-links a:hover {
  background: transparent;
  opacity: 1;
  text-decoration: underline;
}


/* CCInt - mapa de convênios */
.fflch-map-section {
  padding: 72px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.fflch-section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.fflch-section-heading h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
}

.fflch-section-heading p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #475569;
}

.fflch-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr);
  gap: 28px;
  align-items: stretch;
}

.fflch-map-box {
  min-height: 500px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
  background: #e2e8f0;
}

.fflch-map-panel {
  border-radius: 28px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
}

.fflch-map-panel h3 {
  margin-top: 0;
  font-size: 1.45rem;
}

.fflch-map-panel p {
  color: #475569;
  line-height: 1.65;
}

.fflch-map-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.fflch-map-list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .08);
}

.fflch-map-list strong {
  display: block;
  color: #003366;
  font-size: .92rem;
}

.fflch-map-list span {
  display: block;
  margin-top: 4px;
  color: #334155;
  font-size: .95rem;
}

@media (max-width: 900px) {
  .fflch-map-layout {
    grid-template-columns: 1fr;
  }

  .fflch-map-box {
    min-height: 390px;
    border-radius: 22px;
  }

  .fflch-map-panel {
    border-radius: 22px;
  }
}

/* Correção menu principal CCInt/FFLCH */
.fflch-nav-main .region-nav-main,
.fflch-nav-main nav,
.fflch-nav-main .navbar-nav,
.fflch-nav-main ul[data-block="nav_main"] {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.fflch-nav-main .nav-item,
.fflch-nav-main li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fflch-nav-main .nav-link,
.fflch-nav-main a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 14px 18px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.fflch-nav-main .nav-link.active,
.fflch-nav-main a.is-active,
.fflch-nav-main a.active {
  font-weight: 700 !important;
}

/* Mobile: mantém organizado, mas ainda sem quebrar feio */
@media (max-width: 768px) {
  .fflch-nav-main .region-nav-main,
  .fflch-nav-main nav,
  .fflch-nav-main .navbar-nav,
  .fflch-nav-main ul[data-block="nav_main"] {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }

  .fflch-nav-main .nav-link,
  .fflch-nav-main a {
    padding: 12px 14px !important;
  }
}

/* Menu principal - hover dourado e active sem sumir */
.fflch-nav-main a,
.fflch-nav-main .nav-link {
  color: #ffffff !important;
  background: transparent !important;
  border-radius: 0 !important;
  border-bottom: 3px solid transparent !important;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.fflch-nav-main a:hover,
.fflch-nav-main a:focus,
.fflch-nav-main .nav-link:hover,
.fflch-nav-main .nav-link:focus {
  color: #ffd200 !important;
  background: transparent !important;
  border-bottom-color: #ffd200 !important;
}

.fflch-nav-main a.active,
.fflch-nav-main a.is-active,
.fflch-nav-main .nav-link.active,
.fflch-nav-main .nav-link.is-active {
  color: #ffffff !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

.fflch-nav-main a.active:hover,
.fflch-nav-main a.is-active:hover,
.fflch-nav-main .nav-link.active:hover,
.fflch-nav-main .nav-link.is-active:hover {
  color: #ffd200 !important;
  border-bottom-color: #ffd200 !important;
}

/* Menu ativo com destaque institucional */
.fflch-nav-main .nav-link.active,
.fflch-nav-main .nav-link.is-active,
.fflch-nav-main a.active,
.fflch-nav-main a.is-active {
  color: #ffffff !important;
  border-bottom: 3px solid #ffd200 !important;
}

.fflch-nav-main .nav-link:hover,
.fflch-nav-main .nav-link:focus,
.fflch-nav-main a:hover,
.fflch-nav-main a:focus {
  color: #ffd200 !important;
  border-bottom: 3px solid #ffd200 !important;
}

.ccint-grid-2 {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}

.ccint-grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.ccint-card {
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.ccint-card.destaque {
  border-left: 5px solid #ffd200;
}

.ccint-card h3 {
  margin: 0 0 6px;
}

.ccint-card h4 {
  margin-bottom: 10px;
  color: #003366;
}

@media (max-width:900px){
  .ccint-grid-2,
  .ccint-grid-3 {
    grid-template-columns: 1fr;
  }
}

.ccint-card.pessoa {
  text-align: center;
  padding: 28px;
}

.ccint-card.pessoa img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.ccint-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #003366;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: .9rem;
}

.ccint-btn:hover {
  background: #ffd200;
  color: #000;
}
}

/* CCInt membros - avatares institucionais */
.ccint-avatar,
.ccint-avatar-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b2d5f;
  color: #fff;
  font-weight: 800;
  border: 3px solid #ffd200;
}

.ccint-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.ccint-avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 44px;
  font-size: .9rem;
}

.ccint-mini-member {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(0,0,0,.08);
}

.ccint-mini-member p {
  margin: 2px 0 4px;
}

.ccint-lattes {
  font-size: .88rem;
  font-weight: 700;
}

/* Avatar institucional sem letras */
.ccint-avatar,
.ccint-avatar-sm {
  background: linear-gradient(135deg, #0b2d5f, #1e3a8a);
  border: 3px solid #ffd200;
  color: transparent !important;
}

/* versão mais leve */
.ccint-avatar {
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.ccint-avatar-sm {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}


/* ===============================
   CCINT MEMBROS – UPGRADE VISUAL
================================ */

/* Foto real dentro do círculo */
.ccint-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder mais elegante */
.ccint-photo-placeholder {
  background: linear-gradient(135deg, #0b2d5f, #1e3a8a);
}

/* Botão Lattes */
.ccint-member-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #0b2d5f;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .2s ease;
}

.ccint-member-btn:hover {
  background: #ffd200;
  color: #0b2d5f !important;
}

/* Espaçamento entre blocos */
.ccint-members-heading {
  margin-top: 48px;
}

/* Hover mais premium */
.ccint-member-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.ccint-member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0,0,0,.12);
}

/* Destaque para liderança */
.ccint-member-card:first-child {
  border: 2px solid #ffd200;
}


/* Acessibilidade + idiomas - refinamento CCInt */
.fflch-accessibility-bar .fflch-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fflch-accessibility-bar a[href="#main-content"] {
  font-size: 0;
  width: auto;
}

.fflch-accessibility-bar a[href="#main-content"]::after {
  content: "Conteúdo";
  font-size: .92rem;
}

.fflch-lang-switcher {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fflch-lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  color: #0b2d5f !important;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(11,45,95,.16);
}

.fflch-lang-switcher a:hover,
.fflch-lang-switcher a:focus {
  background: #ffd200;
  color: #0b2d5f !important;
}

/* Alto contraste funcional */
html.fflch-high-contrast,
html.fflch-high-contrast body,
html.fflch-high-contrast .fflch-site {
  background: #000 !important;
  color: #fff !important;
}

html.fflch-high-contrast a {
  color: #ffd200 !important;
}

html.fflch-high-contrast .fflch-header,
html.fflch-high-contrast .fflch-nav-main,
html.fflch-high-contrast .fflch-footer,
html.fflch-high-contrast .fflch-bottom-bar,
html.fflch-high-contrast .fflch-institutional-top {
  background: #000 !important;
  color: #fff !important;
}

html.fflch-high-contrast .fflch-accessibility-bar {
  background: #111 !important;
  color: #fff !important;
}

html.fflch-high-contrast .fflch-accessibility-bar button,
html.fflch-high-contrast .fflch-lang-switcher a {
  background: #000 !important;
  color: #ffd200 !important;
  border-color: #ffd200 !important;
}

html.fflch-high-contrast .ccint-member-card,
html.fflch-high-contrast .fflch-card,
html.fflch-high-contrast .fflch-map-panel,
html.fflch-high-contrast .fflch-content {
  background: #111 !important;
  color: #fff !important;
  border-color: #ffd200 !important;
}

@media (max-width: 768px) {
  .fflch-lang-switcher {
    width: 100%;
    margin-left: 0;
  }
}

/* Seletor de idioma nativo Drupal */
.fflch-lang-switcher {
  margin-left: auto;
}

.fflch-lang-switcher .block-language,
.fflch-lang-switcher ul {
  margin: 0;
  padding: 0;
}

.fflch-lang-switcher ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.fflch-lang-switcher li {
  margin: 0;
  padding: 0;
}

.fflch-lang-switcher a.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b2d5f !important;
  font-weight: 700;
  font-size: 0;
  text-decoration: none;
  border: 1px solid rgba(11,45,95,.18);
}

.fflch-lang-switcher a.language-link[hreflang="pt-br"]::after {
  content: "PT";
  font-size: .85rem;
}

.fflch-lang-switcher a.language-link[hreflang="en"]::after {
  content: "EN";
  font-size: .85rem;
}

.fflch-lang-switcher a.language-link[hreflang="es"]::after {
  content: "ES";
  font-size: .85rem;
}

.fflch-lang-switcher a.language-link[hreflang="fr"]::after {
  content: "FR";
  font-size: .85rem;
}

.fflch-lang-switcher a.language-link:hover,
.fflch-lang-switcher a.language-link.is-active {
  background: #ffd200;
  color: #0b2d5f !important;
}

/* ===== Language Switcher CCInt ===== */

.fflch-lang-switcher {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* força layout horizontal */
.fflch-lang-switcher .block-language ul {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* remove bullet */
.fflch-lang-switcher .block-language li {
  list-style: none;
}

/* botão */
.fflch-lang-switcher a.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b2d5f !important;
  font-weight: 700;
  font-size: 0; /* esconde texto original */
  text-decoration: none;
  border: 1px solid rgba(11,45,95,.18);
}

/* labels curtos */
.fflch-lang-switcher a[hreflang="pt-br"]::after { content: "PT"; font-size: .85rem; }
.fflch-lang-switcher a[hreflang="en"]::after    { content: "EN"; font-size: .85rem; }
.fflch-lang-switcher a[hreflang="es"]::after    { content: "ES"; font-size: .85rem; }
.fflch-lang-switcher a[hreflang="fr"]::after    { content: "FR"; font-size: .85rem; }

/* hover + ativo */
.fflch-lang-switcher a:hover,
.fflch-lang-switcher a.is-active {
  background: #ffd200;
  color: #0b2d5f !important;
}


/* Correção: seletor de idioma horizontal */
.region-accessibility .language-switcher-language-url ul,
.region-accessibility .language-switcher-language-session ul,
.region-accessibility nav.language-switcher-language-url ul {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.region-accessibility .language-switcher-language-url li,
.region-accessibility .language-switcher-language-session li,
.region-accessibility nav.language-switcher-language-url li {
  display: inline-flex !important;
  margin: 0;
  padding: 0;
}

.region-accessibility .language-switcher-language-url a,
.region-accessibility .language-switcher-language-session a,
.region-accessibility nav.language-switcher-language-url a {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.region-accessibility .language-switcher-language-url a.is-active,
.region-accessibility .language-switcher-language-session a.is-active,
.region-accessibility nav.language-switcher-language-url a.is-active {
  font-weight: 700;
}

/* FIX DEFINITIVO: idioma horizontal */
#block-language-switcher ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#block-language-switcher li {
  display: inline-flex !important;
}

#block-language-switcher a.language-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

#block-language-switcher a.language-link.is-active {
  font-weight: 700;
  background: rgba(0,0,0,0.08);
}

/* FORCE FIX: idioma horizontal (anti-tema) */
#block-language-switcher > ul[data-block="accessibility"] {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#block-language-switcher > ul[data-block="accessibility"] > li {
  display: inline-flex !important;
  float: none !important;
}

#block-language-switcher > ul[data-block="accessibility"] > li > a {
  display: inline-flex !important;
  white-space: nowrap !important;
}

/* mata QUALQUER vertical herdado */
#block-language-switcher li,
#block-language-switcher ul {
  flex-direction: row !important;
}

/* ULTRA FIX - idioma horizontal garantido */
div#block-language-switcher.language-switcher-language-url > ul[data-block="accessibility"] {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;

  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* remove qualquer comportamento vertical herdado */
div#block-language-switcher.language-switcher-language-url > ul[data-block="accessibility"] li {
  display: inline-flex !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* links */
div#block-language-switcher.language-switcher-language-url > ul[data-block="accessibility"] a.language-link {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;

  padding: 4px 10px;
  border-radius: 20px;
}

/* ativo */
div#block-language-switcher.language-switcher-language-url > ul[data-block="accessibility"] a.is-active {
  font-weight: 700;
  background: rgba(0,0,0,0.08);
}


/* Idiomas como bandeiras */
#block-language-switcher ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#block-language-switcher li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}

#block-language-switcher a.language-link {
  font-size: 0 !important;
  width: 34px;
  height: 26px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
}

#block-language-switcher a.language-link::before {
  font-size: 20px;
  line-height: 1;
}

#block-language-switcher a[hreflang="pt-br"]::before {
  content: "🇧🇷";
}

#block-language-switcher a[hreflang="en"]::before {
  content: "🇺🇸";
}

#block-language-switcher a[hreflang="es"]::before {
  content: "🇪🇸";
}

#block-language-switcher a[hreflang="fr"]::before {
  content: "🇫🇷";
}

#block-language-switcher a.language-link.is-active {
  background: rgba(255,255,255,.32);
  border-color: rgba(255,255,255,.65);
}

.codall-lang-flags {
  display: flex;
  align-items: center;
  gap: 6px;
}

.codall-lang-flags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  font-size: 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s ease;
  opacity: 0.7;
}

.codall-lang-flags a:hover {
  opacity: 1;
  transform: scale(1.08);
}

.codall-lang-flags a[aria-current="true"],
.codall-lang-flags a.active {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(255,255,255,.6);
}

/* Idioma profissional - horizontal + bandeiras */
#block-codall-fflch-base-seletordeidioma ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#block-codall-fflch-base-seletordeidioma li {
  display: inline-flex;
}

#block-codall-fflch-base-seletordeidioma a {
  font-size: 0;
  width: 32px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s;
}

/* Bandeiras */
a[hreflang="pt-br"]::before { content: "🇧🇷"; font-size: 18px; }
a[hreflang="en"]::before { content: "🇺🇸"; font-size: 18px; }
a[hreflang="es"]::before { content: "🇪🇸"; font-size: 18px; }
a[hreflang="fr"]::before { content: "🇫🇷"; font-size: 18px; }

/* Ativo */
#block-codall-fflch-base-seletordeidioma a.is-active {
  box-shadow: 0 0 0 2px rgba(0,0,0,.2);
}

/* Ajuste de acessibilidade: conteúdo em alto contraste */
body.high-contrast .region-content,
body.contrast .region-content,
html.high-contrast .region-content,
html.contrast .region-content {
  color: #000 !important;
}

body.high-contrast .region-content *,
body.contrast .region-content *,
html.high-contrast .region-content *,
html.contrast .region-content * {
  color: #000 !important;
  background-color: transparent !important;
  text-shadow: none !important;
}

body.high-contrast .region-content a,
body.contrast .region-content a,
html.high-contrast .region-content a,
html.contrast .region-content a {
  color: #0033cc !important;
  text-decoration: underline !important;
}

body.high-contrast .region-content .block,
body.contrast .region-content .block,
html.high-contrast .region-content .block,
html.contrast .region-content .block {
  background: #fff !important;
  color: #000 !important;
}

/* Correção final alto contraste (conteúdo branco) */
html.fflch-high-contrast .fflch-content,
html.fflch-high-contrast .region-content,
html.fflch-high-contrast article,
html.fflch-high-contrast .node {
  background: #000 !important;
  color: #fff !important;
}

html.fflch-high-contrast .fflch-content *,
html.fflch-high-contrast .region-content *,
html.fflch-high-contrast article *,
html.fflch-high-contrast .node * {
  color: #fff !important;
  background-color: transparent !important;
}

html.fflch-high-contrast a {
  color: #ff0 !important;
  text-decoration: underline;
}

/* ===== ACESSIBILIDADE GOV ===== */

/* FOCO VISÍVEL (WCAG obrigatório) */
:focus {
  outline: 3px solid #ff0;
  outline-offset: 2px;
}

/* ALTO CONTRASTE */
html.fflch-high-contrast {
  background: #000 !important;
  color: #fff !important;
}

html.fflch-high-contrast body,
html.fflch-high-contrast .fflch-site {
  background: #000 !important;
  color: #fff !important;
}

html.fflch-high-contrast .fflch-header,
html.fflch-high-contrast .fflch-nav-main,
html.fflch-high-contrast .fflch-footer {
  background: #000 !important;
  border-color: #ff0 !important;
}

html.fflch-high-contrast .fflch-content,
html.fflch-high-contrast .region-content,
html.fflch-high-contrast article {
  background: #000 !important;
  color: #fff !important;
}

/* TEXTO */
html.fflch-high-contrast * {
  color: #fff !important;
  background-color: transparent !important;
}

/* LINKS */
html.fflch-high-contrast a {
  color: #ff0 !important;
  text-decoration: underline !important;
}

/* BOTÕES */
html.fflch-high-contrast button {
  border: 2px solid #ff0 !important;
}

/* INPUTS */
html.fflch-high-contrast input {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #ff0 !important;
}

/* HOVER */
html.fflch-high-contrast a:hover {
  background: #ff0 !important;
  color: #000 !important;
}


/* FIX GOV: alto contraste funcional */
html.fflch-high-contrast,
html.fflch-high-contrast body,
html.fflch-high-contrast .fflch-site {
  background: #000 !important;
  color: #fff !important;
}

html.fflch-high-contrast * {
  color: #fff !important;
  text-shadow: none !important;
}

html.fflch-high-contrast a {
  color: #ff0 !important;
  text-decoration: underline !important;
}

html.fflch-high-contrast .fflch-header,
html.fflch-high-contrast .fflch-nav-main,
html.fflch-high-contrast .fflch-content,
html.fflch-high-contrast .region-content,
html.fflch-high-contrast article,
html.fflch-high-contrast .node,
html.fflch-high-contrast .fflch-footer,
html.fflch-high-contrast .fflch-bottom-bar {
  background: #000 !important;
  color: #fff !important;
  border-color: #ff0 !important;
}

html.fflch-high-contrast button,
html.fflch-high-contrast input,
html.fflch-high-contrast select,
html.fflch-high-contrast textarea {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #ff0 !important;
}

html.fflch-high-contrast :focus {
  outline: 3px solid #ff0 !important;
  outline-offset: 3px !important;
}

/* MOBILE FIX GLOBAL */
@media (max-width: 768px) {

  .fflch-container {
    padding: 0 16px;
  }

  .fflch-header-grid {
    flex-direction: column;
    gap: 12px;
  }

  .fflch-site-title strong {
    font-size: 16px;
  }

  .fflch-site-title span {
    font-size: 12px;
  }

  .fflch-content {
    padding: 16px;
  }

  button, a {
    min-height: 44px;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* ===== MOBILE FIRST BASE ===== */

/* Reset seguro */
html, body {
  overflow-x: hidden;
}

/* Container fluido */
.fflch-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Imagens responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tipografia mobile-first */
body {
  font-size: 16px;
  line-height: 1.5;
}

/* Toque (WCAG) */
a, button {
  min-height: 44px;
  min-width: 44px;
}

/* Quebra segura de texto */
p, h1, h2, h3 {
  word-wrap: break-word;
}

/* Evita overflow de tabelas */
table {
  display: block;
  overflow-x: auto;
}


/* ===== HEADER RESPONSIVO ===== */

.fflch-header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 768px) {

  .fflch-header-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .fflch-site-title strong {
    font-size: 16px;
  }

  .fflch-site-title span {
    font-size: 12px;
  }

  .fflch-header-search {
    width: 100%;
  }

  .fflch-header-search input {
    width: 100%;
  }
}


/* ===== MENU MOBILE ===== */

.fflch-nav-main ul {
  display: flex;
  gap: 16px;
}

/* Mobile */
@media (max-width: 768px) {

  .fflch-nav-main ul {
    flex-direction: column;
    display: none;
    width: 100%;
    background: #fff;
  }

  .fflch-nav-main.active ul {
    display: flex;
  }

  .fflch-menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 20px;
    padding: 10px;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .fflch-menu-toggle {
    display: none;
  }
}


/* ===== ACESSIBILIDADE MOBILE ===== */

/* foco visível */
:focus {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

/* botão mais fácil de clicar */
button, a {
  padding: 10px 12px;
}

/* links claros */
a {
  text-decoration: underline;
}


/* FIX FINAL: busca à direita */
.fflch-header-grid {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.fflch-header-search {
  margin-left: auto !important;
}

.fflch-header-search form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fflch-header-search input[type="search"] {
  width: 260px;
}

/* mobile mantém correto */
@media (max-width: 768px) {
  .fflch-header-grid {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .fflch-header-search {
    margin-left: 0 !important;
    width: 100%;
  }

  .fflch-header-search input[type="search"] {
    width: 100%;
  }

  .fflch-header-search form {
    flex-direction: column;
  }

  .fflch-header-search button {
    width: 100%;
  }
}

/* POLIMENTO FINAL HEADER - padrão institucional */
.fflch-header {
  padding: 34px 0 36px !important;
}

.fflch-header-grid {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
}

.fflch-branding {
  flex: 1 1 auto !important;
}

.fflch-site-title strong {
  line-height: 1.16 !important;
  letter-spacing: -0.02em !important;
}

.fflch-header-search {
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

.fflch-header-search form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.fflch-header-search input[type="search"] {
  width: 340px !important;
  height: 48px !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
}

.fflch-header-search button {
  height: 48px !important;
  border-radius: 999px !important;
  padding: 0 24px !important;
}

/* Mobile premium */
@media (max-width: 768px) {
  .fflch-header {
    padding: 24px 0 !important;
  }

  .fflch-header-grid {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }

  .fflch-header-search {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .fflch-header-search form {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .fflch-header-search input[type="search"],
  .fflch-header-search button {
    width: 100% !important;
  }
}

/* ===== PADRÃO INSTITUCIONAL FFLCH ===== */

.fflch-unit-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.fflch-unit-subtitle {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 8px;
}

.fflch-unit-description {
  font-size: 15px;
  max-width: 720px;
  opacity: 0.85;
}

/* versão compacta (cards) */
.fflch-unit-compact {
  font-size: 18px;
  font-weight: 600;
}


/* Padrão institucional multi-departamentos */
.codall-unit-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 0;
}

.codall-unit-badge {
  min-width: 96px;
  height: 96px;
  border-radius: 22px;
  background: #0b2a66;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.codall-unit-kicker {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.codall-unit-text h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  color: #0b2a66;
}

.codall-unit-description {
  margin: 10px 0 0;
  max-width: 720px;
  font-size: 16px;
  color: #475569;
}

@media (max-width: 768px) {
  .codall-unit-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .codall-unit-badge {
    min-width: 72px;
    height: 72px;
    font-size: 22px;
    border-radius: 18px;
  }

  .codall-unit-text h1 {
    font-size: 26px;
  }
}

/* Identidade discreta do setor */
.codall-unit-identity-slim {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  border-left: 5px solid #0b2a66;
  background: #f7f9fc;
}

.codall-unit-identity-slim strong {
  display: block;
  font-size: 24px;
  color: #0b2a66;
  line-height: 1.1;
}

.codall-unit-identity-slim span {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.codall-unit-identity-slim small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* REFINO PREMIUM IDENTIDADE SETOR */

.codall-unit-identity-slim {
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 18px 22px;
  border-left: 3px solid #0b2a66;
  background: #f8fafc;
  border-radius: 10px;
}

.codall-unit-identity-slim strong {
  font-size: 22px;
  font-weight: 700;
  color: #0b2a66;
  margin-right: 12px;
}

.codall-unit-identity-slim span {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
}

.codall-unit-identity-slim small {
  margin-left: 14px;
  font-size: 12px;
  color: #64748b;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* melhora alinhamento */
.codall-unit-identity-slim {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}


/* HERO IDENTIDADE DO SETOR */

.codall-unit-hero {
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 28px 32px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.codall-unit-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.codall-unit-sigla {
  font-size: 42px;
  font-weight: 800;
  color: #0b2a66;
  letter-spacing: -0.02em;
  min-width: 110px;
}

.codall-unit-info h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.codall-unit-info p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #64748b;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* mobile */
@media (max-width: 768px) {
  .codall-unit-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .codall-unit-sigla {
    font-size: 32px;
  }

  .codall-unit-info h1 {
    font-size: 20px;
  }
}

/* IDENTIDADE DEPARTAMENTO - PADRÃO USP */

.fflch-department-identity {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin-top: -8px;
}

.fflch-department-identity .codall-unit-hero {
  background: transparent !important;
  border: none !important;
  padding: 20px 0 !important;
  margin: 0 auto !important;
  box-shadow: none !important;
}

.codall-unit-hero-inner {
  gap: 18px;
}

.codall-unit-sigla {
  font-size: 34px;
  font-weight: 800;
  color: #0b2a66;
}

.codall-unit-info h1 {
  font-size: 20px;
  font-weight: 700;
}

.codall-unit-info p {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}


/* Ajuste final da busca institucional */
.fflch-header-search {
  align-self: flex-end !important;
}

.fflch-header-search form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.fflch-header-search input[type="search"] {
  width: 360px !important;
  height: 46px !important;
  border-radius: 999px !important;
  border: 1px solid #dbe4f0 !important;
  box-shadow: none !important;
}

.fflch-header-search button {
  height: 46px !important;
  border-radius: 999px !important;
  padding: 0 24px !important;
}

/* Mobile: busca ocupa largura total */
@media (max-width: 768px) {
  .fflch-header-search {
    width: 100% !important;
  }

  .fflch-header-search form {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .fflch-header-search input[type="search"],
  .fflch-header-search button {
    width: 100% !important;
  }
}

/* === ALINHAMENTO PROFISSIONAL BUSCA === */

.fflch-header-grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* garante que busca respeite container */
.fflch-header-search {
}

/* força alinhamento horizontal correto */
@media (min-width: 769px) {

  .fflch-header-grid {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .fflch-header-search {
    justify-self: end;
  }

}


/* FORCE: busca alinhada ao bloco departamento */
@media (min-width: 769px) {
  .fflch-header {
    position: relative !important;
  }

  .fflch-header-search {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 24px auto 0 !important;
  }

  .fflch-header-search form {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
  }
}




/* Busca integrada à identidade do departamento */
.fflch-department-identity-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.fflch-department-identity-content .codall-unit-hero {
  margin: 0 !important;
}

.fflch-department-search {
  margin: 0 !important;
  align-self: center;
}

.fflch-department-search form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.fflch-department-search input[type="search"] {
  width: 340px !important;
}

@media (max-width: 768px) {
  .fflch-department-identity-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fflch-department-search,
  .fflch-department-search input[type="search"],
  .fflch-department-search button {
    width: 100% !important;
  }

  .fflch-department-search form {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* FIX: busca dentro da faixa do departamento, fora do menu */
.fflch-department-identity {
  padding: 18px 0 22px !important;
  border-bottom: 3px solid #ffd200 !important;
}

.fflch-department-identity-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 32px !important;
}

.fflch-department-search {
  margin: 0 !important;
  position: static !important;
  z-index: auto !important;
}

.fflch-department-search form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.fflch-department-search input[type="search"] {
  width: 340px !important;
  height: 46px !important;
}

.fflch-department-search button {
  height: 46px !important;
}

/* garante que menu começa depois da faixa */
.fflch-nav-main {
  clear: both !important;
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 768px) {
  .fflch-department-identity-grid {
    grid-template-columns: 1fr !important;
  }

  .fflch-department-search form {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .fflch-department-search input[type="search"],
  .fflch-department-search button {
    width: 100% !important;
  }
}

/* RESET DEFINITIVO BUSCA NA FAIXA DO DEPARTAMENTO */
.fflch-department-identity {
  padding: 22px 0 26px !important;
  overflow: visible !important;
}

.fflch-department-identity-grid {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
}

.fflch-department-search,
.fflch-department-identity .fflch-header-search {
  position: static !important;
  inset: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
  z-index: auto !important;
  align-self: center !important;
}

.fflch-department-search form,
.fflch-department-identity .fflch-header-search form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}

.fflch-department-search input[type="search"] {
  width: 360px !important;
  height: 46px !important;
}

.fflch-department-search button {
  height: 46px !important;
}

/* menu sempre abaixo */
.fflch-nav-main {
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 768px) {
  .fflch-department-identity-grid {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .fflch-department-search,
  .fflch-department-search input[type="search"],
  .fflch-department-search button {
    width: 100% !important;
  }

  .fflch-department-search form {
    flex-direction: column !important;
  }
}

/* Ajuste fino: busca centralizada na faixa do departamento */
.fflch-department-identity-grid {
  min-height: 118px !important;
  align-items: center !important;
}

.fflch-department-search {
}

@media (max-width: 768px) {
  .fflch-department-search {
  }
}

.fflch-department-search {
}

/* ===== BUSCA LIMPA E CORRETA (PADRÃO FINAL) ===== */

.fflch-department-identity-grid {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
}

.fflch-department-search {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.fflch-department-search form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.fflch-department-search input[type="search"] {
  width: 340px !important;
  height: 46px !important;
}

.fflch-department-search button {
  height: 46px !important;
}

@media (max-width: 768px) {
  .fflch-department-identity-grid {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .fflch-department-search,
  .fflch-department-search input[type="search"],
  .fflch-department-search button {
    width: 100% !important;
  }

  .fflch-department-search form {
    flex-direction: column !important;
  }
}


/* ===== BUSCA FINAL NA FAIXA DO DEPARTAMENTO ===== */
.fflch-department-identity-grid {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
}

.fflch-department-search {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
}

.fflch-department-search form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}

.fflch-department-search input[type="search"] {
  width: 340px !important;
  height: 46px !important;
}

.fflch-department-search button {
  height: 46px !important;
}

@media (max-width: 768px) {
  .fflch-department-identity-grid {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .fflch-department-search,
  .fflch-department-search input[type="search"],
  .fflch-department-search button {
    width: 100% !important;
  }

  .fflch-department-search form {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

.fflch-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-usp {
  max-height: 20px;
  opacity: 0.8;
}

.logo-fflch {
  max-height: 32px;
}


/* Ajuste de contraste dos logos no topo azul */
.fflch-institutional-top .fflch-logos {
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
}

.fflch-institutional-top .logo-usp {
  max-height: 18px;
}

.fflch-institutional-top .logo-fflch {
  max-height: 30px;
}

/* Ajuste final provisório: somente FFLCH no topo */
.fflch-institutional-top .fflch-logos {
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
}

.fflch-institutional-top .logo-fflch {
  max-height: 34px;
  width: auto;
}

.fflch-institutional-top .logo-usp {
  display: none !important;
}

.fflch-institutional-top .fflch-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.fflch-usp-seal {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: auto !important;
  background: transparent !important;
  padding: 0 !important;
}

.fflch-usp-seal img {
  display: block !important;
  max-height: 38px !important;
  width: auto !important;
  opacity: 1 !important;
  filter: brightness(1.35) contrast(1.35) !important;
}

/* FIX FINAL: FFLCH branco/transparente sem card */
.fflch-institutional-top .fflch-container .fflch-logos,
.fflch-institutional-top .fflch-container .fflch-logos a,
.fflch-institutional-top .fflch-container .fflch-logos img {
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.fflch-institutional-top .fflch-container .fflch-logos img {
  max-height: 44px !important;
  width: auto !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Ajuste fino logos institucionais */
.fflch-logos img {
  max-height: 42px !important;
}

.fflch-usp-seal img {
  max-height: 34px !important;
  opacity: 0.9 !important;
}

/* alinhamento vertical perfeito */
.fflch-institutional-top .fflch-container {
  align-items: center !important;
}

/* leve espaçamento para respirar */
.fflch-usp-seal {
  margin-right: 8px !important;
}

/* Barra institucional estilo gov.br */
.fflch-govbar {
  background: #0b2d5c; /* azul mais escuro */
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fflch-govbar .fflch-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fflch-govbar span {
  font-weight: 500;
}

.fflch-govbar .sep {
  opacity: 0.5;
}

/* ===== REFINO GOVBAR INSTITUCIONAL ===== */

.fflch-govbar {
  background: #f1f4f8 !important;
  color: #2b4c7e !important;
  font-size: 13px !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid #d9e1ec !important;
}

.fflch-govbar .fflch-container {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.fflch-govbar a,
.fflch-govbar span {
  color: #2b4c7e !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

.fflch-govbar a:hover {
  text-decoration: underline !important;
}

.fflch-govbar .sep {
  opacity: 0.55 !important;
  margin: 0 4px !important;
}

.fflch-govbar span:last-child {
  font-weight: 700 !important;
  color: #0b2a66 !important;
}

@media (max-width: 768px) {
  .fflch-govbar {
    font-size: 12px !important;
  }

  .fflch-govbar .fflch-container {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}


/* ===== COMPACTAÇÃO DO HEADER INSTITUCIONAL ===== */

/* Região do nome da Faculdade */
.fflch-header {
  padding-top: 22px !important;
  padding-bottom: 10px !important;
}

.fflch-header-grid {
  min-height: auto !important;
}

.fflch-site-title strong,
.fflch-branding strong,
.fflch-header .fflch-site-title strong {
  font-size: 27px !important;
  line-height: 1.12 !important;
}

.fflch-site-title span,
.fflch-branding span {
  font-size: 15px !important;
}

/* Região CCInt */
.fflch-department-identity {
  padding-top: 26px !important;
  padding-bottom: 34px !important;
}

.codall-unit-sigla {
  font-size: 34px !important;
}

.codall-unit-info h1 {
  font-size: 21px !important;
  margin-bottom: 4px !important;
}

.codall-unit-info p {
  font-size: 12px !important;
}

/* Aproxima menu da identidade CCInt */
.fflch-nav-main {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .fflch-header {
    padding-top: 18px !important;
    padding-bottom: 8px !important;
  }

  .fflch-site-title strong,
  .fflch-branding strong,
  .fflch-header .fflch-site-title strong {
    font-size: 23px !important;
  }

  .fflch-department-identity {
    padding-top: 22px !important;
    padding-bottom: 26px !important;
  }
}

/* ===== ALINHAMENTO FINAL DA BUSCA (NÍVEL PREMIUM) ===== */

.fflch-department-identity-grid {
  display: grid !important;
  grid-template-columns: 1fr 420px !important;
  align-items: center !important;
  gap: 40px !important;
}

/* garante alinhamento vertical perfeito */
.fflch-department-search {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

/* deixa o campo mais elegante */
.fflch-department-search input {
  height: 42px !important;
  border-radius: 22px !important;
}

/* botão mais alinhado */
.fflch-department-search button {
  height: 42px !important;
  border-radius: 22px !important;
  margin-left: 8px !important;
}

/* RESPONSIVO */
@media (max-width: 992px) {
  .fflch-department-identity-grid {
    grid-template-columns: 1fr !important;
  }

  .fflch-department-search {
    justify-content: flex-start !important;
    margin-top: 16px !important;
  }
}

/* ===== CORREÇÃO: REEXIBIR BUSCA NA CCINT ===== */

.fflch-department-identity .fflch-header-search,
.fflch-department-identity .fflch-department-search {
  display: flex !important;
}

/* garante que form também aparece */
.fflch-department-search form {
  display: flex !important;
  align-items: center !important;
}

/* garante input visível */
.fflch-department-search input,
.fflch-department-search button {
  display: block !important;
}

/* ===== BUSCA DEFINITIVA DO TEMA ===== */

.fflch-department-identity-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 32px !important;
}

.fflch-department-search {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin: 0 !important;
  position: static !important;
  top: auto !important;
}

.fflch-search-form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}

.fflch-search-form input[type="search"] {
  width: 360px !important;
  max-width: 100% !important;
  height: 44px !important;
  border: 1px solid #d7e0ec !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  font-size: 15px !important;
  background: #fff !important;
}

.fflch-search-form button {
  height: 44px !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 24px !important;
  background: #0b2a66 !important;
  color: #fff !important;
  font-weight: 700 !important;
}

@media (max-width: 992px) {
  .fflch-department-identity-grid {
    grid-template-columns: 1fr !important;
  }

  .fflch-department-search {
    justify-content: flex-start !important;
    width: 100% !important;
    margin-top: 18px !important;
  }

  .fflch-search-form,
  .fflch-search-form input[type="search"],
  .fflch-search-form button {
    width: 100% !important;
  }

  .fflch-search-form {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* ===== REFINO FINAL: BUSCA + BREADCRUMB ===== */

/* Busca mais discreta e institucional */
.fflch-search-form input[type="search"] {
  height: 40px !important;
  font-size: 14px !important;
}

.fflch-search-form button {
  height: 40px !important;
  padding: 0 20px !important;
  font-size: 14px !important;
}

/* Ajuste vertical fino da busca */
.fflch-department-search {
  margin-top: 8px !important;
}

/* Breadcrumb/govbar mais refinado */
.fflch-govbar {
  font-size: 13px !important;
  opacity: 0.96 !important;
}

.fflch-govbar a,
.fflch-govbar span {
  text-decoration: none !important;
}

.fflch-govbar a:hover {
  text-decoration: underline !important;
}

.fflch-govbar .sep {
  opacity: 0.5 !important;
}


/* Ajuste fino: aproxima busca do título */
.fflch-department-identity-grid {
  gap: 16px !important;
}

/* opcional: melhora alinhamento vertical */
.fflch-department-search {
  margin-top: 4px !important;
}


/* Rótulo do setor/site clicável */
a.fflch-site-title {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

a.fflch-site-title:hover,
a.fflch-site-title:focus {
  text-decoration: underline;
}
/* ===== HEADER FFLCH CORREÇÃO DEFINITIVA ===== */

.fflch-site-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  line-height: 1.2;
}

.fflch-site-title strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
}

.fflch-site-title span {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #6b7280;
  margin-top: 4px;
}


/* ==========================================================
   DIVISÃO FINANCEIRA - FFLCH
   ========================================================== */

.financeiro-hero {
  position: relative;
  min-height: 430px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(8,22,52,.88),
      rgba(16,44,96,.78)
    ),
    url('/themes/custom/codall_fflch_base/img/hero-usp.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 48px rgba(15,23,42,.18);
}

.financeiro-hero-overlay {
  max-width: 760px;
  padding: 72px 56px;
  color: #fff;
}

.financeiro-tag {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 22px;
}

.financeiro-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem,5vw,4.2rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.04em;
}

.financeiro-hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 620px;
  opacity: .95;
}

.fflch-department-brand {
  padding: 6px 0;
}

.fflch-department-title {
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  color: #163d7a;
  letter-spacing: -.03em;
}

.fflch-department-subtitle {
  margin-top: 10px;
  font-size: .8rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5f6d87;
  max-width: 580px;
}

@media (max-width: 768px) {

  .financeiro-hero {
    min-height: auto;
    border-radius: 20px;
  }

  .financeiro-hero-overlay {
    padding: 42px 24px;
  }

  .financeiro-hero h1 {
    font-size: 2.4rem;
  }

  .financeiro-hero p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .fflch-department-title {
    font-size: 1.45rem;
  }
}


/* ==========================================================
   FINANCEIRO FFLCH - MESMA LINHA VISUAL DA CCINT
   ========================================================== */

.financeiro-hero-ccint {
  position: relative;
  min-height: 430px;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8,32,78,.92) 0%, rgba(8,32,78,.78) 42%, rgba(8,32,78,.25) 100%),
    url('/sites/demo-ccint.codall.com.br/files/2026-04/fflch-hero.jpg');
  background-size: cover;
  background-position: center;
}

.financeiro-hero-ccint::before {
  content: "Financeiro Digital";
  position: absolute;
  left: 64px;
  top: 52px;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: -.06em;
  color: rgba(255,255,255,.08);
  line-height: .9;
}

.financeiro-hero-ccint__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 105px 72px 80px;
  color: #fff;
}

.financeiro-hero-ccint__tag {
  display: block;
  color: #ffd200;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 14px;
}

.financeiro-hero-ccint h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.05em;
}

.financeiro-hero-ccint p {
  margin: 0;
  max-width: 680px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.55;
  font-weight: 500;
}

.financeiro-identidade {
  display: grid;
  grid-template-columns: 100px minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
}

.financeiro-identidade__sigla {
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 900;
  color: #12336b;
  letter-spacing: -.05em;
}

.financeiro-identidade__nome {
  font-size: 1.45rem;
  font-weight: 900;
  color: #172033;
  margin-bottom: 8px;
}

.financeiro-identidade__desc {
  color: #63708a;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .financeiro-identidade {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .financeiro-hero-ccint__content {
    padding: 60px 28px;
  }

  .financeiro-hero-ccint::before {
    left: 28px;
    top: 36px;
  }
}

.financeiro-hero-ccint {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8,32,78,.92) 0%, rgba(8,32,78,.78) 42%, rgba(8,32,78,.22) 100%),
    url('/themes/custom/codall_fflch_base/images/hero-ccint.jpg');
  background-size: cover;
  background-position: center;
}

.financeiro-hero-ccint::before {
  content: "Financeiro Digital";
  position: absolute;
  left: 64px;
  top: 52px;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: -.06em;
  color: rgba(255,255,255,.08);
  line-height: .9;
}

.financeiro-hero-ccint__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 105px 72px 80px;
  color: #fff;
}

.financeiro-hero-ccint__tag {
  display: block;
  color: #ffd200;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 14px;
}

.financeiro-hero-ccint h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.05em;
}

.financeiro-hero-ccint p {
  margin: 0;
  max-width: 680px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.55;
  font-weight: 500;
}

/**
 * CCInt Home Premium V1
 */

.ccint-home-premium {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 56px;
}

.ccint-home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(34px, 5vw, 64px);
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.22), transparent 26%),
    radial-gradient(circle at 86% 22%, rgba(255,255,255,.12), transparent 24%),
    linear-gradient(135deg, #123765 0%, #0d597a 52%, #0b716f 100%);
  box-shadow: 0 22px 54px rgba(6, 35, 64, .18);
}

.ccint-home-hero__eyebrow {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
}

.ccint-home-hero h1 {
  max-width: 920px;
  margin: 18px 0 14px;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.ccint-home-hero p {
  max-width: 880px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255,255,255,.94);
}

.ccint-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ccint-home-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #123765;
  text-decoration: none;
  font-weight: 900;
}

.ccint-home-actions a.ccint-home-actions__ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.36);
}

.ccint-home-language {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.ccint-home-language span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
}

.ccint-home-stats,
.ccint-home-grid {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.ccint-home-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ccint-home-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ccint-home-stat,
.ccint-home-card,
.ccint-home-panel {
  border: 1px solid #dce7ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,.05);
}

.ccint-home-stat {
  padding: 22px;
}

.ccint-home-stat strong {
  display: block;
  color: #123765;
  font-size: 2rem;
  line-height: 1;
}

.ccint-home-stat span {
  display: block;
  margin-top: 8px;
  color: #4c6171;
  line-height: 1.45;
}

.ccint-home-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.ccint-home-card:hover,
.ccint-home-card:focus {
  transform: translateY(-3px);
  border-color: #0d6c88;
  box-shadow: 0 20px 44px rgba(0,0,0,.08);
}

.ccint-home-card small {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef7fb;
  color: #0d597a;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ccint-home-card h2 {
  margin: 0 0 10px;
  color: #123765;
  font-size: 1.25rem;
}

.ccint-home-card p {
  margin: 0;
  color: #486173;
  line-height: 1.6;
}

.ccint-home-card__cta {
  margin-top: auto;
  padding-top: 18px;
  color: #0d597a;
  font-weight: 900;
}

.ccint-home-panel {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  margin-top: 24px;
}

.ccint-home-panel h2 {
  margin: 0 0 12px;
  color: #123765;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.ccint-home-panel p,
.ccint-home-panel li {
  color: #465f70;
  line-height: 1.68;
}

.ccint-home-panel ul {
  margin: 0;
  padding-left: 20px;
}

.ccint-home-panel__box {
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(135deg, #eef7fb, #f7fbfd);
}

.ccint-home-section-title {
  margin: 34px 0 16px;
}

.ccint-home-section-title span {
  color: #0d597a;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
}

.ccint-home-section-title h2 {
  margin: 8px 0 0;
  color: #123765;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

@media (max-width: 980px) {
  .ccint-home-stats,
  .ccint-home-grid,
  .ccint-home-panel {
    grid-template-columns: 1fr;
  }

  .ccint-home-card {
    min-height: auto;
  }
}

/**
 * CCInt Home Premium - refinamento visual pós-bloco multilíngue
 */

.path-frontpage .ccint-home-premium {
  max-width: 1180px;
  padding-top: 28px;
}

.path-frontpage .ccint-home-hero {
  min-height: auto;
  padding: clamp(34px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
  border-radius: 28px;
}

.path-frontpage .ccint-home-hero h1 {
  max-width: 720px;
  font-size: clamp(2.45rem, 5.4vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.path-frontpage .ccint-home-hero p {
  max-width: 460px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.path-frontpage .ccint-home-actions {
  align-content: center;
  justify-content: flex-start;
  gap: 10px;
}

.path-frontpage .ccint-home-actions a {
  min-height: 42px;
  padding: 10px 16px;
  font-size: .94rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.10);
}

.path-frontpage .ccint-home-language {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.path-frontpage .ccint-language-showcase {
  margin-top: 28px;
  margin-bottom: 26px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 28px;
}

.path-frontpage .ccint-language-showcase__head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
}

.path-frontpage .ccint-language-links {
  margin-top: 18px;
}

.path-frontpage .ccint-language-link {
  min-height: 132px;
}

@media (max-width: 980px) {
  .path-frontpage .ccint-home-hero {
    grid-template-columns: 1fr;
  }

  .path-frontpage .ccint-home-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .path-frontpage .ccint-home-hero p {
    max-width: 100%;
  }
}

@media (min-width: 981px) {
  .path-frontpage .ccint-home-actions {
    max-width: 300px;
  }

  .path-frontpage .ccint-home-actions a {
    width: fit-content;
  }
}

/**
 * CCInt Home Premium - ajuste final de apresentação
 * Reduz hero, melhora título e restaura bloco de idiomas.
 */

.path-frontpage .ccint-home-premium {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 28px 20px 56px !important;
}

.path-frontpage .ccint-home-hero {
  display: block !important;
  min-height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  padding: clamp(36px, 5vw, 58px) !important;
  color: #fff !important;
  background:
    linear-gradient(90deg, rgba(9, 42, 88, .94) 0%, rgba(10, 54, 103, .88) 48%, rgba(7, 75, 103, .76) 100%),
    var(--ccint-home-hero-image, none) !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 22px 54px rgba(6, 35, 64, .18) !important;
}

.path-frontpage .ccint-home-hero__eyebrow {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-bottom: 18px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.16) !important;
  color: #ffd900 !important;
  font-size: .84rem !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

.path-frontpage .ccint-home-hero h1 {
  max-width: 860px !important;
  margin: 0 0 20px !important;
  color: #fff !important;
  font-size: clamp(2.65rem, 5vw, 4.9rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.045em !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.path-frontpage .ccint-home-hero p {
  max-width: 720px !important;
  margin: 0 !important;
  color: rgba(255,255,255,.96) !important;
  font-size: 1.08rem !important;
  line-height: 1.68 !important;
}

.path-frontpage .ccint-home-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 28px !important;
  max-width: none !important;
}

.path-frontpage .ccint-home-actions a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-height: 44px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #123765 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
}

.path-frontpage .ccint-home-actions a.ccint-home-actions__ghost {
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.42) !important;
}

.path-frontpage .ccint-home-language {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 24px !important;
}

.path-frontpage .ccint-home-language span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  font-weight: 900 !important;
}

/* Bloco premium dos 4 idiomas */
.path-frontpage .ccint-language-showcase {
  display: block !important;
  margin: 30px 0 28px !important;
  border: 1px solid #dce7ef !important;
  border-radius: 28px !important;
  padding: clamp(26px, 4vw, 40px) !important;
  background:
    radial-gradient(circle at 10% 10%, rgba(13, 108, 136, .10), transparent 28%),
    linear-gradient(135deg, #ffffff, #f5fbfe) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.06) !important;
}

.path-frontpage .ccint-language-showcase__head {
  display: grid !important;
  gap: 8px !important;
  max-width: 850px !important;
  margin-bottom: 22px !important;
}

.path-frontpage .ccint-language-showcase__head span {
  display: block !important;
  color: #0d597a !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  font-size: .86rem !important;
}

.path-frontpage .ccint-language-showcase__head h2 {
  margin: 0 !important;
  color: #123765 !important;
  font-size: clamp(1.9rem, 3.3vw, 2.75rem) !important;
  line-height: 1.08 !important;
}

.path-frontpage .ccint-language-showcase__head p {
  margin: 0 !important;
  color: #486173 !important;
  line-height: 1.65 !important;
}

.path-frontpage .ccint-language-links {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.path-frontpage .ccint-language-link {
  display: block !important;
  min-height: 132px !important;
  border: 1px solid #dce7ef !important;
  border-radius: 20px !important;
  padding: 20px !important;
  background: #fff !important;
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.04) !important;
}

.path-frontpage .ccint-language-link strong {
  display: block !important;
  margin-bottom: 8px !important;
  color: #123765 !important;
  font-size: 1.2rem !important;
}

.path-frontpage .ccint-language-link span {
  display: block !important;
  color: #557083 !important;
  line-height: 1.45 !important;
}

.path-frontpage .ccint-home-stats {
  margin-top: 26px !important;
}

.path-frontpage .ccint-home-section-title {
  margin-top: 42px !important;
}

@media (max-width: 980px) {
  .path-frontpage .ccint-home-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.4rem) !important;
  }

  .path-frontpage .ccint-language-links {
    grid-template-columns: 1fr !important;
  }
}

/**
 * CCInt Map Country Filter
 */

.ccint-map-sidebar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbdbe7;
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0 0 12px;
  background: #fff;
  color: #123765;
  font-weight: 700;
}

.ccint-map-item span + span {
  margin-top: 4px;
}

/**
 * CCInt Agreement Detail Pages
 */

.ccint-hero--detail {
  margin-bottom: 22px;
}

.ccint-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ccint-detail-actions a,
.ccint-detail-button,
.ccint-popup-link,
.ccint-map-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #123d61;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

.ccint-detail-actions a {
  background: #fff;
  color: #123d61 !important;
}

.ccint-detail-actions a + a {
  background: rgba(255,255,255,.16);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.38);
}

.ccint-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.ccint-detail-grid article {
  border: 1px solid #dce7ef;
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,.04);
}

.ccint-detail-grid span {
  display: block;
  margin-bottom: 7px;
  color: #607789;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ccint-detail-grid strong {
  display: block;
  color: #123d61;
  line-height: 1.45;
}

.ccint-detail-content p {
  white-space: normal;
}

.ccint-popup-link {
  margin-top: 10px;
  min-height: 34px;
  padding: 7px 12px;
  font-size: .9rem;
}

.ccint-map-detail-link {
  width: fit-content;
  margin-top: 10px;
  min-height: 32px;
  padding: 7px 12px;
  font-size: .88rem;
}

@media (max-width: 980px) {
  .ccint-detail-grid {
    grid-template-columns: 1fr;
  }
}

/**
 * CCInt Home Visual Showcase
 */

.ccint-visual-showcase {
  margin: 42px 0 34px;
}

.ccint-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.ccint-visual-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid #dce7ef;
  box-shadow: 0 18px 42px rgba(0,0,0,.06);
  transition:
    transform .28s ease,
    box-shadow .28s ease;
}

.ccint-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(0,0,0,.12);
}

.ccint-visual-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ccint-visual-card__image {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.ccint-visual-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(7,20,39,.32),
      rgba(7,20,39,.04));
}

.ccint-visual-card__content {
  padding: 24px;
}

.ccint-visual-card__content span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #0d597a;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ccint-visual-card__content h3 {
  margin: 0 0 12px;
  color: #123765;
  font-size: 1.45rem;
  line-height: 1.2;
}

.ccint-visual-card__content p {
  margin: 0;
  color: #536b7d;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .ccint-visual-grid {
    grid-template-columns: 1fr;
  }

  .ccint-visual-card__image {
    height: 220px;
  }
}

/**
 * CCInt Editais e Oportunidades
 */

.ccint-editais-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.ccint-edital-card {
  border: 1px solid #dce7ef;
  border-radius: 24px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(0,0,0,.05);
}

.ccint-edital-card__tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: #0d597a;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ccint-edital-card h2 {
  margin: 0 0 12px;
  color: #123765;
  font-size: 1.35rem;
  line-height: 1.2;
}

.ccint-edital-card p {
  color: #536b7d;
  line-height: 1.6;
}

.ccint-edital-card__meta {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  color: #4e6576;
}

.ccint-edital-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #123d61;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .ccint-editais-grid {
    grid-template-columns: 1fr;
  }
}

.ccint-edital-card__actions {
  margin-top: 18px;
}

.ccint-edital-card__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #123d61 !important;
  color: #fff !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.ccint-edital-card__button:hover {
  transform: translateY(-2px);
}

/**
 * CCInt Editais - imagens de capa
 */

.ccint-edital-card {
  overflow: hidden;
  padding: 0 !important;
}

.ccint-edital-card__image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.ccint-edital-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,20,39,.22), rgba(7,20,39,.02));
}

.ccint-edital-card__body {
  padding: 24px;
}

/**
 * CCInt Editais - imagens demonstrativas por node
 */

.ccint-edital-card__image--84 {
  background-image: url('/sites/demo-ccint.codall.com.br/files/ccint/editais/demo/zurich.jpg');
}

.ccint-edital-card__image--85 {
  background-image: url('/sites/demo-ccint.codall.com.br/files/ccint/editais/demo/warwick.jpg');
}

.ccint-edital-card__image--86 {
  background-image: url('/sites/demo-ccint.codall.com.br/files/ccint/editais/demo/paris-8.jpg');
}

/**
 * CCInt Edital Detail Hero Visual
 */

.ccint-edital-hero {
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
}

.ccint-edital-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,42,88,.92), rgba(9,42,88,.72)),
    linear-gradient(to top, rgba(0,0,0,.20), transparent);
  z-index: 0;
}

.ccint-edital-hero > * {
  position: relative;
  z-index: 1;
}

.ccint-edital-hero--84 {
  background-image: url('/sites/demo-ccint.codall.com.br/files/ccint/editais/demo/zurich.jpg') !important;
}

.ccint-edital-hero--85 {
  background-image: url('/sites/demo-ccint.codall.com.br/files/ccint/editais/demo/warwick.jpg') !important;
}

.ccint-edital-hero--86 {
  background-image: url('/sites/demo-ccint.codall.com.br/files/ccint/editais/demo/paris-8.jpg') !important;
}

/**
 * CCInt Universidades Parceiras
 */

.ccint-university-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.ccint-university-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid #dce7ef;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0,0,0,.06);
}

.ccint-university-card__image {
  height: 230px;
  background-size: cover;
  background-position: center;
  background-color: #d9e6ee;
}

.ccint-university-card__body {
  padding: 24px;
}

.ccint-university-card__body span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #0d597a;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ccint-university-card__body h2 {
  margin: 0 0 12px;
  color: #123765;
  font-size: 1.45rem;
}

.ccint-university-card__body p {
  color: #536b7d;
  line-height: 1.65;
}

.ccint-university-card__body a {
  display: inline-flex;
  margin-top: 12px;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #123d61;
  color: #fff !important;
  font-weight: 900;
  text-decoration: none;
}

.ccint-university-card--87 .ccint-university-card__image,
.ccint-university-card--88 .ccint-university-card__image,
.ccint-university-card--89 .ccint-university-card__image,
.ccint-university-card--90 .ccint-university-card__image {
  background-image: url('/themes/custom/codall_fflch_base/images/ccint-home/warwick.jpg');
}

@media (max-width: 980px) {
  .ccint-university-grid {
    grid-template-columns: 1fr;
  }
}

/**
 * CCInt Universidades - imagens individuais
 */

.ccint-university-card--87 .ccint-university-card__image,
.ccint-university-hero--87 {
  background-image: url('/themes/custom/codall_fflch_base/images/ccint-home/zurich.jpg') !important;
}

.ccint-university-card--88 .ccint-university-card__image,
.ccint-university-hero--88 {
  background-image: url('/themes/custom/codall_fflch_base/images/ccint-home/warwick.jpg') !important;
}

.ccint-university-card--89 .ccint-university-card__image,
.ccint-university-hero--89 {
  background-image: url('/themes/custom/codall_fflch_base/images/ccint-home/paris-8.jpg') !important;
}

.ccint-university-card--90 .ccint-university-card__image,
.ccint-university-hero--90 {
  background-image: url('/themes/custom/codall_fflch_base/images/ccint-home/fflch.jpg') !important;
}

.ccint-university-hero {
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
}

.ccint-university-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,42,88,.94), rgba(9,42,88,.70));
  z-index: 0;
}

.ccint-university-hero > * {
  position: relative;
  z-index: 1;
}

/**
 * Dashboard internacional
 */

.ccint-dashboard-hero {
  background:
    linear-gradient(135deg,
    rgba(8,36,82,.95),
    rgba(14,120,132,.88)),
    url('/themes/custom/codall_fflch_base/images/ccint-home/zurich.jpg');

  background-size: cover;
  background-position: center;
}

.ccint-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ccint-dashboard-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
}

.ccint-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
  margin-top: 28px;
}

.ccint-kpi-card {
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid #d9e6ef;
  box-shadow: 0 18px 42px rgba(0,0,0,.06);
}

.ccint-kpi-card span {
  display: block;
  margin-bottom: 10px;
  color: #0f5d7c;
  font-size: .85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ccint-kpi-card strong {
  display: block;
  margin-bottom: 12px;
  color: #123765;
  font-size: 3rem;
  line-height: 1;
}

.ccint-kpi-card p {
  margin: 0;
  color: #567082;
}

.ccint-dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 24px;
  margin-top: 30px;
}

.ccint-dashboard-highlight {
  background:
    linear-gradient(135deg,
    rgba(8,36,82,.96),
    rgba(18,96,116,.92));

  color: #fff;
}

.ccint-dashboard-highlight span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #ffd84a;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ccint-dashboard-highlight h2 {
  color: #fff;
}

.ccint-dashboard-highlight a {
  display: inline-flex;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #123765 !important;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {

  .ccint-kpi-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .ccint-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {

  .ccint-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/**
 * Busca internacional
 */

.ccint-search-hero {
  background:
    linear-gradient(135deg,
    rgba(8,36,82,.95),
    rgba(13,94,124,.88)),
    url('/themes/custom/codall_fflch_base/images/ccint-home/paris-8.jpg');

  background-size: cover;
  background-position: center;
}

.ccint-search-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.ccint-search-form input {
  flex: 1;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 0;
  font-size: 1rem;
}

.ccint-search-form button {
  min-width: 140px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #123765;
  font-weight: 900;
  cursor: pointer;
}

.ccint-search-results {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.ccint-search-card {
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #dce7ef;
  box-shadow: 0 18px 42px rgba(0,0,0,.06);
}

.ccint-search-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #0f5d7c;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ccint-search-card h2 {
  margin: 0 0 12px;
  color: #123765;
}

.ccint-search-card p {
  color: #5a7283;
  line-height: 1.7;
}

.ccint-search-card a {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #123d61;
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 760px) {

  .ccint-search-form {
    flex-direction: column;
  }

  .ccint-search-form button {
    width: 100%;
    min-height: 48px;
  }
}

/**
 * CCInt Convênios Internacionais
 */

.ccint-convenios-hero {
  background:
    linear-gradient(135deg, rgba(8,36,82,.95), rgba(14,120,132,.88)),
    url('/themes/custom/codall_fflch_base/images/ccint-home/warwick.jpg');
  background-size: cover;
  background-position: center;
}

.ccint-convenio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.ccint-convenio-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid #dce7ef;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0,0,0,.06);
}

.ccint-convenio-card__image {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #d9e6ee;
}

.ccint-convenio-card--91 .ccint-convenio-card__image {
  background-image: url('/themes/custom/codall_fflch_base/images/ccint-home/zurich.jpg');
}

.ccint-convenio-card--92 .ccint-convenio-card__image {
  background-image: url('/themes/custom/codall_fflch_base/images/ccint-home/warwick.jpg');
}

.ccint-convenio-card--93 .ccint-convenio-card__image {
  background-image: url('/themes/custom/codall_fflch_base/images/ccint-home/paris-8.jpg');
}

.ccint-convenio-card__body {
  padding: 24px;
}

.ccint-convenio-card__tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f4f8;
  color: #0d597a;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ccint-convenio-card h2 {
  margin: 0 0 12px;
  color: #123765;
  font-size: 1.35rem;
  line-height: 1.2;
}

.ccint-convenio-card p {
  color: #536b7d;
  line-height: 1.65;
}

.ccint-convenio-card__meta {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  color: #4e6576;
}

.ccint-convenio-card a {
  display: inline-flex;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #123d61;
  color: #fff !important;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .ccint-convenio-grid {
    grid-template-columns: 1fr;
  }
}

/**
 * CCInt Convênio detalhe
 */

.ccint-convenio-detail-hero {
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
}

.ccint-convenio-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,42,88,.94), rgba(9,42,88,.70));
  z-index: 0;
}

.ccint-convenio-detail-hero > * {
  position: relative;
  z-index: 1;
}

.ccint-convenio-detail-hero--91 {
  background-image: url('/themes/custom/codall_fflch_base/images/ccint-home/zurich.jpg') !important;
}

.ccint-convenio-detail-hero--92 {
  background-image: url('/themes/custom/codall_fflch_base/images/ccint-home/warwick.jpg') !important;
}

.ccint-convenio-detail-hero--93 {
  background-image: url('/themes/custom/codall_fflch_base/images/ccint-home/paris-8.jpg') !important;
}
