:root {
  /* Colors */
  --color-background: rgba(10, 15, 30, 1);
  --color-surface: rgba(255, 255, 255, 0);
  --color-surface-hover: rgba(255, 255, 255, 0.05);
  --color-text: rgba(245, 245, 245, 1);
  --color-text-secondary: rgba(200, 200, 200, 0.8);
  --color-primary: rgba(59, 130, 246, 1);
  --color-primary-hover: rgba(96, 165, 250, 1);
  --color-primary-active: rgba(37, 99, 235, 1);
  --color-secondary: rgba(139, 92, 246, 0.3);
  --color-secondary-hover: rgba(139, 92, 246, 0.5);
  --color-secondary-active: rgba(124, 58, 237, 0.6);
  --color-border: rgba(139, 92, 246, 0.3);
  --color-btn-primary-text: rgba(255, 255, 255, 1);
  --color-card-border: rgba(139, 92, 246, 0.2);
  --color-error: rgba(239, 68, 68, 1);
  --color-success: rgba(34, 197, 94, 1);
  --color-warning: rgba(251, 146, 60, 1);
  --color-info: rgba(59, 130, 246, 1);
  --color-focus-ring: rgba(139, 92, 246, 0.4);

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-glass: 0 8px 32px 0 rgba(139, 92, 246, 0.15);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  /* Brand colors */
  --brand-primary: #3b82f6;
  --brand-accent: #8b5cf6;
  --brand-dark: #1e293b;
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: #0a0f1e;
  min-height: 100vh;
  position: relative;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-md); }

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.4);
}

.btn--primary {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn--outline {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.btn--outline:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}
/* ============================================
   HEADER NAVIGATION LAYOUT
   ============================================ */

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-direction: row; /* ← AGGIUNTO: forza orizzontale */
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}


/* ============================================
   SITOFACILE - SPECIAL STANDALONE BUTTON
   ============================================ */

.btn-sitofacile-special {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
  transition: all 0.3s ease;
  border: none;
}

.btn-sitofacile-special:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-sitofacile-special:active {
  transform: translateY(-1px);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: rgba(139, 92, 246, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-standard);
}

.form-control:hover {
  background-color: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
}

.form-control:focus {
  border-color: var(--brand-accent);
  outline: 2px solid rgba(139, 92, 246, 0.3);
  background-color: rgba(139, 92, 246, 0.1);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  color: rgba(200, 200, 200, 0.9);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component - 100% TRASPARENTE */
.card {
  background: transparent;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
}

.card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
  transform: translateY(-4px);
}

.card__body {
  padding: var(--space-16);
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) { .container { max-width: var(--container-sm); } }
@media (min-width: 768px) { .container { max-width: var(--container-md); } }
@media (min-width: 1024px) { .container { max-width: var(--container-lg); } }
@media (min-width: 1280px) { .container { max-width: var(--container-xl); } }

/* Utility classes */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

/* Header - FISSO 95% TRASPARENTE */
.header {
  background: rgba(10, 15, 30, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  padding: var(--space-16) 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.logo a {
  display: block;
  line-height: 1;
}

#logo-img {
  width: 100px;
  height: auto;
  vertical-align: middle;
}

/* Hero Section */
.hero {
  background: transparent;
  color: white;
  padding: calc(var(--space-32) * 3) 0 var(--space-32) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  margin-top: 60px;
}

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

.hero-content h1,
.hero-content h2 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-16);
  color: white;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.hero-content p {
  font-size: var(--font-size-xl);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

/* Sections */
.input-section,
.progress-section,
.results-section,
.contact-section {
  padding: var(--space-32) 0;
  background: transparent;
  position: relative;
  z-index: 2;
}

.audit-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Section - Centrato */
.contact-section .card {
  max-width: 700px;
  margin: 0 auto;
}

.contact-section h2,
.contact-section p {
  text-align: center;
}

.contact-section h2 {
  margin-bottom: var(--space-12);
}

.contact-section p {
  margin-bottom: var(--space-24);
}

.contact-form {
  max-width: 100%;
}


.analysis-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  font-weight: var(--font-weight-semibold);
  gap: var(--space-8);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.analysis-btn:hover {
  background: linear-gradient(135deg, #fb923c, #f97316);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(249, 115, 22, 0.5);
}

.progress-content {
  text-align: center;
  padding: var(--space-32);
}

.progress-spinner {
  font-size: 3rem;
  color: var(--brand-accent);
  margin-bottom: var(--space-16);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-16);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: var(--radius-full);
}

/* Score Overview */
.score-overview {
  display: flex;
  align-items: center;
  gap: var(--space-32);
  margin-bottom: var(--space-32);
  padding: var(--space-24);
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-standard);
}

