@import url('https://fonts.googleapis.com/css2?family=Carlito:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
		--navy: #1b2d5a;
		--light: #d9d9d9;
		--text: #ffffff;
		--line: rgba(255, 255, 255, .85);
		--row-h: 60px;      /* altura de cada linha (onde ficam os anos) */
		--gap: 110px;       /* espaço vertical entre as linhas */
		--badge-w: 78px;
		--badge-h: 24px;
	}

body {
  font-family: 'Carlito', 'Calibri', sans-serif;
  background-color: #e3e4e3;
}

.menu-principal {
  text-transform: uppercase;
  width: 100%;

  ul {
    display: flex;
    justify-content: center;
    gap: 50px;
    color: #00182e;
    font-weight: 500;
  }
  a {
    transition: 0.4s;
    font-size: 20px;
  }
  a:hover {
    color: #345571;
  }
}

.tc-slide {
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease, z-index 0s;
}

.tc-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0) 65%);
}

.tc-slide-content h3 {
  line-height: 1.2;
}

.tc-slide-content p {
  line-height: 1.1;
  opacity: 0.9;
}

.tc-slide[data-pos="0"] {
  transform: translate(-50%, -50%) scale(1);
  z-index: 5;
  filter: brightness(1);
}
.tc-slide[data-pos="0"] .tc-slide-content h3 { font-size: 25px; }
.tc-slide[data-pos="0"] .tc-slide-content p { font-size: 15px; }

.tc-slide[data-pos="-1"] {
  transform: translate(-125%, -50%) scale(0.8);
  z-index: 4;
  filter: brightness(0.75);
}
.tc-slide[data-pos="-1"] .tc-slide-content {
  text-align: left !important;
}
.tc-slide[data-pos="-1"] .tc-slide-content p {
  margin-right: auto !important;
  margin-left: 0 !important;
}

.tc-slide[data-pos="1"] {
  transform: translate(25%, -50%) scale(0.8);
  z-index: 4;
  filter: brightness(0.75);
}

