/* Grow Italia - Main Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  --primary-blue: #2563eb;
  --light-blue: #3b82f6;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --green-600: #059669;
  --green-700: #047857;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  font-weight: 400;
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--gray-800);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: var(--white);
  padding: 8rem 0 4rem;
  margin-top: 70px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--green-600);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 400;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--green-700);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-blue);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--gray-800);
  margin-bottom: 3rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Cards */
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.card-icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.card p {
  color: var(--gray-600);
}

/* Statistics */
.stats {
  background: var(--gray-100);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 600;
  color: var(--primary-blue);
  display: block;
}

.stat-label {
  color: var(--gray-600);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* CTA Section */
.cta {
  background: var(--primary-blue);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: var(--gray-800);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-section a {
  color: var(--gray-200);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  color: var(--white);
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: var(--light-blue);
}

.footer-bottom {
  border-top: 1px solid var(--gray-600);
  padding-top: 1rem;
  text-align: center;
  color: var(--gray-200);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-800);
  color: var(--white);
  padding: 1rem;
  z-index: 1001;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  flex: 1;
  margin-right: 1rem;
}

.cookie-text a {
  color: var(--light-blue);
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 400;
  color: var(--gray-800);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Blog Styles */
.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.blog-title a {
  color: var(--gray-800);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-title a:hover {
  color: var(--primary-blue);
}

.blog-excerpt {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

/* Article Styles */
.article-header {
  background: var(--gray-100);
  padding: 4rem 0;
  margin-top: 70px;
  text-align: center;
}

.article-meta {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.article-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin: 2rem auto;
  display: block;
}

/* FAQ Styles */
.faq-item {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  background: var(--gray-100);
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--gray-200);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-blue);
  transition: transform 0.3s ease;
}

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

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

.faq-answer.active {
  max-height: 200px;
  padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-text {
    margin-right: 0;
    text-align: center;
  }

  .cookie-actions {
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }