@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: 'Monigue DEMO';
    src: url('../assets/font/MoniguedemoRegular-gwlL1.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #371D70 0%, #1C0F38 50%, #090513 100%);
  color: white;
  overflow-x: hidden;
}

/**/
.background-layers {
  position: relative;
  width: 100%;
  height: 70vh !important;
  max-height: 70vh;
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  bottom:0;
  width: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.event-info {
  position: absolute;  
  font-family: "Archivo", sans-serif !important;    
  top: 1vh;                /* o dove vuoi farla comparire */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5vw;
  font-weight: 500;
  z-index: 100;             /* Più alto di tutto il resto */
  text-align: center;
  width: 100%;
  pointer-events: none;
}

.sfondo-violetto {z-index: 1;}
.sfondo-pianura {z-index: 2;}
.sfondo-fiori-top {z-index: 3;}

.overlay-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  overflow: visible;
}

.logo-superaurora {
  width: 100% !important;
  max-width: 100vw;
  max-height: 70vh;
  margin-top: -20vh;
  display: block;

}

.payment-container {
  z-index: 5;
  position: relative;
}

.form-area {
  margin-top: 1%;
  display: flex;
  flex-direction: column;
  align-items: center;      /* 🔥 centra orizzontalmente */
  justify-content: center;  /* opzionale: centra verticalmente */
  margin: 0 auto;
  text-align: center;       /* 🔥 centra testo come il label */
  padding: 4rem 1rem;
}

.title {
  margin-top: 10vh;
  font-family: 'Monigue DEMO', sans-serif !important;
  font-size: clamp(36px, 6vw, 80px);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.subtitle {
  font-family: 'Archivo', sans-serif !important;
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.tickets-top {
  position: absolute;
  width: 100%;
  z-index: 6;
  top: 27%;
  left: 45%;
  transform: translate(-50%, -80%);
}

.form-payment {
  width: 80vw;
  max-width: unset;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.wallet-label {
  font-family: 'Archivo', sans-serif !important;
  font-size: 3vh;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1vh;
  display: block;
  text-align: left;
}

.wallet-input {
  width: 80%;
  font-family: 'Archivo', sans-serif !important;
  align-items: center;
  font-size: 28px;
  border: 1px solid white;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

#address-error {
  color: red;
  font-size: 0.9em;
  margin-top: 4px;
  display: block;
  text-align: left;
  margin-top: -2rem;
  margin-bottom: 1rem;
}

.pay-button-container {
  width: 100%;
  height: 50vh;
  background: rgba(55, 29, 112, 0.3);
  backdrop-filter: blur(16px); /* 👈 anziché 64px */
  filter: drop-shadow(0 40px 40px rgba(0, 0, 0, 0.5)); /* 💥 sfocatura */
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
  box-sizing: border-box;
  position: relative;
  z-index: 3; 
  font-family: 'Archivo', sans-serif !important;
}

.pay-label {
  font-size: 40px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: 100%;           /* 💥 forza uso piena larghezza */
  text-align: center; 
  font-family: 'Archivo', sans-serif !important;
}

#pay-button button {
  background: white;
  color: white;
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  padding: 1rem 2rem;
  font-size: clamp(18px, 5vw, 32px); /* scala bene */
  border-radius: 10px;
  cursor: pointer;
}

.overlay {
  display: inline-flex;         /* usa inline-flex per adattarsi al contenuto */
  justify-content: center;
  align-items: center;
  background-color: white;
  color: black;
  font-size: 20px;
  font-weight: 700;
  padding: 2vh 2vw;         /* padding per spaziatura */
  border-radius: 10px;
  margin-top: 1vh;
  text-transform: uppercase;
  cursor: not-allowed;
  pointer-events: none;
  text-align: center;
  width: auto;                  /* 💥 assicura che non si espanda */
  min-width: fit-content;       /* opzionale: evita shrinking */
  z-index: 2;
}
.footer {display: block;
  z-index: 1;}

.ticket-image-bottom {
  position: relative;
  margin: -35vh 15vw;
  width: 60vw;
  height: auto;
  animation: float 4s ease-in-out infinite;
}

.sfondo-fiori-bottom {
  margin-top: -35vh;
  position: relative;  
  width: 100%;
 }

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@media (min-width: 319px) and (max-width: 600px) {
  
  .background-layers {
    height: 15vh !important;
  }
  .tickets-top{
    display: none;
  }
  .event-info {
    font-size: 2.5vw;
    display: none;
  }
  
  .logo-superaurora {
    max-width: 72vw !important;
    max-height: auto;
    margin-top: -1vh;
  }
  
  .title {
    margin-top: -5vh;
    font-size: clamp(10px, 6vw, 80px);
  }
  
  .subtitle {
    margin-top: -1vh;
    font-size: 20px;
  }
  
  .tickets-top {
    transform: translate(-50%, -50%);
    top: 12%;
    left: 25%;
    max-width: 35vw;
    max-height: 20vh;
    margin: 2vh 20vw;
  }

  .form-area {
    margin-top: 8vh;
    padding: 1rem 0.5rem;
  }
  
  .wallet-label {
    font-size: 8px;
  }
  
  .wallet-input {
    font-size: 13px;
    width: 80%;
  }
  
  .pay-button-container {
    height: 12vh;
    padding: 2rem;
  }
  
  .pay-label {
    font-size: 14px;
  }
  
  #pay-button button {
    font-size: 16px;
    font-size: clamp(12px, 5vw, 32px); /* scala bene */
    font-family: 'Archivo', sans-serif !important;
  }
  
  .overlay {
    font-size: 7px;
    padding: 1vh 2vw;        /* padding per spaziatura */
  }
  
  .ticket-image-bottom {
    margin: 3vh 0vw;
    width: 80vw;
  }

.sfondo-fiori-bottom {
  margin-top: -300vh;
 }
}

@media (min-width: 601px) and (max-width: 1080px) {
  
  .background-layers {
    height: 25vh !important;
  }
  .tickets-top{
    display: none;
  }
  .event-info {
    font-size: 2.5vw;
  }
  .logo-superaurora {
    max-width: 42vw;
    max-height: 22vh;
    margin-top: -1vh;
  }
  
  .title {
    margin-top: -5vh;
    font-size: clamp(10px, 6vw, 80px);
  }
  
  .subtitle {
    margin-top: -1vh;
    font-size: 20px;
  }
  
  .tickets-top {
    transform: translate(-50%, -50%);
    top: 12%;
    left: 25%;
    max-width: 35vw;
    max-height: 20vh;
    margin: 15vh 20vw;
  }

  .form-area {
    margin-top: 12vh;
    padding: 1rem 0.5rem;
  }
  
  .wallet-label {
    font-size: 14px;
  }
  
  .wallet-input {
    font-size: 13px;
      width: 80%;
  }

  .pay-button-container {
    height: 30vh;
    padding: 2rem;
  }
  
  .pay-label {
    font-size: 30px;
  }
  
  #pay-button button {
    font-size: 16px;
    font-size: clamp(12px, 5vw, 32px); /* scala bene */
    font-family: 'Archivo', sans-serif !important;
  }
  
  .overlay {
    font-size: 15px;
    padding: 1vh 2vw;        /* padding per spaziatura */
  }
  
  .ticket-image-bottom {
    margin: -15vh 0vw;
    width: 80vw;
  }

.sfondo-fiori-bottom {
  margin-top: -15vh;
 }
}

