/**
 * Filtro Anno — Elementor Loop Grid
 * Autore: Turnassi Luca — https://turn.company/
 */

/* ── Wrapper ──────────────────────────────────────────────── */
.fae-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* ── Label ────────────────────────────────────────────────── */
.fae-label {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  color: inherit;
}

/* ── Select container (posizione relativa per lo spinner) ──── */
.fae-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* ── Select ───────────────────────────────────────────────── */
.fae-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 40px 9px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  min-width: 160px;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fae-select:hover {
  border-color: #999;
}

.fae-select:focus {
  outline: 2px solid #0073aa;
  outline-offset: 1px;
  border-color: #0073aa;
}

/* ── Spinner ──────────────────────────────────────────────── */
.fae-spinner {
  position: absolute;
  right: -28px;
  width: 16px;
  height: 16px;
  border: 2px solid #d0d0d0;
  border-top-color: #0073aa;
  border-radius: 50%;
  animation: fae-spin 0.7s linear infinite;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

@keyframes fae-spin {
  to { transform: rotate(360deg); }
}

/* ── Messaggio nessun risultato ───────────────────────────── */
.fae-no-results {
  padding: 2rem;
  text-align: center;
  color: #666;
  font-style: italic;
  grid-column: 1 / -1;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .fae-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .fae-select {
    width: 100%;
    min-width: unset;
  }
}
