.pecas-title {
  padding: 50px 0 100px;
  width: 100%;
  background-color: #061940;
  color: #ffffff;
  display: flex;
  justify-content: center;
  text-align: center;
}
.pecas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: -50px auto 100px;
}

.pecas h3 {
  padding: 20px 0;
  text-align: center;
}

.tab {
  border: none;
  background: #f4f4f4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tab button {
  background: transparent;
  color: #061940;
  padding: 18px 12px;
  flex: 1;
  border: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab button:hover {
  color: #000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.tab button.active {
  background-color: #fff;
  color: #000;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px); /* levanta */
}
.tabcontent {
  padding: 30px 20px;
  border: none;
  background: #fff;
  border-radius: 12px;
  margin-top: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tabcontent img,
.tabcontent video {
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tabcontent img:hover,
.tabcontent video:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

main h3 {
  color: #061940;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

/*Boca de Visita*/

.boca-2 .item1 {
  grid-area: titulo;
}
.boca-2 .item2 {
  grid-area: img1;
}
.boca-2 .item3 {
  grid-area: img2;
}
.boca-2 .item4 {
  grid-area: img3;
}
.boca-2 .item5 {
  grid-area: img4;
}
.boca-2 .item6 {
  grid-area: img5;
}
.boca-2 .item7 {
  grid-area: img6;
}
.boca-2 .item8 {
  grid-area: textb;
  padding-top: 20px;
  color: #061940;
  text-align: justify;
}

.boca-2 > div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.boca-2 {
  display: grid;
  grid-template-areas:
    "titulo titulo titulo titulo "
    "img1 img2 img3 img6"
    "img1 img4 img5 img6"
    "textb textb textb textb";
  width: 90%;
  margin: auto;
}

.boca-2 img {
  width: 100%;
  height: 100%;
  box-shadow: 3px 3px 5px #04112c89;
}

/*Tela Capa e Gancho*/

.tela .tela-2 {
  display: flex;
  color: #04112c;
  align-items: center;
  justify-content: space-around;
}

.tela .tela-2 div {
  display: flex;
  width: 30%;
}

.tela .tela-2 div #tela-1 {
  width: 60%;
  margin-right: -10%;
  margin-top: 61%;
  box-shadow: 10px 5px 20px #04112c89;
}

.tela .tela-2 div #tela-2 {
  width: 60%;
  margin-left: -10%;
  margin-bottom: 61%;
  box-shadow: 10px 5px 20px #04112c98;
}

.tela .tela-2 p {
  text-align: justify;
  width: 40%;
  margin: 10px;
  border-right: 3px double #061940;
  border-left: 3px double #061940;
  padding: 25px;
  font-size: 14px;
}

/*DIDEM Encaixotadeiras*/

.didem {
  text-align: center;
  color: #061940;
  font-weight: 500;
}
.didem div {
  display: flex;
  justify-content: space-around;
  width: 85%;
  margin: 30px auto 0;
}
.didem div img {
  width: 25%;
}

/*Matriz de Peletização*/

.matriz div {
  display: flex;
  color: #04112c;
  align-items: center;
  justify-content: space-around;
}

.matriz img {
  width: 45%;
}

.matriz p {
  text-align: justify;
  width: 40%;
  margin: 10px;
  border-right: 3px double #061940;
  border-left: 3px double #061940;
  padding: 25px;
  font-size: 14px;
}
/*Camisa Dimple*/

.camisa div {
  display: flex;
  color: #04112c;
  align-items: center;
  justify-content: space-around;
}

.camisa p {
  text-align: justify;
  width: 40%;
  border-right: 3px double #061940;
  border-left: 3px double #061940;
  padding: 25px;
  font-size: 14px;
}

.camisa div img {
  width: 45%;
}

/*Serpentina*/

.grid-smc {
  display: grid;
  grid-template-areas:
    "stexto svideo"
    "simg1 svideo"
    "simg2 simg2";
  width: 70%;
  margin: auto;
  max-width: 700px;
}

.grid-smc .item1 {
  grid-area: stexto;
  color: #061940;
  display: flex;
  text-align: center;
}

.grid-smc .item2 {
  grid-area: simg1;
  display: flex;
  justify-content: center;
}

.grid-smc .item2 img {
  width: 100%;
}

.grid-smc .item3 {
  grid-area: svideo;
  display: flex;
  justify-content: flex-end;
}

.grid-smc .item3 video {
  width: 100%;
  padding-left: 50px;
}

.grid-smc .item4 {
  grid-area: simg2;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.grid-smc .item4 img {
  width: 32%;
}

@media screen and (max-width: 769px) {
  .grid-smc {
    width: 100%;
  }

  .tab {
    flex-wrap: wrap;
  }
  .tab button {
    flex: 1 1 45%;
    margin: 5px;
    border-radius: 8px;
  }

  .tabcontent {
    padding: 20px;
  }
}

@media screen and (max-width: 700px) {
  .tab {
    flex-wrap: wrap;
  }

  .tab button {
    width: 100%;
    padding: 5px 0;
    height: auto;
  }

  .camisa p,
  .matriz p,
  .tela .tela-2 p {
    border: 0;
    padding: 0;
  }

  .didem div img {
    width: 32%;
  }
}

@media screen and (max-width: 426px) {
  /*Tela Capa e Gancho*/

  .tela .tela-2 {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .tela .tela-2 div {
    width: 50%;
  }

  .tela .tela-2 p {
    width: 100%;
  }

  /*Didem*/

  .didem div {
    width: 100%;
  }

  /*Matriz*/

  .matriz div {
    flex-direction: column;
    justify-content: center;
  }

  .matriz img {
    width: 50%;
  }

  .matriz p {
    width: 100%;
  }

  /*camisa dimple*/

  .camisa div {
    flex-direction: column-reverse;
    justify-content: center;
  }

  .camisa p {
    width: 100%;
  }

  .camisa div img {
    width: 50%;
  }

  /*serpentina*/

  .grid-smc {
    grid-template-areas:
      "simg1"
      "stexto"
      "svideo"
      "simg2";
  }

  .grid-smc .item2 {
    margin-top: 10px;
  }

  .grid-smc .item3 {
    justify-content: center;
  }

  .grid-smc .item3 video {
    padding-left: 0;
    margin: 5px;
    width: 70%;
    justify-content: center;
  }
}
