.servizi-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.servizi-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="serviziGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="25" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="25" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23serviziGrain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.servizi-section .container {
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.section-header .title-decoration {
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

.servizi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.servizio-card {
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  animation: fadeInUp 0.6s ease-out;
  will-change: transform, opacity;
}

.servizio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image-container {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.card-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-from {
  font-size: 0.9rem;
  color: #999999;
  font-weight: 400;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: #000000;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.card-cta:hover::before {
  left: 100%;
}

.card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.cta-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.card-cta:hover .cta-icon {
  transform: translateX(3px);
}

.servizi-footer {
  text-align: center;
  margin-top: 2rem;
}

.footer-note {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
}

.footer-note strong {
  color: #ffffff;
  font-weight: 600;
}

.servizio-card:nth-child(1) { animation-delay: 0.1s; }
.servizio-card:nth-child(2) { animation-delay: 0.2s; }
.servizio-card:nth-child(3) { animation-delay: 0.3s; }
.servizio-card:nth-child(4) { animation-delay: 0.4s; }
.servizio-card:nth-child(5) { animation-delay: 0.5s; }
.servizio-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .servizi-section {
    padding: 3rem 0 1.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .servizi-grid {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .card-content {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .card-description {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .price-amount {
    font-size: 1.5rem;
  }

  .card-cta {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }

  .service-icon svg {
    width: 30px;
    height: 30px;
  }

  .footer-note {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .servizi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .card-content {
    padding: 1.75rem;
  }

  .card-title {
    font-size: 1.35rem;
  }

  .card-description {
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  .servizi-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .card-content {
    padding: 2.25rem;
  }

  .card-title {
    font-size: 1.6rem;
  }

  .card-description {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .card-price {
    margin-bottom: 2rem;
  }

  .price-amount {
    font-size: 2rem;
  }

  .card-cta {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
  }

  .service-icon {
    width: 90px;
    height: 90px;
  }

  .service-icon svg {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 1200px) {
  .servizi-section {
    padding: 4.5rem 0;
  }

  .servizi-grid {
    gap: 3rem;
  }

  .card-title {
    font-size: 1.75rem;
  }

  .card-description {
    font-size: 1.1rem;
  }
}

/* ===== SERVIZI BUTTONS ===== */
.servizi-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.btn-view-all,
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-view-all {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #000000;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-contact {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #a855f7 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-view-all:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.btn-contact:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
  background: linear-gradient(135deg, #db2777 0%, #c026d3 50%, #9333ea 100%);
}

.btn-view-all svg,
.btn-contact svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-view-all:hover svg,
.btn-contact:hover svg {
  transform: translateX(4px);
}