@font-face {
  font-family: "Mattone Regular";
  src: url("../assets/fonts/Mattone-Regular.woff2") format("woff2"),
    url("../assets/fonts/Mattone-Regular.woff") format("woff");
}

@font-face {
  font-family: "Mattone Bold";
  src: url("../assets/fonts/Mattone-Bold.woff2") format("woff2"),
    url("../assets/fonts/Mattone-Bold.woff") format("woff");
}

@font-face {
  font-family: "Mattone Black";
  src: url("../assets/fonts/Mattone-Black.woff2") format("woff2"),
    url("../assets/fonts/Mattone-Black.woff") format("woff");
}

@font-face {
  font-family: "Apfel Grotezk Regular";
  src: url("../assets/fonts/ApfelGrotezk-Regular.woff2") format("woff2"),
    url("../assets/fonts/ApfelGrotezk-Regular.woff") format("woff");
}

@font-face {
  font-family: "Apfel Grotezk Brukt";
  src: url("../assets/fonts/ApfelGrotezk-Brukt.woff2") format("woff2"),
    url("../assets/fonts/ApfelGrotezk-Brukt.woff") format("woff");
}

@font-face {
  font-family: "Apfel Grotezk Mittel";
  src: url("../assets/fonts/ApfelGrotezk-Mittel.woff2") format("woff2"),
    url("../assets/fonts/ApfelGrotezk-Mittel.woff") format("woff");
}

@font-face {
  font-family: "Apfel Grotezk Fett";
  src: url("../assets/fonts/ApfelGrotezk-Fett.woff2") format("woff2"),
    url("../assets/fonts/ApfelGrotezk-Fett.woff") format("woff");
}

@font-face {
  font-family: "Apfel Grotezk Satt";
  src: url("../assets/fonts/ApfelGrotezk-Satt.woff2") format("woff2"),
    url("../assets/fonts/ApfelGrotezk-Satt.woff") format("woff");
}

.regular {
  font-family: "Apfel Grotezk Regular";
}

.brukt {
  font-family: "Apfel Grotezk Brukt";
}

.mittel {
  font-family: "Apfel Grotezk Mittel";
}

.fett {
  font-family: "Apfel Grotezk Fett";
}

.satt {
  font-family: "Apfel Grotezk Satt";
}

.mattone {
  font-family: "Mattone Regular";
}

.mattone-bold {
  font-family: "Mattone Bold";
}

.h3 {
  line-height: 1.4em;
}

h3,
h4 {
  font-family: "Mattone Bold";
}

p {
  font-size: 1.3rem;
}

.lead {
  font-size: 1.5rem;
}

.ingress p {
  font-size: 1.5rem;
  line-height: 1.4;
}

.medium {
  font-size: 1rem;
}

body {
  font-family: "Apfel Grotezk Regular", sans-serif !important;
  color: #3862a8;
  list-style-type: none !important;
  background-color: #fcf5f0 !important;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.logo {
  width: auto;
  height: 100px;
}

