body {
  font-family: "Arial", sans-serif;
  background-color: #2f2f2f;
  margin: 0;
  color: #333;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  filter: blur(15px);
  object-fit: cover;
  opacity: 0.5;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
}

.profile {
  display: flex;
  max-width: 500px;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  padding-top: 50px;
}

.profile-img {
  max-width: 100%;
  max-height: 100%;
  padding: 0 min(5em, 4%);
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: 24px;
}

.bio {
  margin: 10px 0 20px;
  font-family: "boxing";
  max-width: 400px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 0 #ff00ee, 0 4px 0 #b7009b;
  font-size: 20px;
}

@font-face {
  font-family: "boxing";
  src: url("fonts/Boxing-Regular.woff") format("woff");
}

@font-face {
  font-family: "linktree";
  src: url("fonts/CabinetGrotesk-Black.woff") format("woff");
}

@font-face {
  font-family: "bio2";
  src: url("fonts/BespokeStencil-Extrabold.woff") format("woff");
}

.links-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 500px;
  margin-bottom: 40px;
}

.link {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 17px 20px;
  color: #ffffff;
  font-family: "linktree";
  font-size: 20px;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2), 0 3px 0px #ff00ee,
    0 6px 0px #b7009b;
}

/* Navbar ridisegnata più minimale */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(47, 47, 47, 0.4); /* Più trasparente */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Navbar con sfondo più opaco quando scrolli */
.main-nav.scrolled {
  background: rgba(47, 47, 47, 0.9);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px; /* Padding ridotto */
  max-width: 1200px;
  margin: 0 auto;
}

.logo-small {
  height: 32px; /* Logo più piccolo */
  transition: height 0.3s ease;
}

.logo-small img {
  height: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 12px; /* Margini ridotti */
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-family: "linktree";
  font-size: 15px; /* Font size ridotto */
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a:hover {
  color: #ff00ee;
}

/* Linea sotto il link hover */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ff00ee;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Burger menu ridisegnato */
.burger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1010;
}

.burger div {
  width: 22px;
  height: 2px;
  background-color: white;
  position: absolute;
  left: 4px;
  transition: all 0.3s ease;
}

.burger .line1 {
  top: 4px;
}

.burger .line2 {
  top: 50%;
  transform: translateY(-50%);
}

.burger .line3 {
  bottom: 4px;
}

/* Animazione del burger quando attivo */
.burger.toggle .line1 {
  transform: rotate(45deg);
  top: 9px;
}

.burger.toggle .line2 {
  opacity: 0;
}

.burger.toggle .line3 {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* Pulsante torna su */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff00ee, #b7009b);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #2f2f2f;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s;
}

.loader {
  width: 100px;
  height: 100px;
  animation: pulse 1.5s infinite;
}

