/* ============================
   GLOBAL
============================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Roboto', sans-serif;
  color: #fff;
  background: #050505;
  max-width: 100%;
  overflow-x: hidden;

  /* ===== STICKY FOOTER ===== */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* LINKS */
a {
  color: inherit;
  text-decoration: none;
}

/* ============================
   HEADER / MENU
============================ */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.header .logo a {
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 1.2rem;
  color: #00fff0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang {
  cursor: pointer;
  opacity: 0.7;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #00fff0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}

/* ============================
   HEADER BOTTOM LINE
============================ */
.header::after {
  content: "";
  display: block;
  width: 80%;           /* lascia margini laterali */
  height: 1px;          /* spessore linea */
  background: #fff;     /* colore linea */
  margin: 0 auto;       /* centra la linea */
  position: absolute;
  bottom: 0;            /* posizionata al bordo basso dell’header */
  left: 0;
  right: 0;
  opacity: 0.4;         /* leggermente trasparente */
}

/* MENU */
.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: #050505;
  display: flex;
  flex-direction: column;
  padding: 120px 32px;
  gap: 32px;
  transition: right 0.4s ease;
  z-index: 9;
}

.menu.open {
  right: 0;
}

.menu a {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: #00fff0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.menu a:hover {
  opacity: 1;
  text-shadow: 0 0 12px #00fff0;
}

/* ============================
   SOUND PACKS PAGE
============================ */
.packs-page {
  padding: 160px 48px 120px;
}

/* TITOLO */
.page-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 20px;
  text-align: center;
}

/* SOTTOTITOLO */
.page-subtitle {
  margin-bottom: 80px;
  font-size: 1.05rem;
  opacity: 0.6;
  max-width: 650px;
  line-height: 1.6;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* GRID */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 64px;
}

/* CARD */
.pack-card {
  cursor: pointer;
  position: relative;
}

/* MEDIA */
.media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.media video {
  width: 100%;
  display: block;
  filter: contrast(1.05);
  transition: transform 0.4s ease;
}

.pack-card:hover video {
  transform: scale(1.05);
}

/* NEON FRAME */
.neon {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0,255,240,0);
  transition: border 0.4s ease, box-shadow 0.4s ease;
}

.pack-card:hover .neon {
  border: 1px solid rgba(0,255,240,0.6);
  box-shadow:
    0 0 12px rgba(0,255,240,0.4),
    inset 0 0 12px rgba(0,255,240,0.2);
}

@media (min-width: 1024px) {
  .packs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* massimo 4 per riga */
    gap: 32px;                              /* spazio tra le card */
    max-width: 1200px;                      /* larghezza massima della griglia */
    margin: 0 auto;                         /* centra la griglia nello schermo */
  }
}

/* INFO */
.info {
  margin-top: 24px;
}

.info h2 {
  font-weight: 400;
  margin-bottom: 8px;
}

.info p {
  opacity: 0.5;
  font-size: 0.9rem;
}

.price {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* OVERLAY TRANSITION */
.page-overlay {
  position: fixed;
  inset: 0;
  background: #050505;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(.7,0,.2,1);
  z-index: 20;
}

.page-overlay.active {
  transform: translateY(0);
}

/* ============================
   PRODUCT PAGE
============================ */
.product-page {
  padding-top: 120px;
}

/* HERO */
.product-hero {
  position: relative;
  height: clamp(320px, 60vh, 520px);
  overflow: hidden;
}

.product-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,5,0.2), rgba(5,5,5,0.95));
}

.hero-content {
  position: absolute;
  bottom: 32px;
  left: 24px;
  right: 24px;
  max-width: 600px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
}

.hero-content p {
  opacity: 0.6;
  margin: 16px 0;
}

.hero-content .price {
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

/* PRODUCT CARD */
.product-content {
  padding: 48px 16px 96px;
  max-width: 900px;
  margin: 0 auto;
}

.product-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,255,240,0.15);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(0,255,240,0.08),
              inset 0 0 20px rgba(0,255,240,0.05);
}

