/* ==========================
   SOBRE NÓS - CSS OTIMIZADO
   ========================== */

/* Reset */
* {
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variáveis */
:root {
  font-size: 16px;
  --container-max: min(78.75rem, 94%);
  --accent: #e85c43;
  --muted: #6b6b6b;
  --card-radius: 1rem;
  --card-shadow: 0 1.125rem 2.5rem rgba(9, 22, 28, 0.08);
  --section-padding: 5rem 0;
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Ajuste de escala para Windows */
@media (min-resolution: 120dpi) { :root { font-size: 15px; } }
@media (min-resolution: 144dpi) { :root { font-size: 14px; } }
@media (min-resolution: 192dpi) { :root { font-size: 12px; } }

/* Container */
.wrap {
  width: var(--container-max);
  margin: 0 auto;
  padding: 5rem 1rem;
}

/* ==========================
   SESSÃO 1 — HISTÓRIA
   ========================== */
.sessao-historia {
  padding: var(--section-padding);
  background: #fff;
  font-family: var(--font-sans);
  color: #111;
}

.sessao-historia h2 {
  color: #000;
  font-weight: 100;
  font-size: clamp(0.875rem, 1.2vw, 1.1rem);
}

.sessao-historia p {
  color: #000;
  font-weight: 540;
  font-size: clamp(0.8125rem, 1.2vw, 1rem);
}

.historia-grid {
  display: grid;
  grid-template-columns: 27.5rem 1fr;
  gap: 2.5rem;
  align-items: center;
}

.historia-titulo h2 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.historia-titulo h2 span {
  display: inline-block;
  margin-left: 0.25rem;
}

.historia-texto p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 45rem;
}

/* ==========================
   SESSÃO 2 — DIFERENCIAIS
   ========================== */
.sessao-diferenciais {
  position: relative;
  padding: 5rem 0 6.875rem;
  background: url("../arquivos/2_Sobre_Nós/img_fundo.png") center/cover;
  overflow: visible;
  font-family: var(--font-sans);
  color: #fff;
}

.sessao-diferenciais::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 54, 80, 0.962) 0%,
    rgba(16, 94, 108, 0.469) 20%,
    rgba(16, 94, 108, 0.469) 60%
  );
  z-index: 1;
}

.sessao-diferenciais .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 14, 28, 0.5) 0%,
    rgba(15, 122, 155, 0.197) 0%,
    rgba(2, 82, 116, 0.842) 100%
  );
  z-index: 0;
}

.sessao-diferenciais .wrap {
  position: relative;
  z-index: 2;
}

.dif-titulo {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.0625rem 0 3.75rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.dif-cards {
  display: flex;
  gap: 1.75rem;
  align-items: stretch;
  justify-content: center;
  margin-top: 0.375rem;
}

.dif-card {
  width: 100%;
  max-width: 23.75rem;
  min-height: 24.375rem;
  background: rgba(255, 255, 255, 0.98);
  color: #111;
  border-radius: 0.875rem;
  padding: 2.125rem 1.375rem 1.875rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dif-card:hover {
  transform: translateY(-6px);
}

.dif-icon {
  width: 5.3125rem;
  height: 5.3125rem;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0.625rem 1.625rem rgba(9, 22, 28, 0.12);
}

.dif-card h3 {
  margin-top: 6.25rem;
  margin-bottom: 0.625rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 700;
}

.dif-card p {
  color: #505050;
  font-size: clamp(0.8125rem, 1.2vw, 1rem);
  line-height: 1.7;
}

/* ==========================
   SESSÃO 3 — TIMELINE
   ========================== */
.sessao3 {
  background: #f4f4f4;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.sessao3 h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 3.75rem;
}

.timeline-container {
  position: relative;
  width: 90%;
  margin: auto;
}

/* Carousel */
.carousel {
  overflow: hidden;
}

.carousel-wrapper {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 2.5rem;
  transition: transform 0.6s ease;
  will-change: transform;
  scroll-behavior: smooth;
}

.card {
  position: relative;
  min-width: 17.5rem;
  background: #fff;
  padding: 1.875rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.625rem 1.5625rem rgba(0, 0, 0, 0.08);
  text-align: left;
  margin-bottom: 3.75rem;
}

.card h3 {
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  margin: 0.9375rem 0 0.625rem;
}

.card p {
  font-size: clamp(0.8125rem, 1.2vw, 1rem);
  line-height: 1.3;
  margin-bottom: 0.625rem;
}

.card::after {
  content: "";
  position: absolute;
  bottom: -1.5625rem;
  left: 50%;
  transform: translateX(-50%);
  width: 7.5rem;
  height: 1.875rem;
  background: #fff;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  box-shadow: 0 0.625rem 0.9375rem rgba(0, 0, 0, 0.05);
}

/* Timeline */
.timeline-wrapper {
  position: relative;
  margin-top: 0.125rem;
  height: 6.25rem;
}

.timeline-line {
  position: absolute;
  top: 0.9375rem;
  width: 100%;
  height: 2.5rem;
  background: #148dbd;
  border-radius: 1.25rem;
}

.years {
  position: absolute;
  top: 0;
  display: flex;
  gap: 2.5rem;
  transition: transform 0.6s ease;
}

.year {
  width: 17.5rem;
  display: flex;
  justify-content: center;
}

.year span {
  background: var(--accent);
  color: white;
  padding: 0.875rem 1.125rem;
  border-radius: 50%;
  font-weight: bold;
  height: 4.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Setas */
.arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  background: var(--accent);
  color: white;
  border: none;
  width: 2.8125rem;
  height: 2.8125rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.375rem;
  z-index: 10;
  transition: background 0.2s ease;
}

.arrow.left { left: -3.75rem; }
.arrow.right { right: -3.75rem; }
.arrow:hover { background: #d14f38; }

/* ==========================
   RESPONSIVIDADE
   ========================== */
@media (max-width: 1100px) {
  .dif-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .dif-card {
    max-width: 26.25rem;
  }
  
  .arrow.left { left: -2rem; }
  .arrow.right { right: -2rem; }
}

@media (max-width: 1000px) {
  .historia-grid {
    grid-template-columns: 1fr;
    gap: 1.375rem;
    text-align: center;
  }
  
  .historia-texto p {
    margin: 0 auto;
    max-width: 51.25rem;
  }
}

@media (max-width: 680px) {
  .dif-cards {
    grid-template-columns: 1fr;
  }
  
  .dif-card {
    margin: 0 auto;
    width: 86%;
  }
  
  .dif-icon {
    width: 4.5rem;
    height: 4.5rem;
  }
  
  .dif-card h3 {
    margin-top: 2.875rem;
  }
  
  .arrow {
    display: none;
  }
  
  .carousel-track {
    gap: 1.25rem;
  }
  
  .card {
    min-width: 16rem;
    padding: 1.5rem;
  }
  
  .year {
    width: 16rem;
  }
}

/* Telas muito grandes */
@media (min-width: 1920px) { :root { font-size: 14px; } }
@media (min-width: 2560px) { :root { font-size: 12px; } }