/******* TABLE ***/

.biglietti-tabella {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.biglietti-tabella td {
  border-bottom: 1px solid rgb(37, 37, 37);
  padding: 8px 12px;
  text-align: left;
}

.biglietti-tabella th {
  background-color: #5C3089;
  font-weight: bold;
  color: white;
  padding: 8px 12px;
  text-align: left;
}

.evento-thumbnail {
  max-width: 100px;
  height: auto;
  vertical-align: middle;
}

.scarica-biglietto {
  display: inline-block;
  padding: 9px 15px;
  background-color: #5C3089;
  color: white;
  text-decoration: none;
  font-size: 14px;
  line-height: inherit;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.scarica-biglietto:hover {
  background-color: #5C3089;
  text-decoration: none;
}

@media screen and (max-width: 767px) {

  .biglietti-tabella,
  .biglietti-tabella thead,
  .biglietti-tabella tbody,
  .biglietti-tabella th,
  .biglietti-tabella td,
  .biglietti-tabella tr {
    display: block;
  }

  .biglietti-tabella thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .biglietti-tabella tr {
    border: 1px solid rgb(49, 49, 49);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
  }

  .biglietti-tabella td {
    border: none;
    position: relative;
    text-align: right;
  }

  .biglietti-tabella td:before {
    content: attr(data-label);
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }

  .evento-thumbnail {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .scarica-biglietto {
    display: block;
    text-align: center;
    margin-top: 10px;
  }
}



/******* CUSTOM ***/

.riepilogo {
  background-color: #5C3089;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  margin-bottom: 20px;
  border-radius: 3px;
  width: 100%;
  transition: background-color 0.3s;
}

.ticket-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 10px 15px;
  border: 1px solid white;
  color: white;
  background-color: transparent;
  margin-bottom: 20px;
}

.ticket-info {
  display: flex;
  flex-direction: column;
}

.quantity-control {
  display: flex;
  align-items: center;
}

.quantity-button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0 10px;
}

.quantity-display {
  margin: 0 10px;
}

#finalPurchaseButton {
  display: none;
}

#load-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;

  /* Fallback per browser che non supportano backdrop-filter */
  background: rgba(0, 0, 0, 0.7);
  
  /* Backdrop filter con fallback */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Supporto per browser più vecchi */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);

  display: none;
  z-index: 999999;
}

/* Correzioni specifiche per mobile */
@media screen and (max-width: 767px) {
  #load-overlay {
    /* Rimuovi backdrop-filter su mobile per evitare problemi */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    
    /* Background più scuro per compensare */
    background: rgba(0, 0, 0, 0.8);
    
    /* Forza il posizionamento */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    
    /* Assicurati che sia sopra tutto */
    z-index: 999999 !important;
  }
}

.logo_square_white {
  opacity: 0.5;
  width: 80px;
  animation: rotateLogo 2s infinite linear;
}

@keyframes rotateLogo {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.swal2-styled.swal2-confirm {
  background-color: #5C3089 !important;
}

.top-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #5C3089;
  color: white;
  padding: 10px;
  text-align: center;
  z-index: 1000;
  font-size: 10px;
}

.top-banner>a {
  color: white;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.checkbox-container input[type="checkbox"] {
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 3px;
  width: 20px;
  /* Aggiunto per aumentare la dimensione */
  height: 20px;
  /* Aggiunto per aumentare la dimensione */
}

.checkbox-container input[type="checkbox"],
.checkbox-container label {
  margin: 0;
  font-weight: normal;
  font-size: 12px;
  vertical-align: middle;
}

.checkbox-container input[type="checkbox"] {
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.checkbox-container label {
  margin-left: 5px;
}

#quantityDisplay {
  margin-left: 5px;
  margin-right: 5px;
}

.minus-button,
.plus-button {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  color: black;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-bottom: 5px;
  padding: 0px;
}


.footer-modal {
  font-size: 11px;
  color: var(--dark-grey)
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

input[type=number] {
  -moz-appearance: textfield;
}

.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  color: #fff;
  padding: 20px;
  z-index: 99999;
  text-align: center;
  display: none;
}


.small-font {
  color: #fff;
  text-decoration: none;
  font-size: 15px!important;
}

/* Modal */
.modal-background {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 700px;
  height: auto;
  /* max-height: 100%; */
  overflow: auto;
}

.modal-content {
  background-color: #fefefe;
  border-radius: 10px;
  margin: 15% auto;
  padding: 20px;
  width: 95%;
  max-width: 600px;
  color: black;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 12px;
  cursor: pointer;
  color: #5C3089;
}

.modal-content p {
  color: black;
  font-size: 14px;
}

/* Close button */
.modal-content button {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  margin-bottom: 20px;
  cursor: pointer;
  border-radius: 3px;
  width: 100%;
  transition: background-color 0.3s;
}

/* Close button on hover */
.modal-content button:hover {
  background-color: #5C3089;
}

/* Input field */
.modal-content input {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.modal-content select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  color: var(--dark-grey);
  border-radius: 3px;
}



.section-blurred-image::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: auto;
  background: linear-gradient(to top, black 0%, rgba(0, 0, 0, 0.737) 19%, rgba(0, 0, 0, 0.54) 34%, rgba(0, 0, 0, 0.38) 47%, rgba(0, 0, 0, 0.28) 56.5%, rgba(0, 0, 0, 0.192) 65%, rgba(0, 0, 0, 0.125) 73%, rgba(0, 0, 0, 0.075) 80.2%, rgba(0, 0, 0, 0.043) 86.1%, rgba(0, 0, 0, 0.02) 91%, rgba(0, 0, 0, 0.008) 95.2%, rgba(0, 0, 0, 0.004) 98.2%, transparent 100%);
  z-index: 1;
}