@media (min-width: 1081px) and (max-width: 1440px) {

  .background-layers {
    height: 52vh;
    max-height: 100%;
  }
  
  .overlay-center {
    position: absolute;
    top: 55%;
  }
  
  .logo-superaurora {
    max-width: 40vw;
    max-height: 20vh;
    margin-top: -17vh;
  }
  
  .title {
    margin-top: 7vh;
  }
  
  .tickets-top {
    z-index: 6;
    top: 25%;
    max-width: 30vw;
    height: auto;
  }
  
  .wallet-label {
    font-size: 2vh;
  }
  
  .pay-button-container {
    height: 30vh;
  }
  
  .ticket-image-bottom {
    margin: -30vh 15vw;
  }
  
  .sfondo-fiori-bottom {
    margin-top: 1vh;
   }
}

@media (min-width: 1441px) and (max-width: 2560px) {

  .background-layers {
    height: 49vh;
    max-height: 100%;
  }
  
  .overlay-center {
    position: absolute;
    top: 55%;
  }
  
  .logo-superaurora {
    max-width: 40vw;
    max-height: 20vh;
    margin-top: -17vh;
  }
  
  .title {
    margin-top: 7vh;
  }
  
  .tickets-top {
    z-index: 6;
    top: 28%;
    max-width: 30vw;
    height: auto;
  }
  
  .wallet-label {
    font-size: 2vh;
  }
  
  .pay-button-container {
    height: 30vh;
  }
  
  .ticket-image-bottom {
    margin: -30vh 15vw;
  }
  
  .sfondo-fiori-bottom {
    margin-top: 1vh;
   }
}