:root {
  --bg: #F0EEE9;
  --black: #000;
}

body {
  position: relative;
  background-color: var(--bg);
}

header {
  position: fixed;
  padding: 4rem 0 0 4rem;
  z-index: 1005;
}

.menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-logo {
  margin-bottom: 25px;
}

#site-preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

#site-preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* contenitore interno: icona + testo affiancati */
#loader {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

#loader .logo-loader {
  width: 100px;
  height: auto;
}

/* testo */
.loader-wordmark {
  color: var(--black);
  font-family: "Montserrat", Arial, sans-serif;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.lw-row {
  display: flex;
  justify-content: flex-start;
}

.lw-main {
  font-size: 20px;
  letter-spacing: 0.25em;
}

.lw-row.lw-main.lw-main-1 {
  letter-spacing: 0.4em;
}

.lw-sub {
  font-size: 11px;
  letter-spacing: 1.1em;
  text-transform: lowercase;
}

/* stato iniziale: lettere nascoste / abbassate */
.lw-letter,
.lw-sub-letter {
  opacity: 0;
  transform: translateY(12px);
}

/* quando aggiungiamo .is-active partono le animazioni */
.loader-wordmark.is-active .lw-letter,
.loader-wordmark.is-active .lw-sub-letter {
  animation: lw-fade-up 0.35s ease forwards;
}

/* animazione base */
@keyframes lw-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* path della maschera: il tratto che si disegna */
#mask-paths path {
  stroke-dasharray: 0;
  /* verrà sovrascritto via JS */
  stroke-dashoffset: 0;
}

@keyframes draw-mask {
  to {
    stroke-dashoffset: 0;
  }
}



/* .hero-slider {
	height: 100vh;
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
} */

.hero-inner {
  display: flex;
  flex-direction: column;
}

.hero-card {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  box-sizing: border-box;
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
}

.hero-title h1 {
  text-align: center;
  color: #fff;
}

.hero-image {
  position: relative;
  height: 100%;
  width: 45%;
}

.hero-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}


.project-gallery img {
  width: 50%;
}

.gallery-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

.info-project {
  position: fixed;
  bottom: 4rem;
  transform: translateY(-50%);
  color: var(--black);
  z-index: 1000;
}

.info-project h1 {
  font-size: 16px;
}

.info-project p {
  font-size: 12px;
}

.info-contatti {
  padding: 4rem;
}