html * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; 
}

body {
  font-size: 100%;
  font-family: "Droid Serif", serif;
  color: #7f8c97;
  background-color: #f7f4ec;
}

a {
  color: #acb7c0;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
}

img.logo {
  width: 310px;
}

img {
  max-width: 125%;
}

body header h1 {
  margin-top: 20px;
  font-size: 1.7rem;
  text-shadow: 2px 3px 0px #033962;
  line-height: 3rem;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Open Sans", sans-serif;
  font-weight: bold;
}

a.cd-read-more {
  display: none !important;
}


.cd-container {
  width: 90%;
  max-width: 1170px;
  margin: 0 auto;
}

.cd-container::after {
  content: '';
  display: table;
  clear: both;
}

header {
  height: 200px;
  line-height: 200px;
  text-align: center;
  background: #0C2340;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

header h1 {
  color: #ffffff;
  font-size: 18px;
  font-size: 1.125rem;

}

@media only screen and (min-width: 1170px) {
  header {
    height: 300px;
    line-height: 300px;
  }

  header h1 {
    font-size: 24px;
    font-size: 1.5rem;
  }
}

#cd-timeline {
  position: relative;
  padding: 2em 0;
  /* margin-top: 2em; */
  margin-bottom: 2em;
}

#cd-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 4px;
  background: #dcd4bd;
}

@media only screen and (min-width: 1170px) {
  #cd-timeline {
    margin-top: 3em;
    margin-bottom: 3em;
  }

  #cd-timeline::before {
    left: 50%;
    margin-left: -2px;
  }
}

.cd-timeline-block {
  position: relative;
  margin: 2em 0;
}

.cd-timeline-block::after {
  clear: both;
  content: "";
  display: table;
}

.cd-timeline-block:first-child {
  margin-top: 0;
}

.cd-timeline-block:last-child {
  margin-bottom: 0;
}

@media only screen and (min-width: 1170px) {
  .cd-timeline-block {
    margin: 4em 0;
  }

  .cd-timeline-block:first-child {
    margin-top: 0;
  }

  .cd-timeline-block:last-child {
    margin-bottom: 0;
  }
}


.container-img {
  max-width: 100%;
  height: 265px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  order: 4;
}

.container-img>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
  display: none;
}

.container-img:hover>img {
  transform: scale(1.1);
}




.cd-timeline-img {
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #ffffff, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}


.cd-timeline-img img {
  display: block;
  width: 24px;
  height: 24px;
  position: relative;
  left: 50%;
  top: 50%;
  margin-left: -12px;
  margin-top: -12px;
  transition: transform 0.45s;
}

.cd-timeline-img:hover img {
  transform: scale(1.2);
}



.cd-timeline-img.cd-movie {
  background: #c03b44;
}

.cd-timeline-img.cd-location {
  background: #f0ca45;
}

@media only screen and (min-width: 1170px) {
  .cd-timeline-img {
    width: 60px;
    height: 60px;
    left: 50%;
    /* margin-left: -30px; */
    /* Force Hardware Acceleration in WebKit */
    /* -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden; */
  }

  .cssanimations .cd-timeline-img.is-hidden {
    visibility: hidden;
  }

  .cssanimations .cd-timeline-img.bounce-in {
    visibility: visible;
    -webkit-animation: cd-bounce-1 0.6s;
    -moz-animation: cd-bounce-1 0.6s;
    animation: cd-bounce-1 0.6s;
  }
}

@-webkit-keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
  }

  100% {
    -webkit-transform: scale(1);
  }
}

@-moz-keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -moz-transform: scale(0.5);
  }

  60% {
    opacity: 1;
    -moz-transform: scale(1.2);
  }

  100% {
    -moz-transform: scale(1);
  }
}

@keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
    -moz-transform: scale(0.5);
    -ms-transform: scale(0.5);
    -o-transform: scale(0.5);
    transform: scale(0.5);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
    transform: scale(1.2);
  }

  100% {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }
}

.cd-timeline-content {
  position: relative;
  margin-left: 70px;
  background: #ffffff;
  border-radius: 0.7em;
  padding: 1em;
  /* box-shadow: 0 3px 0 #d7e4ed; */
  box-shadow: 8px 11px 15px #e1dbc9;
  top: -25px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s ease;
}

.no-touch .cd-timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 10px 16px 20px #d1cbb9;
}

.cd-timeline-content::after {
  clear: both;
  content: "";
  display: table;
}

.cd-timeline-content h2 {
  /* color: #303e49; */
  color: #DDA641;
  order: 2;
}

.cd-timeline-content p,
.cd-timeline-content .cd-read-more,
.cd-timeline-content .cd-date {
  font-size: 13px;
  font-size: 0.8125rem;
}

.cd-timeline-content .cd-read-more,
.cd-timeline-content .cd-date {
  display: inline-block;
}

.cd-timeline-content p {
  /* display: none; */
  /* Comentado para que o texto apareça no popup */
  margin: 1em 0;
  line-height: 1.6;
  order: 3;
}

