html {
  scroll-behavior: smooth;
}
  :root {
      --main-color: #006fa6 ;
      --text-color: #ffffff;
      --bg-color: #f9f9f9;
      --font: "Orbitron", sans-serif;
    }

    body {
      margin: 0;
      font-family: var(--font);
      background-color: var(--bg-color);
      color: #333;
      letter-spacing: 0.05em;
    }
body.menu-open {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  width: 100vw;
}
    header {
      background-color: var(--main-color);
      color: var(--text-color);
      display: flex;
      
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      z-index: 4000;
      box-sizing: border-box;
      min-height: 65px;  /* usa solo min-height, non height! */
      padding: 0.6rem 1rem;
    }


h2 {
  color: var(--main-color);
  font-size: 2rem;
  text-align: center;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 1rem 0;
  color: #333;
}



    header img {
      height: 50px;
      z-index: 4001;
    }

    nav {
      display: flex;
      align-items: center;
    }

    .nav-menu {
      display: flex;
      gap: 1.5rem;
      align-items: center;
      margin: 0 1rem; /* sposta il menu leggermente a sinistra */
      transition: all 0.3s;
    }
    .back-to-products-wrapper {
  text-align: center;
  margin: 1.5rem auto 1rem;
}

.btn-back-centered {
  background-color: #006fa6;
  color: white;
  font-family: Orbitron, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-back-centered:hover {
  background-color: #1296c7;
  transform: scale(1.05);
}

.btn-back {
  display: inline-block;
  background-color: #006fa6;
  color: white;
  font-family: Orbitron, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn-back:hover {
  background-color: #0e6e94;
  transform: scale(1.05);
}


#backToProducts {
  position: fixed;
  bottom: 25px;
  left: 20px;
  background-color: #006fa6;
  color: white;
  font-family: Orbitron, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

#backToProducts.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

#backToProducts:hover {
  background-color: #0e6e94;
  transform: scale(1.05);
}




.nav-menu a,
.mobile-links a {
  position: relative;
  padding-bottom: 6px; /* fondamentale per lasciare spazio alla underline */
}
.nav-menu a,
.nav-menu-mobile a {
  position: relative;
  color: var(--text-color);
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  transition: color 0.2s;
  padding: 0.7rem 0;
  padding-bottom: 6px;
}
.nav-menu a:active::after,
.nav-menu-mobile a:active::after {
  background: #ffffff; /* leggermente più intenso */
  transform: scaleX(1);
}
.nav-menu a::after,
.mobile-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-menu a:hover::after,
.mobile-links a:hover::after,
.nav-menu a:focus::after,
.mobile-links a:focus::after {
  transform: scaleX(1);
}
/* underline fissa per l'attiva */
.nav-menu a.active::after,
.mobile-links a.active::after {
  transform: scaleX(1);
  background: #ffffff;
}

.nav-menu a:hover {
  color: #ffffff;
}

.nav-menu-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.85);
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  z-index: 5000;
  overflow: hidden;
}

.mobile-links-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.mobile-social-icons {
  display: flex;
  gap: 12px;
  position: absolute;
  bottom: 200px;
  right: 24px;
   z-index: 9999 !important;
  flex-direction: row-reverse; /* da destra a sinistra */
}


.mobile-social-icons a {
   width: 40px;
    height: 40px;
    aspect-ratio: 1 / 1;
    min-width: 40px;
    min-height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    user-select: none;
  transition: transform 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
     line-height: 0;
  vertical-align: middle;
}

.mobile-social-icons a:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

.mobile-social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
  
  transform: translateY(-3px); /* centratura visiva */
}

.mobile-social-icons a,
.mobile-social-icons a:visited,
.mobile-social-icons a:focus,
.mobile-social-icons a:active {
  color: white !important;
  background: transparent !important;
  outline: none;
}
.mobile-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}




    

    nav a:hover {
      color: #ffec80;
    }





    .hamburger {
      display: none;
      cursor: pointer;
      flex-direction: column;
      gap: 5px;
      margin-left: 1.5rem;
      z-index: 4001;
    }

    .hamburger div {
      width: 25px;
      height: 3px;
      background-color: white;
     border-radius: 2px;
      transition: all 0.3s;
    }

    .nav-menu.show {
      display: flex;
    }

    .hero {
      position: relative;
      height: 500px;
      overflow: hidden;
      max-width: 100%;
      margin-top: 65px; /* Sposta sotto l'header fisso */
      margin-bottom: 0;
      
    }
    .hero-product::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(5px);
  z-index: 1;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Varianti */