/* AUDIO PLAYER PRO */
.audio-player-pro {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.audio-player-pro button {
  background: transparent;
  border: 1px solid rgba(0,255,240,0.6);
  color: #00fff0;
  padding: 10px 18px;
  letter-spacing: 0.15em;
  cursor: pointer;
}

.progress-container {
  position: relative;
  height: 2px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
  border-radius: 1px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #00fff0;
  box-shadow: 0 0 12px #00fff0;
  transition: width 0.1s linear;
}

.audio-player-pro .time {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

@media (max-width: 600px) {
  .audio-player-pro {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* DESCRIPTION */
.product-description h2 {
  font-weight: 400;
  margin-bottom: 16px;
}

.product-description p {
  opacity: 0.6;
  line-height: 1.7;
}

.features {
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.features li {
  margin-bottom: 8px;
  opacity: 0.8;
}

/* BUY BUTTON */
.buy-btn {
  width: 100%;
  margin-top: 48px;
  padding: 20px;
  background: linear-gradient(90deg, #00fff0, #00b3a8);
  color: #050505;
  border: none;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0,255,240,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,255,240,0.6);
}

/* ============================
   HERO VIDEO - VERSIONE DESKTOP
============================ */
@media (min-width: 1024px) {
  .product-hero video {
    object-fit: contain;
    object-position: center;
    background: #050505;
  }
}

/* ============================
   HOME HERO
============================ */
.home-hero {
  position: relative;
  height: clamp(400px, 70vh, 600px);
  overflow: hidden;
}

.home-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,5,0.2), rgba(5,5,5,0.95));
}

/* CONTENUTO HERO */
.hero-content {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  text-align: center;
  color: #00fff0;
}

/* TESTO PRINCIPALE */
.hero-main {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  line-height: 1.4;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 24px;
}

/* BOTTONE */
.hero-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 16px 32px;
  background: linear-gradient(90deg, #00fff0, #00b3a8);
  color: #050505;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  box-shadow: 0 0 30px rgba(0,255,240,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,255,240,0.6);
}

/* ============================
   HOME PRODUCTS GRID
============================ */
.home-products {
  padding: 120px 48px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 64px;
  color: #00fff0;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}

/* PRODUCT CARD */
.product-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,255,240,0.15);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(0,255,240,0.4);
}

.product-card .media {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.product-card .media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover video {
  transform: scale(1.05);
}

.product-card .neon {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0,255,240,0);
  transition: border 0.3s, box-shadow 0.3s;
}

.product-card:hover .neon {
  border: 1px solid rgba(0,255,240,0.6);
  box-shadow: 0 0 12px rgba(0,255,240,0.4), inset 0 0 12px rgba(0,255,240,0.2);
}

.product-card .info {
  padding: 16px;
}

.product-card h3 {
  font-weight: 400;
  margin-bottom: 8px;
}

.product-card p {
  opacity: 0.6;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.price {
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 16px;
}

.access-btn {
  display: inline-block;
  padding: 6px 24px; /* ALTEZZA BOTTONE */
  background: linear-gradient(90deg, #00fff0, #00b3a8);
  color: #050505;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: transform 0.2s, box-shadow 0.2s;
}

.access-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,255,240,0.4);
}

/* MOBILE */
@media(max-width: 600px) {
  .hero-content {
    bottom: 24px;
    left: 16px;
    right: 16px;
  }
  .home-products {
    padding: 80px 16px;
  }
}

/* ============================
   NEON MENU ANIMATION
============================ */
@keyframes neonIn {
  0% {
    opacity: 0;
    text-shadow: 0 0 0 #00fff0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 12px #00fff0, 0 0 24px #00fff0;
    transform: translateX(0);
  }
}

/* ======= OFFSET PER HEADER FIXED ======= */
main {
  flex: 1;            /* fa da “spazio flessibile” tra header e footer */
  padding-top: 120px; /* altezza stimata dell'header */
}

/* CANVAS FORMA D'ONDA */
#waveform {
  width: 100%;
  height: 60px;
  background: rgba(5,5,5,0.05);
  border-radius: 4px;
  margin: 8px 0; /* spazio tra testo e barra */
  display: block;
}

/* STILE LINEA FORMA D'ONDA */
.audio-player-pro canvas {
  border: 1px solid rgba(0,255,240,0.2);
  box-shadow: 0 0 10px rgba(0,255,240,0.3);
}

/* HEADER CENTRATO */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  flex: 1;
  text-align: center;
}

