/* FECCETEC V12 — base pública e componentes compartilhados */
:root {
  color-scheme: light;
  --page-bg: #f4f7fa;
  --surface: #ffffff;
  --surface-subtle: #eef5f8;
  --surface-strong: #e3edf2;
  --ink: #101827;
  --muted: #64748b;
  --navy: #071427;
  --navy-rgb: 7 20 39;
  --navy-soft: #102745;
  --line: #dfe7ec;
  --line-strong: #cbd7df;
  --accent: #0064ff;
  --accent-strong: #0648b8;
  --accent-alt: #00d9ff;
  --accent-rgb: 0 100 255;
  --accent-alt-rgb: 0 217 255;
  --on-accent: #00111f;
  --hero-image: url("../img/hero-placeholder.svg");
  --hero-gradient:
    radial-gradient(circle at 14% 18%, rgb(var(--accent-alt-rgb) / 0.28), transparent 31%),
    radial-gradient(circle at 86% 20%, rgb(var(--accent-rgb) / 0.34), transparent 29%),
    linear-gradient(135deg, rgb(var(--navy-rgb) / 0.76), rgb(var(--navy-rgb) / 0.98));
  --shadow-sm: 0 10px 28px rgb(15 23 42 / 0.07);
  --shadow-md: 0 18px 46px rgb(15 23 42 / 0.10);
  --shadow-lg: 0 30px 80px rgb(15 23 42 / 0.15);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --container: 1180px;
  --header-height: 82px;

  /* Compatibilidade com componentes das versões anteriores. */
  --bg: var(--page-bg);
  --card: var(--surface);
  --dark: var(--navy);
  --primary: var(--accent-alt);
  --secondary: var(--accent);
  --radius: var(--radius-lg);
  --shadow: var(--shadow-lg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

main {
  min-height: 52vh;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid rgb(var(--accent-rgb) / 0.42);
  outline-offset: 4px;
}

::selection {
  color: var(--on-accent);
  background: rgb(var(--accent-alt-rgb) / 0.65);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(68px, 8vw, 112px);
}

.section-muted {
  background: var(--surface-subtle);
}

.section-dark {
  color: #fff;
  background:
    radial-gradient(circle at 8% 10%, rgb(var(--accent-alt-rgb) / 0.16), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--navy-soft));
}

.section-dark p {
  color: rgb(255 255 255 / 0.70);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head > div {
  max-width: 790px;
}

.section-head h2,
.section h2,
.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4.3vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.section-head p,
.section > p,
.section p {
  color: var(--muted);
  line-height: 1.75;
}

.section-head > a:not(.btn) {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.section-dark .section-head > a {
  color: var(--accent-alt);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / 0.10);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  border-radius: 12px;
  color: #fff;
  background: var(--navy);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Cabeçalho */
.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-inline: max(20px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid rgb(255 255 255 / 0.09);
  background: rgb(var(--navy-rgb) / 0.90);
  box-shadow: 0 10px 34px rgb(2 6 23 / 0.15);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  text-decoration: none;
}

.brand-logo-wrap {
  display: grid;
  width: min(214px, 32vw);
  height: 58px;
  place-items: center start;
}

.brand-logo-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgb(0 0 0 / 0.16));
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  position: relative;
  padding: 10px 11px;
  border-radius: 999px;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}

.nav a[aria-current="page"]::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-alt), var(--accent));
  content: "";
}

.nav .nav-cta {
  margin-left: 5px;
  padding-inline: 17px;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-alt), var(--accent));
  box-shadow: 0 10px 26px rgb(var(--accent-rgb) / 0.23);
}

.nav .nav-cta:hover,
.nav .nav-cta[aria-current="page"] {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-alt), var(--accent));
  transform: translateY(-1px);
}

.nav .nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 15px;
  color: #fff;
  background: rgb(255 255 255 / 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 4px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Heros */
.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - var(--header-height)));
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-gradient), var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-bg::after,
.page-hero::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
  padding-block: 92px;
}