.loader img {
  width: 100%;
  height: 100%;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

/* Sezione Chi Siamo */
.about-section {
  width: 100%;
  max-width: 900px;
  margin: 60px auto;
  padding: 0 15px;
}

.about-title {
  text-align: center;
  margin-bottom: 25px;
  color: #ffffff;
  font-family: "boxing";
  text-shadow: 0 2px 0 #ff00ee, 0 4px 0 #b7009b;
  font-size: 26px;
}

.about-content {
  display: flex;
  gap: 30px;
  align-items: center;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

.about-text {
  flex: 1;
  color: white;
  font-family: "linktree";
  line-height: 1.6;
}

/* Footer migliorato */
footer {
  margin-top: 40px;
  font-size: 12px;
  color: #ffffff;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  margin-bottom: 20px;
  min-width: 200px;
  padding: 0 20px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-family: "boxing";
  color: #ff00ee;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  font-size: 24px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ff00ee;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
  color: #ff00ee;
  text-decoration: none;
}

/* Responsive design migliorato */
@media (max-width: 768px) {
  .nav-container {
    padding: 5px 12px;
  }

  .logo-small {
    height: 28px; /* Logo ancora più piccolo su mobile */
  }

  .nav-links {
    position: fixed;
    top: -100vh; /* Parte da sopra lo schermo invece che dal lato */
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.978);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(50px);
    justify-content: center;
    align-items: center;
    transition: top 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 1000;
  }

  .nav-links.active {
    top: 0; /* Si espande dall'alto verso il basso */
  }

  .nav-links li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
  }

  .nav-links a {
    font-size: 18px; /* Font size più grande nel menu mobile */
    letter-spacing: 1px;
  }

  .burger {
    display: block;
  }

  .about-content {
    flex-direction: column;
  }

  .footer-section {
    flex-basis: 100%;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Per schermi molto piccoli */
@media (max-width: 360px) {
  .logo-small {
    height: 24px;
  }

  .nav-container {
    padding: 5px 8px;
  }
}

/* Sezione Feed Instagram */
.insta-feed-section {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-align: center;
}

.insta-feed-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.insta-title {
  text-align: center;
  margin-bottom: 25px;
  color: #ffffff;
  font-family: "boxing";
  text-shadow: 0 2px 0 #ff00ee, 0 4px 0 #b7009b;
  font-size: 26px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Applicazione delle classi hidden/visible anche al titolo */
.insta-title.hidden {
  opacity: 0;
  transform: translateY(-20px);
}

.insta-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.insta-feed-container {
  display: flex;
  justify-content: center;
  padding: 0 min(5em, 4%);

  max-width: 100%;
}

/* Stili per il widget di Instagram */
.insta-feed-container iframe {
  transition: opacity 0.8s ease, transform 0.8s ease;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

.insta-feed-container iframe.hidden {
  opacity: 0;
  transform: translateY(30px);
}

.insta-feed-container iframe.visible {
  opacity: 1;
  transform: translateY(0);
}

.insta-post {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
}

/* Stati di visibilità dei post */
.insta-post.hidden {
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
}

.insta-post.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.insta-post:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.insta-post img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.insta-post-info {
  padding: 10px;
}

.insta-post-caption {
  font-size: 12px;
  color: #333;
  margin: 5px 0;
  max-height: 60px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.insta-post-date {
  font-size: 11px;
  color: #999;
}

@keyframes fadeInPost {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

footer {
  margin-top: 40px;
  font-size: 12px;
  color: #ffffff;
  position: relative;
}

/* Fallback per browser che non supportano i video o con problemi di riproduzione */
.video-fallback body {
  background-color: #2f2f2f;
  background-image: url("images/fallback-background.jpg");
  background-size: cover;
  background-position: center;
}

/* Ottimizzazioni per dispositivi mobili */
@media (max-width: 768px) {
  #background-video {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .content {
    padding: 30px 15px;
  }

  .links-container {
    gap: 12px;
  }

  .insta-feed-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Sezione Calendario Tour */
.tour-section {
  width: 100%;
  max-width: 900px;
  margin: 60px auto 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-align: center;
}

.tour-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.tour-title {
  text-align: center;
  color: #ffffff;
  font-family: "boxing";
  text-shadow: 0 2px 0 #ff00ee, 0 4px 0 #b7009b;
  font-size: 26px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.tour-subtitle {
  font-family: "linktree";
  font-size: 18px;
  color: #ffffff;
  text-shadow: 0 2px 0 #ff00ee, 0 4px 0 #b7009b;
}

.tour-title.hidden {
  opacity: 0;
  transform: translateY(-20px);
}

.tour-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.tour-container {
  display: flex;
  justify-content: center;
  padding: 0 min(5em, 4%);
  max-width: 100%;
}

.tour-calendar {
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  backdrop-filter: blur(20px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  transition: opacity 0.8s ease, transform 0.8s ease;
  max-width: 600px;
  margin: 0 auto;
}

.tour-calendar.hidden {
  opacity: 0;
  transform: translateY(30px);
}

.tour-calendar.visible {
  opacity: 1;
  transform: translateY(0);
}

.tour-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  font-family: "linktree";
}

.tour-date:last-child {
  border-bottom: none;
}

.tour-date:hover {
  background-color: rgba(255, 0, 238, 0.1);
}

.tour-date-info {
  text-align: left;
}

.tour-day {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 2px;
  color: #ffffff;
}

.tour-location {
  font-size: 14px;
  color: #ffc3f7;
}

.tour-venue {
  font-size: 12px;
  color: #ff8ff2;
}

.tour-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tour-status {
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 10px;
}

.tour-status.confirmed {
  background-color: #4caf50;
  color: white;
}

.tour-status.tentative {
  background-color: #ffc107;
  color: #333;
}

.tour-status.sold-out {
  background-color: #f44336;
  color: white;
}

.tour-ticket-link {
  background-color: white;
  color: #333;
  padding: 8px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tour-ticket-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2), 0 2px 0px #ff00ee,
    0 4px 0px #b7009b;
}

/* Ottimizzazioni per dispositivi mobili */
@media (max-width: 768px) {
  .tour-date {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tour-action {
    width: 100%;
    justify-content: space-between;
  }
}

/* Sezione Shop */
.shop-section {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-align: center;
  padding: 0 15px;
  box-sizing: border-box;
}

.shop-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.shop-title {
  text-align: center;
  margin-bottom: 25px;
  color: #ffffff;
  font-family: "boxing";
  text-shadow: 0 2px 0 #ff00ee, 0 4px 0 #b7009b;
  font-size: 26px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.shop-title.hidden {
  opacity: 0;
  transform: translateY(-20px);
}

.shop-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.shop-container {
  position: relative;
  width: 100%;
  display: flex;

  align-items: center;
}

/* Griglia prodotti */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 0 auto;
  width: 100%;
  justify-items: center; /* Centra gli elementi nella griglia */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.products-grid.hidden {
  opacity: 0;
  transform: translateY(30px);
}

.products-grid.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Singolo prodotto */
.product-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%; /* Usa il 100% della larghezza disponibile */
  max-width: 300px; /* Ma non più di 300px */
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37), 0 3px 0px #ff00ee,
    0 6px 0px #b7009b;
}

.product-image {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 15px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-family: "linktree";
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 8px;
}

.product-price {
  font-size: 16px;
  color: #ffc3f7;
  margin-bottom: 15px;
}

.product-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.size-selector {
  padding: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 5px;
  color: #ffffff;
  font-family: "linktree";
  width: 45%;
  cursor: pointer;
}

.size-selector option {
  background: #333;
  color: #fff;
}

.add-to-cart-btn {
  background: rgba(255, 0, 238, 0.3);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-family: "linktree";
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: 50%;
}

.add-to-cart-btn:hover {
  background: rgba(255, 0, 238, 0.6);
  transform: translateY(-3px);
}

/* Nuovi stili per il pulsante di acquisto */
.shop-btn {
  background: linear-gradient(135deg, #ff00ee, #b7009b);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-family: "linktree";
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.shop-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2), 0 2px 0px #ff00ee,
    0 4px 0px #b7009b;
}

/* Descrizione del prodotto */
.product-description {
  font-size: 14px;
  color: #f2f2f2;
  margin-top: 8px;
  line-height: 1.4;
}

/* Carrello - Stile completamente rivisto */
.cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff00ee, #b7009b);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  transition: transform 0.3s ease;
}

.cart-btn:hover {
  transform: scale(1.1);
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.cart-overlay.active {
  display: block;
}

.cart-icon {
  font-size: 24px;
  color: white;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: white;
  color: #ff00ee;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "linktree";
  font-size: 14px;
  font-weight: bold;
}

/* Stile del contenitore del carrello */
.cart-container {
  position: fixed;
  top: 0;
  right: -100%; /* Nascondi completamente fuori dallo schermo */
  width: 380px; /* Larghezza fissa */
  max-width: 90%; /* Massimo 90% della larghezza dello schermo */
  height: 100vh;
  background: linear-gradient(
    135deg,
    rgba(47, 47, 47, 0.95),
    rgba(30, 30, 30, 0.98)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Classe per quando il carrello è aperto */
.cart-container.open {
  right: 0;
}
.cart-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header h3 {
  color: white;
  font-family: "boxing";
  margin: 0;
  font-size: 20px;
}

.close-cart-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 8px;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  padding-left: 15px;
}

.cart-item-title {
  color: white;
  font-family: "linktree";
  font-size: 16px;
  margin-bottom: 5px;
}

.cart-item-variant {
  color: #ffc3f7;
  font-size: 14px;
  margin-bottom: 8px;
}

.cart-item-price {
  color: white;
  font-weight: bold;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.quantity-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.quantity-value {
  margin: 0 10px;
  color: white;
  font-family: "linktree";
}

.remove-item-btn {
  background: none;
  border: none;
  color: #ff00ee;
  cursor: pointer;
  margin-left: auto;
  font-size: 18px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  color: white;
  font-family: "linktree";
  font-size: 18px;
  margin-bottom: 15px;
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff00ee, #b7009b);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-family: "linktree";
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.checkout-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 0, 238, 0.4);
}

/* Checkout Overlay */
.checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.checkout-overlay.open {
  opacity: 1;
  visibility: visible;
}

.checkout-form {
  background: linear-gradient(
    135deg,
    rgba(47, 47, 47, 0.95),
    rgba(30, 30, 30, 0.98)
  );
  border-radius: 15px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 25px;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.checkout-header h3 {
  color: white;
  font-family: "boxing";
  margin: 0;
  font-size: 24px;
}

.close-checkout-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.form-group {
  margin-bottom: 15px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  color: white;
  margin-bottom: 8px;
  font-family: "linktree";
  text-align: left;
}

input,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: "linktree";
}

.payment-section {
  margin-top: 20px;
  margin-bottom: 20px;
}

.payment-section h4 {
  color: white;
  margin-bottom: 15px;
  text-align: left;
}

.submit-order-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff00ee, #b7009b);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-family: "linktree";
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-top: 10px;
}

.submit-order-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 0, 238, 0.4);
}

.order-success {
  display: none;
  text-align: center;
  padding: 20px;
}

.order-success.visible {
  display: block;
}

.order-success img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.order-success h3 {
  color: white;
  margin-bottom: 10px;
}

.order-success p {
  color: #ffc3f7;
  margin-bottom: 20px;
}

.continue-shopping-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-family: "linktree";
  cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .cart-container {
    width: 100%;
    max-width: 100%;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Ottimizzazioni aggiuntive per mobile */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr; /* Una sola colonna su mobile */
    padding: 0 15px; /* Aggiungi padding orizzontale */
  }

  .product-card {
    max-width: 100%; /* Usa tutto lo spazio disponibile */
  }

  .shop-container {
    padding: 0; /* Rimuovi il padding del contenitore */
  }
  .nav-links {
    background: rgba(0, 0, 0, 0.75); /* Sfondo più trasparente */
    top: -150vh; /* Posizionalo più fuori dallo schermo */
    z-index: 2000;
  }
  .main-nav {
    z-index: 1500;
  }
  .burger {
    z-index: 2100; /* Assicurati che il burger sia sopra il menu */
  }
}

/* Fix per schermi molto piccoli */
@media (max-width: 380px) {
  .cart-container {
    max-width: 100%;
    right: -100%; /* Usa percentuale per schermi molto piccoli */
  }

  .cart-container.open {
    right: 0;
  }
}

/* Blocca lo scroll quando il menu mobile è aperto */
body.no-scroll {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Aggiungi un'animazione più chiara per il menu */
@keyframes fadeInMenu {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nav-links.active {
  animation: fadeInMenu 0.3s forwards;
}

/* Stili per le date del tour passate */
.tour-date {
  position: relative;
  overflow: hidden;
}

.tour-date.past-date {
  opacity: 0.6;
  filter: grayscale(50%);
}

.tour-date.past-date .tour-date-info {
  color: #888;
}

/* Linea animata per le date passate */
.strikethrough-line {
  position: absolute;
  top: 50%;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #ff4444 20%,
    #ff6666 50%,
    #ff4444 80%,
    transparent 100%
  );
  transform: translateY(-50%);
  z-index: 2;
  transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
}

.strikethrough-line.animate {
  left: 0;
}

/* Effetto aggiuntivo: leggero bagliore */
.strikethrough-line::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  bottom: -2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 68, 68, 0.3) 20%,
    rgba(255, 102, 102, 0.5) 50%,
    rgba(255, 68, 68, 0.3) 80%,
    transparent 100%
  );
  filter: blur(2px);
}

/* Variante alternativa con effetto più sottile */
.strikethrough-line.subtle {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #666 20%,
    #999 50%,
    #666 80%,
    transparent 100%
  );
  box-shadow: none;
}