.cd-timeline-content .cd-read-more {
  float: right;
  padding: .8em 1em;
  background: #acb7c0;
  color: #ffffff;
  border-radius: 0.25em;
}

.no-touch .cd-timeline-content .cd-read-more:hover {
  background-color: #bac4cb;
}

.cd-timeline-content .cd-date {
  float: left;
  padding: .8em 0;
  opacity: .7;
  font-family: "Open Sans", sans-serif;
  font-weight: bold;
  font-size: 1.65rem;
  color: #303e49;

  order: 1;
}

.cd-timeline-content::before {
  content: '';
  position: absolute;
  top: 35px;
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-right: 7px solid #ffffff;
}

@media only screen and (min-width: 768px) {


#cd-timeline>div:nth-child(12)>div.cd-timeline-img.cd-picture.is-hidden {
    width: 100px;

    box-shadow: 0 0 0 0 !important;
    background-color: rgba(255, 255, 255, 0);
    margin-left: 5px;
    margin-bottom: 23px;
  }

  #cd-timeline>div:nth-child(12)>div.cd-timeline-img.cd-picture.is-hidden img {
    width: 80px;
    height: auto;
    left: -9%;
    background-color: #f7f4ec;
    margin-bottom: 10px;
  }
  
  .cd-timeline-content h2 {
    font-size: 20px;
    font-size: 1.65rem;
    line-height: 2rem;
  }

  .cd-timeline-content p {
    font-size: 16px;
    font-size: 1rem;
  }

  .cd-timeline-content .cd-read-more,
  .cd-timeline-content .cd-date {
    font-size: 14px;
    font-size: 0.875rem;
  }
}

@media only screen and (min-width: 1170px) {
  .cd-timeline-content {
    margin-left: 0;
    padding: 2.2em;
    width: 45%;
  }

  .cd-timeline-content::before {
    top: 45px;
    left: 100%;
    border-color: transparent;
    border-left-color: #ffffff;
  }

  .cd-timeline-content .cd-read-more {
    float: left;
  }

  .cd-timeline-content .cd-date {
    position: absolute;
    width: 100%;
    left: 122%;
    top: 12px;
    font-size: 16px;
    font-size: 2rem;
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content {
    float: right;
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
    top: 45px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: #ffffff;
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
    float: right;
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
    left: auto;
    right: 122%;
    text-align: right;
  }

  .cssanimations .cd-timeline-content.is-hidden {
    visibility: hidden;
  }

  .cssanimations .cd-timeline-content.bounce-in {
    visibility: visible;
    -webkit-animation: cd-bounce-2 0.6s;
    -moz-animation: cd-bounce-2 0.6s;
    animation: cd-bounce-2 0.6s;
  }
}

@media only screen and (min-width: 1170px) {

  .cssanimations .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in {
    -webkit-animation: cd-bounce-2-inverse 0.6s;
    -moz-animation: cd-bounce-2-inverse 0.6s;
    animation: cd-bounce-2-inverse 0.6s;
  }
}

@-webkit-keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
  }

  100% {
    -webkit-transform: translateX(0);
  }
}

@-moz-keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -moz-transform: translateX(-100px);
  }

  60% {
    opacity: 1;
    -moz-transform: translateX(20px);
  }

  100% {
    -moz-transform: translateX(0);
  }
}

@keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
    -moz-transform: translateX(-100px);
    -ms-transform: translateX(-100px);
    -o-transform: translateX(-100px);
    transform: translateX(-100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
    -moz-transform: translateX(20px);
    -ms-transform: translateX(20px);
    -o-transform: translateX(20px);
    transform: translateX(20px);
  }

  100% {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }
}

@-webkit-keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
  }

  100% {
    -webkit-transform: translateX(0);
  }
}

@-moz-keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -moz-transform: translateX(100px);
  }

  60% {
    opacity: 1;
    -moz-transform: translateX(-20px);
  }

  100% {
    -moz-transform: translateX(0);
  }
}

@keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
    -moz-transform: translateX(100px);
    -ms-transform: translateX(100px);
    -o-transform: translateX(100px);
    transform: translateX(100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
    -moz-transform: translateX(-20px);
    -ms-transform: translateX(-20px);
    -o-transform: translateX(-20px);
    transform: translateX(-20px);
  }

  100% {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }
}


@media (max-width: 700px) {
  .timeline-popup h2 {
    font-size: 1.25rem !important;
    line-height: 1.6rem;
    color: #DDA641;
  }

  .timeline-popup p {
    font-size: 0.85rem;
    line-height: 1.3 !important;
    color: #7f8c97;
    margin: 1em 0;
    line-height: 1.6;
  }

  img.logo {
    width: 190px !important;
  }

  header {
    padding: 0 30px !important;
  }

  body header h1 {
    font-size: 1.4rem !important;
    line-height: 2rem !important;
  }

  .container-img {
    height: 205px !important;
  }

  .cd-timeline-content {
    top: -69.8px;

  }

  .cd-timeline-content h2 {
    font-size: 1.3rem !important;
    line-height: 1.6rem !important;

  }

  .cd-timeline-content .cd-date {
    font-size: 1.1rem !important;
    padding: 4px 0 6px 0 !important;
  }

}