.hero-product {
  height: 500px;
}

.hero-standard {
  height: 300px;
}
    .carousel {
      position: relative;
      height: 100%;
    }

    .carousel-images {
      position: relative;
      height: 100%;
    }

    .slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 0.8s ease;
      pointer-events: none;
    }

    .slide.active {
      opacity: 1;
      pointer-events: auto;
    }

    .slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .carousel-caption {
      position: absolute;
      bottom: 100px;
      left: 50%;
      transform: translateX(-50%);
      color: white;
      font-family: 'Orbitron', sans-serif;
      font-size: 1.5rem;
      background: #00000080;
      padding: 0.5rem 1rem;
      border-radius: 6px;
      max-width: 90%;
      text-align: center;
    }

    .carousel-btn {
     position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  z-index: 10;
  cursor: pointer;
  padding: 0.5rem;
    }

 .carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

    .carousel-btn.next {
      right: calc(50% - 90px);
    }

    .carousel-dots {
     position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
    }
    .dot {
  width: 12px;
  height: 12px;
  background: #ffffff80;
  border-radius: 50%;
  cursor: pointer;
}
.dot.active {
  background: white;
}

    .carousel-dots .dot {
      width: 12px;
      height: 12px;
      background: #ffffff80;
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.3s;
      box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    }

    .carousel-dots .dot.active,
    .carousel-dots .dot:hover {
      background: white;
      
    }
.carousel-indicators {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  background: none;
}



.carousel-indicators .dots {
  display: flex;
  gap: 0.5rem;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.4rem;
  border-radius: 10px;
}


.carousel-indicators .dot {
  width: 12px;
  height: 12px;
  background-color: white;
  border-radius: 50%;
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}

.carousel-indicators .dot.active {
  opacity: 1;
  transform: scale(1.3);
}
.hero-center-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  z-index: 5;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 10px #000000b3;
}


.hero-subtitle {
  width: 100%;
  min-height: 65px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-family: Orbitron, sans-serif;
  color: white;
  text-align: center;
  z-index: 2;
  box-sizing: border-box;
  line-height: 1.2;
  flex-wrap: wrap; /* permetti l'andare a capo */
}
/* Sfondo trasparente per versione 2024 */
.hero-bg-2024 {
  background-color: #f16c5d; /* ROSSO badge 2024 */
}

/* Sfondo trasparente per versione 2020 */
.hero-bg-2020 {
  background-color: #3db0a4; /* BLU badge 2020 */
}



.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }

.pt-2 { padding-top: 2rem; }
.pb-2 { padding-bottom: 2rem; }


.section {
  max-width: 1200px;
  padding: 2rem 1rem;
  margin: auto;
}
   
    .section h1 {
  color: var(--main-color);
  font-size: 2.2rem;
  text-align: center;
  margin: 2rem 0 1rem;
  font-weight: 600;
  
}

 
  
    #product-detail {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
}
.preview {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0000001a;
  margin: 1rem 0;
}


    #map {
      width: 100vw;
      max-width: 100%;
      height: 500px;
      margin: 0;
      border-radius: 0;
      border: none;
      display: block;
    }

    footer {
      background-color: var(--main-color);
      color: var(--text-color);
      text-align: center;
      padding: 1rem;
    }


.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 1rem;
}

.footer-social-icons a {
  width: 40px;
  height: 40px;
  border: 2px solid white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social-icons a:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

.footer-social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transform: scale(1.3);
}


.info-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.info-box {
  background-color: #f9f9f9;
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 2px 10px #0000000f;
  min-width: 260px;
  flex: 1;
  max-width: 320px;
  text-align: left;
  font-family: 'Orbitron', sans-serif;
}

.info-box strong {
  display: block;
  font-size: 1rem;
  color: #222;
  margin-bottom: 0.3rem;
}

.info-box p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}