.header-right {
  flex: 0;
}

.logo img {
  height: 60px; /* puoi modificare l'altezza del logo */
}

/* CENTRA TUTTO ORIZZONTALMENTE NEL HERO */
.hero-content {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%); /* centra il contenuto orizzontalmente */
  max-width: 700px;
  text-align: center; /* centra testi e bottoni */
  color: #00fff0;
}

/* Bottone già inline-block, quindi con text-align: center rimane centrato */
.hero-btn {
  display: inline-block; /* importante per il centraggio */
  margin-top: 24px;
  padding: 16px 32px;
  background: linear-gradient(90deg, #00fff0, #00b3a8);
  color: #050505;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  box-shadow: 0 0 30px rgba(0,255,240,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* CENTRA TUTTO ORIZZONTALMENTE NEL HERO */
.hero-content {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 700px;
  width: 90%;          /* aggiunto per adattarsi allo schermo piccolo */
  text-align: center;
  color: #00fff0;
}

/* Bottone già inline-block, quindi con text-align: center rimane centrato */
.hero-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 16px 32px;
  background: linear-gradient(90deg, #00fff0, #00b3a8);
  color: #050505;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  box-shadow: 0 0 30px rgba(0,255,240,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* ====== VERSIONE MOBILE ====== */
@media (max-width: 600px) {
  .hero-content {
    bottom: 20px;       /* più spazio sopra il bordo */
    left: 50%;
    transform: translateX(-50%);
    max-width: 95%;     /* prende quasi tutta la larghezza dello schermo */
    width: 95%;
    padding: 0 10px;   /* un po’ di padding interno */
    font-size: 0.9rem;  /* riduce leggermente i testi per stare meglio */
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem); /* riduce il titolo su mobile */
    line-height: 1.1;
  }

  .hero-content p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .hero-btn {
    padding: 12px 24px;
    font-size: 0.8rem;
  }
}

.audio-player-pro {
  display: flex;
  align-items: center;
  gap: 16px;
}

.audio-player-pro button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-player-pro #waveform {
  flex: 1;
  height: 60px;
  border-radius: 8px;
  background: #111;
  cursor: pointer;
}

.audio-player-pro .time {
  width: 50px;
  text-align: right;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ======= FOOTER ======= */
.footer {
  background: #050505;
  padding: 32px 0 24px;
  text-align: center;
  color: #00fff0;
  margin-top: auto; /* mantiene il footer in fondo */
}

/* linea superiore come header */
.footer-line {
  width: 80%;
  height: 1px;
  background: #fff;
  opacity: 0.4;
  margin: 0 auto 24px;
}

/* links */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links a {
  opacity: 0.6;
  transition: opacity 0.3s ease, text-shadow 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  text-shadow: 0 0 8px #00fff0;
}

/* mobile */
@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* GET CENTRATO */
.pack-card .info {
  padding: 16px;
  text-align: center; /* CENTRA TUTTO ORIZZONTALMENTE */
}

.pack-card .info h2,
.pack-card .info p,
.pack-card .info .price {
  text-align: center; /* opzionale, se vuoi centrare anche testo e prezzo */
}

/* NUOVO BOTTONE */
.btn-get-terminal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  font-family: "Share Tech Mono", monospace;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #7ffcff;
  background: rgba(0,255,220,0.06);
  border: 1px solid rgba(0,255,220,0.35);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(0,255,220,0.15),
    0 0 12px rgba(0,255,220,0.25),
    0 6px 24px rgba(0,0,0,0.6);
  position: relative;
  transition: all .18s ease;
  margin-top: 12px; /* regola il valore a tuo piacimento */
}

.btn-get-terminal::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(0,255,220,0.25);
  border-radius: 6px;
  opacity: .5;
}

.btn-get-terminal:hover {
  color: #baffff;
  background: rgba(0,255,220,0.12);
  box-shadow:
    inset 0 0 0 1px rgba(0,255,220,0.25),
    0 0 20px rgba(0,255,220,0.45),
    0 8px 30px rgba(0,0,0,0.8);
}

.btn-get-terminal:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 0 0 1px rgba(0,255,220,0.4),
    0 0 10px rgba(0,255,220,0.3);
}

