#chapa-agric span, #chapa-auto span {
  border-bottom: 3px solid #1264aa;
}

.header{
  position: relative;
  height: 100vh;
}
.chapa-auto{
  background: url(../img/chapa/chapa-pintura_auto.jpg) no-repeat;
  background-position: center;
  background-size: cover;
}
.chapa-agric{
  background: url(../img/chapa/chapa-pintura_nh.jpg) no-repeat;
  background-position: center;
  background-size: cover;
}

.header::after{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}


#content{
  height: auto;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 0;

  display: flex;
  flex-direction: column;
  align-items:center;
}

/* chapa e pintura */
.article{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;

  padding: 1rem 0;
}
.article > img{
  flex: 1 0 20%;
  max-width: 250px;
}
#p-danos{
  order: 3;
}
#danos1{
  order: 0;
}
#danos2{
  order: 2;
}
#danos3{
  order: 4;
}
.empy_espace{
  flex: 1 0 5%;
}

.text-container{
  justify-content: center;
  flex: 1 0 40%;
}
.text-container > h2{
  padding: 1.5rem;
}
.text-container > p, .text-container > ul, .text-container > h4{
  padding: 1rem;
}
.text-container > ul > li > i{
  color: green;
  padding-right: .5rem;
}
.text-container > div > a{
  margin: 3rem 1rem;
  min-width: 165px;
}
.text-container > p > strong > a{
  color: #1264aa;
}


.sinistros-header{
  position: relative;
  margin-top: 3rem;
}
.sinistros-header::after{
  z-index: 1;
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.sinistros-header img{
  width: 100%;
}
.sinistros-header > h1 {
  z-index: 2;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);

  font-weight: bold;
  color: white;
  font-size: 6vw;
}
#sinistros > h2 {
  padding: 2rem;
  font-weight: bold;
}
#sinistros > ul > li {
  padding: 1.5rem;
}

#content > ul{
  display: flex;
  flex-direction: row;
}
#content > li{
  flex: 1 0 30%;
}
.column{
  display: flex;
  flex-direction: column;
  margin: .5rem;
}
.post{
  margin-bottom: 1rem;
}
.post-desc{
  border: 1px lightgrey solid;
  border-radius: 5px;
  padding: 1rem;
}
.post-desc p, .post-desc h1{
  padding: 0;
  padding-bottom: 1rem;
}

#content img {
  width: 100%;
  height: auto;
}


@media(max-width: 900px) {


  .empy_espace{
    display: none;
  }
  .inline-container{
    flex-direction: column;
    justify-content: flex-start;
  }

  .sinistros-header{
    margin-top: 2rem;
  }
  .sinistros-header > h1 {
    font-size: 15vw;
  }

  /* btn fix */
  #content .btn{
    min-width: 160px;
  }
  .text-container > div > a{
    margin: 0.5rem auto;
  }

}


/* media */
@media(max-width: 700px) {

  .header{
    position: relative;
    height: auto;
    min-height: 100vh;
  }
  .article{
    flex-direction: column;
  }
  #p-danos{
    order: 0;
  }

  .article > img{
    max-width:100%;
    margin: 0 auto;
    /* FIXME:  */
    display: none;
  }

  .empy_espace{
    display: none;
  }
  .inline-container{
    flex-direction: column;
    justify-content: flex-start;
  }

  .sinistros-header{
    margin-top: 2rem;
  }
  .sinistros-header > h1 {
    font-size: 15vw;
  }

  #sinistros > ul > li {
    padding: 0;
  }

  /* btn fix */
  #content .btn{
    min-width: 160px;
  }
  .text-container > div > a{
    margin: 0.5rem auto;
  }

  #content > ul{
    flex-direction: column;
  }

}
