/* =========================
   RESET
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  background: rgba(10, 10, 15, 1);
  color: rgba(236, 236, 242, 0.92);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

/* =========================
   FULLSCREEN MENU
   ========================= */

.menu-toggle {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 2100;
  background: rgba(20,20,28,0.95);
  color: rgba(236,236,242,0.88);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 10px 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.full-menu {
  position: fixed;
  inset: 0;
  z-index: 4000;

  background: rgba(10, 10, 15, 0.985);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.55s ease,
    visibility 0.55s ease;
}

.full-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.full-menu-close {
  position: absolute;
  top: 24px;
  right: 32px;

  background: transparent;
  border: 0;
  color: rgba(236,236,242,0.74);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  line-height: 1;

  cursor: pointer;
}

.full-menu-close:hover {
  color: rgba(236,236,242,0.95);
}

.full-menu-nav {
  text-align: center;
}

.full-menu-nav a {
  display: block;

  margin: 18px 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.15;
  font-weight: normal;

  color: rgba(236,236,242,0.86);
   opacity: 0.35; 

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.full-menu-nav a:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}
.full-menu-nav a.active {
  opacity: 1;
  font-weight: 500;
}
.full-menu-nav a.active::after {
  content: "—";
  margin-left: 10px;
  opacity: 0.6;
}
.full-menu-secondary {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.full-menu-secondary a {
  margin: 12px 0;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: rgba(236,236,242,0.55);
}

@media (max-width: 900px) {
  .full-menu-nav a {
    font-size: 26px;
    margin: 15px 0;
  }

  .full-menu-secondary {
    margin-top: 34px;
  }
}

/* =========================
   HEADER
   ========================= */

.page-header {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 900;
  pointer-events: none;
}

.site-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236,236,242,0.82);
  margin-bottom: 10px;
}

.site-line {
  width: 56px;
  height: 1px;
  margin: 0 auto;
  background: rgba(255,255,255,0.14);
}

/* =========================
   PAGINA OPERA
   ========================= */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 86px 24px 96px;
}

.image {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 72vh;
  cursor: zoom-in;
}

.image img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 72vh;
  object-fit: contain;

  border: 1px solid rgba(255,255,255,0.14);
  background: #111;

  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 18px 54px rgba(255,255,255,0.065);

  transition: opacity 0.25s ease, transform 0.25s ease;
}

.image img:hover {
  opacity: 0.95;
  transform: scale(1.01);
}

.text {
  width: min(90vw, 920px);
  margin-top: 20px;
  text-align: left;
}

.title {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: normal;
  color: rgba(236,236,242,0.94);
}

.meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(236,236,242,0.58);
}

/* =========================
   NAVIGAZIONE OPERA
   ========================= */

.nav {
  position: fixed;
  bottom: 30px;
  left: 0;
  width: 100%;
  padding: 0 42px;

  display: flex;
  justify-content: space-between;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236,236,242,0.58);
  z-index: 800;
}

.nav a:hover {
  color: rgba(236,236,242,0.95);
}

.section-link {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236,236,242,0.50);
  z-index: 810;
}

.section-link:hover {
  color: rgba(236,236,242,0.95);
}

/* =========================
   LIGHTBOX / ZOOM MUSEALE
   ========================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,5,10,0.965);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;

  z-index: 3000;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;

  border: 1px solid rgba(255,255,255,0.14);
  background: #111;

  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 60px rgba(255,255,255,0.06);

  transform: scale(1);
  transition: transform 0.18s ease;

  cursor: zoom-in;
}

.lightbox img.zoomed {
  cursor: grab;
}

.lightbox img.zoomed:active {
  cursor: grabbing;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 3010;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  color: rgba(255,255,255,0.68);
  cursor: pointer;
}

.close:hover {
  color: rgba(255,255,255,0.95);
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .page {
    min-height: 100vh;
    padding: 92px 24px 80px;
  }

  .image {
    max-width: 100%;
    max-height: none;
  }

  .image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
  }

  .text {
    width: 100%;
  }

  .title {
    font-size: 24px;
  }

  .nav {
    position: static;
    padding: 30px 24px;
  }

  .section-link {
    position: static;
    display: block;
    transform: none;
    text-align: center;
    margin-bottom: 24px;
  }
}
/* =========================
   IVORY INTRO – FIX
   ========================= */

body.ivory-page {
  background: #f6f3ea; /* avorio controllato */
  color: #1a1a1a;
}

.ivory-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.ivory-box {
  max-width: 620px;
  width: 100%;
  padding: 56px 52px;

  background: #f6f3ea;

  border: 1px solid rgba(0,0,0,0.08);
}

.ivory-title {
  margin: 0 0 34px;
  font-size: 30px;
  font-weight: normal;
  text-align: center;
  color: #111;
}

.ivory-text {
  text-align: left;
}

.ivory-text p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.7;
  color: #2a2a2a;
}

.ivory-link {
  margin-top: 36px;
}

.ivory-link a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #444;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding-bottom: 4px;
}

.ivory-link a:hover {
  opacity: 0.6;
}
/* =========================
   IVORY INTRO – ENTRATA LENTA
   ========================= */

.ivory-box {
  opacity: 0;
  transform: translateY(18px);
  animation: ivoryFadeIn 1.4s ease forwards;
}

.ivory-title {
  opacity: 0;
  transform: translateY(10px);
  animation: ivoryFadeIn 1.2s ease forwards;
  animation-delay: 0.25s;
}

.ivory-text {
  opacity: 0;
  transform: translateY(10px);
  animation: ivoryFadeIn 1.2s ease forwards;
  animation-delay: 0.55s;
}

.ivory-link {
  opacity: 0;
  transform: translateY(10px);
  animation: ivoryFadeIn 1.2s ease forwards;
  animation-delay: 0.9s;
}

@keyframes ivoryFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}