:root {
  /*ORDEM DOS CARDS*/
  --order-step1: 1;
  --order-step2: 2;
  --order-step3: 3;
  --order-step4: 4;
  --order-step5: 5;
  --order-step6: 6;
  --order-step7: 7;

  /*CORES DO HEAD*/
  --color-step1: hsl(200, 100%, 80%)  ;  
  --color-step2: hsl(200, 94%, 72%) ;   
  --color-step3: hsl(205, 83%, 77%) ;  
  --color-step4: hsl(206, 92%, 74%); 
  --color-step5: hsl(210, 96%, 72%) ; 
  --color-step6: hsl(214, 64%, 72%) ;  
  --color-step7: hsl(216, 57%, 67%);  
}
/*
 --color-step1: hsl(214, 64%, 72%);  
 --color-step2: hsl(216, 57%, 67%);   
 --color-step3: hsl(210, 96%, 72%);  
 --color-step4: hsl(200, 97%, 76%); 
 --color-step5: hsl(206, 92%, 74%); 
 --color-step6: hsl(205, 83%, 77%);  
 --color-step7: hsl(200, 100%, 80%);  
*/

* {
  box-sizing: border-box;
}

@media (min-width: 1000px) {

  /*SETAS DEPOIS DO HEAD ESTRUTURA*/
  #timeline .demo-card:nth-child(odd) .head::after,
  #timeline .demo-card:nth-child(even) .head::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid transparent;
    /* Inicialmente configurado como transparente */

  }


  /*BOLINHA DEPOIS DO HEAD*/
  /* #timeline .demo-card:nth-child(odd) .head::before,
  #timeline .demo-card:nth-child(even) .head::before {*/
  #timeline .demo-card:nth-child(1) .head::before {
    position: absolute;
    content: "";
    width: 9px;
    height: 9px;
    background-color: #bdbdbd;
    border-radius: 9px;
    box-shadow: 0px 0px 2px 8px #f7f7f7;
  }

  #timeline {
    padding: 90px 0 !important;
  }

  /*POSIÇÃO DO TOPO EM RELAÇÃO A BODY DO CARD*/
  #timeline .demo-card--step1 .body {
    top: -18px;
  }

  #timeline .demo-card--step2 .body {
    top: -70px;
  }

  #timeline .demo-card--step3 .body {
    top: -122px;
  }

  #timeline .demo-card--step4 .body {
    top: -174px;
  }

  #timeline .demo-card--step5 .body {
    top: -226px;
  }

  #timeline .demo-card--step6 .body {
    top: -278px;
  }

  #timeline .demo-card--step7 .body {
    top: -330px;
  }

  /*ESPAÇAMENTO DO HEAD DO CARD PARA FICAREM EMBAIXO DO OUTRO*/
  #step2 {
    top: -310px;
  }

  #step3 {
    top: -620px;
  }

  #step4 {
    top: -930px;
  }

  #step5 {
    top: -1240px;
  }

  #step6 {
    top: -1550px;
  }

  #step7 {
    top: -1860px;
  }

 .imgCardBody{
    height: 201px;
    max-height: 90%;
    border-top: 2px solid orange;
  }

} /* fim media query min 1000px*/

/*ORDEM DOS CARDS*/
.demo-card:nth-child(1) {
  order: var(--order-step1);
}

.demo-card:nth-child(2) {
  order: var(--order-step2);
}

.demo-card:nth-child(3) {
  order: var(--order-step3);
}

.demo-card:nth-child(4) {
  order: var(--order-step4);
}

.demo-card:nth-child(5) {
  order: var(--order-step5);
}

.demo-card:nth-child(6) {
  order: var(--order-step6);
}

.demo-card:nth-child(7) {
  order: var(--order-step7);
}

#timeline {
  margin-top: 0;
  border-top: 1px solid rgba(191, 191, 191, 0.4);
  border-bottom: 1px solid rgba(191, 191, 191, 0.4);
}