.hero-copy {
  max-width: 850px;
}

.hero h1 {
  max-width: 920px;
  margin: 16px 0 24px;
  font-size: clamp(2.7rem, 6.7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.078em;
}

.hero-copy-compact h1 {
  font-size: clamp(2.5rem, 5.4vw, 5rem);
}

.hero p {
  max-width: 740px;
  color: rgb(255 255 255 / 0.74);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.75;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-xl);
  background: rgb(255 255 255 / 0.08);
  box-shadow: 0 34px 90px rgb(0 0 0 / 0.25);
  backdrop-filter: blur(22px);
}

.hero-card::before {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgb(var(--accent-alt-rgb) / 0.15);
  content: "";
  filter: blur(10px);
  inset: -84px -70px auto auto;
}

.hero-card h2 {
  margin: 18px 0 9px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero-card p {
  font-size: 0.98rem;
}

.hero-card a {
  color: #fff;
  font-weight: 800;
}

.badge,
.edition-status {
  display: inline-flex;
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent-alt);
  background: rgb(var(--accent-alt-rgb) / 0.13);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(86px, 10vw, 138px) clamp(64px, 7vw, 94px);
  color: #fff;
  background:
    radial-gradient(circle at 14% 18%, rgb(var(--accent-alt-rgb) / 0.22), transparent 31%),
    radial-gradient(circle at 88% 8%, rgb(var(--accent-rgb) / 0.28), transparent 28%),
    linear-gradient(135deg, var(--navy), var(--navy-soft));
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 940px;
  margin: 10px 0 20px;
}

.page-hero p {
  max-width: 780px;
  margin-bottom: 0;
  color: rgb(255 255 255 / 0.72);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.78;
}

.hero-actions,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Botões */
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 21px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-alt), var(--accent));
  box-shadow: 0 14px 32px rgb(var(--accent-rgb) / 0.19);
}

.btn-outline {
  border: 1px solid rgb(255 255 255 / 0.24);
  color: #fff;
  background: rgb(255 255 255 / 0.05);
}