.tc-slide[data-pos="-2"],
.tc-slide[data-pos="2"],
.tc-slide[data-pos="far"] {
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.tc-nav {
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  line-height: 1;
  transition: background 0.2s;
}

.tc-dot {
  transition: background 0.2s, transform 0.2s;
}
.tc-dot.is-active {
  transform: scale(1.3);
  width: 30px;
  border-radius: 5px;
  margin: 0 3px;
}

.wpcf7-form {
  width: fit-content;
  margin: 0 auto;

  .wpcf7-form-control {
    border: 2px solid #6a7282;
    padding: 2px 10px;
    margin-bottom: 20px;
  }

  .wpcf7-submit {
    cursor: pointer;
  }

  .wpcf7-file {
    font-size: 20px;
  }
}

.wpcf7-form-control {
  width: 100% !important;
}

.header-mobile {
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 100%;
  z-index: 9;

  .s-class {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
  }

  .logo {
    width: 70px;
  }

  nav {
    display: none;

    a {
      color: #345571;
      font-size: 1.4rem;
      padding: .5rem;
      text-transform: uppercase;
    }
  }

  .menu-toggle {
    height: 30px;
    width: 40px;

    .one,
    .two,
    .three {
      background-color: #345571;
      border-radius: 3px;
      cursor: pointer;
      height: 4px;
      margin: 6px auto;
      transition-duration: .3s;
      width: 90%;
    }
  }

  .menu-lista {
    flex-direction: column;
    gap: 0;
  }

  .on {
    align-items: center;
    background-color: #e3e4e3;
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;

    nav {
      display: block;
    }

    ul {
      padding: 0;
      text-align: center;
    }

    a {
      display: block;
    }

    .sub-menu {
      height: 160px;
      overflow: scroll;
      position: relative;
    }

    .menu-toggle {
      position: absolute;
      right: 25px;
      top: 15px;
    }

    .one {
      background-color: #345571;
      transform: rotate(45deg) translate(7px, 7px);
    }

    .two {
      background-color: #345571;
      opacity: 0;
    }

    .three {
      background-color: #345571;
      transform: rotate(-45deg) translate(8px, -9px);
    }
  }
}

#trajetoria {
	box-sizing: border-box; margin: 0; padding: 0;
    position: relative;
    width: 100%;
    padding: 70px 24px 90px;
    color: var(--text);
    overflow: hidden;

  .timeline__title {
    text-align: center;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -.01em;
    margin-bottom: 110px;
  }
  .timeline__title strong { font-weight: 700; margin-right: .4em; }

  /* ============ LINHAS ============ */
  .rows {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
  }

  .row {
    position: relative;
    display: grid;
    height: var(--row-h);
    align-items: center;
  }
  .row--1 { grid-template-columns: repeat(8, 1fr); }
  .row--2 { grid-template-columns: repeat(6, 1fr); }
  .row--3 { grid-template-columns: repeat(5, 1fr); width: 78%; }

  /* linha horizontal */
  .row::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 50%;
    border-top: 1px solid var(--line);
	  width: 102%;
  }

  /* conectores em "U" entre as linhas */
  .row--1::after,
  .row--2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 32px;
    height: calc(var(--row-h) + var(--gap));
    border-top: 1px solid var(--line);
  }
  .row--1::after { right: -32px; border-right: 1px solid var(--line); }
  .row--2::after { left: 0;  border-left: 1px solid var(--line); }

  /* ============ ITEM ============ */
  .item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .year {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--badge-w);
    height: var(--badge-h);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    background: var(--navy);
    color: #fff;
  }
  .year--light {
    background: linear-gradient(#f2f2f2, #c9c9c9);
    color: var(--navy);
  }

  /* texto com filete vertical à esquerda */
  .text {
    position: absolute;
    left: calc(50% - var(--badge-w) / 2);
    width: 150px;
    padding-left: 8px;
    border-left: 1px solid var(--line);
    font-size: .72rem;
    line-height: 1.25;
    color: #e9e9e9;
  }
  .text h3 {
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 2px;
  }
  .text p { font-weight: 400; }

  .text--down { top: calc(50% + var(--badge-h) / 2 + 4px); }
  .text--up   { bottom: calc(50% + var(--badge-h) / 2 + 4px); }

  /* miniatura do prédio (1996) */
  .thumb {
    position: absolute;
    left: 50%;
    bottom: calc(50% + var(--badge-h) / 2 + 6px);
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    background: #8fb3d9;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  }
  .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* ============ MOBILE: vira lista vertical ============ */
  @media (max-width: 900px) {
    .timeline { padding: 50px 20px 60px; }
    .timeline__title { margin-bottom: 40px; }

    .rows { padding: 0; gap: 22px; }

    .row,
    .row--1, .row--2, .row--3 {
      display: flex;
      flex-direction: column;
      gap: 22px;
      height: auto;
      width: 100%;
      align-items: stretch;
    }
    .row::before, .row::after { display: none; }

    .item {
      justify-content: flex-start;
      align-items: flex-start;
      gap: 14px;
      height: auto;
    }
    .year { flex: 0 0 var(--badge-w); }

    .text,
    .text--up, .text--down {
      position: static;
      width: auto;
      flex: 1;
      font-size: .85rem;
    }
    .text h3 { font-size: .95rem; }

    .thumb { display: none; }
  }
}

@media (max-width: 640px) {
  .tc-slide { width: 220px; height: 280px; }
  .tc-viewport { height: 320px; }
}

@media (width >= 64rem) {
  .menu-principal {
    ul {
      gap: 25px;
      align-items: center;
      text-align: center;
      line-height: 1.2;
    }
    a {
      font-size: 18px;
    }
  }
}

@media (width >= 96rem) {
  .menu-principal {
    ul {
      gap: 50px;
    }
    a {
      font-size: 20px;
    }
  }
}