/* Variabili di colore ispirate alla bandiera italiana */
:root {
  --primary-color: #009246; /* Verde */
  --secondary-color: #ffffff; /* Bianco */
  --accent-color: #ce2b37; /* Rosso */
  --text-color: #333333;
  --light-color: #f5f5f5;
  --dark-color: #1a1a1a;
}

/* Reset di base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

/* Layout contenitore principale */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Intestazione */
header {
  background-color: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  margin-left: 10px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 30px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent-color);
}

/* Hero section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(0, 146, 70, 0.1), rgba(206, 43, 55, 0.1));
  border-radius: 0 0 50% 50% / 15%;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Sezioni */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

h2 {
  font-size: 2.2rem;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

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

.feature-card {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border-top: 3px solid transparent;
}

.feature-card:nth-child(1) {
  border-top-color: var(--primary-color);
}

.feature-card:nth-child(2) {
  border-top-color: var(--secondary-color);
}

.feature-card:nth-child(3) {
  border-top-color: var(--accent-color);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* Come funziona */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -40px;
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  display: none;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.cta-center {
  text-align: center;
  margin-top: 2rem;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid var(--primary-color);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-logo {
  margin-bottom: 2rem;
  flex-basis: 100%;
  text-align: center;
}

.footer-logo svg {
  margin-bottom: 1rem;
}

.footer-links {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-keywords,
.copyright {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsività */
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    display: block;
  }
  
  .footer-content {
    flex-wrap: nowrap;
  }
  
  .footer-logo,
  .footer-links,
  .footer-keywords,
  .copyright {
    width: auto;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .header-inner {
    flex-direction: column;
  }
  
  nav {
    margin-top: 1rem;
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav li {
    margin: 0 10px;
  }
  
  .step {
    flex-basis: 100%;
  }
  
  .feature-card {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.5rem;
  }
  
  nav li {
    margin: 0 5px;
  }
  
  .btn-primary {
    padding: 0.8rem 1.5rem;
  }
}
