/* ==========================
   GLOBAL
========================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ==========================
   HERO SECTION
========================== */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url("SFONDO.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 0px;
}

/* Overlay scuro */
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* ==========================
   HEADER: TITOLO + SOCIAL
========================== */
.hero-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  background: rgba(0, 0, 0, 0.25); /* 👈 sfondo leggero e trasparente */
  backdrop-filter: blur(8px);      /* 👈 sfoca SOLO lo sfondo dietro */
  border-radius: 0 0 16px 16px;    /* 👈 angoli arrotondati sotto */
  border: 1px solid rgba(255, 255, 255, 0.1); /* 👈 bordo sottile per definizione */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);  /* 👈 leggera ombra sotto */
}

.site-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

/* Social icons in header */
.social-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-links a {
  display: inline-block;
  width: 28px;
  height: 28px;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover {
  transform: scale(1.1);
  opacity: 1;
}

.social-links img {
  width: 150%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* ==========================
   CONTENUTO CENTRALE
========================== */
.hero .content-on-hero {
  position: relative;
  z-index: 2;
  padding: 0;
  padding-top: 0;
}

/* BOTTONI PRINCIPALI */
.image-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4vh, 40px);
}

.image-links a {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.image-links a img {
  width: clamp(80px, 10vw, 140px);
  max-width: 80vw;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-links a img:hover {
  transform: scale(1.05);
}

/* Etichette sotto i bottoni per desktop */
.image-links a::after {
  content: attr(data-label);
  position: absolute;
  bottom: -32px; /* <-- NON top */
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.8rem, 1vw, 1.2rem);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.image-links a:hover::after,
.image-links a:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(2px); /* +2 verso giù non -2 verso su */
}


/* Touch mode: sempre visibili */
@media (max-width: 900px) {
  .image-links a::after {
    position: static;
    display: block;
    margin-top: 8px;
    opacity: 1;
    transform: none;
    text-align: center;
  }
}


/* ==========================
   IMMAGINE SPECIALE
========================== */
.special-image {
  position: fixed;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 90vw;
  height: auto;
  opacity: 0;
  z-index: 10001;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

/* ==========================
   VIDEO INTRO
========================== */
.intro-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.intro-video-container.show {
  display: flex;
}

.intro-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================
   SPLASH GIF
========================== */
.gif-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  overflow: hidden;
}

.gif-splash img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gif-splash.fade-out {
  animation: fadeOut 0.8s forwards;
  animation-delay: 1.5s;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ==========================
   iPHONE SAFE AREA
========================== */
.hero,
.gif-splash,
.intro-video-container {
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(100vh - env(safe-area-inset-bottom));
}

/* ==========================
   MINI POPUP PRIVACY
========================== */
.privacy-mini {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: none;
}


.privacy-mini.show {
  display: block;
}

.privacy-box-mini {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 18px;
  max-width: 420px;
  width: 90vw;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.privacy-box-mini p {
  margin: 0;
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
}

.privacy-box-mini a {
  color: #1db954;
  text-decoration: none;
  font-weight: 500;
}

.privacy-box-mini a:hover {
  text-decoration: underline;
}

.close-mini {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.close-mini:hover {
  opacity: 1;
}


