/* RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #000;
  color: #fff;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

/* INTRO ANIMAZIONE */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
.intro-content {
  text-align: center;
  width: 100%;
}
.img-frame-poster {
  width: 160px;
  height: 160px;
  margin: 0 auto 25px;
  border-radius: 50%;
  border: 3px solid #bc13fe;
  overflow: hidden;
}
.intro-img-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intro-text {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 25px;
}
.loader-container {
  width: 180px;
  height: 4px;
  background: #222;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}
.loader-bar {
  width: 0;
  height: 100%;
  background: #bc13fe;
  animation: load 3.5s forwards;
}
@keyframes load {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* HEADER E NAVIGAZIONE */
header {
  background: #000;
  padding: 15px;
  border-bottom: 2px solid #bc13fe;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid #bc13fe;
}
.logo {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}
.logo span {
  color: #bc13fe;
}

nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  width: 100%;
  padding: 5px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
nav::-webkit-scrollbar {
  display: none;
}
.filter-btn {
  background: #1a1a1a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid #333;
  white-space: nowrap;
  font-weight: bold;
}

/* SEZIONI TITOLI */
.section-title {
  padding: 25px 15px 15px;
  font-size: 22px;
  color: #25d366;
  font-weight: 900;
  text-transform: uppercase;
}
.all-products-banner {
  background: #bc13fe;
  color: #fff;
  padding: 14px;
  text-align: center;
  margin: 20px 0 10px;
  font-weight: 900;
  text-transform: uppercase;
}

/* SLIDER PREFERITI */
.slider-container {
  overflow-x: auto;
  padding: 0 15px 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.slider-track {
  display: flex;
  gap: 15px;
}

/* GRIGLIA PRODOTTI (2 COLONNE FISSE) */
.categories-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  padding: 12px !important;
}
.cat-card {
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
}
.cat-box {
  width: 100%;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.product-name {
  padding: 12px 8px;
  font-size: 12px;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TASTI WHATSAPP */
.wa-cat-btn {
  display: block;
  background: #25d366;
  color: #fff;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
}

/* DESKTOP */
@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    max-width: 1200px;
    margin: 0 auto;
  }
}
