/* Sezione FAQ */
.faq-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
}

/* Sezione Contatto */
.contact-section {
    padding: 60px 0;
    background-color: white;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Stili Responsive */
@media (max-width: 768px) {
    .faq-container,
    .contact-form-container {
        padding: 0 20px;
    }

    .faq-question {
        padding: 15px;
        font-size: 15px;
    }

    .faq-answer {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
    }
}

/* Newsletter Section */
.newsletter-section {
  position: relative;
  background-color: #f8f8f8;
  padding: 40px 20px;
  margin-top: 60px;
  text-align: center;
  overflow: hidden;
}

/* Bordi gradient animati */
.newsletter-section::before,
.newsletter-section::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, #00ff88, #007aff, #00ff88); /* verde → blu → verde */
  background-size: 300% 100%;
  animation: gradientMove 6s linear infinite;
}

.newsletter-section::before {
  top: 0;
}

.newsletter-section::after {
  bottom: 0;
}

/* Animazione continua */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-section h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #222;
}

.newsletter-section p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  flex: 1 1 300px;
  max-width: 400px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 12px 24px;
  background-color: #0071e3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.newsletter-form button:hover {
  background-color: #005bb5;
}

/* Stili generali e titoli */
h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 32px;
}

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