/* Restaurações visuais do site público — carregado após o CSS principal. */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) color-mix(in srgb, var(--background), #dfe7eb 45%);
}

body::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

body::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--background), #dfe7eb 45%);
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border: 2px solid color-mix(in srgb, var(--background), #dfe7eb 45%);
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1300;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 58%, var(--secondary) 100%);
  box-shadow: 0 3px 14px color-mix(in srgb, var(--accent), transparent 48%);
  transition: width 0.08s linear;
}

.site-brand {
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.logo-carousel {
  align-items: stretch;
}

.logo-card.logo-card-clean {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 190px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo-card.logo-card-clean::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 10%, rgba(7,59,88,.14) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}

.logo-card.logo-card-clean .logo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 190px;
  height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .25s ease, opacity .25s ease, filter .25s ease;
}

.logo-card.institution-logo-card .logo-frame {
  max-width: 205px;
  height: 108px;
}

.logo-card.company-card .logo-frame {
  max-width: 195px;
  height: 96px;
}

.logo-card.logo-card-clean .logo-frame img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.logo-card.logo-card-clean > strong,
.logo-card.logo-card-clean > small {
  display: none !important;
}

.logo-card-access {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, calc(-50% + 14px));
  min-width: 158px;
  min-height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 34px rgba(3,44,70,.24);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

@media (hover: hover) {
  .logo-card.logo-card-clean:hover::before,
  .logo-card.logo-card-clean:focus-visible::before {
    opacity: 1;
  }

  .logo-card.logo-card-clean:hover .logo-frame,
  .logo-card.logo-card-clean:focus-visible .logo-frame {
    transform: scale(.92);
    opacity: .18;
    filter: blur(.2px);
  }

  .logo-card.logo-card-clean:hover .logo-card-access,
  .logo-card.logo-card-clean:focus-visible .logo-card-access {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
  }
}

@media (hover: none) {
  .logo-card-access {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .scroll-progress { height: 3px; }
  .logo-card.logo-card-clean { min-height: 175px; }
  .logo-card.institution-logo-card .logo-frame { max-width: 180px; height: 94px; }
  .logo-card.company-card .logo-frame { max-width: 175px; height: 88px; }
}

@media (max-width: 560px) {
  .logo-card.logo-card-clean { min-height: 160px; padding: 18px 14px; }
  .logo-card.institution-logo-card .logo-frame { max-width: 155px; height: 82px; }
  .logo-card.company-card .logo-frame { max-width: 150px; height: 78px; }
}