.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
  .product-card {
  display: flex;
  flex-direction: column;
  border: 2px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 10px #0000001a;
  font-family: Orbitron, sans-serif;
  text-align: center;
}




    .product-card img {
      width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
    }

    .product-info {
      padding: 1.5rem;
    }

    .product-info h3 {
      margin-top: 0;
      color: #006fa6 ;
    }

    .product-info p {
      margin: 0.5rem 0 1rem;
    }

    .features {
      list-style: none;
      padding: 0;
       padding-left: 1.5rem; /* spazio per la spunta */
      margin-bottom: 1rem;
    }

    .features li {
     position: relative;
  padding-left: 1.2rem; /* spazio per il simbolo */
  margin-bottom: 0.4rem;
    }

    .btn-buy {
  display: inline-block;
  background-color: #006fa6;
  color: white;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-family: Orbitron, sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: background-color 0.3s, transform 0.2s;
  text-align: center;
  min-width: 120px;
  touch-action: manipulation;
}

    .btn-buy:hover {
      background-color: #1296c7;
  transform: scale(1.05);
    }

.product-title {
  font-size: 1.3rem;
  text-align: center;
  color: #006fa6;
  margin: 0.4rem 0 0;
  font-family: Orbitron, sans-serif;
}
.product-subtitle {
  background-color: #eef8fb;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin: 0.3rem auto 0; /* margine sopra + centramento orizzontale */
  color: #006fa6;
  font-weight: 500;
  font-family: Orbitron, sans-serif;
  text-align: center;
}

.icao-code {
  font-size: 1.5rem;
  
  margin-left: 4px;
}


.news-item {
  background: #ffffff; 
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.news-meta {
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  background-color: #1296c7;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  margin-right: 0.4rem;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.badge-update {
  background-color: #4caf50;
}

.badge-new {
  background-color: #ff9800;
}

.badge:hover {
  background-color: #0b7aa4;
}



.news-item {
  background: #ffffff; 
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.news-meta {
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  background-color: #1296c7;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  margin-right: 0.4rem;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.badge-update {
  background-color: #4caf50;
}

.badge-new {
  background-color: #ff9800;
}
.badge-2020 {
  background-color: #35a095;
}
.badge-2024 {
  background-color: #f16c5d;
}
.badge:hover {
  background-color: #0b7aa4;
}












    #presentation {
      max-width: 1200px;
      margin: 1rem auto;
      color: #333;
      font-family: var(--font);
       text-align: center; /* opzionale */
 
      line-height: 1.6;
      margin-top: rem;
    }

   
      #presentation h1 {
      color: var(--main-color);
     margin-top: 0;
      font-size: 3.2rem; /* leggermente più grande */
      font-weight: 600;
    }

    #presentation p {
      margin-bottom: 2rem;
      font-size: 1.1rem;
    }

    .custom-icao-icon {
      pointer-events: auto;
      cursor: pointer;
      position: relative;
      z-index: 1;
      transition: z-index 0.3s ease;
    }
    .marker-bubble {
      position: absolute;
      left: 50%;
      bottom: 100%;
      transform: translateX(-50%);
      display: inline-block;
      padding: 3.24px 9.72px;
      border-radius: 10px;
      font-size: 12.47px;
      font-family: Orbitron, sans-serif;
      color: white;
      font-weight: bold;
      letter-spacing: 2px;
      text-shadow: 1px 1px 2px #00000080;
      border: 1px solid #ffffff99;
      white-space: nowrap;
      transition: transform 0.3s ease;
      z-index: 1000;
    }
