/* ═══════════════════════════════════════════════════════════
   FORMAÇÃO — “em construção” band
   Stretching name + course slider, adapted from the
   Canva under-construction layout
   ═══════════════════════════════════════════════════════════ */

.obra {
  max-width: none;
  margin: 0;
  padding: clamp(4.5rem, 9vw, 7rem) var(--page-gutter);
  background: #070708;
  color: #dbdbdb;
  text-align: center;
  overflow: clip;
  scroll-margin-top: 84px;
}

.obra-inner {
  width: min(1040px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.obra-kicker {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #dbdbdb;
}

.obra-name {
  margin: 0.35rem 0 0.6rem;
  display: grid;
  justify-items: center;
  gap: 0.02em;
  font-family: "Oswald", var(--f-display), sans-serif;
  font-weight: 700;
  font-size: clamp(4.6rem, 16vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #dbdbdb;
  font-variation-settings: "wdth" 92;
  animation: name-stretch 1.7s ease-in-out infinite;
}

.obra-name span {
  display: block;
}

.obra-lead,
.obra-sub {
  margin: 0;
  max-width: 36rem;
  font-family: var(--f-body);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #dbdbdb;
}

.obra-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: #bdbdc4;
}

@keyframes name-stretch {
  0%, 100% { font-variation-settings: "wdth" 75; }
  50% { font-variation-settings: "wdth" 125; }
}

/* ── Certificate slider ─────────────────────────────────── */
.cert-slider {
  width: min(960px, 100%);
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  text-align: left;
}

.cert-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.cert-slider-label {
  margin: 0;
  color: var(--accent);
}

.cert-nav {
  display: flex;
  gap: 0.45rem;
}

.cert-nav button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition:
    border-color var(--dur-base) var(--ease-out-quart),
    background var(--dur-base) var(--ease-out-quart),
    color var(--dur-base);
}

.cert-nav button:hover,
.cert-nav button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.cert-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.cert-track::-webkit-scrollbar {
  display: none;
}

.cert-card {
  flex: 0 0 calc((100% - 28px) / 3);
  scroll-snap-align: start;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.15rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 42%),
    #101013;
}

.cert-issuer {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.cert-course {
  margin: 0.45rem 0 0;
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}

.cert-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #a8a8b0;
}

@media (max-width: 800px) {
  .cert-card {
    flex-basis: calc((100% - 14px) / 2);
  }
}

@media (max-width: 560px) {
  .cert-card {
    flex-basis: 84%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .obra-name {
    animation: none;
    font-variation-settings: "wdth" 105;
  }

  .cert-track {
    scroll-behavior: auto;
  }
}
