.bitti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 2rem auto;
}

.bitti-card {
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  cursor: pointer;
}


.bitti-card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.bitti-card-footer {
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.bitti-card-footer h3 {
  font-size: 1.1rem;
  margin: 0;
  flex: 1;
}

.bitti-btn {
  display: flex;
  align-items: center;
  background-color: #00CFFB;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.bitti-btn:hover {
  background-color: #009dc6;
}

.bitti-icona {
  margin-left: 5px;
  display: inline-block;
  width: 10px;
  height: 10px;
  background: transparent;
  border-left: 6px solid white;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: border-left-color 0.2s;
}

.bitti-btn:hover .bitti-icona {
  border-left-color: #ffffff;
}

.fake-card {
  background-color: #080540;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fake-card h2 {
  font-size: 1.4rem;
  margin: 0;
}

.fake-card p {
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .bitti-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
 .bitti-slider-wrapper {
    overflow-x: hidden;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    padding-bottom: 40px; /* spazio per i dots */
  }

  .bitti-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 8vw 20px 8vw;
    width: 100vw;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .bitti-grid::-webkit-scrollbar { display: none; }

  .bitti-card {
    min-width: 84vw;
    max-width: 84vw;
    flex: 0 0 84vw;
    scroll-snap-align: center;
    margin: 0;
    transition: box-shadow .2s;
  }

  .fake-card {
    display: none !important;
  }

  
  .bitti-slider-dots {
    text-align: center;
    position: absolute;
    left: 0; right: 0; bottom: 12px;
    z-index: 5;
    pointer-events: none;
  }
  .bitti-slider-dot {
    display: inline-block;
    width: 32px;
    height: 4px;
    margin: 0 4px;
    border-radius: 2px;
    background: #d1d1d1;
    opacity: 0.5;
    transition: background 0.2s, opacity 0.2s;
    pointer-events: none;
  }
  .bitti-slider-dot.active {
    background: #080540;
    opacity: 1;
  }
}