.marker-bubble.dual {
  background: linear-gradient(135deg, #3db0a4 50%, #f16c5d 50%);
  color: white;
}


.marker-bubble.unknown {
  background-color: gray;
  color: white;
}

.marker-bubble.only2020 {
  background-color: #3db0a4;
  color: white;
}

    .marker-bubble:hover {
      transform: translateX(-50%) scale(1.2);
      z-index: 9999 !important;
    }
    .custom-icao-icon:hover {
      z-index: 9999 !important;
    }
    .custom-icao-icon:hover .marker-bubble {
      opacity: 1;
    }

    .map-legend {
      position: absolute;
      top: 10px;
      left: 60px;
      z-index: 1001;
      display: flex;
      gap: 10px;
      font-family: Orbitron, sans-serif;
    }
    .map-legend span {
      padding: 4px 10px;
      border-radius: 8px;
      font-size: 12px;
      color: white;
    }
    .map-zoom-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: Orbitron, sans-serif;
  z-index: 1001;
  pointer-events: none;
  user-select: none;
}
    .legend-msfs2024 {
      background-color: #f16c5d;
    }
    .legend-msfs2020 {
      background-color: #3db0a4;
    }
    .reset-button-container {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 1001;
    }
    .reset-button {
      width: 30px;
      height: 30px;
      background: white;
      border: 1px solid #ccc;
      box-shadow: 0 1px 4px #0000004d;
      border-radius: 4px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      color: #333;
      transition: background-color 0.3s, box-shadow 0.3s;
      padding: 0;
    }
    .reset-button:hover {
      background: #f4f4f4;
      box-shadow: 0 2px 8px #00000066;
    }

.section-divider {
  max-width: 1200px;
  margin: 3rem auto;
  height: 1px;
 background:  #006fa6 50%;

  border: none;
  opacity: 0.6;
  width: calc(100% - 100px); /* 50px margine a destra e sinistra */
}


    #news {
      max-width: 1200px;
      
      
 
  
    }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content.open {
  max-height: 500px; /* abbastanza grande per il contenuto */
}

.accordion-toggle {
  margin-top: 0.5rem;
  background-color: transparent;
  color: var(--main-color); 
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
 
}

.accordion-toggle:hover {
  text-decoration: underline;
}

#coming {
  max-width: 1200px;
  margin: 2rem auto;
  
   
}
    .news-item {
      max-width: 1200px;
  margin: 0 auto;
  
  
  border-radius: 8px;
 
  text-align: left;
    }
    .news-item:last-child {
      border-bottom: none;
    }
    
    .news-item h3 {
      font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: #222;
    }
    .news-item p {
      font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin: 0.5rem 0 1rem;
    }
    .news-item time {
       font-size: 0.85rem;
  color: #777;
  display: block;
  margin-bottom: 0.8rem;
    }
#backToTop {
  width: 48px;
  aspect-ratio: 1 / 1;
  background-color: var(--main-color);
  color: white;
  font-size: 1.2rem;
  border-radius: 50%;
  position: fixed;
  bottom: 20px;
  right: 20px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
#backToTop svg {
  width: 30px;
  height: 30px;
}
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
#backToTop:hover {
  background-color: #0e6e94;
  transform: scale(1.1); /* effetto al passaggio */
}
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center;
  
}
   
.form-feedback {
  opacity: 0;
  transition: opacity 0.6s ease;
  font-weight: bold;
  text-align: center;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.form-feedback.show {
  opacity: 1;
}

.form-icon {
  font-size: 1.3rem;
}

.form-text {
  font-size: 1rem;
}
  
.section-centered {
  max-width: 1200px;
  margin: 3rem auto;
  text-align: center;
}
.section-centered.contact-form {
  margin-top: 1.5rem;
}


.btn-group .btn {
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.btn:hover {
  transform: scale(1.05);
}

.store-btn {
  background-color: #006fa6;
  color: white;
  padding: 0.75rem 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  font-family: Orbitron, sans-serif;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
}

.store-btn:hover {
  background-color: #0e6e94;
}

.store-disabled {
  background-color: #444;
  cursor: default;
  font-style: italic;
}


.purchase-card {
  flex: 1;
  min-width: 260px;
  background: #fff;
  border: 2px solid #f16c5d;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px #0000001a;
  box-sizing: border-box;
}

.purchase-card h3 {
  margin-top: 0;
  color: #f16c5d;
  font-size: 1.2rem;
  font-family: Orbitron, sans-serif;
}

.purchase-card p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.purchase-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.store-button-2024 {
  background-color: #f16c5d;
  color: white;
  font-family: Orbitron, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background-color 0.3s ease;
  text-align: center;
  min-width: 160px;
}

.store-button-2024:hover {
  background-color: #d65b4d;
}

.store-button-2024.store-disabled {
  background-color: #444;
  cursor: default;
  font-style: italic;
}

.badge-ingame {
  background-color: #ffffff33;
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 6px;
  font-weight: bold;
  letter-spacing: 0.05em;
}




/* --- Version-specific buttons (same color as badges) --- */
.btn-version-2020 {
  background-color: #3db0a4;
  font-family: Orbitron, sans-serif;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white !important;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
  font-size: 1.1rem;
}

.btn-version-2024 {
  background-color: #f16c5d;
   font-family: Orbitron, sans-serif;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white !important;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
  font-size: 1.1rem;
}





.btn-version-2020:hover {
  background-color: #35a095;
}

.btn-version-2024:hover {
  background-color: #d65b4d;
}
.btn-version-2020:hover,
.btn-version-2024:hover {
  color: white !important;
  text-decoration: none !important;
}
.section-features {
  
  color: var(--main-color);
 padding: 2rem 1rem;
   max-width: 1200px;
  margin: 0 auto;
  
  
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 140px; /* opzionale: uniforme anche per contenuti lunghi */
}



.feature-item img {
  width: 70px;
  height: 70px;
  margin-bottom: 0.8rem;
}

.feature-item h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0;
  font-family: var(--font);
  min-height: 2.6em; /* abbastanza per 2 righe */
  line-height: 1.2;
}
#gallery img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.leaflet-popup-content {
  text-align: center;
}
.leaflet-popup-content h3,
.leaflet-popup-content p {
  text-align: center;
}
.leaflet-popup-content .btn-group {
  flex-direction: column;
  align-items: center;
}
.leaflet-popup-content .btn-group .btn {
  width: auto;
  min-width: 120px;
  text-align: center;
}
.map-legend {
  transition: opacity 0.3s ease;
}