.score-overview:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.score-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--brand-accent) 0deg, rgba(139, 92, 246, 0.2) 360deg);
  position: relative;
  flex-shrink: 0;
}

.score-circle::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  background: rgba(10, 15, 30, 0.95);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.score-number {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: white;
  position: relative;
  z-index: 1;
}

.score-label {
  font-size: var(--font-size-sm);
  color: rgba(200, 200, 200, 0.8);
  position: relative;
  z-index: 1;
  margin-top: var(--space-4);
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-20);
  margin-bottom: var(--space-32);
}

.category-card {
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  display: flex;
  align-items: center;
  gap: var(--space-16);
  transition: all 0.3s ease;
}

.category-card:hover {
  border-color: rgba(139, 92, 246, 0.6);
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.category-content h3,
.category-content h4 {
  margin-bottom: var(--space-8);
  font-size: var(--font-size-lg);
  color: white;
}

.category-score {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Issues */
.issues-section h2,
.issues-section h3,
.impact-section h2,
.impact-section h3 {
  margin-bottom: var(--space-20);
  color: white;
  font-size: var(--font-size-2xl);
}

.issues-list,
.impact-list {
  display: grid;
  gap: var(--space-12);
}

.issue-item,
.impact-item {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-base);
  padding: var(--space-16);
  border-left: 4px solid #ef4444;
  display: flex;
  align-items: center;
  gap: var(--space-12);
  transition: all 0.3s ease;
}

.issue-item:hover,
.impact-item:hover {
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateX(8px);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.impact-item {
  border-color: rgba(251, 146, 60, 0.3);
  border-left-color: #fb923c;
}

.impact-item:hover {
  border-color: rgba(251, 146, 60, 0.5);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.2);
}

.issue-icon,
.impact-icon {
  color: #ef4444;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.impact-icon {
  color: #fb923c;
}

/* CTA Section */
.cta-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: white;
}

.cta-card .card__body {
  text-align: center;
  padding: var(--space-32);
}

.cta-content h3 {
  color: white;
  margin-bottom: var(--space-16);
  font-size: var(--font-size-3xl);
}

.cta-content p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: var(--space-24);
}

.cta-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-16);
  margin: var(--space-24) 0;
}

.cta-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--font-size-base);
}

.cta-benefit i {
  color: var(--brand-accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

/* Footer - SENZA telefono/email */
.footer {
  background: rgba(10, 15, 30, 0.8);
  backdrop-filter: blur(20px);
  color: white;
  padding: var(--space-32) 0 var(--space-16);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-32);
  margin-bottom: var(--space-24);
}

.footer-brand h3,
.footer-brand h4,
.footer-contact h4,
.footer-services h4 {
  color: white;
  margin-bottom: var(--space-12);
}

.footer-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-services li {
  margin-bottom: var(--space-6);
  opacity: 0.8;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-16);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  opacity: 0.6;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-16);
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  z-index: 999;
}

.sticky-cta .btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  gap: var(--space-8);
}

/* Score Classes */
.score-excellent { background: conic-gradient(#22c55e calc(var(--score-percent) * 1%), rgba(139, 92, 246, 0.2) 0); }
.score-good { background: conic-gradient(#eab308 calc(var(--score-percent) * 1%), rgba(139, 92, 246, 0.2) 0); }
.score-poor { background: conic-gradient(#ef4444 calc(var(--score-percent) * 1%), rgba(139, 92, 246, 0.2) 0); }

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1,
  .hero-content h2 { font-size: var(--font-size-3xl); }
  .score-overview { flex-direction: column; text-align: center; }
  .categories-grid,
  .form-row,
  .footer-content,
  .cta-benefits { grid-template-columns: 1fr; }
}

/* ============================================
   ANIMATED BACKGROUND - INTERACTIVE WAVES
   ============================================ */

#animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0f1729 0%, #0a0f1e 100%);
}

.wave-line {
  position: absolute;
  width: 200%;
  height: 2px;
  opacity: 0;
  pointer-events: none;
}
/* ============================================
   ANIMATED BACKGROUND CANVAS
   ============================================ */

#animated-background {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  display: block !important;
}

.floating-lines-bg {
  display: none !important;
}