.btn-outline-dark,
.btn-outline-admin {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.btn-dark-cta {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 14px 30px rgb(var(--navy-rgb) / 0.20);
}

.btn-small {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 0.8rem;
}

/* Blocos da home */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.stats-bar div {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.stats-bar div:last-child {
  border-right: 0;
}

.stats-bar strong {
  display: block;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.stats-bar span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(38px, 7vw, 88px);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article,
.card,
.content-card,
.form-card,
.premium-partner {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature-list article {
  padding: 22px 24px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature-list article:hover {
  border-color: rgb(var(--accent-rgb) / 0.24);
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.feature-list strong {
  font-size: 1.05rem;
}

.feature-list span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 27px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover {
  border-color: rgb(var(--accent-rgb) / 0.22);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card h2,
.card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.card > a {
  margin-top: auto;
  color: var(--accent);
  font-weight: 800;
}

.year {
  color: var(--accent);
  font-size: clamp(2.35rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.075em;
}

.edition-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.editions-grid {
  align-items: stretch;
}

.edition-card::after {
  position: absolute;
  z-index: -1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgb(var(--accent-alt-rgb) / 0.11);
  content: "";
  filter: blur(22px);
  inset: auto -74px -82px auto;
}

.edition-active {
  border-color: rgb(var(--accent-rgb) / 0.36);
  box-shadow: 0 22px 55px rgb(var(--accent-rgb) / 0.12);
}

.edition-media {
  height: 160px;
  margin: -27px -27px 10px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface-subtle), var(--surface-strong));
}

.edition-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edition-hero-media {
  width: min(530px, 100%);
  height: 210px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.06);
}

.edition-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edition-count {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.edition-actions {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.edition-actions a {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.edition-link-main {
  color: var(--accent);
  background: rgb(var(--accent-rgb) / 0.08);
}

.edition-link-official {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-alt), var(--accent));
}

.edition-future-site .edition-link-official {
  color: #fff;
  background: var(--navy);
}

.site-special-placeholder {
  background:
    radial-gradient(circle at 20% 10%, rgb(var(--accent-alt-rgb) / 0.25), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--navy-soft));
}

/* Notícias */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.news-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  gap: 15px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.news-card:hover {
  border-color: rgb(var(--accent-alt-rgb) / 0.26);
  box-shadow: 0 22px 58px rgb(0 0 0 / 0.16);
  transform: translateY(-4px);
}

.news-card-home {
  padding: 24px;
}

.news-thumb {
  display: block;
  height: 220px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.10);
  border-radius: var(--radius-md);
  background: var(--navy);
}

.news-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.04);
}

.news-card > span,
.news-card-content > span {
  color: var(--accent-alt);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card h2,
.news-card h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.news-card p {
  margin: 0;
  line-height: 1.7;
}

.read-more {
  margin-top: auto;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.section-dark .read-more {
  color: var(--accent-alt);
}

.news-grid.light .news-card,
.news-card-public {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.news-card-public {
  padding: 0;
}

.news-card-public .news-thumb {
  height: 270px;
  border: 0;
  border-radius: 0;
}

.news-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
}

.news-card-content > span {
  color: var(--accent);
}

.news-card-content p {
  color: var(--muted);
}

.news-detail-wrap {
  max-width: 940px;
}

.news-list-grid {
  align-items: stretch;
}

.news-detail-hero p {
  max-width: 800px;
}

.news-detail-card {
  overflow: hidden;
  padding: 0;
}

.news-detail-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  background: var(--surface-subtle);
}

.news-meta {
  padding: 28px 32px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.rich-text {
  padding: 22px 32px 38px;
  font-size: 1.03rem;
  line-height: 1.9;
}

/* Patrocinadores */
.sponsors-home-head {
  align-items: center;
}

.home-master-sponsor {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  margin: 28px 0 20px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgb(var(--accent-alt-rgb) / 0.26), transparent 36%),
    linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: 0 28px 80px rgb(var(--accent-rgb) / 0.16);
}

.home-master-logo {
  display: grid;
  min-height: 166px;
  place-items: center;
  padding: 25px;
  border-radius: 24px;
  background: #fff;
}

.home-master-logo img {
  max-width: 100%;
  max-height: 108px;
  object-fit: contain;
}

.home-master-sponsor span {
  color: var(--accent-alt);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-master-sponsor h3 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.home-master-sponsor p {
  max-width: 720px;
  color: rgb(255 255 255 / 0.73);
}

.sponsor-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.sponsor-logo {
  display: grid;
  min-width: 0;
  min-height: 118px;
  place-items: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-logo:hover {
  border-color: rgb(var(--accent-rgb) / 0.24);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.sponsor-logo img {
  max-width: 135px;
  max-height: 62px;
  object-fit: contain;
}

.sponsors-hero {
  background:
    radial-gradient(circle at 20% 20%, rgb(var(--accent-alt-rgb) / 0.20), transparent 32%),
    linear-gradient(135deg, var(--navy), var(--navy-soft));
}

.sponsor-board {
  display: grid;
  gap: 28px;
}

.sponsor-board-head p {
  max-width: 760px;
}

.sponsor-master-exclusive {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  align-items: stretch;
  gap: 28px;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 10% 12%, rgb(var(--accent-alt-rgb) / 0.28), transparent 29%),
    linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: var(--shadow-lg);
}

.master-glow {
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgb(var(--accent-alt-rgb) / 0.18);
  filter: blur(24px);
}

.master-logo-panel,
.master-content-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgb(255 255 255 / 0.13);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.07);
  backdrop-filter: blur(18px);
}

.master-logo-panel {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 30px;
}

.master-logo-panel span {
  color: var(--accent-alt);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.master-logo-panel img {
  width: min(260px, 100%);
  max-height: 150px;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  object-fit: contain;
}

.master-content-panel {
  padding: clamp(28px, 5vw, 42px);
}

.master-content-panel h2 {
  margin: 8px 0 18px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.master-content-panel p {
  color: rgb(255 255 255 / 0.74);
  line-height: 1.78;
}

.master-note {
  padding-left: 16px;
  border-left: 4px solid var(--accent-alt);
}

.sponsor-tier {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.sponsor-tier::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--tier-color, var(--accent));
  content: "";
}

.tier-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.tier-title span {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.tier-title strong {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.sponsor-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sponsor-tile {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--surface), var(--surface-subtle));
}

.sponsor-tile-logo {
  display: grid;
  height: 108px;
  place-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.sponsor-tile-logo img {
  max-width: 100%;
  max-height: 76px;
  object-fit: contain;
}

.sponsor-tile-body h2 {
  margin: 0 0 7px;
  font-size: 1.2rem;
}

.sponsor-tile-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.sponsor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.sponsor-links a {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgb(var(--accent-rgb) / 0.09);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.btn-glow {
  box-shadow: 0 14px 34px rgb(var(--accent-rgb) / 0.24);
}

.sponsor-tier-master {
  --tier-color: linear-gradient(var(--accent-alt), var(--accent));
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
}

.sponsor-tier-master .tier-title strong,
.sponsor-tier-master .sponsor-tile-body p {
  color: rgb(255 255 255 / 0.68);
}

.sponsor-tier-master .sponsor-tile {
  border-color: rgb(255 255 255 / 0.11);
  background: rgb(255 255 255 / 0.07);
}

.sponsor-tier-master .sponsor-links a {
  color: #fff;
  background: rgb(var(--accent-alt-rgb) / 0.14);
}

.sponsor-tier-ouro { --tier-color: #f59e0b; }
.sponsor-tier-prata { --tier-color: #94a3b8; }
.sponsor-tier-bronze { --tier-color: #b45309; }
.sponsor-tier-apoio_institucional { --tier-color: #06b6d4; }
.sponsor-tier-parceiro_tecnico { --tier-color: #6366f1; }
.sponsor-tier-divulgacao { --tier-color: #22c55e; }

.tier-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tier-pill-master { color: #075985; background: #dffbff; }
.tier-pill-ouro { color: #92400e; background: #fef3c7; }
.tier-pill-prata { color: #334155; background: #e2e8f0; }
.tier-pill-bronze { color: #9a3412; background: #ffedd5; }
.tier-pill-apoio_institucional { color: #155e75; background: #cffafe; }
.tier-pill-parceiro_tecnico { color: #3730a3; background: #e0e7ff; }
.tier-pill-divulgacao { color: #166534; background: #dcfce7; }

/* Conteúdo e formulários públicos */
.content-card,
.form-card {
  padding: clamp(24px, 4vw, 34px);
}

.content-card h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
}

.form-card {
  display: grid;
  gap: 15px;
}

.form-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.filter-search {
  min-width: 0;
}

.form-card input,
.form-card select,
.form-card textarea,
.filters input,
.filters select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
}

.form-card textarea {
  min-height: 150px;
  resize: vertical;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.filters input:focus,
.filters select:focus {
  outline: 0;
  border-color: rgb(var(--accent-rgb) / 0.55);
  box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / 0.10);
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.alert {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.alert.success,
.success {
  color: #166534;
  background: #dcfce7;
}

.alert.error,
.error {
  color: #991b1b;
  background: #fee2e2;
}

.empty-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  padding: 42px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  color: var(--accent);
  background: rgb(var(--accent-rgb) / 0.09);
  font-size: 1.6rem;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* CTA */
.cta-section {
  padding-block: 44px 96px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: var(--radius-xl);
  color: var(--on-accent);
  background:
    radial-gradient(circle at 95% 15%, rgb(255 255 255 / 0.28), transparent 28%),
    linear-gradient(135deg, var(--accent-alt), var(--accent));
  box-shadow: 0 24px 70px rgb(var(--accent-rgb) / 0.18);
}

.cta-card-strong {
  border-color: rgb(255 255 255 / 0.48);
  box-shadow: 0 28px 80px rgb(var(--accent-rgb) / 0.24);
}

.cta-card h2 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.cta-card p {
  max-width: 630px;
  margin: 12px 0 0;
  color: currentColor;
  opacity: 0.78;
}

.special-note-card {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

/* Rodapé */
.site-footer {
  padding-top: 68px;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgb(var(--accent-alt-rgb) / 0.11), transparent 29%),
    linear-gradient(135deg, var(--navy), var(--navy-soft));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.85fr 0.9fr;
  align-items: start;
  gap: clamp(30px, 5vw, 58px);
}

.site-footer h3 {
  margin: 0 0 17px;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0 0 15px;
  color: #cbd5e1;
  font-size: 0.91rem;
  line-height: 1.72;
}

.footer-brand-card {
  display: grid;
  gap: 17px;
}

.footer-brand {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  text-decoration: none;
}

.footer-brand-logo-img {
  display: block;
  width: auto;
  max-width: 250px;
  max-height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgb(0 0 0 / 0.20));
}

.footer-links,
.footer-social-hibernated {
  display: grid;
  gap: 11px;
}

.footer-links a,
.footer-social-hibernated a {
  width: max-content;
  max-width: 100%;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-social-hibernated a:hover {
  color: var(--accent-alt);
  transform: translateX(3px);
}

.footer-social-hibernated strong {
  color: #fff;
}

.footer-support-btn {
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border-radius: 999px;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-alt), var(--accent));
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 50px;
  padding-block: 23px;
  border-top: 1px solid rgb(255 255 255 / 0.11);
  color: #9fb2c8;
  font-size: 0.82rem;
}

/* Movimento progressivo */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1120px) {
  :root {
    --header-height: 74px;
  }

  .menu-toggle {
    display: block;
  }

  .topbar {
    min-height: var(--header-height);
  }

  .brand-logo-wrap {
    height: 52px;
  }

  .brand-logo-img {
    max-height: 49px;
  }

  .nav {
    position: fixed;
    z-index: 60;
    top: calc(var(--header-height) + 10px);
    right: 18px;
    left: 18px;
    display: grid;
    max-height: calc(100vh - var(--header-height) - 28px);
    align-content: start;
    gap: 5px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 24px;
    background: rgb(var(--navy-rgb) / 0.97);
    box-shadow: 0 28px 70px rgb(0 0 0 / 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.985);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(20px);
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav a {
    padding: 13px 15px;
    border-radius: 14px;
  }

  .nav .nav-cta {
    margin: 7px 0 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 670px;
  }

  .cards,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sponsor-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .section-head,
  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .split,
  .contact-grid,
  .home-master-sponsor,
  .sponsor-master-exclusive {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar div:nth-child(2) {
    border-right: 0;
  }

  .stats-bar div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .sponsor-tier-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-tile {
    grid-template-columns: 118px 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding-block: 64px;
  }

  .topbar {
    padding-inline: 14px;
  }

  .brand-logo-wrap {
    width: min(190px, 62vw);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-block: 72px;
  }

  .hero h1,
  .hero-copy-compact h1 {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
  }

  .page-hero {
    padding-block: 72px 58px;
  }

  .cards,
  .news-grid,
  .sponsor-track {
    grid-template-columns: 1fr;
  }

  .stats-bar strong {
    font-size: 2rem;
  }

  .stats-bar div {
    padding: 22px 14px;
  }

  .edition-media {
    height: 148px;
  }

  .news-card-public .news-thumb,
  .news-thumb {
    height: 210px;
  }

  .home-master-logo {
    min-height: 130px;
  }

  .sponsor-tile {
    grid-template-columns: 1fr;
  }

  .tier-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-support-btn,
  .cta-card .btn {
    width: 100%;
  }

  .content-card,
  .form-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