div.container {
  width: 100%;
  overflow: hidden;
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: height 0.3s ease;
}

#timeline-horizontal {
  transform-origin: top center;
  transform: scale(1);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 70px;
}


#timeline-horizontal .line {
  width: 54px;
  height: 50px;
  z-index: 1;
}

#timeline-horizontal .line.right {
  transform: scaleX(-1);
}

#timeline-horizontal div.btn {
  width: 48px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 100;
  cursor: pointer;
}

#timeline-horizontal div.btn.top {
  margin-top: -177.2px;
  justify-content: flex-end;

}

#timeline-horizontal div.btn.bottom {
  margin-top: 175px;

}

#timeline-horizontal div.btn.bottom .ano {
  margin-top: 7px;

}




#timeline-horizontal div.btn.top .cd-timeline-img.cd-picture {
  order: 3;
}

#timeline-horizontal div.btn.top .ano {
  order: 1;
}

#timeline-horizontal div.btn.top .titulo {
  order: 2;
}

#timeline-horizontal div.btn.bottom .cd-timeline-img.cd-picture {
  order: 1;
}

#timeline-horizontal div.btn.bottom .ano {
  order: 2;
}

#timeline-horizontal div.btn.bottom .titulo {
  order: 3;
}


.cd-timeline-img.cd-picture {
  background: #DDA641;
  display: flex;
  flex-direction: column;
}


p.titulo {
  width: 170px;
  text-align: center;
  font-size: 14px;
  font-weight: 500 !important;
  font-family: "Open Sans", sans-serif;
  font-weight: bold;
  line-height: 17px;
}

p.titulo:hover {
  color: #545e65
}

p.ano {
  width: 100px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;

  font-family: "Open Sans", sans-serif;
  font-weight: bold;
}

p.ano:hover {
  color: #545e65
}



/* Popup */

#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.timeline-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: #333;
  z-index: 1000;
  max-width: 500px;
  width: 90%;
  border-radius: 10px;
  padding: 38px;
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.2);
  display: none;
}

.timeline-popup h2 {
  font-size: 1.65rem;
  line-height: 2rem;
  color: #DDA641;
}

span#popup-date {
  font-size: 1.35rem;
  line-height: 2rem;
  font-weight: 800;
  color: #7f8c97;
  font-family: "Open Sans", sans-serif;
  font-weight: bold;
}

.timeline-popup p {
  font-size: 1rem;
  line-height: 1.4;
  color: #7f8c97;
  margin: 1em 0;
  line-height: 1.6;
}

.timeline-popup .close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  float: right;
  cursor: pointer;
  width: 44px;
  height: 44px;
  background-color: #DDA641;
  border-radius: 30px;
  padding-top: 3px;
  padding-left: 8px;
  position: absolute;
  right: -17px;
  top: -15px;
}

#timeline-horizontal {
  display: flex;
}

.cd-container {
  display: none;
}

#timeline-horizontal>div:nth-child(24) {
  gap: 0px;
  cursor: pointer;
}

#timeline-horizontal>div:nth-child(24)>div {
  width: 100px;

  box-shadow: 0 0 0 0;
  background-color: rgba(255, 255, 255, 0);
  margin-left: 5px;
}

#timeline-horizontal>div:nth-child(24)>div img {
  width: 100px;
  height: auto;
  left: 24%;
  background-color: #f7f4ec;
}

#timeline-horizontal>div:nth-child(24)>p.ano {
  margin-left: 23px;
}

@media (max-width: 600px) {

  #timeline-horizontal {
    display: none;
  }

  .cd-container {
    display: block;
  }

}



@media (max-width: 600px) {

  #cd-timeline > div:nth-child(12) > .cd-timeline-img.cd-picture {
    width: 100px;           /* mesmo ajuste usado no desktop */
    height: auto;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin-left: 5px;
    margin-bottom: 23px;
  }
  /* Ajusta a imagem da marca para não ficar centralizada com offsets do layout circular */
  #cd-timeline > div:nth-child(12) > .cd-timeline-img.cd-picture img {
        position: static !important;
        width: 73px;
        height: auto;
        margin: 0;
        margin-left: -15px;
        padding: 10px 0px;
        top: auto;
        background: #f7f4ec;
    }
}












#timeline-horizontal>div:nth-child(1) {
  display: none;
}


#cd-timeline>div>div.cd-timeline-content>p {
  display: none;
}

@media (max-width: 1180px) {

  header {
    height: 300px;

  }
}


@media (max-width: 1150px) {
  #timeline-horizontal .line {
    width: 47px;
  }

  header {
    height: 300px;

  }
}

@media (max-width: 1075px) {
  #timeline-horizontal .line {
    width: 40px;
  }

  header {
    height: 300px;

  }
}

@media (max-width: 1000px) {
  #timeline-horizontal .line {
    width: 35px;
  }

  header {
    height: 300px;

  }


}