.hero-section {
 background: linear-gradient(135deg, #0F1F2E 0%, #1E3A5F 55%, #2F6F7E 110%);
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

/* ========================================
   FEATURES DETAIL PAGE
   ======================================== */
.features-detail-section {
    padding: 80px 0;
    background: #ffffff;
}

.feature-row {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-row.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.feature-content {
    position: relative;
    padding: 20px;
}

.feature-number {
    font-size: 5rem;
    font-weight: 900;
    color: #e0e7ff;
    position: absolute;
    top: -20px;
    left: 0;
    z-index: 0;
    line-height: 1;
}

.feature-icon-small {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-success));
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-list li {
    padding: 10px 0;
    font-size: 1rem;
    color: #475569;
    display: flex;
    align-items: flex-start;
}

.feature-list li i {
    color: var(--bs-success);
    margin-right: 12px;
    margin-top: 3px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.view-screenshot-link {
    display: inline-flex;
    align-items: center;
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.2);
}

.feature-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.feature-image-container.clickable {
    cursor: pointer;
}

.feature-image-container.clickable:hover .feature-image {
    transform: scale(1.05);
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  background: linear-gradient(135deg, var(--bs-dark) 0%, #334155 100%);
  color: white;
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bs-success);
  display: block;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}


/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-section {
  padding: 80px 0;
  background: var(--bs-light);
}

.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  position: relative;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  height: 100%;
}

.pricing-card.featured {
  border-color: var(--bs-primary);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
  transform: scale(1.05);
}

.pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bs-success);
  color: white;
  padding: 5px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.pricing-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--bs-dark);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bs-primary);
  margin-bottom: 10px;
}

.pricing-period {
  color: #64748b;
  margin-bottom: 30px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features i {
  color: var(--bs-success);
  margin-right: 10px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bs-dark);
  color: #93a6b5;
  padding: 40px 0;
  text-align: center;
}

.footer a {
  color: #cdd7e0;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: #fff;
}


/* ========================================
   LIGHTBOX MODAL
   ======================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    padding: 20px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: var(--bs-primary);
    transform: rotate(90deg);
}

.lightbox-close i {
    font-size: 1.5rem;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.lightbox-close:hover i {
    color: white;
}

/* ========================================
   MODAL FORM STYLES
   ======================================== */
.modal-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #1e40af 100%);
    color: white;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.btn-submit {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-success));
    border: none;
    padding: 12px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Alert personalizzato */
.alert-custom {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-success-custom {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.alert-danger-custom {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
  animation: fadeInUp 0.8s ease forwards;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 991px) {
    .feature-row .col-lg-6:first-child {
        order: 2;
    }
    
    .feature-row .col-lg-6:last-child {
        order: 1;
    }
    
    .feature-row.order-lg-2 .col-lg-6:first-child {
        order: 1;
    }
    
    .feature-row.order-lg-2 .col-lg-6:last-child {
        order: 2;
    }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .pricing-card.featured {
    transform: scale(1);
    margin-bottom: 30px;
  }
  
  .feature-number {
    font-size: 3rem;
    top: -10px;
  }
  
  .feature-detail-title {
    font-size: 1.5rem;
  }
  
  .feature-detail-description {
    font-size: 1rem;
  }
  
  .feature-list li {
    font-size: 0.95rem;
  }
  
  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  
  .lightbox-close i {
    font-size: 1.2rem;
  }
  
  .lightbox-content {
    padding: 10px;
  }
}

@media (max-width: 576px) {
  .features-detail-section {
    padding: 40px 0;
  }
  
  .feature-content {
    padding: 10px 5px;
  }
  
  .feature-divider {
    margin: 40px 0;
  }
}