/* ── CSS Variables ─────────────────────────────────── */
:root {
  --brown: #4e4935;
  --black: #121315;
  --text: #1A1A1A;
  --white: #FFFFFF;
  --gray: #d1c0a3;
}
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ── Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
.navbar-toggler:focus {
  box-shadow: none;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  position: relative;
  font-family: "Beiruti", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  padding-top: 0;
  margin: 0;
  min-height: 100vh;
}
body.with_bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
  z-index: -1;
  background: var(--bg-image);
  background-repeat: no-repeat repeat;
  background-size: 100% auto;
}
body p a {
  color: var(--brown);
}
body a {
  color: var(--brown);
}
body strong {
  color: var(--black);
}
.text-justify {
  text-align: justify;
}
@media (min-width: 576px) {
  .text-sm-justify {
    text-align: justify;
  }
}
@media (min-width: 768px) {
  .text-md-justify {
    text-align: justify;
  }
}
@media (min-width: 992px) {
  .text-lg-justify {
    text-align: justify;
  }
}
@media (min-width: 1200px) {
  .text-xl-justify {
    text-align: justify;
  }
}
@media (min-width: 1400px) {
  .text-xxl-justify {
    text-align: justify;
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Recursive", sans-serif;
  font-weight: 400;
  opacity: 0.8;
}
h1 {
  font-size: 4rem;
}
h2 {
  font-size: 3rem;
}
h3 {
  font-size: 2.5rem;
}
h4 {
  font-size: 2rem;
}
h5 {
  font-size: 1.5rem;
}
h6 {
  font-size: 1.2rem;
}
span.chapter {
  font-size: 2.5rem;
  opacity: 0.8;
}
@media (max-width: 767px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.8rem;
  }
  h4 {
    font-size: 1.7rem;
  }
  h5 {
    font-size: 1.6rem;
  }
  h6 {
    font-size: 1.5rem;
  }
  span.chapter {
    font-size: 1.8rem;
  }
}
p,
li {
  font-family: "Beiruti", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  opacity: 0.8;
}
@media (max-width: 767px) {
  p,
  li {
    font-size: 1.45rem;
  }
}
p {
  margin-bottom: 0.5rem;
}
ul,
ol {
  list-style-position: outside;
}
.popup {
  display: none;
}
.popup img {
  max-height: 80vh;
}
.modal.modal-img-zoom .bg-brown {
  background-color: var(--brown);
}
.modal.modal-img-zoom .bg-white {
  background-color: rgba(255, 255, 255, 0.8);
}
.modal.modal-img-zoom img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}
/* ── Navbar ────────────────────────────────────────── */
.navbar {
  padding: 20px 0;
  background-color: transparent;
  margin-bottom: 30px;
}
.navbar li {
  opacity: 1;
}
@media (min-width: 991px) {
  .navbar {
    margin-bottom: 50px;
  }
}
@media (min-width: 1200px) {
  .navbar {
    margin-bottom: 100px;
  }
}
.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2818,19,21,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar .navbar-brand {
  padding: 0;
}
@media (min-width: 1200px) {
  .navbar .navbar-brand {
    height: 150px;
  }
}
.navbar .navbar-brand img {
  width: auto;
  max-width: 100%;
  height: 100%;
}
.navbar.navbar-scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}
.navbar .nav-item {
  padding-left: 15px;
  padding-right: 15px;
}
.navbar .nav-item .nav-link {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--black) !important;
  padding: 0;
  position: relative;
  text-transform: uppercase;
}
.navbar .nav-item .nav-link.dropdown-toggle {
  padding-right: 25px;
}
.navbar .nav-item .nav-link.dropdown-toggle::after {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  content: url(../img/arrowDown.svg);
  display: block;
  width: 14px;
  height: 8px;
  border: none;
  margin: 0;
  vertical-align: unset;
  background-color: currentColor;
  mask: url('../img/arrowDown.svg') no-repeat center;
  -webkit-mask: url('../img/arrowDown.svg') no-repeat center;
}
.navbar .nav-item .nav-link:hover {
  color: var(--brown) !important;
}
.navbar .nav-item .nav-link.active {
  border-bottom: 2px solid var(--black);
}
.navbar .nav-item .dropdown-menu {
  background: var(--gray);
  box-shadow: unset !important;
}
.navbar .nav-item .dropdown-menu .dropdown-item {
  font-size: 1.5rem;
  font-weight: 600;
}
.navbar .nav-item .dropdown-menu .dropdown-item:hover {
  color: var(--brown);
  background-color: transparent;
}
@media (min-width: 992px) and (max-width: 1200px) {
  .navbar .nav-item .nav-link {
    font-size: 1.4rem;
  }
  .navbar .nav-item .dropdown-menu .dropdown-item {
    font-size: 1.2rem;
  }
}
.btn.btn-primary,
.btn.btn-secondary {
  font-family: "Recursive", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  border: unset;
  border-radius: 25px;
  padding: 10px 30px;
}
.btn.btn-primary {
  background-color: var(--brown);
  color: var(--white);
}
.btn.btn-primary:hover {
  background-color: var(--black);
  color: var(--white);
}
.btn.btn-secondary {
  background-color: var(--brown);
  color: var(--black);
}
.btn.btn-secondary:hover {
  background-color: var(--black);
  color: var(--white);
}
@media (max-width: 767px) {
  .btn.btn-primary,
  .btn.btn-secondary {
    font-size: 1rem;
    padding: 5px 15px;
  }
}
/* ── Footer ────────────────────────────────────────── */
footer .footer-top {
  background-color: var(--white);
}
footer .footer-top .footer-loghi {
  flex-wrap: wrap;
}
footer .footer-top .footer-loghi img {
  max-height: 50px;
}
footer .footer-bottom {
  color: var(--white);
  background-color: var(--brown);
}
footer .footer-bottom p,
footer .footer-bottom ul,
footer .footer-bottom ol {
  font-family: "Beiruti", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0;
}
footer .footer-bottom a {
  font-family: "Beiruti", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: underline;
  color: var(--white);
}
footer .footer-bottom a:hover {
  color: var(--white);
}
.vertical-space {
  margin-bottom: 50px;
}
@media (min-width: 768px) {
  .vertical-space {
    margin-bottom: 80px;
  }
}
@media (min-width: 991px) {
  .vertical-space {
    margin-bottom: 100px;
  }
}
@media (min-width: 1700px) {
  .move-top {
    margin-top: -5%;
  }
}
.cont-play {
  position: relative;
}
.cont-play .play-now {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 80px;
  height: 80px;
  background-color: rgba(213, 168, 109, 0.8);
  border-radius: 50%;
  transform: translateX(-50%) translateY(-50%);
}
.cont-play .play-now .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 0 20px 30px;
  border-color: transparent transparent transparent var(--black);
  transform: translateX(-35%) translateY(-50%);
}
.fancybox__slide {
  padding: 0 !important;
}
.fancybox__content {
  padding: 0 !important;
  width: min(1220px, 100vw);
  max-width: none !important;
  background: transparent;
}
.fancybox__content iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.fancybox__content .testo {
  background-color: var(--brown);
  color: var(--white);
  padding: 30px 35px 22px 35px;
}
.fancybox__content .testo strong {
  color: #c4bebe;
}
.fancybox__content > .carousel__button.is-close {
  top: 15px;
  right: 10px;
}
.cont-player h6 {
  font-size: 1.6rem;
  line-height: 1.5;
}
.exhibition-box {
  position: relative;
}
.exhibition-box a {
  text-decoration: none;
  color: var(--text);
}
.exhibition-box figure {
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}
.exhibition-box figure img {
  object-fit: cover;
}
.exhibition-box .content-box {
  width: auto;
  height: auto;
  text-align: left;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 15px;
  top: 15px;
  z-index: 1;
}
.exhibition-box .content-box.left {
  left: 15px;
}
.exhibition-box .content-box.right {
  right: 15px;
}
.exhibition-box .content-box h4 {
  width: 100%;
  display: block;
  font-size: 22px;
}
.exhibition-box .content-box p {
  width: 100%;
  display: block;
  margin: 0;
  font-size: 16px;
}
.info-box .row {
  border-bottom: 1px solid rgba(213, 168, 109, 0.8);
}
.info-box h6,
.info-box p {
  font-size: 1.25rem;
  line-height: 1.1;
}
.container-loghi img {
  width: auto;
  max-height: 80px;
}
