/* 
 * FAQ SECTION STYLES
 * Stili dedicati alla sezione FAQ in stile moderno
 * My Place Malpensa - Copyright 2025
 */

:root {
  --faq-primary-color: #2196f3;
  --faq-text-color: #333;
  --faq-bg-color: #ffffff;
  --faq-hover-bg: #f8f9fa;
  --faq-border-color: rgba(0, 0, 0, 0.1);
  --faq-transition: all 0.3s ease;
}

.faq-section {
  padding: 5rem 0;
  background-color: #f9f9fb;
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 30% 70%, rgba(33, 150, 243, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.faq-section .container {
  position: relative;
  z-index: 2;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.faq-item {
  background: var(--faq-bg-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--faq-transition);
  cursor: pointer;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faq-text-color);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0;
  padding: 0;
}

.faq-icon {
  color: var(--faq-primary-color);
  font-size: 1.2rem;
  transition: var(--faq-transition);
}

.faq-answer {
  margin-top: 1rem;
  display: none;
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-item.active {
  background: var(--faq-hover-bg);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.5s ease;
}

.faq-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.faq-category-button {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--faq-text-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--faq-transition);
  border-radius: 25px;
  font-size: 0.95rem;
}

.faq-category-button:hover,
.faq-category-button.active {
  background: var(--faq-primary-color);
  color: white;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-question {
    font-size: 1rem;
  }
}

.faq-section h1, .faq-section h2, .faq-section h3, .faq-section .section-title {
  font-family: 'SF Pro Display', 'Helvetica Neue', 'Helvetica', sans-serif !important;
}
