/* -----------------------------------------------------------
    1. STYLE.CSS (Base)
----------------------------------------------------------- */
:root {
  --accent: #c9a97d;
  --bg: #f3f1e9;
  --panel-bg: #ffffff;
  --muted: #6b6b6b;
  --line-width: 1px;
  --gap: 4vw;
  --max-width: 1200px;
}

/* Reset e base */
html, body {
  height: auto;
  width: 100%;
  background-color: var(--bg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Attiva lo scroll snap verticale */
  scroll-behavior: smooth;
}

/* Regola per le sezioni principali affinchÃ© lo scroll snap funzioni */
#backgroundHome, 
.split-container, 
.gender-cards {
  scroll-snap-align: start;
}

/* Pagina Home */
body.home #backgroundHome {
  background-image: url('../img/home/imageHome.png');
}

/* Pagina Uomo */
body.uomo #backgroundHome {
  background-image: url('../img/shop/uomo/imageUomo.png');
}

/* Pagina Donna */
body.donna #backgroundHome {
  background-image: url('../img/shop/donna/imageDonna.png');
}
body.donna #backgroundHome::after {
  background: rgba(0, 0, 0, 0.1);
}

section {
  padding: clamp(1rem, 4vw, 4rem);
}

#backgroundHome {
  width: 100%;
  height: 100vh;
  z-index: 0;
  background-color: #1a1a1a30;
  background-blend-mode: multiply;
  
  background-image: url('../img/home/imageHome.png');
  
  /* MODIFICA QUI: Rimuovi il duplicato e usa solo questa riga */
  /* center = centrato orizzontalmente */
  /* top (o 0%) = allineato in alto (mostra la parte superiore della foto) */
  background-position: center 20%;
  
  background-repeat: no-repeat;
  background-size: cover;
  
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#backgroundHome::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* Leggermente piÃ¹ scuro per contrasto */
  z-index: 1;
}


/* Titolo Hero */
.hero-content {
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 1000px;
  color: #fff;
  margin-top: 7%;

  position: relative;
  text-align: center;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.7vw, 4.5rem);
  line-height: 1.1;
  font-weight: 400;
  margin: 0;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
  opacity: 0;
  animation: fadeInHero 0.9s cubic-bezier(.25,.8,.25,1) forwards;
  animation-delay: 0.6s;
}

.hero-subtitle {
  display: block;
  margin: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #f3f1e9;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInHero 0.9s cubic-bezier(.25,.8,.25,1) forwards;
  animation-delay: 1.2s;
  border-top: 1px solid var(--accent);
  display: inline-block;
  padding-top: 1rem;
}

.hero-title,
.hero-subtitle {
  opacity: 0;
  transform: translateY(60px);
}

.hero-title.animate {
  animation: fadeInHero 0.9s cubic-bezier(.25,.8,.25,1) forwards;
}

.hero-subtitle.animate {
  animation: fadeInHero 0.9s cubic-bezier(.25,.8,.25,1) forwards;
  animation-delay: 0.6s;
}

@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 🔹 Animazione fade in per il titolo Hero */
@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px) ease-in-out 2s; }
  to { opacity: 1; transform: translateY(0) ease-in-out 2s; }
}

/* Logo responsive */
@media (max-width: 600px) {
  #logo { width: clamp(50px, 20vw, 120px); }
}

/* Animazione fade-in */
@keyframes maskFadeIn {
  from { opacity: 0; transform: translateY(-20px) ease-in-out 2s; }
  to   { opacity: 1; transform: translateY(0) ease-in-out 2s; }
}

/* Hover effect (solo desktop) */
@media (hover: hover) and (pointer: fine) {
  #image-mask:hover #imageHome {
    transform: translateX(-50%) scale(1.05) ease-in-out 2s;
    filter: brightness(1.05) ease-in-out 2s;
  }
}

@media (max-width: 768px) {

  body.home #backgroundHome {
    background-image: url('../img/home/mobileHome.png');
  }
  body.home #backgroundHome::after {
    background: rgba(0, 0, 0, 0.4);
  }

  body.uomo #backgroundHome {
    background-image: url('../img/shop/uomo/mobileUomo.png');
  }
  body.uomo #backgroundHome::after {
    background: rgba(0, 0, 0, 0.2);
  }

  body.donna #backgroundHome {
    background-image: url('../img/shop/donna/mobileDonna.png');
  }

}
