/*
 * Página FAQ dos eventos (USA, Euro, Nordeste, Sudamericana).
 * Mesma linguagem da tela "Indicações encerradas" do Prêmio NE: o topo e a
 * lista ficam num bloco único na cor do evento; o fundo claro só começa na
 * seção seguinte ("Ative sua marca"). Da NewsFut vêm o grão sobre o fundo,
 * as perguntas numeradas e o ícone em quadrado que gira ao abrir.
 *
 * Marcação: wrapper .ev-faq.ev-faq--{slug} em events/{slug}/pages/faq*.php.
 * Os nomes BEM variam por evento (usa-faq__item, euro-faq__item...), por isso
 * os seletores usam [class*="-faq__..."] dentro de .ev-faq.
 */

.ev-faq {
  --evf-bg: #7a0808;
  --evf-bg-deep: #2a0505;
  --evf-glow: rgba(255, 152, 0, 0.32);
  --evf-accent: #ff9800;
  --evf-accent-ink: #2a0a0a;
  --evf-display: var(--event-font, "Bebas Neue Pro", "Bebas Neue", system-ui, sans-serif);
  --evf-text: "Montserrat", "Alibaba Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  counter-reset: evfaq;
  color: #fff;
}

.ev-faq--nordeste {
  --evf-bg: #a3120f;
  --evf-bg-deep: #3a0606;
  --evf-glow: rgba(255, 152, 0, 0.32);
  --evf-accent: #ffb74d;
  --evf-accent-ink: #3a0d0d;
}

.ev-faq--usa {
  --evf-bg: #13264d;
  --evf-bg-deep: #060d1e;
  --evf-glow: rgba(207, 28, 49, 0.42);
  --evf-accent: #ff5468;
  --evf-accent-ink: #fff;
}

.ev-faq--sudamericana {
  --evf-bg: #0e665d;
  --evf-bg-deep: #03231f;
  --evf-glow: rgba(79, 209, 191, 0.28);
  --evf-accent: #4fd1bf;
  --evf-accent-ink: #04231f;
  --evf-text: "Alibaba Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ev-faq--euro {
  --evf-bg: #0a2e57;
  --evf-bg-deep: #000f20;
  --evf-glow: rgba(226, 123, 12, 0.34);
  --evf-accent: #d4b06e;
  --evf-accent-ink: #001f3f;
}

html body .ev-faq.ev-faq {
  background:
    radial-gradient(ellipse 60% 55% at 100% 0%, var(--evf-glow), transparent 60%),
    radial-gradient(ellipse 70% 60% at 18% 12%, rgba(255, 255, 255, 0.08), transparent 62%),
    linear-gradient(165deg, var(--evf-bg) 0%, var(--evf-bg) 35%, var(--evf-bg-deep) 100%) !important;
  background-color: var(--evf-bg-deep) !important;
}

/* Grão de filme por cima do fundo (receita da NewsFut). */
html body .ev-faq.ev-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
  opacity: 0.28;
}

/* ---------- Topo ---------- */

html body .ev-faq.ev-faq [class$="-page-hero"],
html body .ev-faq.ev-faq [class*="-page-hero "] {
  background: transparent !important;
  min-height: 0 !important;
  padding-top: clamp(8rem, 14vw, 10.5rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3rem) !important;
}

html body .ev-faq.ev-faq [class*="-page-hero__bg"] {
  display: none !important;
}

html body .ev-faq.ev-faq [class*="-page-hero"] .container {
  position: relative;
}

html body .ev-faq.ev-faq h1[class*="-page-hero__title"] {
  margin: 0 !important;
  font-family: var(--evf-display) !important;
  font-size: clamp(4.25rem, 12vw, 9rem) !important;
  font-weight: 700 !important;
  line-height: 0.9 !important;
  letter-spacing: -0.01em !important;
  text-transform: uppercase !important;
  color: #fff !important;
}

html body .ev-faq.ev-faq [class*="-page-hero__sub"] {
  margin: clamp(1rem, 2.5vw, 1.5rem) 0 0 !important;
  max-width: 34rem !important;
  font-family: var(--evf-text) !important;
  font-size: clamp(1rem, 1.6vw, 1.15rem) !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.86) !important;
}

/* Título longo (Euro: "Frequently asked questions"). */
html body .ev-faq.ev-faq.ev-faq--euro h1[class*="-page-hero__title"] {
  max-width: 12ch;
  font-size: clamp(2.75rem, 6.5vw, 5.5rem) !important;
}

