/* Reset simples */
* {
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== variáveis ===== */
:root {
  --container-max: min(1260px, 94%);
  --accent: #e85c43; /* coral */
  --muted: #6b6b6b;
  --card-radius: 16px;
  --card-shadow: 0 18px 40px rgba(9, 22, 28, 0.08);
  --section-padding: 80px 0;
  --font-sans:
    "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial;
}

/* ===== resets menores (assumindo Poppins já incluída) ===== */
.wrap {
  width: var(--container-max);
  margin: 0 auto;
  padding: 80px 16px;
  box-sizing: border-box;
}


/* -----------------------
   SESSAO 1 — História
   ----------------------- */
.sessao-historia {
  padding: var(--section-padding);
  background: #fff;
  font-family: var(--font-sans);
  color: #111;
}

.historia-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 40px;
  align-items: center;
}

/* titulo grande à esquerda, estilo da imagem */
.historia-titulo h2 {
  font-size: 28pt;
  line-height: 1.08;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.2px;
}

.historia-titulo h2 span {
  display: inline-block;
  margin-left: 4px;
}

/* texto explicativo à direita */
.historia-texto p {
  color: var(--muted);
  font-size: 13pt;
  line-height: 1.8;
  margin: 0;
  max-width: 720px;
}

/* responsividade história */
@media (max-width: 1000px) {
  .historia-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }
  .historia-titulo h2 {
    font-size: 28px;
  }
  .historia-texto p {
    margin: 0 auto;
    max-width: 820px;
  }
}

/* -----------------------
   SESSAO 2 — Diferenciais (fundo imagem + overlay)
   ----------------------- */
.sessao-diferenciais {
  position: relative;
  padding: 80px 0 110px;
  background-image: url("../arquivos/2_Sobre_Nós/img_fundo.png"); /* substituir pelo teu ficheiro */
  background-size: cover;
  background-position: center;
  overflow: visible;
  font-family: var(--font-sans);
  color: #fff;
}

/* overlay */
.sessao-diferenciais::after {
  width: 100%;
  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;
}

/* overlay escuro suave para legibilidade */
.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;
}

/* conteudo por cima do overlay */
.sessao-diferenciais .wrap {
  position: relative;
  z-index: 2;
}

/* titulo central */
.dif-titulo {
  text-align: center;
  color: #fff;
  font-size: 36pt;
  margin: 1px 0 60px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* container de cards */
.dif-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start;
  justify-items: center;
  margin-top: 6px;

  display: flex;
  align-items: stretch;
}

/* cada card */
.dif-card {
  width: 100%;
  max-width: 380px;
  min-height: 390px;
  background: rgba(255, 255, 255, 0.98);
  color: #111;
  border-radius: 14px;
  padding: 34px 22px 30px;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: visible;

  display: flex;
  flex-direction: column;
}

/* icone circular que sobrepoe o topo do cartão */
.dif-icon {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute; 
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 10px 26px rgba(9, 22, 28, 0.12);
}
 

/* titulo e texto do cartão */
.dif-card h3 {
  margin-top: 100px; /* afasta para baixo do ícone */
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
}
.dif-card p {
  margin: 0;
  color: #505050;
  font-size: 13pt;
  line-height: 1.7;
}

/* comportamento hover sutil */
.dif-card:hover {
  transform: translateY(-6px);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* responsividade */
@media (max-width: 1100px) {
  .dif-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
  }
  .dif-card {
    max-width: 420px;
  }
}
@media (max-width: 680px) {
  .dif-cards {
    grid-template-columns: 1fr;
  }
  .dif-card {
    margin: 0 auto;
    width: 86%;
  }
  .dif-icon {
    top: -36px;
    width: 72px;
    height: 72px;
  }
  .dif-card h3 {
    margin-top: 46px;
  }
}

.sessao3 {
  background: #f4f4f4;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.sessao3 h2 {
  font-size: 36pt;
  margin-bottom: 60px;
}

.timeline-container {
  position: relative;
  width: 90%;
  margin: auto;
}

/* ===== CAROUSEL ===== */

.carousel {
  overflow: hidden;
}
.carousel-wrapper {
  overflow: hidden;
}

.carousel-track,
.years {
  display: flex;
  will-change: transform;
}

.carousel-track {
  display: flex;
  gap: 40px;
  transition: transform 0.6s ease;
}
.carousel-track {
  scroll-behavior: smooth;
}

