/* Institutum Sapientiae — refinamentos do frontend Elementor */

/* O divisor do herói 405 era posicionado no fluxo e formava um semicírculo
   azul entre o cabeçalho e as páginas internas. */
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-405 .elementor-shape-bottom {
  display: none !important;
}

/* Home: a altura segue a versão 1.9.6 do tema Institutum Sapientiae. */
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-hero-visual {
  height: clamp(260px, 29vw, 390px) !important;
  min-height: 0 !important;
  overflow: hidden;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-hero-visual :is(.e-con, .elementor-widget-image-carousel, .elementor-widget-container, .swiper, .swiper-wrapper, .swiper-slide) {
  height: 100% !important;
  min-height: 0 !important;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-hero-visual img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Home: recompõe os quatro cartões institucionais. A revisão atual substitui
   o widget dinâmico de logomarca somente no cartão Sobre nós por uma imagem
   PNG da Biblioteca. Os seletores de compatibilidade preservam a revisão
   anterior até que o novo modelo seja sincronizado. */
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px 24px;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > .elementor-widget-heading:first-child {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100% !important;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/sobre-nos/"] {
  grid-column: 1;
  grid-row: 2;
  width: 100% !important;
  min-height: 360px;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/sobre-nos/"] + .elementor-widget-theme-site-logo {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  width: 156px !important;
  margin: 0 !important;
  z-index: 2;
  pointer-events: none;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/sobre-nos/"] + .elementor-widget-theme-site-logo + .elementor-widget-heading {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  justify-self: center;
  width: auto !important;
  margin: 0 0 24px !important;
  z-index: 3;
  pointer-events: none;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/autoridades/"] {
  grid-column: 2;
  grid-row: 2;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/historia/"] {
  grid-column: 3;
  grid-row: 2;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/corpo-docente/"] {
  grid-column: 4;
  grid-row: 2;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/autoridades/"],
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/historia/"],
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/corpo-docente/"] {
  min-height: 360px;
  width: 100% !important;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/sobre-nos/"],
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/autoridades/"],
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/historia/"],
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/corpo-docente/"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  min-width: 0;
  padding: 22px 18px 24px !important;
  border: 1px solid rgba(15, 37, 68, .1);
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 16px 38px rgba(10, 24, 48, .12) !important;
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/sobre-nos/"]:hover,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/autoridades/"]:hover,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/historia/"]:hover,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/corpo-docente/"]:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, .48);
  box-shadow: 0 22px 46px -28px rgba(10, 24, 48, .42) !important;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/autoridades/"] .elementor-widget-image,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/historia/"] .elementor-widget-image,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/corpo-docente/"] .elementor-widget-image {
  width: 100% !important;
  height: 210px !important;
  margin: 0 !important;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/autoridades/"] .elementor-widget-image img,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/historia/"] .elementor-widget-image img,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/corpo-docente/"] .elementor-widget-image img {
  display: block;
  width: 100% !important;
  height: 210px !important;
  border-radius: 12px !important;
  object-fit: cover;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/sobre-nos/"] .elementor-widget-image {
  width: 170px !important;
  height: 190px !important;
  margin: 0 auto !important;
  padding: 14px !important;
  border: 1px solid rgba(201, 162, 39, .45);
  border-radius: 16px;
  background: #fff;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/sobre-nos/"] .elementor-widget-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional h2.elementor-heading-title,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional h3.elementor-heading-title {
  color: #0f2544 !important;
}