.section-image {
  pointer-events: none;
  opacity: 0.4;
  filter: blur(80px) saturate(2);
  -webkit-backdrop-filter: blur(80px) saturate(2);
  height: 1000px;
  width: 100%;
  position: absolute;
  top: -100px;
  pointer-events: none;
  left: -100px;
  right: -100px;
  scale: 130%;
}


/******* CUSTOM ***/


.search-form {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid white;
  color: white;
  font-size: 18px;
  padding: 10px 40px 10px 0;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.search-icon,
.clear-icon {
  width: 24px;
  height: 24px;
  fill: white;
}

.clear-icon {
  display: none;
}

.clear-button .search-icon {
  display: none;
}

.clear-button .clear-icon {
  display: block;
}


.event-details {
  margin-top: 20px;
  line-height: 0px;
}

.timer {
  background-color: transparent;
  font-size: 12px;
  color: rgba(34, 139, 34, 0.8);
  text-decoration: none;
  text-align: center;
}

/* Style the Select2 container to match your input fields */
.select2-container--default .select2-selection--single {
  background-color: transparent;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 10px;
  height: auto;
  box-sizing: border-box;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  color: var(--dark-grey);
  /* Or your desired text color */
}

/* Style the placeholder text */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(0, 0, 0, 0.5);
  /* Adjust color for placeholder */
  font-size: 14px;
}

/* Style the selected text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: black;
  /* Or your desired text color */
  font-size: 14px;
}

/* Remove the default focus outline */
.select2-container--default .select2-selection--single:focus {
  outline: none;
}

/* Style the dropdown */
.select2-container .select2-dropdown {
  background-color: #fff;
  /* Background of dropdown */
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
}

/* Style the search box inside the dropdown */
.select2-container .select2-search--dropdown .select2-search__field {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
}

/* Style the options */
.select2-container .select2-results__option {
  padding: 8px 12px;
  color: black;
  font-size: 14px;
  font-family: 'Figtree', sans-serif;
}

/* Style the highlighted option */
.select2-container .select2-results__option--highlighted {
  background-color: #5C3089;
  /* Use your desired highlight color */
  color: white;
}

/* Adjust the dropdown arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: black transparent transparent transparent;
  border-width: 5px 5px 0 5px;
}

/* Adjust the clear button (if allowClear is true) */
.select2-container--default .select2-selection--single .select2-selection__clear {
  color: black;
}

.select2-container .select2-search--dropdown .select2-search__field {
  color: black;
  /* Imposta il colore del testo su nero */
}

@media screen and (max-width: 767px) {
  .select2-container--default .select2-selection--single {
    font-size: 16px;
    padding: 12px;
  }

  .select2-container .select2-results__option {
    font-size: 16px;
    padding: 12px;
  }

  .select2-container .select2-search--dropdown .select2-search__field {
    font-size: 16px;
    padding: 12px;
  }
}

.custom-checkbox {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.custom-checkbox .checkmark {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  background-color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.custom-checkbox:hover .checkmark {
  border-color: #5C3089;
  transform: scale(1.05);
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark {
  background-color: #5C3089;
  border-color: #5C3089;
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.custom-checkbox .checkmark:after {
  content: "";
  display: none;
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark:after {
  display: block;
}

.custom-checkbox input[type="checkbox"]:focus+.checkmark {
  box-shadow: 0 0 0 3px rgba(92, 48, 137, 0.2);
  outline: none;
}


.logo-custom {
  width: 150px;
}


.no-events-message {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 40px 20px;
}

.no-events-content {
  text-align: center;
  max-width: 500px;
}

.no-events-icon {
  opacity: 0.7;
  margin-bottom: 20px;
}

.no-events-content h3 {
  margin-bottom: 15px;
  font-weight: 600;
}

.no-events-content p {
  opacity: 0.8;
}

.no-events-content a:hover {
  color: #ff8787 !important;
}

/******* EVENT IMAGES ***/
/* Formato storie Instagram (9:16) per le immagini degli eventi */

.event-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-photo.add-px {
  height: 600px;
}

.image-container {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 16/9 * 100% per aspect ratio 9:16 */
  overflow: hidden;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}