/* FGSC v1.0.3 (11 Nov. 2026) — Pesquisa Anual de Qualidade 2025 em carrossel.
   Versão clara (a pedido): fundo claro com grelha subtil, cartões brancos, anéis animados — dentro do estilo do site.
   Sem JavaScript continua legível: os cartões deslizam com o dedo ou a roda e os números já estão no HTML. */

.fgsc-pesquisa {
  --pq-navy: #002060; --pq-azul: #0098DA; --pq-ciano: #0098DA; --pq-laranja: #F36D53;
  --pq-texto: #002060; --pq-suave: #5C6B80; --pq-linha: #E1EAF4;
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1180px; margin: 24px auto 56px; padding: 64px 0 40px; box-sizing: border-box;
  border-radius: 28px; color: var(--pq-texto); border: 1px solid #E3ECF5;
  background: radial-gradient(70% 60% at 50% 0%, rgba(0, 152, 218, .10) 0%, rgba(0, 152, 218, 0) 70%),
              radial-gradient(50% 50% at 100% 100%, rgba(243, 109, 83, .07) 0%, rgba(243, 109, 83, 0) 70%),
              linear-gradient(180deg, #F7FAFD 0%, #EEF4FA 100%);
  box-shadow: 0 18px 50px rgba(0, 32, 96, .07);
}
.fgsc-pq-fundo { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(0, 32, 96, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 32, 96, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 75%);
}
.fgsc-pq-fundo::after { content: ""; position: absolute; left: 50%; top: -140px; width: 520px; height: 280px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 152, 218, .14), transparent); filter: blur(10px); }

