/* Identidade visual global do UNITAS'26. */
.wp-block-site-logo img,.custom-logo-link img{height:auto;max-height:84px;width:auto;object-fit:contain}

/*
 * O nome UNITAS'26 continua salvo como Titulo do Site no WordPress, mas no
 * cabecalho publico exibimos apenas o escudo para uma composicao mais limpa.
 */
header.wp-block-template-part .wp-block-site-title,
.wp-site-blocks>header .wp-block-site-title{display:none!important}

header.wp-block-template-part .wp-block-site-logo,
.wp-site-blocks>header .wp-block-site-logo{margin:0!important;line-height:0}

header.wp-block-template-part .wp-block-site-logo img,
.wp-site-blocks>header .wp-block-site-logo img{max-height:88px!important;width:auto!important}

@media(max-width:782px){
  .wp-block-site-logo img,.custom-logo-link img{max-height:66px}
  header.wp-block-template-part .wp-block-site-logo img,
  .wp-site-blocks>header .wp-block-site-logo img{max-height:70px!important}
}

@media(max-width:620px){
  .wp-block-site-logo img,.custom-logo-link img{max-height:58px}
  header.wp-block-template-part .wp-block-site-logo img,
  .wp-site-blocks>header .wp-block-site-logo img{max-height:62px!important}
}

.u26-hero>.u26-page-logo,.u26-about-hero>.u26-page-logo,.u26-reg-hero>.u26-page-logo{position:absolute;z-index:2;right:28px;top:24px;width:72px;height:auto;opacity:.94;filter:drop-shadow(0 10px 16px rgba(0,0,0,.2));pointer-events:none}
@media(max-width:760px){.u26-hero>.u26-page-logo,.u26-about-hero>.u26-page-logo,.u26-reg-hero>.u26-page-logo{width:52px;right:18px;top:16px;opacity:.78}}


/* v2.3.3 - logo horizontal no cabecalho */
.wp-block-site-logo,.custom-logo-link{display:flex;align-items:center}
header.wp-block-template-part .wp-block-site-logo,
.wp-site-blocks>header .wp-block-site-logo,
header.wp-block-template-part .custom-logo-link,
.wp-site-blocks>header .custom-logo-link{width:auto!important;max-width:none!important;min-width:240px!important;display:flex!important;align-items:center!important}
header.wp-block-template-part .wp-block-site-logo img,
.wp-site-blocks>header .wp-block-site-logo img,
header.wp-block-template-part .custom-logo-link img,
.wp-site-blocks>header .custom-logo-link img{height:68px!important;max-height:68px!important;width:auto!important;max-width:320px!important;object-fit:contain!important}
@media(max-width:960px){
  header.wp-block-template-part .wp-block-site-logo,
  .wp-site-blocks>header .wp-block-site-logo,
  header.wp-block-template-part .custom-logo-link,
  .wp-site-blocks>header .custom-logo-link{min-width:190px!important}
  header.wp-block-template-part .wp-block-site-logo img,
  .wp-site-blocks>header .wp-block-site-logo img,
  header.wp-block-template-part .custom-logo-link img,
  .wp-site-blocks>header .custom-logo-link img{height:56px!important;max-height:56px!important;max-width:265px!important}
}
@media(max-width:640px){
  header.wp-block-template-part .wp-block-site-logo,
  .wp-site-blocks>header .wp-block-site-logo,
  header.wp-block-template-part .custom-logo-link,
  .wp-site-blocks>header .custom-logo-link{min-width:150px!important}
  header.wp-block-template-part .wp-block-site-logo img,
  .wp-site-blocks>header .wp-block-site-logo img,
  header.wp-block-template-part .custom-logo-link img,
  .wp-site-blocks>header .custom-logo-link img{height:44px!important;max-height:44px!important;max-width:210px!important}
}


/* v2.4.1 - alinhamento fino do cabecalho */
header.wp-block-template-part .wp-block-group.is-layout-flex,
.wp-site-blocks>header .wp-block-group.is-layout-flex{align-items:center!important}
header.wp-block-template-part .wp-block-buttons,
.wp-site-blocks>header .wp-block-buttons{align-self:center!important;align-items:center!important;margin-top:0!important;margin-bottom:0!important}
header.wp-block-template-part .wp-block-button,
.wp-site-blocks>header .wp-block-button{margin-top:0!important;margin-bottom:0!important}
header.wp-block-template-part .wp-block-button__link,
.wp-site-blocks>header .wp-block-button__link{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1.15!important}


/* v2.4.3 - remove o banner generico de titulo do tema nas paginas do sistema. */
body.unitas26-managed-page .wp-block-cover:has(.wp-block-post-title){display:none!important}
body.unitas26-managed-page .wp-site-blocks main{margin-top:0}

/* v2.6.4 - links do rodape que originalmente eram texto puro */
footer .unitas26-footer-forced-link{color:inherit!important;text-decoration:none!important;cursor:pointer!important;pointer-events:auto!important}
footer .unitas26-footer-forced-link:hover{text-decoration:underline!important;text-underline-offset:3px}


/* v2.15.2 - botao global Voltar ao topo */
.u26-back-to-top{
    position:fixed;
    z-index:9998;
    right:22px;
    bottom:max(22px,calc(env(safe-area-inset-bottom,0px) + 18px));
    display:grid;
    place-items:center;
    width:52px;
    height:52px;
    padding:0;
    border:1px solid rgba(212,175,55,.58);
    border-radius:50%;
    background:linear-gradient(145deg,#07152b,#16345c);
    color:#f1d77a;
    box-shadow:0 14px 32px rgba(7,21,43,.26);
    opacity:0;
    visibility:hidden;
    transform:translateY(12px) scale(.94);
    pointer-events:none;
    cursor:pointer;
    transition:opacity .22s ease,visibility .22s ease,transform .22s ease,background .22s ease,color .22s ease,border-color .22s ease;
    -webkit-tap-highlight-color:transparent;
}
.u26-back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0) scale(1);pointer-events:auto}
.u26-back-to-top svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.u26-back-to-top:hover,.u26-back-to-top:focus-visible{border-color:#d4af37;background:linear-gradient(145deg,#d4af37,#f1d77a);color:#07152b;outline:none;transform:translateY(-2px) scale(1.02)}
.u26-back-to-top:focus-visible{box-shadow:0 0 0 4px rgba(212,175,55,.24),0 14px 32px rgba(7,21,43,.26)}
@media(max-width:620px){.u26-back-to-top{right:16px;bottom:max(18px,calc(env(safe-area-inset-bottom,0px) + 14px));width:48px;height:48px;box-shadow:0 10px 26px rgba(7,21,43,.24)}.u26-back-to-top svg{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){.u26-back-to-top{transition:none}}
