/* -------------------- BASE -------------------- */

body {
  margin: 0;
  background-color: #000000;
  color: #ffffff;
  font-family: "Garamond", "EB Garamond", serif;
  line-height: 1.7;
  overflow-x: hidden;
}

canvas#lines-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

/* -------------------- HERO -------------------- */

.hero {
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero h1 {
  font-size: 80px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Garamond", "EB Garamond", serif;
  margin: 0;
}

.subtitle {
  font-size: 20px;
  letter-spacing: 2px;
  opacity: 0.85;
  margin: 0;
  font-family: "Garamond", "EB Garamond", serif;
}

.hero-links a {
  font-size: 16px;
  letter-spacing: 2px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-family: "Garamond", "EB Garamond", serif;
}

.hero-links a:hover {
  opacity: 0.6;
}

/* -------------------- ANIMAZIONE HERO -------------------- */

.fade-item {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 1.2s ease-out forwards;
}

.fade-item:nth-of-type(1) { animation-delay: 0.1s; }
.fade-item:nth-of-type(2) { animation-delay: 0.35s; }
.fade-item:nth-of-type(3) { animation-delay: 0.6s; }

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* -------------------- ABOUT -------------------- */

.about {
  max-width: 900px;
  margin: 140px auto;
  padding: 0 20px;
  text-align: center;
}

.about h2 {
  font-size: 48px;
  margin-bottom: 20px;
  font-family: "Garamond", "EB Garamond", serif;
}

.about p {
  font-size: 18px;
  opacity: 0.85;
  font-family: "Garamond", "EB Garamond", serif;
}

/* -------------------- ANIMAZIONE SCROLL -------------------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(4px);
  transition: all 1s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* -------------------- GALLERY -------------------- */

.gallery {
  max-width: 1300px;
  margin: 100px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gallery a {
  text-decoration: none;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

/* ---------- HOVER CON TITOLO E OPACITÀ ---------- */

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover img {
  opacity: 0.35;
  transform: scale(1.03);
}

.gallery-item::after {
  content: attr(data-title);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 28px;
  font-family: "Garamond", "EB Garamond", serif;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* -------------------- FOOTER -------------------- */

.footer {
  text-align: center;
  padding: 60px 0;
  opacity: 0.7;
  font-family: "Garamond", "EB Garamond", serif;
}

.footer-links a {
  margin: 0 14px;
  font-size: 14px;
  color: #ffffff;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  font-family: "Garamond", "EB Garamond", serif;
}

.footer-links a:hover {
  opacity: 1;
}

/* -------------------- MOBILE OPTIMIZATION -------------------- */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 48px;
    letter-spacing: 1px;
  }

  .subtitle {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .about {
    margin: 80px auto;
  }

  .about h2 {
    font-size: 36px;
  }

  .about p {
    font-size: 16px;
  }

  .gallery {
    gap: 20px;
  }

  .gallery-item::after {
    font-size: 22px;
  }

  footer {
    padding: 40px 0;
  }
}
/* -------------------- LOGO HEADER -------------------- */

.logo-header {
  position: fixed;
  top: 25px;
  left: 25px;
  z-index: 20;
}

.logo {
  font-family: "Garamond", "EB Garamond", serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 1;
}
