/* AVVOCÀ - FAQ PAGE STYLES */

.faq-container {
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* FAQ Hero Section */
.faq-container .hero {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #667eea 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.faq-container .hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.faq-container .hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Search Section */
.search-section {
  padding: 3rem 0;
  background: white;
  text-align: center;
}

.search-box {
  position: relative;
  max-width: 500px;
  margin: 0 auto 1rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #666;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
}

.search-help {
  color: #666;
}

.search-help a {
  color: #2a3f6c;
  text-decoration: none;
  font-weight: 500;
}

.search-help a:hover {
  text-decoration: underline;
}

/* FAQ Content */
.faq-content {
  padding: 3rem 0;
}

.faq-category {
  background: white;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Category Header */
.category-header {
  background: #2a3f6c;
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-icon {
  font-size: 1.5rem;
}

.category-title h2 {
  margin: 0;
  font-size: 1.3rem;
}

.category-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.3s ease;
}

.action-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* FAQ Items */
.faq-items {
  padding: 0;
}

.faq-item {
  border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-item.open .faq-question {
  background: #f0f4ff;
  border-bottom: 1px solid #e0e8ff;
}

.faq-question h3 {
  margin: 0;
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
}

.toggle-icon {
  font-size: 1.5rem;
  color: #2a3f6c;
  font-weight: bold;
  transition: transform 0.3s ease;
}

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

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.visible {
  max-height: 500px;
  padding: 0 2rem 1.5rem;
}

.answer-content {
  padding-top: 0.5rem;
}

.answer-content p {
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background: white;
}

.contact-card {
  text-align: center;
  padding: 3rem;
  background: #f8f9fa;
  border-radius: 16px;
}

.contact-card h2 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.contact-card > p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

.contact-option {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-option h3 {
  color: #333;
  margin-bottom: 0.5rem;
}

.contact-option p {
  color: #2a3f6c;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-option small {
  color: #888;
  font-size: 0.85rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Pulsanti coerenti con il resto del sito - stile home page */
.contact-actions .btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-actions .btn-primary {
  background: linear-gradient(135deg, #f39c12, #f1c40f, #f39c12);
  background-size: 200% 200%;
  color: #2c3e50;
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
  animation: gradientShift 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

.contact-actions .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.7s;
}

.contact-actions .btn-primary:hover::before {
  left: 100%;
}

.contact-actions .btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(243, 156, 18, 0.6);
  background: linear-gradient(135deg, #f1c40f, #f39c12, #e67e22);
  color: #2c3e50;
  text-decoration: none;
}

.contact-actions .btn-outline {
  background: linear-gradient(135deg, transparent, rgba(241, 196, 15, 0.1));
  color: #f1c40f;
  border: 2px solid #f1c40f;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.2);
  animation: buttonGlow 2s ease-in-out infinite alternate;
}

.contact-actions .btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.3), transparent);
  transition: left 0.7s;
}

.contact-actions .btn-outline:hover::before {
  left: 100%;
}

.contact-actions .btn-outline:hover {
  background: linear-gradient(135deg, #f1c40f, #f39c12);
  color: #2c3e50;
  border-color: #f39c12;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(241, 196, 15, 0.4);
  text-decoration: none;
}

/* Animazioni */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
  }
  50% {
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.6), 0 0 0 10px rgba(243, 156, 18, 0.1);
  }
}

@keyframes buttonGlow {
  0% {
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.2);
  }
  100% {
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4), 0 0 0 3px rgba(241, 196, 15, 0.1);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .faq-container .hero h1 {
    font-size: 2.5rem;
  }
  
  .category-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .category-actions {
    width: 100%;
    justify-content: center;
  }
  
  .faq-question {
    padding: 1rem;
  }
  
  .faq-answer.visible {
    padding: 0 1rem 1rem;
  }
  
  .contact-options {
    grid-template-columns: 1fr;
  }
  
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }

  .search-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}