:root {
  /* Modern Design System Colors */
  --primary: #6a5acd;  /* Slate Blue */
  --primary-light: #8a7aed;
  --primary-dark: #4a3aa0;
  
  --secondary: #ff9a8b;  /* Soft Coral */
  --secondary-light: #ffb0a1;
  --secondary-dark: #e08a7b;
  
  --tertiary: #a0e7e5;  /* Pastel Teal */
  --tertiary-light: #b8f0ee;
  --tertiary-dark: #8cd7d5;
  
  /* Background Colors */
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --bg-dark: #202945;
  --bg-alt: #f0f7ff;
  
  /* Text Colors */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --text-white: #ffffff;
  
  /* Accent Colors */
  --accent-success: #b5e8d5;  /* Pastel Green */
  --accent-warning: #ffe4b5;  /* Pastel Yellow */
  --accent-danger: #ffb8b8;   /* Pastel Red */
  --accent-info: #b8e2f2;     /* Pastel Blue */
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  
  /* Animation Timing */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
  
  /* Font Families */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

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

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

.title {
  font-family: var(--font-heading);
}

.subtitle {
  font-family: var(--font-body);
}

.has-text-primary {
  color: var(--primary) !important;
}

/* Navbar Styles */
.navbar {
  padding: var(--spacing-sm) 0;
  transition: all var(--transition-normal) ease-in-out;
}

.navbar.is-transparent {
  background-color: transparent;
}

.navbar-item {
  font-weight: 500;
  transition: color var(--transition-fast) ease-in-out;
}

.navbar-brand .title {
  margin-bottom: 0;
}

.navbar-burger {
  transition: all var(--transition-fast) ease-in-out;
}

.navbar-burger:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Button Styles */
.button {
  font-family: var(--font-body);
  font-weight: 500;
  transition: all var(--transition-normal) cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button.is-primary {
  background-color: var(--primary);
}

.button.is-primary:hover {
  background-color: var(--primary-light);
}

.button.is-primary.is-outlined {
  border-color: var(--primary);
  color: var(--primary);
}

.button.is-primary.is-outlined:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

.button.is-rounded {
  border-radius: 50px;
}

/* Hero Section */
.hero.is-primary {
  background-color: var(--primary);
}

.hero.is-primary .title,
.hero.is-primary .subtitle,
.hero.is-primary p {
  color: var(--text-white);
}

.hero-body {
  padding: var(--spacing-xl) var(--spacing-md);
}

.hero .buttons {
  margin-top: var(--spacing-lg);
}

.arrow-down {
  animation: bounce 2s infinite;
  margin-bottom: var(--spacing-md);
}

.arrow-down svg {
  transition: transform var(--transition-normal) ease;
}

.arrow-down:hover svg {
  transform: translateY(4px);
}

/* Research Section */
#ricerca {
  background-color: var(--bg-white);
  padding: var(--spacing-xxl) var(--spacing-md);
}

.stat-widget {
  text-align: center;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  background-color: var(--bg-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal) ease-in-out;
}

.stat-widget:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-widget .title {
  margin-bottom: var(--spacing-xs);
  color: var(--primary);
}

.image-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.image-container img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow) ease;
  object-fit: cover;
}

.image-container:hover img {
  transform: scale(1.05);
}

/* Sustainability Section */
#sostenibilita {
  background-color: var(--bg-light);
  padding: var(--spacing-xxl) var(--spacing-md);
}

.sustainability-goal {
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all var(--transition-normal) ease;
}

.sustainability-goal:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sustainability-goal .title {
  color: var(--primary);
}

/* External Resources */
.card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal) cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.card-image {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow) ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h4 {
  margin-top: 0;
}

.card .button {
  margin-top: auto;
}

/* Success Stories Section */
#storie {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding: var(--spacing-xxl) var(--spacing-md);
}

.tags {
  margin-top: var(--spacing-md);
}

