/* ===== IMPORT FONTS MODERNI ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES OTTIMIZZATE ===== */
:root {
  /* Colori Principali - Migliorati per leggibilità */
  --primary-red: #dc2626;
  --primary-red-light: #ef4444;
  --primary-red-dark: #b91c1c;
  --secondary-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-cyan: #0891b2;
  
  /* Gradients Ottimizzati */
  --gradient-primary: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f97316 100%);
  --gradient-secondary: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #0891b2 100%);
  --gradient-background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  
  /* Colori Testo - Contrasto Migliorato */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  --text-white-soft: #f1f5f9;
  
  /* Background Colori */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent: #f1f5f9;
  --bg-dark: #1e293b;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-glass-dark: rgba(30, 41, 59, 0.95);
  
  /* Shadows Ottimizzate */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(220, 38, 38, 0.2);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gradient-background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.hero-buttons a {
  margin: 0 !important;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: black;
  color: white;
  padding: 0.5rem 2rem;
}

.top-left {
  margin-left: 0.5rem;
}

.top-right {
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .top-bar {
    padding: 0.5rem 1rem;
  }

  .top-left,
  .top-right {
    margin: 0;
  }
}

/* ===== BACKGROUND SOTTILE ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
  z-index: -1;
}

/* ===== CONTAINER E LAYOUT ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  width: 100%;
}

/* ===== HEADER MIGLIORATO ===== */
.header {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.header-content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl);
}

.header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  animation: slideInUp 1s ease-out;
}

.header h1 .highlight {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header .subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  font-weight: 500;
  animation: slideInUp 1s ease-out 0.2s both;
}

.header .description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
  animation: slideInUp 1s ease-out 0.4s both;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ===== SEZIONE COSA VENDIAMO ===== */
.product-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-primary);
  position: relative;
}

.product-hero {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.product-hero h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.product-hero .highlight {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-description {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text-secondary);
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.feature-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-lg);
  color: var(--text-white);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== PIANI SECTION ===== */
.plans-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-header .highlight {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PLANS GRID ===== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

/* ===== PLAN CARD MIGLIORATA ===== */
.plan-card {
  background: var(--bg-primary);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-red);
}

.plan-card.popular {
  border-color: var(--primary-red);
  transform: scale(1.05);
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.plan-card.popular::before {
  content: 'PIÙ POPOLARE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}

/* ===== PLAN HEADER ===== */
.plan-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.plan-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.currency {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 600;
}

.amount {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-red);
  line-height: 1;
}

.period {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== PLAN DISCOUNT ===== */
.plan-discount {
  background: var(--gradient-secondary);
  color: var(--text-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-md);
}

/* ===== PLAN DETAILS ===== */
.plan-details {
  background: var(--bg-accent);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  margin: var(--space-lg) 0;
}

.price-breakdown {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.discount-note {
  color: var(--secondary-blue);
  font-weight: 700;
}

.vat-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== PLAN FEATURES ===== */
.plan-features {
  margin: var(--space-xl) 0;
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid #e2e8f0;
  transition: all var(--transition-fast);
}

.feature:last-child {
  border-bottom: none;
}

.feature:hover {
  background: var(--bg-accent);
  padding-left: var(--space-sm);
  border-radius: var(--radius-md);
}

.feature-icon-small {
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.feature-text {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== BUTTONS MIGLIORATI ===== */
.btn-primary {
  display: inline-block;
  padding: var(--space-lg) var(--space-2xl);
  background: var(--gradient-primary);
  color: var(--text-white);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left var(--transition-normal);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
  display: inline-block;
  padding: var(--space-lg) var(--space-2xl);
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border: 2px solid var(--text-muted);
  border-radius: var(--radius-xl);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--text-white);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--bg-primary);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
}

.cta-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.cta-card p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-white-soft);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.footer p {
  margin-bottom: var(--space-md);
}

.footer a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--text-white);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  
  .plan-card.popular {
    transform: none;
  }
}

@media (max-width: 768px) {
  .header h1 {
    font-family: 'Poppins', sans-serif;
    /* font-size: clamp(3rem, 8vw, 5rem); */
     font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
    animation: slideInUp 1s ease-out;
  }
  .header-content {

    z-index: 2;
    padding: var(--space-1xl);
  }

  .container {
    padding: 0 var(--space-md);
  }
  
  .header {
    min-height: 80vh;
  }
  
  .plans-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .plan-card,
  .feature-card {
    padding: var(--space-lg);
  }
  
  .cta-card {
    padding: var(--space-xl);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }