

/* Effetto ingresso */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenitore servizi */
.boxServizi {
    max-width: 900px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 30px;
}

/* Box uniformi */
.box {
    flex: 1 1 250px; /* Crescono e si riducono proporzionalmente */
    max-width: 250px;
    height: 300px;
    background: #fafafa;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Immagini */
.boxImage {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.box:hover .boxImage {
    transform: scale(1.1);
}

/* Testo nei box */
.intestazioniServizi {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.scritteServizi {
    text-align: justify;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

/* Contenitore esterno */
.containerServizi {
    background: url('../immagini/negozioEntrata.jpg');
    background: linear-gradient(135deg, #d5cfd4, #b2aeb1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 40px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.4s ease;
}

.containerServizi:hover {
    background: linear-gradient(135deg, #b2aeb1, #9d979b);
}

@media (max-width: 768px) {
  .containerServizi {
    display: flex;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
  }

  .containerServizi > div {
    flex: 0 0 80%; /* ogni box prende l’80% dello schermo */
    scroll-snap-align: center;
  }

  /* opzionale: nasconde la scrollbar, ma resta scorrevole */
  .containerServizi::-webkit-scrollbar {
    display: none;
  }
}


.newCenter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tagList {
    margin: 0;
    padding-inline: 0;
    list-style: none;
}

.tagList li {
    padding: 1rem;
    background: gainsboro;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem -0,25rem;
}

.scroller {
    max-width: 600px;
/*     outline: 3px solid lime; */
    overflow: hidden;
}

.scroller__inner {
    padding-block: 1rem;
    display: flex;
    gap: 1rem;
}

.scroller[data-animated="true"] {
  overflow: hidden;
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 40s)
    var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
  --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
  --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
  --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
  --_animation-duration: 60s;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}

.imgSource {
  width: 100px;
  height: 150px;
}

