/* Modern Landing Page Enhancements */

/* Smooth Animations */
* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section - Modern Gradient with Animation */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  animation: fadeInUp 0.8s ease-out both;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .btn-landing {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern Buttons */
.btn-landing,
.btn-cta-section {
  padding: 18px 40px !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
  position: relative;
  overflow: hidden;
}

.btn-landing::before,
.btn-cta-section::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.5s;
}

.btn-landing:hover::before,
.btn-cta-section:hover::before {
  left: 100%;
}

.btn-landing:hover,
.btn-cta-section:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3) !important;
}

/* Mockup with hover effect */
.hero-mockup {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-mockup img {
  border-radius: 20px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.5s ease !important;
}

.hero-mockup:hover img {
  transform: translateY(-10px) scale(1.02);
}

/* Problem Cards - Glassmorphism Effect */
.problem-card {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.problem-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.problem-card h3 {
  position: relative;
  padding-left: 20px;
}

.problem-card h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: currentColor;
  border-radius: 2px;
}

/* Benefits List - Modern Style */
.benefits-list li {
  padding: 24px 0 24px 60px !important;
  position: relative;
  transition: all 0.3s ease;
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 24px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, currentColor, currentColor);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: 700;
  opacity: 0.9;
}

.benefits-list li:hover {
  padding-left: 70px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

/* Include Items - Icon Cards with Hover */
.include-item {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%) !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.include-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.include-item:hover::before {
  transform: scaleX(1);
}

.include-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

.include-icon {
  font-size: 3em !important;
  margin-bottom: 16px !important;
  transition: transform 0.4s ease;
}

.include-item:hover .include-icon {
  transform: scale(1.2) rotate(5deg);
}

/* Portfolio Placeholder - Modern Style */
.portfolio-placeholder {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%) !important;
  border: 2px solid #d0d0d0 !important;
  border-radius: 16px !important;
  transition: all 0.4s ease !important;
  position: relative;
  overflow: hidden;
}

.portfolio-placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.portfolio-placeholder:hover::before {
  width: 400px;
  height: 400px;
}

.portfolio-placeholder:hover {
  transform: scale(1.05);
  border-color: currentColor !important;
}

/* Process Steps - Timeline Style */
.step {
  opacity: 0;
  animation: slideIn 0.6s ease-out forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }
.step:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-number {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease !important;
}

.step:hover .step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2) !important;
}

/* FAQ - Modern Accordion */
.accordion details {
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.accordion details[open] {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px);
}

.accordion summary {
  transition: all 0.3s ease !important;
  padding: 20px 24px !important;
}

.accordion summary:hover {
  padding-left: 30px !important;
  background: rgba(0, 0, 0, 0.02);
}

/* Form - Modern Glass Effect */
.consultation-form {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Antispam Box - Modern Style */
.antispam-group {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border: 2px solid #fbbf24 !important;
  position: relative;
  overflow: hidden;
}

.antispam-group::before {
  content: '🔒';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5em;
  opacity: 0.3;
}

/* Sticky CTA - Animated Entrance */
.cta-sticky-landing {
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Section Transitions */
section {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Scroll Reveal - Sections appear as you scroll */
@media (prefers-reduced-motion: no-preference) {
  section {
    animation: none;
    opacity: 1;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--landing-accent, #650B7C) #f1f1f1;
}

/* Add subtle parallax to hero */
@media (min-width: 768px) {
  .hero {
    background-attachment: fixed;
  }
}

/* Custom Scrollbar — segue il colore della landing */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--landing-accent, #650B7C), var(--landing-accent-dark, #541064));
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--landing-accent-dark, #541064);
}

/* Loading Animation for Images */
img {
  opacity: 0;
  animation: fadeInImage 0.6s ease-out forwards;
}

@keyframes fadeInImage {
  to {
    opacity: 1;
  }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .btn-landing,
  .btn-cta-section {
    padding: 16px 32px !important;
  }
  
  .include-icon {
    font-size: 2.5em !important;
  }
}
