.page {
  min-height: 100vh;
  background: var(--color-obsidian);
  color: var(--color-card-foreground);
  padding-top: 80px;
}

@media (max-width: 768px) {
  .page {
    padding-top: 70px;
  }
}

#header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* ==============================
   HERO
   ============================== */

.hero-historia {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-obsidian) 100%
  );
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 2rem 0;
  margin-top: 0;
}

.hero-historia::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 30% 50%,
    rgba(220, 38, 38, 0.08) 0%,
    transparent 50%
  );
  z-index: -1;
}

.hero-historia .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

@media (max-width: 992px) {
  .hero-historia {
    min-height: auto;
    padding: 5rem 0 4rem;
  }
}

@media (max-width: 768px) {
  .hero-historia .container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-historia {
    min-height: auto;
    padding: 4rem 0 3rem;
  }
}

.hero-historia__content {
  max-width: 600px;
}

.hero-historia__title {
  font-size: clamp(3rem, 8vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-historia__title span {
  display: block;
  background: linear-gradient(
    135deg,
    var(--color-crimson-light),
    var(--color-crimson-dark)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(4rem, 10vw, 5rem);
  text-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.hero-historia__subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-historia__stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .hero-historia__stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-historia__stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.9rem;
  font-weight: 700;
  color: var(--color-crimson);
  line-height: 1;
  font-family: var(--font-body);
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-historia__image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.hero-historia__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-historia__image:hover img {
  transform: scale(1.05);
}

.hero-historia__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(220, 38, 38, 0.1), transparent);
  pointer-events: none;
}

/* ==============================
   TIMELINE
   ============================== */

.timeline-section {
  padding: 5rem 0;
  background: var(--color-primary-foreground);
  position: relative;
}

.timeline-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-crimson),
    transparent
  );
  opacity: 0.3;
}

.timeline-title {
  text-align: center;
  font-size: clamp(2.5rem, 6vw, 3rem);
  margin-bottom: 4rem;
  color: #fff;
}

.timeline-title span {
  background: linear-gradient(
    135deg,
    var(--color-crimson-light),
    var(--color-crimson-dark)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    var(--color-crimson),
    var(--color-crimson),
    transparent
  );
  opacity: 0.5;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 80px;
  }
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--color-crimson);
  border: 4px solid var(--color-primary-foreground);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

@media (max-width: 768px) {
  .timeline-dot {
    left: 30px;
    transform: translateX(-50%);
  }
}

.timeline-content {
  width: 45%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(220, 38, 38, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}

.timeline-content:hover {
  border-color: var(--color-crimson);
  background: rgba(220, 38, 38, 0.05);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .timeline-content {
    width: 100%;
  }
}

.timeline-year {
  display: inline-block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-crimson);
  font-family: var(--font-display);
  letter-spacing: 2px;
  margin-bottom: 1rem;
  background: rgba(220, 38, 38, 0.1);
  padding: 0.25rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.timeline-tag {
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ==============================
   VALORES (MAIS COMPACTO)
   ============================== */

.valores-section {
  min-height: calc(100vh - 80px); /* encaixa na altura da tela */
  padding: 2rem 0 1.5rem;
  background: var(--color-primary);
  position: relative;
  border-top: 1px solid rgba(220, 38, 38, 0.2);

  display: flex;
  align-items: center;
}

.valores-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-crimson),
    transparent
  );
  opacity: 0.2;
}

.valores-section .timeline-title {
  margin-bottom: 1.5rem;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
}

@media (max-width: 1024px) {
  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .valores-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.valor-card {
  text-align: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(220, 38, 38, 0.1);
  border-radius: 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.valor-card:hover {
  border-color: var(--color-crimson);
  background: rgba(220, 38, 38, 0.05);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.valor-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.valor-icon svg,
.valor-icon i {
  width: 30px;
  height: 30px;
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.valor-card:hover .valor-icon svg,
.valor-card:hover .valor-icon i {
  color: #ffffff !important;
  stroke: #ffffff !important;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.valor-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.valor-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* Ajuste extra para notebooks baixos (ex.: 1366x768) */
@media (max-height: 800px) {
  .valores-section {
    padding: 1.5rem 0 1rem;
  }

  .valores-section .timeline-title {
    margin-bottom: 1rem;
  }

  .valores-grid {
    margin-top: 1rem;
    gap: 1.25rem;
  }

  .valor-card {
    padding: 1.1rem;
  }

  .valor-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0.75rem;
  }

  .valor-icon svg,
  .valor-icon i {
    width: 28px;
    height: 28px;
  }
}