/* Cabeçalho */
.fgsc-pesquisa .fgsc-pesquisa-cab { text-align: center; margin: 0 auto 34px; padding: 0 24px; max-width: 760px; }
.fgsc-pesquisa .fgsc-pesquisa-cab .fgsc-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--fgb-coral-txt, var(--pq-laranja)); font-size: 12px; letter-spacing: .24em; }
.fgsc-pesquisa .fgsc-pesquisa-cab .fgsc-kicker::before, .fgsc-pesquisa .fgsc-pesquisa-cab .fgsc-kicker::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--pq-laranja)); }
.fgsc-pesquisa .fgsc-pesquisa-cab .fgsc-kicker::after { transform: scaleX(-1); }
.fgsc-pesquisa .fgsc-pesquisa-cab h2 { color: var(--pq-navy); font-size: 2.5rem; line-height: 1.12; margin: 12px 0 12px; letter-spacing: -.01em; }
.fgsc-pesquisa .fgsc-pesquisa-cab h2 em { font-style: normal; background: linear-gradient(90deg, #0098DA, #0A5BC4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fgsc-pesquisa .fgsc-pesquisa-cab p { color: var(--pq-suave); font-size: 1.05rem; line-height: 1.6; margin: 0 auto; }

/* Trilho */
.fgsc-pq { position: relative; }
.fgsc-pq-trilho {
  --pq-larg: 58%; --pq-gap: 22px;
  display: flex; gap: var(--pq-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 18px 0 46px; scrollbar-width: none; outline: none;
}
/* Espaçadores: deixam o primeiro e o último cartão ficarem ao centro */
.fgsc-pq-trilho::before, .fgsc-pq-trilho::after { content: ""; flex: 0 0 calc((100% - var(--pq-larg)) / 2 - var(--pq-gap)); }
.fgsc-pq-trilho::-webkit-scrollbar { display: none; }
.fgsc-pq-trilho:focus-visible { outline: 2px solid var(--pq-ciano); outline-offset: -6px; border-radius: 22px; }

.fgsc-pq-slide {
  flex: 0 0 var(--pq-larg); scroll-snap-align: center; box-sizing: border-box; position: relative;
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 30px; align-items: center;
  min-height: 250px; padding: 30px 34px; border-radius: 24px;
  background: linear-gradient(160deg, #FFFFFF 0%, #FAFCFE 100%);
  border: 1px solid var(--pq-linha);
  box-shadow: 0 8px 24px rgba(0, 32, 96, .06);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.fgsc-pq-slide::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 35%, rgba(0, 152, 218, .06) 50%, transparent 65%); opacity: 0; transition: opacity .6s ease; }
.fgsc-pq-js .fgsc-pq-slide { opacity: .5; transform: scale(.93); }
.fgsc-pq-js .fgsc-pq-slide.fgsc-ativo { opacity: 1; transform: none; border-color: rgba(0, 152, 218, .45);
  box-shadow: 0 0 0 3px rgba(0, 152, 218, .08), 0 14px 34px rgba(0, 32, 96, .10); }
.fgsc-pq-js .fgsc-pq-slide.fgsc-ativo::before { opacity: 1; }

/* Visual: anel, arco, matriz */
.fgsc-pq-visual { position: relative; width: 190px; height: 190px; display: flex; align-items: center; justify-content: center; }
.fgsc-pq-anel { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.fgsc-pq-anel circle, .fgsc-pq-arco path { fill: none; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100 100; }
.fgsc-pq-base { stroke: #E4ECF5 !important; stroke-dashoffset: 0 !important; }
.fgsc-pq-valor { stroke: var(--pq-azul); filter: drop-shadow(0 0 4px rgba(0, 152, 218, .35)); transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); }
.fgsc-pq-slide:nth-child(2) .fgsc-pq-valor { stroke: var(--pq-laranja); filter: drop-shadow(0 0 4px rgba(243, 109, 83, .35)); }
.fgsc-pq-visual::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 1px dashed #D3E0EE; pointer-events: none; }
.fgsc-pq-gauge::after, .fgsc-pq-matriz-v::after { display: none; }
.fgsc-pq-num { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 4px; white-space: nowrap; }
.fgsc-pq-num b { font-size: 3.2rem; line-height: 1; font-weight: 700; color: var(--pq-navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fgsc-pq-num small { font-size: 1rem; color: var(--pq-suave); font-weight: 500; }
.fgsc-pq-gauge { flex-direction: column; justify-content: flex-end; padding-bottom: 34px; box-sizing: border-box; }
.fgsc-pq-arco { position: absolute; left: 0; right: 0; top: 30px; width: 100%; height: auto; overflow: visible; }
.fgsc-pq-gauge .fgsc-pq-num { flex-direction: column; align-items: center; gap: 2px; }
.fgsc-pq-pre { font-size: .78rem !important; letter-spacing: .2em; color: var(--fgb-coral-txt, var(--pq-laranja)) !important; font-weight: 700 !important; }
.fgsc-pq-escala { position: absolute; left: 4px; right: 4px; bottom: 8px; display: flex; justify-content: space-between; font-size: 11px; color: var(--pq-suave); font-variant-numeric: tabular-nums; }
.fgsc-pq-matriz-v { flex-direction: column; gap: 14px; }
.fgsc-pq-matriz { display: grid; grid-template-columns: repeat(8, 11px); gap: 7px; }
.fgsc-pq-matriz i { width: 11px; height: 11px; border-radius: 3px; background: var(--pq-azul); box-shadow: 0 0 6px rgba(0, 152, 218, .35); transition: opacity .3s ease calc(var(--i) * 35ms), transform .3s ease calc(var(--i) * 35ms); }
.fgsc-pq-js .fgsc-pq-slide:not(.fgsc-visto) .fgsc-pq-matriz i { opacity: .15; transform: scale(.6); box-shadow: none; }
.fgsc-pq-matriz-v .fgsc-pq-num b { font-size: 2.4rem; }

/* Texto */
.fgsc-pq-txt { min-width: 0; }
.fgsc-pq-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--fgb-azul-txt, var(--pq-ciano));
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(0, 152, 218, .30); background: rgba(0, 152, 218, .07); }
.fgsc-pq-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.fgsc-pq-slide:nth-child(2) .fgsc-pq-tag { color: #D9553C; border-color: rgba(243, 109, 83, .35); background: rgba(243, 109, 83, .07); }
.fgsc-pq-frase { margin: 16px 0 0; font-size: 1.4rem; line-height: 1.35; color: var(--pq-navy); font-weight: 600; }
.fgsc-pq-nota { margin: 12px 0 0; font-size: .85rem; line-height: 1.5; color: var(--pq-suave); }

/* Controlos */
.fgsc-pq-controlos { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: calc(58% + 44px); margin: 0 auto; padding: 0 22px; box-sizing: border-box; }
.fgsc-pq-contador { font-size: 13px; letter-spacing: .12em; color: var(--pq-suave); font-variant-numeric: tabular-nums; min-width: 64px; }
.fgsc-pq-contador b { color: var(--pq-navy); font-weight: 700; }
.fgsc-pq-segmentos { display: flex; gap: 8px; flex: 1; max-width: 320px; }
.fgsc-pq-segmentos button { flex: 1; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.fgsc-pq-segmentos i { display: block; width: 100%; height: 3px; border-radius: 3px; background: #D9E4EF; overflow: hidden; position: relative; }
.fgsc-pq-segmentos i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #0A5BC4, var(--pq-azul)); box-shadow: 0 0 6px rgba(0, 152, 218, .45); }
.fgsc-pq-segmentos button.fgsc-feito i::after { transform: scaleX(1); }
.fgsc-pq-segmentos button[aria-current="true"] i::after { transform: scaleX(1); }
.fgsc-pq-auto .fgsc-pq-segmentos button[aria-current="true"] i::after { animation: fgscPqBarra var(--pq-tempo, 5.5s) linear forwards; }
.fgsc-pq-pausa .fgsc-pq-segmentos button[aria-current="true"] i::after { animation-play-state: paused; }
.fgsc-pq-segmentos button:focus-visible { outline: 2px solid var(--pq-ciano); outline-offset: 2px; border-radius: 4px; }
@keyframes fgscPqBarra { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.fgsc-pq-setas { display: flex; gap: 10px; }
.fgsc-pq-setas button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #D5E1EE; background: #fff; color: var(--pq-navy); cursor: pointer; box-shadow: 0 4px 12px rgba(0, 32, 96, .06);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.fgsc-pq-setas button:hover { background: var(--pq-navy); color: #fff; border-color: var(--pq-navy); transform: translateY(-1px); }
.fgsc-pq-setas button:focus-visible { outline: 2px solid var(--pq-ciano); outline-offset: 2px; }

/* Fonte e credenciais */
.fgsc-pesquisa .fgsc-pesquisa-fonte { color: #7A8494; margin: 26px auto 0; padding: 0 24px; max-width: 760px; }
.fgsc-pesquisa .fgsc-credenciais { margin-top: 18px; padding: 0 20px; gap: 10px; color: var(--pq-texto); font-size: 13.5px; }
.fgsc-pesquisa .fgsc-credenciais span { padding: 8px 14px; border-radius: 999px; border: 1px solid #DCE6F0; background: #fff; }
.fgsc-pesquisa .fgsc-credenciais span::before { color: var(--fgb-azul-txt, var(--pq-azul)); }

/* Tablet */
@media (max-width: 1100px) {
  .fgsc-pq-trilho { --pq-larg: 72%; }
  .fgsc-pq-controlos { max-width: calc(72% + 44px); }
  .fgsc-pesquisa { margin-left: 20px; margin-right: 20px; }
}

/* Telemóvel */
@media (max-width: 767px) {
  .fgsc-pesquisa { margin: 20px 12px 40px; padding: 40px 0 28px; border-radius: 22px; }
  .fgsc-pq-fundo { background-size: 32px 32px; }
  .fgsc-pesquisa .fgsc-pesquisa-cab { margin-bottom: 18px; padding: 0 20px; }
  .fgsc-pesquisa .fgsc-pesquisa-cab h2 { font-size: 1.75rem; }
  .fgsc-pesquisa .fgsc-pesquisa-cab p { font-size: .95rem; }
  .fgsc-pq-trilho { --pq-larg: 82%; --pq-gap: 12px; padding-top: 12px; padding-bottom: 34px; }
  .fgsc-pq-slide { grid-template-columns: 1fr; justify-items: center; align-content: center; text-align: center; gap: 16px; padding: 24px 18px 22px; min-height: 0; border-radius: 20px; }
  .fgsc-pesquisa .fgsc-pesquisa-cab .fgsc-kicker { letter-spacing: .16em; font-size: 11px; }
  .fgsc-pesquisa .fgsc-pesquisa-cab .fgsc-kicker::before, .fgsc-pesquisa .fgsc-pesquisa-cab .fgsc-kicker::after { display: none; }
  .fgsc-pq-visual { width: 150px; height: 150px; }
  .fgsc-pq-gauge { padding-bottom: 26px; }
  .fgsc-pq-arco { top: 22px; }
  .fgsc-pq-num b { font-size: 2.6rem; }
  .fgsc-pq-matriz { grid-template-columns: repeat(8, 9px); gap: 6px; }
  .fgsc-pq-matriz i { width: 9px; height: 9px; }
  .fgsc-pq-matriz-v .fgsc-pq-num b { font-size: 2rem; }
  .fgsc-pq-frase { font-size: 1.1rem; margin-top: 12px; }
  .fgsc-pq-nota { font-size: .8rem; }
  .fgsc-pq-controlos { max-width: none; padding: 0 20px; gap: 12px; }
  .fgsc-pq-contador { display: none; }
  .fgsc-pq-segmentos { max-width: none; }
  .fgsc-pq-setas button { width: 40px; height: 40px; }
  .fgsc-pesquisa .fgsc-credenciais { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .fgsc-pq-trilho { scroll-behavior: auto; }
  .fgsc-pq-slide, .fgsc-pq-valor, .fgsc-pq-matriz i { transition: none !important; }
  .fgsc-pq-segmentos i::after { animation: none !important; }
}