.strikethrough-line.subtle::before {
  display: none;
}

/* Responsive: linea più sottile su mobile */
@media (max-width: 768px) {
  .strikethrough-line {
    height: 2px;
  }

  .strikethrough-line::before {
    top: -1px;
    bottom: -1px;
  }
}

.contact-popup {
  display: none;
  position: fixed;
  z-index: 99999; /* Massima priorità */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-popup.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  animation: popupIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-popup.hide {
  opacity: 0;
  pointer-events: none;
  animation: popupOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-popup-content {
  background: #222;
  color: #fff;
  padding: 30px 24px;
  border-radius: 16px;
  min-width: 260px;
  max-width: 25vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  position: relative;

  text-align: center;
  margin: 0 auto;
  animation: contentIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  left: 0;
  right: 0;
  top: 30%;
}

@keyframes popupIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes popupOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes contentIn {
  from {
    transform: scale(0.95) translateY(30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  color: #ff00ee;
  cursor: pointer;
}
.contact-popup input[type="text"] {
  width: 70%;
  padding: 4px 8px;
  margin: 6px 0;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  background: #333;
  color: #fff;
}
.copy-btn {
  margin-left: 8px;
  background: #ff00ee;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}
.copy-btn:hover {
  background: #b7009b;
}

.contact-popup-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  pointer-events: none;
}
.contact-popup.active .contact-popup-overlay {
  pointer-events: auto;
}