/* História e Conquistas */

.hist-head { max-width: 760px; margin-bottom: var(--head-space); }
.hist-head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; margin-top: .75rem; }

/* Faixa de números */
.hist-band {
  position: relative;
  overflow: hidden;
  background: var(--red-deep);
  color: #fff;
  padding-block: var(--section-space);
}
.hist-band::before {
  content: "1901";
  position: absolute;
  right: -2vw;
  bottom: -.22em;
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(255, 255, 255, .06);
  pointer-events: none;
}
.hist-band__inner { position: relative; }
.hist-band__quote {
  font-size: var(--step-2);
  line-height: 1.25;
  font-weight: 500;
  max-width: 900px;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}
.hist-band__quote b { font-weight: 800; }
.hist-band__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
}
@media (min-width: 900px) { .hist-band__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hist-band__item { border-top: 2px solid rgba(255, 255, 255, .35); padding-top: 1rem; }
.hist-band__val {
  font-size: clamp(2.6rem, 2rem + 3.2vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.hist-band__lbl { margin: .5rem 0 0; font-size: var(--step-0); line-height: 1.35; opacity: .88; }

/* Linha do tempo */
.hist-timeline { padding-block: var(--section-space); scroll-margin-top: calc(var(--header-h) + 4rem); }
.hist-tl {
  --tl-x: 22px;
  --tl-p: 0;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hist-tl::before,
.hist-tl::after {
  content: "";
  position: absolute;
  left: var(--tl-x);
  top: 0;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
}
.hist-tl::before { bottom: 0; background: var(--surface-3); }
.hist-tl::after { height: calc(var(--tl-p) * 100%); background: var(--red); }
.hist-tl__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  padding: 0 0 clamp(1.75rem, 4vw, 3rem) calc(var(--tl-x) * 2 + .5rem);
}
.hist-tl__item::before {
  content: "";
  position: absolute;
  left: var(--tl-x);
  top: .55rem;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--red);
  z-index: 1;
}
.hist-tl__item.is-key::before {
  width: 23px; height: 23px; margin-left: -11.5px; top: .3rem;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 0, 42, .15);
}
.hist-tl__year span {
  display: block;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--red-deep);
}
.hist-tl__year small {
  display: block;
  margin-top: .35rem;
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--grey);
}
.hist-tl__card h3 { font-size: var(--step-1); font-weight: 700; margin: 0 0 .4rem; color: var(--ink); }
.hist-tl__card p { margin: 0 0 .6rem; color: var(--ink-soft); line-height: 1.6; }
.hist-tl__item.is-key .hist-tl__card {
  background: var(--surface-2);
  border-radius: var(--r-card);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-left: 4px solid var(--red);
}
.hist-tl__img {
  display: block;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-2);
}
@media (min-width: 900px) {
  .hist-tl { --tl-x: 200px; }
  .hist-tl__item { grid-template-columns: 160px minmax(0, 1fr); gap: 0 clamp(3rem, 6vw, 5rem); padding-left: 0; }
  .hist-tl__year { text-align: right; }
  .hist-tl__card { max-width: 760px; }
}

/* Conquistas */
.hist-trophies { padding-block: var(--section-space); scroll-margin-top: calc(var(--header-h) + 4rem); }
.hist-cat + .hist-cat { margin-top: clamp(2rem, 5vw, 3.5rem); }
.hist-cat__name {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  font-weight: 800;
  color: var(--red-deep);
  margin: 0 0 1rem;
}
.hist-cat__name::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hist-cat__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(.75rem, 2vw, 1.25rem);
}
.hist-trophy {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.4rem 1.4rem 1.25rem;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hist-trophy:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.hist-trophy__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3d27a, #c9972f);
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
  margin-bottom: .9rem;
}
.hist-trophy__icon svg { width: 24px; height: 24px; }
.hist-trophy__count {
  position: absolute;
  top: 1.2rem;
  right: 1.3rem;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--red);
  letter-spacing: -.02em;
}
.hist-trophy__name { font-size: var(--step-1); font-weight: 700; line-height: 1.25; margin: 0; color: var(--ink); padding-right: 3.5rem; }
.hist-trophy__note { margin: .35rem 0 0; font-size: var(--step--1); color: var(--grey); line-height: 1.4; }
.hist-trophy__years { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.hist-trophy__years li {
  font-size: var(--step--1);
  font-weight: 700;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: rgba(255, 0, 42, .08);
  color: var(--red-deep);
  font-variant-numeric: tabular-nums;
}

/* Mural de anos */
.hist-wall {
  background: var(--red-deep);
  color: #fff;
  padding-block: var(--section-space);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 4rem);
}
.hist-wall__inner { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 1000px) { .hist-wall__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.hist-wall__copy { position: relative; }
.hist-wall__big {
  display: block;
  font-size: clamp(6rem, 4rem + 9vw, 12rem);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .55);
  margin-bottom: .75rem;
}
.hist-wall .section-title,
.hist-wall .eyebrow { color: #fff; }
.hist-wall__copy p { color: rgba(255, 255, 255, .88); line-height: 1.6; margin-top: .75rem; }
.hist-wall__legend { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.hist-wall__legend i { width: 18px; height: 18px; border-radius: 5px; background: #fff; flex: none; }
.hist-wall__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
}
@media (min-width: 600px) { .hist-wall__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.hist-wall__grid li {
  display: grid;
  place-items: center;
  aspect-ratio: 1.35;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .06);
  font-weight: 800;
  font-size: clamp(.95rem, .8rem + .5vw, 1.25rem);
  font-variant-numeric: tabular-nums;
  transition-delay: calc(var(--i, 0) * 30ms);
}
.hist-wall__grid li.is-hi { background: #fff; color: var(--red-deep); border-color: #fff; }
