:root {
  --bs-dark-rgb: 0, 0, 0 !important;
}

.skip-link {
  position: fixed;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2000;
  transform: translateY(-140%);
  transition: transform 0.16s ease;
  background: #000;
  color: #fff;
  border: 1px solid #76b6bc;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
  font-size: 0.8rem;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #76b6bc;
  outline-offset: 2px;
}

.navbar-dark {
  --bs-navbar-color: rgba(255, 255, 255, 0.95) !important;
  --bs-nav-link-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
}

.font-monospace {
  font-family: var(--bs-font-monospace) !important;
  font-size: x-small;
}

.description {
  opacity: .75;
}

.h6 {
  text-align: center;
  opacity: .75;
}

a.icon-link-hover {
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}

a.icon-link-hover:hover,
a.icon-link-hover:focus {
  transform: translateX(8px);
}

a.icon-link-hover.text-reset:hover {
  color: #1f7fff !important;
}

.badge {
  background-color: transparent !important;
  font-size: xx-small;
  font-weight: lighter;
  border: 1px solid #234;
  color: #789 !important;
}

.text-bg-secondary {
  --bs-bg-opacity: 0.5;
}

.offcanvas {
  max-width: 40%;
}

@media (min-width: 992px) {
  .offcanvas {
    max-width: 18%;
  }
}

section {
  scroll-margin-top: 92px;
}

.page-tesi {
  font-family: var(--bs-font-monospace);
  background-color: #000;
}

.page-tesi > main,
.page-tesi > section:not(.tesi-bg) {
  position: relative;
  z-index: 1;
}

.tesi-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

.tesi-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 62%, rgba(0, 0, 0, 0.86) 100%);
}

.tesi-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
  filter: saturate(1.05) contrast(1.05);
}

.page-tesi[data-tesi-bg="rgb"] .tesi-bg-gif {
  opacity: 0.6;
}

.page-tesi[data-tesi-bg="catene"] .tesi-bg-video {
  opacity: 0.58;
}

@media (max-width: 767px) {
  .page-tesi[data-tesi-bg="rgb"] .tesi-bg-gif {
    opacity: 0.44;
  }

  .page-tesi[data-tesi-bg="catene"] .tesi-bg-video {
    opacity: 0.42;
  }
}
