/* =========================================================
   ARENA UI — FAQ COMPONENT
   Estratto da arena-ui.css e ottimizzato
   Mobile-first • Zero cambiamenti estetici
========================================================= */


/* ---------------------------------------------------------
   FAQ ITEM (wrapper)
--------------------------------------------------------- */

.faq-item {
  border-radius: 16px;
  background: transparent;

  border: 1px solid rgba(51, 65, 85, 0.9);
  overflow: hidden;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;

  box-shadow: 0 0 0 rgba(0,0,0,0);
}


/* ---------------------------------------------------------
   FAQ QUESTION BUTTON
--------------------------------------------------------- */

.faq-q {
  width: 100%;
  text-align: left;

  padding: 14px 18px;

  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: transparent;
  border: none;
  cursor: pointer;
}

/* Mobile-first: no sticky focus */
.faq-q:focus,
.faq-q:active,
.faq-q:focus-visible {
  background: transparent;
  outline: none;
  box-shadow: none;
}


/* ---------------------------------------------------------
   FAQ ANSWER PANEL
--------------------------------------------------------- */

.faq-a {
  max-height: 0;
  overflow: hidden;

  transition: max-height 0.3s ease;

  padding: 0 18px;

  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
}

.faq-a p {
  padding-bottom: 14px;
}


/* ---------------------------------------------------------
   MOBILE SAFETY: NO HOVER STATES
--------------------------------------------------------- */

@media (max-width: 768px) {
  /* Nessun hover sugli item per evitare glitch touch */
  .faq-item:hover {
    background: transparent;
    border-color: rgba(51, 65, 85, 0.9);
    box-shadow: none;
    transform: none;
  }
}


/* ---------------------------------------------------------
   DESKTOP HOVER ENHANCEMENT (>=769px)
--------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {

  .faq-item:hover {
    border-color: rgba(56, 189, 248, 0.85);
    background: rgba(10, 20, 40, 0.96);

    box-shadow:
      0 0 18px rgba(15, 23, 42, 0.95),
      0 0 22px rgba(56, 189, 248, 0.35);

    transform: translateY(-1px);
  }
}