.tag {
  margin-right: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
}

.tag.is-primary.is-light {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.tag.is-info.is-light {
  background-color: var(--accent-info);
  color: #396b85;
}

.tag.is-success.is-light {
  background-color: var(--accent-success);
  color: #2c7a5e;
}

.tag.is-warning.is-light {
  background-color: var(--accent-warning);
  color: #8a6d2f;
}

.tag.is-danger.is-light {
  background-color: var(--accent-danger);
  color: #9e3a3a;
}

.tag.is-link.is-light {
  background-color: #d4e6f6;
  color: #2160a5;
}

/* Press Section */
.press-quotes {
  margin-bottom: var(--spacing-xl);
}

.press-quote {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal) ease;
}

.press-quote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.quote-content blockquote {
  font-size: 1.2rem;
  font-style: italic;
  border-left: 4px solid var(--primary);
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.quote-source {
  display: flex;
  align-items: center;
}

.quote-source img {
  width: 120px;
  height: 60px;
  object-fit: contain;
  margin-right: var(--spacing-md);
}

.logos-container {
  padding: var(--spacing-lg) 0;
}

.logos-container img {
  max-width: 100%;
  height: auto;
  opacity: 0.7;
  transition: opacity var(--transition-normal) ease;
}

.logos-container img:hover {
  opacity: 1;
}

/* Pricing Section */
#prezzi {
  background-color: var(--bg-light);
  padding: var(--spacing-xxl) var(--spacing-md);
}

.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.03);
  z-index: 2;
}

.ribbon {
  position: absolute;
  right: -30px;
  top: 20px;
  background-color: var(--primary);
  color: var(--text-white);
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: var(--shadow-sm);
}

.pricing {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.period {
  font-size: 1rem;
  color: var(--text-secondary);
}

.pricing-features {
  list-style-type: none;
  padding: 0;
  margin-bottom: var(--spacing-lg);
}

.pricing-features li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-description {
  color: var(--text-secondary);
  font-style: italic;
  margin-top: var(--spacing-md);
}

/* Contact Section */
#contatti {
  background-color: var(--bg-white);
  padding: var(--spacing-xxl) var(--spacing-md);
}

.contact-form .input, 
.contact-form .textarea, 
.contact-form .select select {
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast) ease;
}

.contact-form .input:focus, 
.contact-form .textarea:focus, 
.contact-form .select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.2);
}

.contact-form .checkbox {
  display: flex;
  align-items: center;
}

.social-links {
  margin-top: var(--spacing-lg);
}

.social-links a {
  text-decoration: none;
  transition: color var(--transition-fast) ease;
  margin-right: var(--spacing-md);
}

.social-links a:hover {
  color: var(--primary-light);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  padding: var(--spacing-xl) var(--spacing-md);
  color: var(--text-white);
}

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

.footer-links {
  list-style-type: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--text-white-bis);
  transition: color var(--transition-fast) ease;
}

.footer-links a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.newsletter-form .input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.newsletter-form .button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.copyright {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-xl);
}

/* Success Page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--bg-light);
}

.success-content {
  max-width: 600px;
  padding: var(--spacing-xl);
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: var(--spacing-lg);
}

/* Privacy and Terms Page */
.legal-page {
  padding-top: 100px;
  padding-bottom: var(--spacing-xxl);
}

.legal-content {
  background-color: var(--bg-white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .title.is-1 {
    font-size: 2.5rem;
  }
  
  .subtitle.is-3 {
    font-size: 1.5rem;
  }
  
  .stat-widget {
    margin-bottom: var(--spacing-md);
  }
  
  .buttons.is-centered {
    flex-direction: column;
  }
  
  .button.is-large {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .card-image img {
    height: 200px;
  }
  
  .quote-source {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .quote-source img {
    margin-bottom: var(--spacing-sm);
  }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .card-image img {
    height: 220px;
  }
}