#timeline h1 {
  padding-left: 15px;
}

#timeline p.leader {
  text-align: center;
  max-width: 90%;
  padding-left: 15px;
  margin-bottom: 45px;
}

#timeline .demo-card-wrapper {
  position: relative;
  margin: auto;
}



@media (min-width: 1000px) {
  #timeline .demo-card-wrapper {
    border: #4d92eb00 1px solid;
    display: flex;
    flex-flow: row wrap;
    width: 1170px;
    height: 2540px;
    margin: 0 50px;
  }

  html,
  body {
    overflow-y: hidden !important;
  }

  /* Inicialmente, a visibilidade da .body é oculta */
  .demo-card .body {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
  }

/* Torna o corpo do cartão visível quando tem a classe 'show' */
.body.show {
    visibility: visible;
    opacity: 1;
  }

  /*CONTEUDO PARA DIREITA */
  #timeline .demo-card .body {
    position: relative;
    float: right;
    width: calc(120% - 1px);
    /*estava 100% qualquer coisa*/
    padding: 15px;
    left: 610px;
    /*MOVIMENTAR BODY PARA DIREITA*/
    margin-top: -30px;
    /* Ajuste a posição vertical para alinhar com o cabeçalho */
  }

  /*TAMANHO DO CARD PARA FICAREM EMBAIXO DO OUTRO*/
  .tamanhoCard {
    height: 20px !important;
  }
}

#timeline .demo-card-wrapper::after {
  z-index: 1;
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px solid rgba(191, 191, 191, 0.4);
}

@media (min-width: 1000px) {

  /*LINHA DO MEIO DA TIMELINE*/
  #timeline .demo-card-wrapper::after {
    border-left: 1px solid #ff6619;
  }
}

#timeline .demo-card {
  position: relative;
  display: block;
  margin: 10px auto 10px;
  max-width: 94%;
  z-index: 2;
}

@media (min-width: 480px) {
  #timeline .demo-card {
    max-width: 60%;
  }
}

@media (min-width: 720px) {
  #timeline .demo-card {
    max-width: 40%;
  }
}

@media (min-width: 1000px) {
  #timeline .demo-card {
    max-width: 450px;
    height: 500px;
    margin-left: 90px;
    margin-right: 90px;
    margin-top: 0;
    margin-bottom: 45px;
  }

  #timeline .demo-card:nth-child(odd),
  #timeline .demo-card:nth-child(even) {
    margin-right: 45px;
  }

  #timeline .demo-card:nth-child(odd) .head::after,
  #timeline .demo-card:nth-child(even) .head::after {
    border-left-width: 15px;
    border-left-style: solid;
    left: 100%;
  }

  #timeline .demo-card:nth-child(odd) .head::before,
  #timeline .demo-card:nth-child(even) .head::before {
    left: 491.5px;
  }

  /*TITULO DO BODY*/
  .tituloStep1,
  .tituloStep2,
  .tituloStep3,
  .tituloStep4,
  .tituloStep5,
  .tituloStep6,
  .tituloStep7 {
    padding: 4px;
    text-transform: uppercase;
    font-size: 1.3rem;
    font-weight: inherit;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1rem;
  }

  /*altura para img ficar embaixo*/
  .altText {
    height: 134px;
  }
}

#timeline .demo-card .head {
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  height: 50px;
  font-weight: 400;
}

#timeline .demo-card .head .number-box {
  display: inline;
  float: left;
  margin: 15px;
  padding: 5px;
  font-size: 25px;
  line-height: 35px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.17);
}

#timeline .demo-card .head h2 {
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: inherit;
  letter-spacing: 2px;
  margin: 0;
  padding-bottom: 6px;
  line-height: 1rem;
}

@media (min-width: 480px) {
  #timeline .demo-card .head h2 {
    font-size: 100%;
    line-height: 1.2rem;
  }
}