@media (max-width: 900px) {
  .footer-social-icons {
    display: none;
  }
}



 @media (max-width: 900px) {
      header,
      nav {
        flex-direction: row;
        align-items: center;
      }
      header {
        padding: 0.6rem 1rem;
        
        min-height: 65px;
      }
       .nav-menu {
    display: none;
  }


.nav-menu-mobile {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.95); /* più opaco */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
   padding-top: 4rem; /* spazio sopra sufficiente per la X */
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  z-index: 9999; /* ← aumenta sopra tutto */
  overflow: hidden;
  backdrop-filter: blur(4px); /* ← (opzionale) per un effetto sfocatura elegante */
}

.nav-menu-mobile.show {
  transform: translateX(0);
}
.menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 5001;
  font-family: sans-serif;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  padding: 1.5rem 2rem 1rem 2rem; /* ← meno spazio sopra */
  gap: 1.4rem;
  box-sizing: border-box;
  margin-top: 0;
  padding-top: 0.5rem;
}

.mobile-links a {
  display: inline-block;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  font-family: var(--font);
  font-weight: bold;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: relative;
  padding-right: 0.2rem;  /* ← piccolo margine aggiuntivo al testo */
  text-align: right;
  max-width: 90%;         /* ← evita che la underline vada fino a bordo */
}
.mobile-links a:hover {
  color: white !important;
}
.mobile-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  height: 2px;
  background: white;
  width: auto;
  left: auto;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.mobile-links a.active::after {
  transform: scaleX(1);
}
.nav-menu-mobile.show .mobile-links a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-links a:hover::after,
.mobile-links a:focus::after,
.mobile-links a.active::after {
  transform: scaleX(1);
  width: 100%;
}
.nav-menu-mobile.show .mobile-links a:nth-child(1) { transition-delay: 0.1s; }
.nav-menu-mobile.show .mobile-links a:nth-child(2) { transition-delay: 0.2s; }
.nav-menu-mobile.show .mobile-links a:nth-child(3) { transition-delay: 0.3s; }
.nav-menu-mobile.show .mobile-links a:nth-child(4) { transition-delay: 0.4s; }
.nav-menu-mobile.show .mobile-links a:nth-child(5) { transition-delay: 0.5s; }

      .hamburger {
        display: flex;
        z-index: 4001;
        position: relative;
       
      }
      .hero {
  margin-top: 65px;
  
}
.hero.menu-open {
  margin-top: 0;
}
      .product-card {
        margin: 1rem;
        font-size: 12.6px;
      }
      .product-info {
        padding: 1rem;
      }

      #map {
        height: 300px !important;
      }
    }