.card {
  position: relative;
  min-width: 280px; 
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: left;
  margin-bottom: 60px;
}

.card h3{
  font-size: 15pt;
  margin: 15px 0 10px 1px; 
}
.card p{
  font-size: 13pt;
  line-height: 1.3;
  margin-bottom: 10px; 
}

/* PONTA AGUÇADA */
.card::after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #fff;

  clip-path: polygon(50% 100%, 0 0, 100% 0);

  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

/* ===== TIMELINE ===== */

.timeline-wrapper {
  position: relative;
  margin-top: 2px;
  height: 100px;
}

.timeline-line {
  position: absolute;
  top: 15px;
  width: 100%;
  height: 40px;
  background: #148dbd;
  border-radius: 20px;
}

.years {
  position: absolute;
  top: 0;
  display: flex;
  gap: 40px;
  transition: transform 0.6s ease;
}

.year {
  width: 280px;
  display: flex;
  justify-content: center;
}

.year span {
  background: #e85c43;
  color: white;
  padding: 14px 18px;
  border-radius: 50%;
  font-weight: bold;
  height: 70px;
  display: flex; /* transforma o span em flex container */
  align-items: center; /* centraliza verticalmente */
  justify-content: center; /* centraliza horizontalmente */
  text-align: center; /* centraliza o texto como fallback */
}

/* ===== SETAS ===== */

.arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  background: #e85c43;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  z-index: 10;
}

.arrow.left {
  left: -60px;
}

.arrow.right {
  right: -60px;
}

.arrow:hover {
  background: #d14f38;
}

/* ===================================
   SESSÃO HISTÓRIA - MOBILE
=================================== */

.sessao-historia {
  padding: 60px 0;
  text-align: center;
}

.historia-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.historia-titulo h2 {
  font-size: 24px;
  line-height: 1.3;
}

.historia-texto p {
  font-size: 15px;
  line-height: 1.8;
  max-width: 100%;
}


/* ===================================
   SESSÃO DIFERENCIAIS - MOBILE
=================================== */

.sessao-diferenciais {
  padding: 70px 0 90px;
}

.dif-titulo {
  font-size: 26px;
  margin-bottom: 50px;
  padding: 0 10px;
}

.dif-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
}

/* Card ajustado */
.dif-card {
  width: 92%;
  max-width: 420px;
  min-height: auto;
  padding: 40px 20px 30px;
}

/* Ícone */
.dif-icon {
  top: -40px;
  width: 75px;
  height: 75px;
}

/* Título do card */
.dif-card h3 {
  margin-top: 60px;
  font-size: 18px;
}

/* Texto */
.dif-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* ===================================
   TIMELINE - MOBILE
=================================== */

.sessao3 {
  padding: 70px 0;
}

.sessao3 h2 {
  font-size: 26px;
  margin-bottom: 50px;
}

.timeline-container {
  width: 100%;
}

/* Cards menores e mais compactos */
.card {
  min-width: 240px;
  padding: 22px;
  margin-bottom: 50px;
}

.card h3 {
  font-size: 14px;
}

.card p {
  font-size: 13px;
  line-height: 1.5;
}

/* Ajustar ponta */
.card::after {
  width: 90px;
  height: 24px;
  bottom: -20px;
}

/* Timeline barra */
.timeline-wrapper {
  height: 90px;
}

.timeline-line {
  height: 30px;
}

/* Anos */
.year {
  width: 240px;
}

.year span {
  height: 55px;
  width: 55px;
  font-size: 13px;
}

/* Setas mais próximas */
.arrow {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.arrow.left {
  left: 5px;
}

.arrow.right {
  right: 5px;
}

.sessao-historia .wrap {
  margin: 20px 10px 20px 10px; 
  padding: 40px 16px;
  box-sizing: border-box;
  border: 1px solid #787777;
  border-radius: 20px;
}





/* Linha laranja acima do título */
.historia-titulo {
  display: flex;           /* Ativa o flexbox */
  flex-direction: column;  /* Empilha os itens (linha e título) verticalmente */
  align-items: center;     /* Centraliza tudo horizontalmente */
}

/* Cria a linha */
.historia-titulo::before {
  content: "";
  width: 70px;             /* Largura da linha */
  height: 1px;             /* Espessura da linha */
  background-color: #e85c43; /* Cor laranja */
  border-radius: 2px;      /* Pontas arredondadas (opcional) */
  margin-bottom: 16px;     /* Espaço entre a linha e o título */
}

