/* =========================
   RESET & BASE
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Playfair Display", Georgia, serif;
  background: #000;
  color: #f4f0e6;
  overflow-x: hidden;
}

/* =========================
   SEZIONI BASE
   ========================= */
.section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   VARIANTI
   ========================= */
.section.hero {
  min-height: 100vh;
}

.section.short {
  min-height: 80vh;
}

.section.final {
  min-height: 100vh;
}

/* =========================
   BACKGROUND IMMAGINI
   ========================= */
.section::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: var(--bg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  z-index: 1;
}

/* =========================
   OVERLAY – PIÙ ARIA AL CENTRO
   ========================= */
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.45) 22%,
    rgba(0,0,0,0.20) 50%,
    rgba(0,0,0,0.45) 78%,
    rgba(0,0,0,0.85) 100%
  );
}

/* HERO leggermente più aperta */
.section.hero::after {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.35) 22%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.35) 78%,
    rgba(0,0,0,0.80) 100%
  );
}

/* =========================
   CONTENUTO
   ========================= */
.content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

/* =========================
   MASCHERINA
   ========================= */
.mask {
  width: 110px;
  opacity: 0.85;
  margin-bottom: 36px;
}

/* =========================
   TESTI
   ========================= */
h1 {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 32px;
}

p {
  font-size: 20px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* =========================
   CTA
   ========================= */
.cta {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 36px;
  border: 1px solid #c9a85d;
  color: #f4f0e6;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 1px;
  transition: all 0.4s ease;
}

.cta:hover {
  background: #c9a85d;
  color: #000;
}

/* =========================
   SCROLL INDICATOR
   ========================= */
.scroll-indicator {
  width: 2px;
  height: 90px;
  margin: 60px auto 0;
  background: linear-gradient(
    to bottom,
    transparent,
    #c9a85d,
    transparent
  );
  animation: scrollMove 2.4s infinite ease-in-out;
  opacity: 0.9;
}

@keyframes scrollMove {
  0% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(12px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
}

/* =========================
   FORM
   ========================= */
form {
  margin-top: 40px;
  opacity: 0;
  transition: opacity 1.2s ease;
}

form.visible {
  opacity: 1;
}

input[type="email"] {
  width: 100%;
  max-width: 360px;
  padding: 16px;
  background: transparent;
  border: 1px solid #f4f0e6;
  color: #f4f0e6;
  font-size: 16px;
  margin-bottom: 20px;
}

button {
  padding: 16px 36px;
  background: transparent;
  border: 1px solid #c9a85d;
  color: #f4f0e6;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.4s ease;
}

button:hover {
  background: #c9a85d;
  color: #000;
}

.small {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 16px;
}

.small a {
  color: #f4f0e6;
  text-decoration: underline;
}

/* =========================
   DESKTOP – TESTI SEZIONI
   ========================= */
@media (min-width: 1024px) {

  /* paragrafi delle sezioni dopo la hero */
  .section:not(.hero) p {
    font-size: 22px;
    line-height: 1.75;
  }

}

/* =========================
   MOBILE – PIÙ CHIARO
   ========================= */
@media (max-width: 768px) {

  .section {
    padding: 90px 18px;
    min-height: 80vh;
  }

  .section::after {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.80) 0%,
      rgba(0,0,0,0.40) 22%,
      rgba(0,0,0,0.18) 50%,
      rgba(0,0,0,0.40) 78%,
      rgba(0,0,0,0.85) 100%
    );
  }

  h1 {
    font-size: 30px;
  }

  p {
    font-size: 17px;
  }

  .mask {
    width: 88px;
  }

  button {
    width: 100%;
    max-width: 360px;
  }
}