/* Linha de abertura, como no rodapé da tela do prêmio. */
html body .ev-faq.ev-faq [class*="-page-hero"] .container::after {
  content: "";
  display: block;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

/* ---------- Lista ---------- */

html body .ev-faq.ev-faq [class$="-faq-wrap"] {
  background: transparent !important;
  background-image: none !important;
  padding: 0 0 clamp(4rem, 9vw, 7rem) !important;
}

html body .ev-faq.ev-faq [class$="-faq"] {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body .ev-faq.ev-faq [class*="-faq__item"] {
  counter-increment: evfaq;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .ev-faq.ev-faq [class*="-faq__question"] {
  display: grid !important;
  grid-template-columns: clamp(2.5rem, 4.5vw, 3.5rem) 1fr auto;
  align-items: center;
  gap: 0 1rem;
  width: 100%;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(1rem, 2vw, 1.4rem) 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: left;
  font-family: var(--evf-display) !important;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
  text-wrap: balance;
  color: #fff !important;
  cursor: pointer;
  transition: padding-left 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

html body .ev-faq.ev-faq [class*="-faq__question"]::before {
  content: counter(evfaq, decimal-leading-zero);
  align-self: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

html body .ev-faq.ev-faq [class*="-faq__question"]::after {
  content: "+" !important;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  font-family: system-ui, sans-serif;
  font-size: 1.4rem !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  color: #fff !important;
  transform: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
  html body .ev-faq.ev-faq [class*="-faq__question"]:hover {
    padding-left: 0.75rem !important;
    color: var(--evf-accent) !important;
  }

  html body .ev-faq.ev-faq [class*="-faq__question"]:hover::before {
    color: var(--evf-accent);
  }

  html body .ev-faq.ev-faq [class*="-faq__question"]:hover::after {
    background: var(--evf-accent);
    color: var(--evf-accent-ink) !important;
  }
}

html body .ev-faq.ev-faq [class*="-faq__question"]:focus-visible {
  outline: 3px solid var(--evf-accent) !important;
  outline-offset: 4px;
}

html body .ev-faq.ev-faq [class*="-faq__item"].is-open [class*="-faq__question"],
html body .ev-faq.ev-faq [class*="-faq__question"][aria-expanded="true"] {
  color: var(--evf-accent) !important;
}

html body .ev-faq.ev-faq [class*="-faq__item"].is-open [class*="-faq__question"]::before,
html body .ev-faq.ev-faq [class*="-faq__question"][aria-expanded="true"]::before {
  color: var(--evf-accent);
}

html body .ev-faq.ev-faq [class*="-faq__item"].is-open [class*="-faq__question"]::after,
html body .ev-faq.ev-faq [class*="-faq__question"][aria-expanded="true"]::after {
  content: "\2212" !important;
  background: var(--evf-accent);
  color: var(--evf-accent-ink) !important;
}

html body .ev-faq.ev-faq [class*="-faq__answer"] {
  max-width: 46rem;
  margin: 0 !important;
  padding: 0 0 clamp(1.5rem, 3vw, 2.25rem) calc(clamp(2.5rem, 4.5vw, 3.5rem) + 1rem) !important;
  background: transparent !important;
  font-family: var(--evf-text) !important;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(255, 255, 255, 0.84) !important;
}

html body .ev-faq.ev-faq [class*="-faq__answer"] p,
html body .ev-faq.ev-faq [class*="-faq__answer"] li {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  text-transform: none !important;
  color: inherit !important;
}

html body .ev-faq.ev-faq [class*="-faq__answer"] a:not([class*="-faq__btn"]) {
  color: var(--evf-accent) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html body .ev-faq.ev-faq [class*="-faq__btn"] {
  display: inline-flex !important;
  align-items: center;
  min-height: 48px;
  margin-top: 0.5rem;
  padding: 0.7rem 1.4rem !important;
  border: 1.5px solid var(--evf-accent) !important;
  border-radius: 999px !important;
  background: var(--evf-accent) !important;
  font-weight: 700 !important;
  color: var(--evf-accent-ink) !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

html body .ev-faq.ev-faq [class*="-faq__btn"]:hover,
html body .ev-faq.ev-faq [class*="-faq__btn"]:focus-visible {
  background: transparent !important;
  color: #fff !important;
}

@media (max-width: 575.98px) {
  html body .ev-faq.ev-faq [class*="-faq__question"] {
    grid-template-columns: 2.25rem 1fr auto;
    gap: 0 0.75rem;
  }

  html body .ev-faq.ev-faq [class*="-faq__question"]::after {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.35rem !important;
  }

  html body .ev-faq.ev-faq [class*="-faq__answer"] {
    padding-left: 3rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .ev-faq.ev-faq [class*="-faq__question"],
  html body .ev-faq.ev-faq [class*="-faq__question"]::after {
    transition: none;
  }
}