p a:link {
  text-decoration: none;
  background-image: linear-gradient(to bottom, transparent 50%, #facb95 50%);
  background-origin: 0;
  background-size: 200% 60%;
  background-repeat: repeat-x;
  background-position: 0 100%;
  transition: background-position 0.5s;
}

p a:hover {
  background-position: -100% 100%;
  background-image: linear-gradient(to bottom, transparent 50%, #96abcf 50%);
}

p a {
  text-decoration: none;
  color: #3862a8 !important;
}

a:hover {
  text-decoration: none;
}

a.noline {
  text-decoration: none;
  background: none;
  color: inherit;
}

a.noline:hover {
  text-decoration: underline;
  color: inherit;
}

.fluo-orange {
  background-color: #fcf5f1;
}

.border-blue {
  border-color: #3862a8;
}

.toggle-section {
  position: sticky;
}

.toggle-heading {
  position: relative;
  top: 0;
  z-index: 2;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 767.98px) {
  .toggle-heading {
    height: 100px !important;
  }
}

@media (max-width: 991.98px) {
  .toggle-heading {
    height: auto;
    max-width: 100%;
  }
}

@media (max-width: 1199.98px) {
  .toggle-heading {
    height: 175px;
  }
}

.toggle-content {
  display: block;
  position: sticky;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 1s ease, opacity 0.25s ease;
  will-change: height;
  margin-top: 0.5rem;
  align-self: flex-start;
}

.toggle-content.open {
  opacity: 1;
}

.toggle-wrapper {
  align-self: flex-start !important;
  position: relative;
  margin-top: 120px;
}

@media (max-width: 991.98px) {
  .toggle-wrapper {
    margin-top: 30px;
  }
}

.toggle-wrapper h2 {
  position: sticky;
  top: 120px;
  z-index: 2;
  cursor: pointer;
}

.negative-bottom {
  margin-bottom: -45px;
}
@media (max-width: 991.98px) {
  .negative-bottom {
    margin-bottom: -20px;
  }
}

.fancy-text p a:link,
.fancy-text li a:link {
  text-decoration: none;
  background-image: linear-gradient(to bottom, transparent 50%, #facb95 50%);
  background-origin: 0;
  background-size: 200% 60%;
  background-repeat: repeat-x;
  background-position: 0 100%;
  transition: background-position 0.5s;
}

.fancy-text p a:hover,
.fancy-text li a:hover {
  background-position: -100% 100%;
  background-image: linear-gradient(to bottom, transparent 50%, #96abcf 50%);
}

.fancy-text p a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

.line {
  border: #3862a8 solid 1px;
  opacity: 1;
}

[data-bs-theme="dark"] .line {
  border: #fcf5f0 solid 1px;
}

.nav-external > li {
  display: inline-block;
}

@media (max-width: 991.98px) {
  .nav-external > li {
    display: inline;
  }
}

[data-bs-theme="dark"] .btnSwitch {
  border-color: #fcf5f0 !important;
  color: #fcf5f0;
}

[data-bs-theme="dark"] .btnSwitch:hover {
  border-color: #facb95 !important;
  color: #facb95;
}

.btnSwitch {
  border-color: #3862a8 !important;
  color: #3862a8;
  transition: color 100ms ease-in, background-color 100ms ease-in;
}

.btnSwitch:hover {
  border-color: #172845 !important;
  color: #172845;
}

.btn.btn-external {
  color: #3862a8;
  border: 1px solid #3862a8;
  transition: color 100ms ease-in-out, background-color 100ms ease-in-out;
}

.btn.btn-external:hover {
  color: #172845;
  border: 1px solid #172845;
  text-decoration: none;
}

.btn.btn-external:active,
.btn.btn-external:focus {
  color: #fcf5f0;
  background-color: #172845;
  text-decoration: none;
}

.btn.btn-external:focus-visible {
  outline: 2px solid #3862a8;
  outline-offset: 2px;
}

.btn.btn-external:disabled,
.btn.btn-external.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

[data-bs-theme="dark"] .btn.btn-external {
  color: #fcf5f0;
  border: 1px solid #fcf5f0;
}

[data-bs-theme="dark"] .btn.btn-external:hover {
  color: #facb95;
  border-color: #facb95;
  text-decoration: none;
}

[data-bs-theme="dark"] .btn.btn-external:active,
[data-bs-theme="dark"] .btn.btn-external:focus {
  color: #172845;
  background-color: #facb95;
  text-decoration: none;
}

[data-bs-theme="dark"] .btn.btn-external:focus-visible {
  outline: 2px solid #fcf5f0;
  outline-offset: 2px;
}

[data-bs-theme="dark"] .btn.btn-external:disabled,
[data-bs-theme="dark"] .btn.btn-external.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.btn-full {
  color: #fcf5f0;
  background-color: #3862a8;
  border: 1px solid #3862a8;
  transition: color 100ms ease-in-out, background-color 100ms ease-in-out;
}

.btn.btn-full:hover {
  color: #fcf5f0;
  background-color: #172845;
  border: 1px solid #172845;
  text-decoration: none;
}

.btn.btn-full:active,
.btn.btn-full:focus {
  color: #172845;
  background-color: #fcf5f0;
  text-decoration: none;
}

.btn.btn-full:focus-visible {
  outline: 2px solid #3862a8;
  outline-offset: 2px;
}

.btn.btn-full:disabled,
.btn.btn-full.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

[data-bs-theme="dark"] .btn.btn-full {
  color: #3862a8;
  background-color: #fcf5f0;
  border: 1px solid #fcf5f0;
}

[data-bs-theme="dark"] .btn.btn-full:hover {
  color: #172845;
  background-color: #facb95;
  border-color: #facb95;
  text-decoration: none;
}

[data-bs-theme="dark"] .btn.btn-full:active,
[data-bs-theme="dark"] .btn.btn-full:focus {
  color: #facb95;
  background-color: #172845;
  text-decoration: none;
}

[data-bs-theme="dark"] .btn.btn-full:focus-visible {
  outline: 2px solid #fcf5f0;
  outline-offset: 2px;
}

[data-bs-theme="dark"] .btn.btn-full:disabled,
[data-bs-theme="dark"] .btn.btn-full.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-link:focus,
.nav-link:focus-visible {
  box-shadow: none !important;
  outline: none;
}

body :focus {
  outline: none;
}

body :focus-visible {
  outline: 3px solid #facb95 !important;
  outline-offset: 3px;
  border-radius: 0.25rem;
}

[data-bs-theme="dark"] body :focus-visible {
  outline: 3px solid #fbf2a6 !important;
  outline-offset: 3px;
  border-radius: 0.25rem;
}

[data-bs-theme="dark"] body {
  background-color: #172845 !important;
  color: #fcf5f0;
  background: linear-gradient(300deg, #191919, transparent);
}

[data-bs-theme="dark"] p a:link {
  text-decoration: none;
  background-image: linear-gradient(to bottom, transparent 50%, #facb95 50%);
  background-origin: 0;
  background-size: 200% 20%;
  background-repeat: repeat-x;
  background-position: 0 100%;
  transition: background-position 0.5s;
}

[data-bs-theme="dark"] p a:hover {
  background-position: -100% 100%;
  background-image: linear-gradient(to bottom, transparent 50%, #3862a8 50%);
}

[data-bs-theme="dark"] p a {
  text-decoration: none;
  color: #fcf5f1 !important;
}

.nav-link {
  color: #3862a8;
}

.nav-link:hover {
  color: #172845;
  text-decoration: underline;
}

[data-bs-theme="dark"] {
  .nav-link {
    color: #fcf5f0;
  }

  .nav-link:hover {
    color: #facb95;
  }
}

.nav-external > li {
  display: inline-block;
}

/* @media (max-width: 991.98px) {
  .nav-external > li {
    display: block;
  }
} */

.sticky-column {
  position: sticky;
  top: 20px;
  align-self: start;
}

@media (max-width: 767.98px) {
  .sticky-column {
    position: relative;
    top: 0px;
    margin-bottom: 20px;
  }
}

.small-caps {
  text-transform: lowercase;
  font-variant-caps: small-caps;
}
/* --- Layout container --- */
.portfolio-swiper-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* --- Swiper structure --- */
.portfolio-swiper,
.portfolio-swiper .swiper-wrapper,
.portfolio-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

/* --- Images --- */
.portfolio-swiper img,
.ratio.ratio-4x3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Pagination --- */
.portfolio-swiper .swiper-pagination {
  position: absolute;
  bottom: 12px !important;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.portfolio-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  opacity: 1;
  margin: 0 4px !important;
  transition: background 0.3s ease;
}

.portfolio-swiper .swiper-pagination-bullet-active {
  background: #ffffff;
}

/* --- Mobile tweaks --- */
@media (max-width: 991.98px) {
  .portfolio-swiper-wrapper {
    aspect-ratio: 4 / 3;
  }

  .portfolio-swiper,
  .swiper-wrapper,
  .swiper-slide {
    height: 100%;
  }

  .portfolio-swiper img {
    object-fit: cover !important;
  }
}

.riso-slideshow-container {
  position: relative;
  overflow: hidden;
}

.progress-bar-timer {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  background-color: #3862a8;
  width: 0;
  z-index: 10;
}

[data-bs-theme="dark"] .progress-bar-timer {
  background-color: #fcf5f0;
}

.object-fit-cover {
  object-fit: cover !important;
}

.riso-slide-wrapper {
  position: relative;
}

.tooltip-dot {
  position: relative;
  cursor: pointer;
}

.tooltip-dot::after {
  content: attr(data-tooltip);
  position: absolute;
  white-space: nowrap;
  bottom: -125%;
  left: 50%;
  transform: translateX(-50%);
  background: #172845;
  color: #fcf5f0;
  padding: 0.3em 0.5em;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-family: "Apfel Grotezk Regular";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}

.tooltip-dot:hover::after,
.tooltip-dot:focus::after {
  opacity: 1;
}

[data-bs-theme="dark"] .tooltip-dot::after {
  background: #fcf5f0;
  color: #172845;
}

.nav-external {
  display: inline-block;
  justify-content: space-evenly;
}

.nav-external > li {
  display: inline-block;
}

@media (max-width: 991.98px) {
  .nav-external > li {
    display: inline-block;
  }
}

.blog-date {
  pointer-events: none;
  cursor: default;
  color: #3862a8;
}

[data-bs-theme="dark"] .blog-date {
  color: #fcf5f0;
}

@media (min-width: 992px) {
  .ratio-lg-full {
    width: 100% !important;
  }
}

.logo-dark {
  display: none;
}

[data-bs-theme="dark"] .logo-light {
  display: none;
}

[data-bs-theme="dark"] .logo-dark {
  display: block;
}