/* Mobile responsive */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1rem; /* ← AGGIUNGI QUESTO */
  }
    .hero-subtitle {
    font-size: 2rem;
    padding: 0.8rem 1rem;
  }
    .map-legend {
    font-size: 10px;
    top: 8px;
    left: 60px;
    gap: 6px;
  }

  .map-legend span {
    padding: 3px 6px;
    border-radius: 6px;
  }
  .marker-bubble {
    font-size: 10px;
    padding: 2.5px 8px;
    border-radius: 8px;
  }


    .leaflet-popup-content {
    font-size: 13px;
    padding: 6px;
    box-sizing: border-box;
    max-width: 240px;
    word-wrap: break-word;
  }




  

  .leaflet-popup-content img {
    border-radius: 4px;
    margin-bottom: 6px;
  }

  .leaflet-popup-content-wrapper {
    padding: 6px;
  }

  .leaflet-popup-tip {
    width: 10px;
    height: 10px;
  }

   .leaflet-popup-content img {
    display: none !important;
  }
    .carousel-indicators .dot {
    width: 10px;
    height: 10px;
  }

}

@media (max-width: 768px) {
  #product-detail {
    flex-direction: column;
    align-items: center;
  }

  #product-detail > div:nth-child(2) {
    align-items: center !important;
  }

    .carousel-caption {
    display: none;
  }

  .feature-item img {
    width: 56px;
    height: 56px;
    margin-bottom: 0.6rem;
  }

  .feature-item h3 {
    font-size: 1.1rem;
    min-height: 2.6em; /* abbastanza per 2 righe */
  line-height: 1.2;
  }

  .features-grid {
    gap: 1.2rem;
    padding: 0 1rem;
  }




}
@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem; /* ← AGGIUNGI QUESTO */
  }
  .hero {
    height: 260px;
  }
  .carousel-caption {
    font-size: 1rem;
    bottom: 70px;
  }
    .carousel-indicators .dot {
    width: 8px;
    height: 8px;
  }
 
.carousel-dots .dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  }

 .hero-center-title {
    font-size: 2rem;
    padding: 0 1rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .feature-item img {
    width: 52px;
    height: 52px;
    margin-bottom: 0.5rem;
  }

  .feature-item h3 {
    font-size: 1rem;
    min-height: 2.6em;
    line-height: 1.2;
  }

 .hero-subtitle {
    font-size: 1.6rem;
    padding: 0.6rem 1rem;
  }
  .map-legend {
    display: block;
    font-size: 9px;
    top: 6px;
    left: 50px;
    gap: 4px;
  }

  .map-legend span {
    display: inline-block;
     margin-bottom: 4px;
    padding: 2px 5px;
    border-radius: 4px;
  }
   .marker-bubble {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 6px;
  }
  .leaflet-popup-content {
    font-size: 12px;
    padding: 4px;
     text-align: center;
  }
  .leaflet-popup-content h3,
.leaflet-popup-content p {
  text-align: center;
}
.leaflet-popup-content .btn-group {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.leaflet-popup-content .btn-group .btn {
  width: auto;
  min-width: 120px;
  padding: 6px 14px;
  font-size: 0.8rem;
  text-align: center;
}
  .leaflet-popup-content img {
    margin-bottom: 4px;
  }

  .leaflet-popup-content-wrapper {
    padding: 4px;
  }

  .leaflet-popup {
    max-width: 220px !important;
  }
  .leaflet-popup-content img {
    display: none !important;
  }
   .btn-version-2020,
  .btn-version-2024 {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 120px;
  }
}



/* Titoli sezioni con colore badge corrispondente */
.section h2.section-2020 {
  color: #3db0a4;
}

.section h2.section-2024 {
  color: #f16c5d;
}

.mobile-links a:active {
  color: white !important;
  background: none !important;
}
@media (max-width: 480px) {
  #backToTop {
    width: 40px;
    font-size: 1rem;
  }
  #backToProducts {
  bottom: 24px;
  left: 10px;
    font-size: 0.7rem;
}
   
}

@media (max-width: 400px) {
  .carousel-dots .dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  }
}
/* Per dispositivi mobile senza mouse e cursore*/
@media (hover: none) and (pointer: coarse) {
  .map-zoom-hint {
    display: none;
  }
}


