/* ============================================
   SERVIZI PAGE STYLES
   ============================================ */

/* Hero Section */
.servizi-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 20%, #1f3a5f 40%, #4a6fa5 60%, #87ceeb 80%, #b8d4e8 100%);
  padding: 100px 5% 60px;
}

.servizi-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.servizi-hero .cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  filter: blur(2px);
  animation: moveCloud linear infinite;
}

.servizi-hero .cloud::before, .servizi-hero .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.servizi-hero .cloud-1 { width: 200px; height: 60px; top: 15%; left: -200px; animation-duration: 45s; }
.servizi-hero .cloud-1::before { width: 80px; height: 80px; top: -40px; left: 30px; }
.servizi-hero .cloud-1::after { width: 100px; height: 100px; top: -50px; left: 80px; }

.servizi-hero .cloud-2 { width: 160px; height: 50px; top: 25%; left: -160px; animation-duration: 35s; animation-delay: -15s; opacity: 0.12; }
.servizi-hero .cloud-2::before { width: 60px; height: 60px; top: -30px; left: 25px; }
.servizi-hero .cloud-2::after { width: 80px; height: 80px; top: -40px; left: 65px; }

.servizi-hero .cloud-3 { width: 240px; height: 70px; top: 10%; left: -240px; animation-duration: 55s; animation-delay: -25s; opacity: 0.1; }
.servizi-hero .cloud-3::before { width: 100px; height: 100px; top: -50px; left: 40px; }
.servizi-hero .cloud-3::after { width: 120px; height: 120px; top: -60px; left: 100px; }

.servizi-hero .cloud-4 { width: 180px; height: 55px; top: 35%; left: -180px; animation-duration: 40s; animation-delay: -5s; opacity: 0.08; }
.servizi-hero .cloud-4::before { width: 70px; height: 70px; top: -35px; left: 28px; }
.servizi-hero .cloud-4::after { width: 90px; height: 90px; top: -45px; left: 72px; }

.servizi-hero .cloud-5 { width: 220px; height: 65px; top: 5%; left: -220px; animation-duration: 50s; animation-delay: -35s; opacity: 0.18; }
.servizi-hero .cloud-5::before { width: 90px; height: 90px; top: -45px; left: 35px; }
.servizi-hero .cloud-5::after { width: 110px; height: 110px; top: -55px; left: 90px; }

@keyframes moveCloud {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 300px)); }
}

.servizi-hero .star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

.servizi-hero .star-1 { top: 8%; left: 10%; }
.servizi-hero .star-2 { top: 15%; left: 25%; animation-delay: 0.5s; }
.servizi-hero .star-3 { top: 5%; left: 45%; animation-delay: 1s; }
.servizi-hero .star-4 { top: 20%; left: 60%; animation-delay: 1.5s; }
.servizi-hero .star-5 { top: 12%; left: 75%; animation-delay: 2s; }
.servizi-hero .star-6 { top: 18%; left: 88%; animation-delay: 2.5s; }
.servizi-hero .star-7 { top: 25%; left: 15%; animation-delay: 0.3s; }
.servizi-hero .star-8 { top: 30%; left: 35%; animation-delay: 0.8s; }
.servizi-hero .star-9 { top: 22%; left: 55%; animation-delay: 1.3s; }
.servizi-hero .star-10 { top: 28%; left: 70%; animation-delay: 1.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.servizi-hero .gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.servizi-hero .orb-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #6c63ff 0%, #ff6b6b 100%);
  top: -150px;
  left: -100px;
  animation: floatOrb 10s ease-in-out infinite;
}

.servizi-hero .orb-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #ffdd57 0%, #6c63ff 100%);
  bottom: -100px;
  right: -50px;
  animation: floatOrb 10s ease-in-out infinite 5s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -50px) scale(1.1); }
}

.servizi-hero .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: none;
}

.servizi-hero .hero-badge {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: #ffdd57;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.servizi-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white !important;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.servizi-hero .text-highlight {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffdd57 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.servizi-hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9) !important;
  margin: 0;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
  padding: 80px 5%;
}

.container {
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 50px;
  color: #6c63ff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin: 1rem 0 0;
}