/* A nova Home usa superfícies claras nestes blocos; os títulos precisam de
   azul escuro, inclusive quando o Kit antigo define tipografia branca. */
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-news :is(h2, h3).elementor-heading-title,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-publications :is(h2, h3).elementor-heading-title,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-courses :is(h2, h3).elementor-heading-title {
  color: #0f2544 !important;
  text-shadow: none !important;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-hero-copy :is(h1, h2, h3).elementor-heading-title {
  color: #f8f5ec !important;
}

/* Vínculo acadêmico: faixa reutilizável logo após os cartões institucionais
   e versão compacta imediatamente antes do rodapé. */
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation {
  width: 100%;
  border-block: 1px solid rgba(15, 37, 68, .08);
  background: #fff;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, 1050px);
  min-height: 104px;
  margin: 0 auto;
  padding: 22px 0;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation img {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation p,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation small {
  margin: 0;
  color: #405570;
  line-height: 1.45;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation p span,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation p strong {
  display: block;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation p strong {
  color: #0f2544;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation small {
  max-width: 270px;
  font-size: 14px;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation--footer {
  border-color: rgba(255, 255, 255, .1);
  background: #122c50;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation--footer .is-affiliation__inner {
  justify-content: flex-start;
  min-height: 88px;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation--footer p,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation--footer p strong {
  color: #f8f5ec;
}

/* Sobre Nós: as fotografias narrativas não devem dominar a largura dos
   textos. A proporção original é preservada, sem recorte. */
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2439 .elementor-widget-image.logo-shadow {
  flex: 0 1 380px !important;
  width: min(100%, 380px) !important;
  max-width: 380px !important;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2439 .elementor-widget-image.logo-shadow :is(figure, img) {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
}

/* Corpo Docente: cartões claros, filtros em pílulas e grade equivalente à
   linguagem institucional do tema 1.9.6. */
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .jet-radio-list-wrapper fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .jet-list-tree {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .jet-radio-list__row {
  margin: 0;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .jet-radio-list__button {
  padding: 10px 16px;
  border: 1px solid rgba(15, 37, 68, .2);
  border-radius: 999px;
  background: #fff;
  color: #0f2544;
  font-weight: 700;
  line-height: 1.3;
  transition: background .2s, border-color .2s, color .2s;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .jet-radio-list__input:checked + .jet-radio-list__button,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .jet-radio-list__item:hover .jet-radio-list__button {
  border-color: #0f2544;
  background: #0f2544;
  color: #fff;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .jet-listing-grid__items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .jet-listing-grid__item {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .elementor-299 > .e-con {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  min-height: 330px;
  padding: 28px 22px !important;
  border: 1px solid rgba(15, 37, 68, .12);
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 16px 38px -30px rgba(10, 24, 48, .48);
  text-align: center;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .elementor-299 .elementor-widget-image {
  flex: 0 0 170px !important;
  width: 170px !important;
  height: 170px !important;
  margin: 0 auto !important;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .elementor-299 .elementor-widget-image .elementor-widget-container,
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .elementor-299 .elementor-widget-image img {
  width: 170px !important;
  height: 170px !important;
  border-radius: 50%;
  object-fit: cover;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .elementor-299 > .e-con > .e-con {
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .elementor-299 h2.elementor-heading-title {
  color: #0f2544 !important;
  font-size: clamp(20px, 2vw, 26px) !important;
  line-height: 1.25;
}
body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .elementor-299 p.elementor-heading-title {
  color: #705700 !important;
  font-size: 15px !important;
}

@media (max-width: 1024px) {
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/historia/"] {
    grid-column: 1;
    grid-row: 3;
  }
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/corpo-docente/"] {
    grid-column: 2;
    grid-row: 3;
  }
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .jet-listing-grid__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-hero-visual {
    height: clamp(240px, 62vw, 360px) !important;
  }
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner,
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .jet-listing-grid__items {
    grid-template-columns: 1fr;
  }
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/sobre-nos/"],
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/sobre-nos/"] + .elementor-widget-theme-site-logo,
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/sobre-nos/"] + .elementor-widget-theme-site-logo + .elementor-widget-heading {
    grid-column: 1;
    grid-row: 2;
  }
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/autoridades/"] {
    grid-column: 1;
    grid-row: 3;
  }
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/historia/"] {
    grid-column: 1;
    grid-row: 4;
  }
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is195-home-institutional > .e-con-inner > a[href="/corpo-docente/"] {
    grid-column: 1;
    grid-row: 5;
  }
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2439 .elementor-widget-image.logo-shadow {
    max-width: 320px !important;
  }
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .elementor-2326 .elementor-299 > .e-con {
    min-height: 0;
  }
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation__inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  body:is(.wp-theme-hello-elementor,.elementor-editor-active) .is-affiliation--footer .is-affiliation__inner {
    justify-content: center;
  }
}

