@import url('https://fonts.googleapis.com/css2?family=Marcellus&display=swap');

.pure-stars-wrapper {
  position: relative;
  width: 100vw;              /* piena viewport */
  max-width: 100vw;
  margin: 0 !important;      /* elimina margini del tema */
  padding: 0 !important;     /* elimina padding */
  left: 50%;
  transform: translateX(-50%); /* centra perfettamente */
  height: 100vh;             /* o 600px */
  overflow: hidden;
  background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
  z-index: 1;
  display: block;
}




/* Forza il wrapper a eliminare qualsiasi offset del tema */
.pure-stars-wrapper {
  position: relative;
}

.pure-stars-wrapper * {
  box-sizing: border-box;
}




/* Stelle */
#stars, #stars2, #stars3 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  z-index: 0;
}

#stars {
  width: 1px;
  height: 1px;
  background: transparent;
  box-shadow: 
    50px 200px #FFF, 150px 300px #FFF, 250px 100px #FFF, 400px 500px #FFF,
    600px 250px #FFF, 800px 600px #FFF, 1000px 400px #FFF, 1200px 150px #FFF,
    1400px 350px #FFF, 1600px 200px #FFF;
  animation: animStar 10s linear infinite;
}

#stars:after {
  content: " ";
  position: absolute;
  top: 600px;
  width: 1px;
  height: 1px;
  box-shadow: inherit;
  animation: animStar 100s linear infinite;
}

#stars2 {
  width: 2px;
  height: 2px;
  background: transparent;
  box-shadow: 
    100px 150px #FFF, 300px 400px #FFF, 500px 200px #FFF, 700px 350px #FFF,
    900px 100px #FFF, 1100px 500px #FFF, 1300px 250px #FFF, 1500px 300px #FFF;
  animation: animStar 20s linear infinite;
}

#stars2:after {
  content: " ";
  position: absolute;
  top: 600px;
  width: 2px;
  height: 2px;
  box-shadow: inherit;
  animation: animStar 20s linear infinite;
}

#stars3 {
  width: 3px;
  height: 3px;
  background: transparent;
  box-shadow: 
    200px 250px #FFF, 400px 150px #FFF, 600px 350px #FFF, 800px 100px #FFF,
    1000px 300px #FFF, 1200px 400px #FFF, 1400px 200px #FFF, 1600px 500px #FFF;
  animation: animStar 30s linear infinite;
}

#stars3:after {
  content: " ";
  position: absolute;
  top: 600px;
  width: 3px;
  height: 3px;
  box-shadow: inherit;
  animation: animStar 30s linear infinite;
}

.pure-stars-logo {
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  margin-top: -150px; /* Sposta il logo più in alto */
  position: relative;
  top: -20px;        /* alternativa per spostamento verticale */
}
.pure-stars-title span {
  position: relative;
  top: -40px;   /* solo titolo più in alto */
}
/* Titolo */
#title, 
.pure-stars-title,
.pure-stars-title span {
  font-family: 'Marcellus', serif;
  font-weight: 400; /* Marcellus ha solo Regular */ 
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  color: #FFF;
  text-align: center;
 
  font-size: 40px;
  letter-spacing: 8px;
  margin-top: -20px;
  z-index: 2;
}
#title span {
  background: -webkit-linear-gradient(white, #38495a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Animazione */
@keyframes animStar {
  from { transform: translateY(0px); }
  to { transform: translateY(-600px); }
}
/* --- Responsive: tablet --- */
@media screen and (max-width: 992px) {
  .pure-stars-wrapper {
    height: 100vh; /* 600px riduco altezza */
  }

  .pure-stars-title {
    font-size: 30px;
    letter-spacing: 6px;
  }
}

/* --- Responsive: mobile --- */
@media screen and (max-width: 600px) {
  .pure-stars-title,
  .pure-stars-title *,
  .pure-stars-title span {
    font-size: 18px !important;
    letter-spacing: 2px !important;
    line-height: 1.2 !important;
  }
}
@media screen and (max-width: 600px) {
  .pure-stars-title {
    transform: scale(0.6);
    transform-origin: top center; /* mantiene centrato */
  }
}