.text-gradient {
  background: linear-gradient(135deg, #6c63ff 0%, #ff6b6b 50%, #ffdd57 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   SERVICES GRID
   ============================================ */

.main-services {
  padding: 80px 20px;
  background: #ffffff !important;
  position: relative;
  z-index: 10;
  min-height: 300px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #6c63ff, #ffdd57);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(108, 99, 255, 0.15);
}

.service-card.featured {
  border: 2px solid #6c5ce7;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.03) 0%, rgba(255, 221, 87, 0.03) 100%);
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #6c63ff 0%, #5652d4 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #6c63ff 0%, #5652d4 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
}

.service-icon i {
  font-size: 1.8rem;
  color: white;
}

.service-card h3 {
  font-size: 1.4rem;
  color: #1a1a2e;
  margin: 0 0 0.75rem;
}

.service-card > p {
  color: #666 !important;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.service-features li {
  padding: 0.5rem 0;
  color: #555;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li::before {
  content: '✓';
  color: #27ae60;
  font-weight: bold;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c63ff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-link:hover {
  gap: 1rem;
  color: #6c63ff;
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process-section {
  padding: 80px 20px;
  background: #ffffff !important;
  position: relative;
  z-index: 10;
  min-height: 300px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  background: #ffffff !important;
  position: relative;
  z-index: 10;
  min-height: 200px;
  visibility: visible !important;
  opacity: 1 !important;
}

.process-step {
  text-align: center;
  position: relative;
  padding-top: 70px;
}

.step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6c63ff 0%, #5652d4 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 5px 20px rgba(108, 99, 255, 0.3);
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.5);
}

.step-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffdd57 0%, #f39c12 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-icon i {
  font-size: 1.2rem;
  color: white;
}

.step-content h3 {
  font-size: 1.2rem;
  color: #1a1a2e;
  margin: 0 0 0.5rem;
}

.step-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing-section {
  padding: 80px 20px;
  background: #ffffff !important;
  position: relative;
  z-index: 10;
  min-height: 300px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  visibility: visible !important;
  opacity: 1 !important;
}

.pricing-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.pricing-card.featured {
  transform: scale(1.03);
  box-shadow: 0 10px 40px rgba(108, 99, 255, 0.2);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-10px);
}

.pricing-header {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #eee 100%);
}

.pricing-header h3 {
  font-size: 1.5rem;
  color: #1a1a2e;
  margin: 0 0 0.25rem;
}

.pricing-header p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.pricing-body {
  padding: 2rem;
}

.price {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.price .amount {
  font-size: 3rem;
  font-weight: 700;
  color: #6c63ff;
}

.price .period {
  color: #999;
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: #555;
}

.pricing-features li i {
  width: 20px;
  color: #27ae60;
}

.pricing-features li.disabled {
  color: #999;
}

.pricing-features li.disabled i {
  color: #ddd;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, #6c63ff 0%, #ff6b6b 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 5%;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}

.cta-orb.orb-1 {
  width: 300px;
  height: 300px;
  background: white;
  top: -100px;
  left: -100px;
  animation: floatOrb 8s ease-in-out infinite;
}

.cta-orb.orb-2 {
  width: 250px;
  height: 250px;
  background: white;
  bottom: -80px;
  right: -50px;
  animation: floatOrb 8s ease-in-out infinite 4s;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: none;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: white;
  margin: 0 0 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin: 0 0 2rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'SEGO', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6c63ff 0%, #5652d4 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: #6c63ff;
  border: 2px solid #6c63ff;
}

.btn-outline:hover {
  background: #6c63ff;
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-primary i {
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: translateX(5px);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: none;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .servizi-hero {
    min-height: 50vh;
    padding: 80px 3% 40px;
  }
  
  .servizi-hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }
  
  .servizi-hero p {
    font-size: 0.95rem !important;
  }
  
  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .service-card h3 {
    font-size: 1.1rem;
  }
  
  .service-card p {
    font-size: 0.85rem;
  }
  
  .step-content p {
    font-size: 0.85rem;
  }
  
  .pricing-header h3 {
    font-size: 1.2rem;
  }
  
  .price .amount {
    font-size: 2rem;
  }
  
  .cta-content h2 {
    font-size: 1.3rem;
  }
  
  .cta-content p {
    font-size: 0.9rem !important;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 480px) {
  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
