/* ===========================================
   VERCAM SERVIZI - Modern CSS
   =========================================== */

/* CSS Custom Properties */
:root {
  --vercam-primary: #43e97b;
  --vercam-secondary: #198754;
  --vercam-accent: #00b4d8;
  --vercam-dark: #0d6efd;
  --text-primary: #222;
  --text-secondary: #666;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --shadow-light: rgba(67, 233, 123, 0.07);
  --shadow-medium: rgba(67, 233, 123, 0.15);
  --shadow-strong: rgba(67, 233, 123, 0.25);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===========================================
   ANIMATIONS & EFFECTS
   =========================================== */

.fade-in {
  opacity: 1;
  transform: none;
  animation: fadeInCard 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */

.servizi-title {
  font-size: 3rem;
  font-weight: 900;
  color: const(--vercam-secondary);
  letter-spacing: 1px;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-shadow: 0 4px 24px const(--shadow-medium);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.servizi-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, const(--vercam-primary) 0%, const(--vercam-secondary) 100%);
  border-radius: 2px;
}

.servizio-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: const(--vercam-secondary);
  margin-bottom: 1rem;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.5px;
}

.servizio-text {
  font-size: 1.0625rem;
  color: const(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ===========================================
   SERVICE BUTTON
   =========================================== */

.servizio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, const(--vercam-primary) 0%, const(--vercam-secondary) 100%);
  color: const(--bg-white);
  font-weight: 700;
  border-radius: const(--border-radius-xl);
  border: none;
  box-shadow: 0 8px 32px const(--shadow-medium);
  font-size: 1.125rem;
  padding: 1rem 3rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all const(--transition-normal);
  position: relative;
  overflow: hidden;
}

.servizio-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.servizio-btn:hover::before {
  left: 100%;
}

.servizio-btn:hover, .servizio-btn:focus {
  background: linear-gradient(135deg, const(--vercam-secondary) 0%, const(--vercam-primary) 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px const(--shadow-strong);
  color: const(--bg-white);
  text-decoration: none;
}

.servizio-btn .bi {
  font-size: 1.25rem;
  transition: all const(--transition-normal);
  animation: iconPulse 2s infinite;
}

.servizio-btn:hover .bi {
  transform: scale(1.2) rotate(-8deg);
  animation: iconPulseFast 0.7s infinite;
}

@keyframes iconPulse {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(67, 233, 123, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(67, 233, 123, 0.6));
  }
}

@keyframes iconPulseFast {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(67, 233, 123, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 16px const(--vercam-primary));
  }
}

/* ===========================================
   WEB3 BADGE
   =========================================== */

.badge-web3 {
  display: inline-block;
  background: linear-gradient(135deg, const(--vercam-primary) 0%, const(--vercam-secondary) 100%);
  color: const(--bg-white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.625rem 1.5rem;
  border-radius: const(--border-radius-xl);
  box-shadow: 0 4px 16px const(--shadow-medium);
  letter-spacing: 0.5px;
  position: absolute;
  top: -1.5rem;
  right: 2rem;
  z-index: 3;
  animation: badgePulse 2.5s infinite, fadeInBadge 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.3);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(67, 233, 123, 0.3);
  }
}

@keyframes fadeInBadge {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===========================================
   SERVICE CARDS
   =========================================== */

.servizio-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
  min-height: 400px;
  padding: 3rem 3vw;
  box-sizing: border-box;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 64px const(--shadow-medium), 0 2px 12px const(--shadow-light);
  border: 1px solid rgba(67, 233, 123, 0.15);
  border-radius: const(--border-radius-xl);
  position: relative;
  z-index: 2;
  transition: all const(--transition-normal);
  animation: fadeInCard 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.servizio-full:hover {
  box-shadow: 0 32px 96px const(--shadow-strong), 0 2px 12px const(--shadow-light);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-4px);
}

.servizio-img {
  width: 100%;
  max-width: 370px;
  border-radius: const(--border-radius-lg);
  box-shadow: 0 16px 48px const(--shadow-medium);
  transition: const(--transition-normal);
  margin-bottom: 2rem;
}

.servizio-img:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 24px 64px const(--shadow-strong);
}

/* ===========================================
   PARTICLES BACKGROUND
   =========================================== */

.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(120deg, const(--vercam-primary) 0%, rgba(234, 255, 242, 0.8) 100%);
  opacity: 0.15;
  animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-40px) scale(1.2);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* ===========================================
   LAYOUT
   =========================================== */

.servizi-list {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: none;
  padding: 0;
  position: relative;
  z-index: 1;
}

.servizio-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ===========================================
   MOBILE RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 991px) {
  .servizio-full {
    padding: 3.5rem 2.5rem;
    border-radius: const(--border-radius-xl);
    max-width: 95vw;
    margin: 0 auto 3rem auto;
    min-height: 350px;
  }

  .servizio-img {
    max-width: 85vw;
    border-radius: const(--border-radius-lg);
    margin: 0 auto 2rem auto;
    display: block;
  }

  .badge-web3 {
    right: 1.5rem;
    font-size: 1.0625rem;
    padding: 0.75rem 1.5rem;
    top: -1.25rem;
  }

  .servizi-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .servizio-title {
    font-size: 1.375rem;
  }

  .servizio-text {
    font-size: 1.125rem;
    line-height: 1.7;
  }

  .servizio-btn {
    font-size: 1.0625rem;
    padding: 1rem 2.5rem;
  }
}