#timeline .demo-card .head h2 span {
  display: block;
  font-size: 0.6rem;
  margin: 0;
}

@media (min-width: 480px) {
  #timeline .demo-card .head h2 span {
    font-size: 0.8rem;
  }
}

#timeline .demo-card .body {
  background: #fff;
  border: 1px solid rgba(191, 191, 191, 0.4);
  overflow: hidden;
  border-top: 0;
  padding: 15px;
}

@media (min-width: 1000px) {
  #timeline .demo-card .body {
    border: 4px solid;
    height: calc(60vh - 30px);
  }

  /*BACKGROUND DA TIMELINE*/
  #timeline {
    background-image: url('../../images/background/bgEmpresa.gif');
    background-repeat: no-repeat;
    background-size: 100% auto;
  }

}

#timeline .demo-card .body p {
  font-size: 18px;
  line-height: 20px;
  margin-bottom: 15px;
}

#timeline .demo-card .body img {
  display: block;
  width: 100%;
}

/*BACKGROUND COLOR DOS HEADS*/
#timeline .demo-card--step1 .head,
.tituloStep1 {
  background-color: var(--color-step1);
}

#timeline .demo-card--step2 .head,
.tituloStep2 {
  background-color: var(--color-step2);
}

#timeline .demo-card--step3 .head,
.tituloStep3 {
  background-color: var(--color-step3);
}

#timeline .demo-card--step4 .head,
.tituloStep4 {
  background-color: var(--color-step4);
}

#timeline .demo-card--step5 .head,
.tituloStep5 {
  background-color: var(--color-step5);
}

#timeline .demo-card--step6 .head,
.tituloStep6 {
  background-color: var(--color-step6);
}

#timeline .demo-card--step7 .head,
.tituloStep7 {
  background-color: var(--color-step7);
}

/*CORES DAS SETAS*/
#timeline .demo-card--step1:hover .head::after {
  border-left-color: var(--color-step1);
}

#timeline .demo-card--step2:hover .head::after {
  border-left-color: var(--color-step2);
}

#timeline .demo-card--step3:hover .head::after {
  border-left-color: var(--color-step3);
}

#timeline .demo-card--step4:hover .head::after {
  border-left-color: var(--color-step4);
}

#timeline .demo-card--step5:hover .head::after {
  border-left-color: var(--color-step5);
}

#timeline .demo-card--step6:hover .head::after {
  border-left-color: var(--color-step6);
}

#timeline .demo-card--step7:hover .head::after {
  border-left-color: var(--color-step7);
}

/*BORDA DO CORPO DOS OUTROS CARTÕES*/
#timeline .demo-card--step1 .body {
  border-color: var(--color-step1);
}

#timeline .demo-card--step2 .body {
  border-color: var(--color-step2);
}

#timeline .demo-card--step3 .body {
  border-color: var(--color-step3);
}

#timeline .demo-card--step4 .body {
  border-color: var(--color-step4);
}

#timeline .demo-card--step5 .body {
  border-color: var(--color-step5);
}

#timeline .demo-card--step6 .body {
  border-color: var(--color-step6);
}

#timeline .demo-card--step7 .body {
  border-color: var(--color-step7);
}


/*QUANDO ESTIVER EM TELAS MENORES*/
@media (max-width: 1000px) {

  /*AUMENTA O ESPAÇAMENTO QUANDO ESTIVER EM TELAS MENORES*/
  #timeline .demo-card {
    margin: 10px auto 90px;
    height: 500px !important;
  }

  .text-content {
    margin-top: 155px;
  }

  #timeline {
    padding: 150px 0;
  }
}

/* Adicione este estilo para ocultar o título em telas menores */
@media only screen and (max-width: 1000px) {
  .hide-title-mobile {
    display: none;
  }
  /*BACKGROUND DA TIMELINE*/
#timeline {
  background-image: url('../../images/background/bgMobile.png');
  background-repeat: no-repeat;
  background-size: auto 100%;
}
}


