/* Enhanced Hero Results - Miglioramenti UX per risultati analisi satellitare */

:root {
  --hero-primary: #1e40af;
  --hero-secondary: #3b82f6;
  --hero-success: #16a34a;
  --hero-warning: #f59e0b;
  --hero-info: #0ea5e9;
  --hero-light: #f8fafc;
  --hero-dark: #1e293b;
  --hero-border: #e2e8f0;
  --hero-shadow: rgba(0, 0, 0, 0.1);
  --hero-radius: 16px;
  --hero-radius-lg: 24px;
  --hero-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Analysis Results Container */
.enhanced-analysis-results {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--hero-radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  color: #1e293b;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.enhanced-analysis-results::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.03) 2px, transparent 2px),
    radial-gradient(circle at 80% 80%, rgba(16, 163, 74, 0.03) 2px, transparent 2px);
  background-size: 50px 50px;
  opacity: 1;
}

.enhanced-analysis-results > * {
  position: relative;
  z-index: 1;
}

/* Trust Header */
.analysis-trust-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.trust-badge {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  transition: var(--hero-transition);
}

.trust-badge:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.trust-badge i {
  color: var(--hero-warning);
}

/* Main Title */
.analysis-title {
  text-align: center;
  margin-bottom: 2rem;
}

.analysis-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: #1e293b;
}

.analysis-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 400;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Result Card */
.result-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--hero-radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--hero-transition);
  position: relative;
  overflow: hidden;
}

.result-card:hover {
  background: #fafafa;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.result-card.highlight {
  border: 2px solid var(--hero-warning);
  background: #fffbeb;
}

.result-card.highlight::before {
  content: 'VALORE PRINCIPALE';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hero-warning);
  color: var(--hero-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Card Icon */
.result-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--hero-transition);
}

.result-card:hover .result-icon {
  background: #e2e8f0;
  transform: scale(1.1);
}

/* Card Value */
.result-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1;
  color: #1e293b;
}

.result-label {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.result-description {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

/* Quality Indicator */
.quality-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #64748b;
}

.quality-emoji {
  font-size: 1.2rem;
}

/* CTA Section */
.analysis-cta {
  text-align: center;
  margin-top: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(45deg, #ffffff, #f8fafc);
  color: var(--hero-primary) !important;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: var(--hero-transition);
  position: relative;
  overflow: hidden;
}

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

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  background: linear-gradient(45deg, #ffffff, var(--hero-warning));
  color: var(--hero-dark) !important;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-main {
  font-size: 1.1rem;
  line-height: 1.2;
}

.cta-sub {
  font-size: 0.85rem;
  opacity: 0.8;
  font-weight: 500;
}

/* Count-up Animation */
.count-up {
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .enhanced-analysis-results {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .analysis-title h2 {
    font-size: 1.75rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .result-value {
    font-size: 2rem;
  }

  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta-text {
    align-items: center;
  }

  .trust-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .enhanced-analysis-results {
    padding: 1rem;
    border-radius: var(--hero-radius);
  }

  .analysis-title h2 {
    font-size: 1.5rem;
  }

  .result-value {
    font-size: 1.75rem;
  }

  .analysis-trust-header {
    justify-content: center;
  }
}