/*
Theme Name: Empório do Marceneiro
Description: Tema desenvolvido exclusivamente para Empório do Marceneiro.
Author: Guilherme Afonso .dev.br
Version: 1.0
*/

@import "https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;1,400;1,700&display=swap";
@import "css/slider.css";
@import "css/menu.css";
@import "css/unsemantic.css";

:root {
  --cor1: #5b0d0f;
  --cor2: #90181c;
  --cor3: #d11a1f;
  --cor4: #ebebeb;
}
::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: #999;
}
::-moz-placeholder {
  /* Firefox 19+ */
  color: #999;
}
:-ms-input-placeholder {
  /* IE 10+ */
  color: #999;
}
:-moz-placeholder {
  /* Firefox 18- */
  color: #999;
}

* {
  outline: 0 !important;
  text-rendering: auto;
  padding: 0;
  margin: 0;

  user-drag: none;
  -webkit-user-drag: none;
  -webkit-font-smoothing: auto;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: #fff;
  font-size: 0.95em;
  color: #7e6f6f;
  font-weight: 400;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
}
h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--cor1);
  text-transform: uppercase;
  text-align: center;
}
h2 {
  font-size: 30px;
  color: var(--cor2);
  margin: 0;
  line-height: 32px;
}
h3 {
  font-size: 18px;
  margin-bottom: 15px;
}
h4 {
  font-size: 18px;
  font-weight: 400;
  color: var(--cor4);
  text-transform: uppercase;
  margin-top: -10px;
}
p {
  margin: 0 0 20px;
}
.desktop {
  display: inherit;
}
.mobile {
  display: none;
}
.justify {
  text-align: justify;
}
.content {
  margin-bottom: 100px;
}
.nomargin {
  margin: 0;
}
.align-left {
  text-align: left;
}
.align-right {
  text-align: right;
}
.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
main {
  position: relative;
  width: 100%;
  padding-bottom: 100px;
}
section {
  height: auto;
  padding-bottom: 75px;
}
article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 0 20px;
}
article img {
  width: 100%;
  height: auto;
  border: 2px solid var(--cor4);
  border-radius: 10px;
}
.tab-content {
  padding: 10px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 5px;
  margin-top: 10px;
}
header::after,
main::after,
footer::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 21vw;

  -webkit-mask-image: url(img/bfmain.svg);
  mask-image: url(img/bfmain.svg);
  -webkit-mask-position: bottom;
  mask-position: bottom;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}
main::after {
  background-color: var(--cor4);
}
.meio {
  width: 100%;
  min-width: auto;
  max-width: 1040px;
  box-sizing: border-box;
  margin: 0 auto;
}
.titulo {
  position: relative;
  z-index: 15;
  top: 50%;
  margin: 90px auto 150px;
  text-align: center;
}
.sep {
  position: relative;
  background: url(img/svg/separador.svg) top no-repeat;
  background-size: cover;
  width: 40px;
  height: 10px;
  top: 390px;
  display: block;
  margin: 0 auto;
}

header {
  position: relative;
}
header::after {
  background-color: #fff;
}
header#home {
  color: #fff;
  background: url(img/header.png) #991a1e top no-repeat;
  width: 100%;
  background-size: auto 100%;
  padding-bottom: 150px;
}
header#pages {
  color: #fff;
  background: url(img/header.png) #991a1e bottom no-repeat;
  background-size: 100% auto;
  width: 100%;
}
header#pages nav {
  width: 100%;
  height: 100px;
}
header#pages h1 {
  color: #fff;
  font-size: 60px;
  line-height: 62px;
}

nav {
  width: 100%;
  display: flex;
  height: 70px;
  justify-content: space-between;
  font-weight: 700;
}
nav .logotipo {
  width: 370px;
}
#menu-principal {
  display: flex;
  align-items: center;
  gap: 10px;
}
#menu-principal i {
  font-size: 21px;
  transition: all 0.3s;
}
#menu-principal li {
  display: inline-block;
  margin: 0 5px;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s;
}
#menu-principal li:hover,
#menu-principal i:hover {
  color: #ff1f25;
}
#menu-principal form,
.overlay form {
  position: relative;
}
#menu-principal input[type="search"],
.overlay input[type="search"] {
  background: #fff;
  padding: 10px 20px;
  border: solid 2px var(--cor4);
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  width: 200px;
}
#menu-principal button[type="submit"],
.overlay button[type="submit"] {
  user-select: auto;
  background: none;
  border: none;
  color: var(--cor3);
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}
.overlay form {
  width: 70%;
  margin: 0 auto;
}
.overlay input[type="search"] {
  width: 100%;
}
.item-lista {
  text-align: center;
  padding-left: 30px;
  padding-right: 30px;
}

/* FORMULÁRIOS */
input[type="text"],
input[type="email"],
textarea {
  font-family: var(--font1);
  padding: 15px 10px;
  width: 100%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  margin-bottom: 10px;
  resize: none;
}
textarea {
  height: 230px;
}
input[type="submit"] {
  background: var(--cor1);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  padding: 15px 50px;
  color: #fff;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  float: right;
  transition: 0.2s all;
}
input[type="submit"]:hover {
  background: var(--cor3);
}
.wpcf7-response-output {
  clear: both;
  margin: 60px 0 0 !important;
  border-radius: 5px;
}
#contato {
  flex-direction: column !important;
}
#contato h5 {
  margin: 0 0 5px;
  text-transform: uppercase;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 10px;
}
#contato i {
  font-size: 24px;
  color: var(--cor3);
}
#contato div {
  margin-bottom: 25px;
}
#contato .contatos {
  display: block;
}

/* FOOTER */
footer {
  position: relative;
  color: #5e5e5e;
  background: var(--cor4);
  padding: 50px 0 150px;
}
footer .local {
  position: relative;
  text-align: center;
  padding: 0 20px 30px;
  margin: 0 0 30px;
}
footer .local::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
}
footer h5 {
  margin: 0 0 5px;
  text-transform: uppercase;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
footer i {
  font-size: 24px;
  color: var(--cor3);
}
footer .contatos {
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
}
footer .contatos div,
footer .contatos a {
  display: flex;
  align-items: center;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 16px;
  gap: 15px;
}
footer .contatos i {
  font-size: 32px;
}
footer::after {
  background-color: var(--cor2);
}
.copyright {
  color: #fff;
  background: var(--cor2);
  font-size: 10px;
  text-transform: uppercase;
}
.copyright .meio {
  height: 50px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ga {
  width: 34px;
  height: 23px;
  display: block;
  float: right;
  background: url("img/ga.svg") no-repeat;
  background-size: 100% 100%;
}
#trigger-overlay {
  display: none;
}

.ver-todos {
  font-family: "Poppins", sans-serif;
  position: relative;
  display: table;
  margin: 100px auto 0;
  background: var(--cor2);
  letter-spacing: 3px;
  color: #fff;
  border-radius: 50px;
  padding: 15px 30px;
  font-weight: 700;
  box-shadow: 0 -15px 30px rgba(209, 26, 31, 0);
  transition:
    all 0.3s ease,
    box-shadow 0.5s ease;
}

.ver-todos:hover {
  background: #ff1f25;
  box-shadow: 0 15px 30px rgba(255, 31, 37, 0.7);
}

.post-content {
  display: grid;
  gap: 50px 15px;
  grid-template-columns: repeat(4, 1fr);
  max-width: calc(1100px - 40px);
  margin: 0 auto;
  padding: 0 20px;
}

.post {
  position: relative;
  padding: 10px 10px 50px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}
.post .img {
  width: 100%;
  padding-top: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.post h2 {
  font-size: 18px;
  line-height: 20px;
}
.post a {
  display: block;
  position: relative;
}
.post .button {
  font-family: "Poppins", sans-serif;
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  bottom: -22px;
  width: 45%;
  background: var(--cor3);
  color: #fff;
  border-radius: 50px;
  padding: 10px;
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 -15px 30px rgba(209, 26, 31, 0);
  transition:
    all 0.3s ease,
    box-shadow 0.5s ease;
}

.post .button:hover {
  background: #ff1f25;
  box-shadow: 0 15px 30px rgba(255, 31, 37, 0.7);
}

.galeria {
  display: block;
  width: 100%;
  margin-bottom: 20px;
}
.galeria .outras {
  display: flex;
  gap: 15px;
  width: calc(100% + 4px);
  place-items: start;
  margin-top: 10px;
}
.galeria a {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  flex-basis: 25%;
}
.galeria .img2,
.galeria .img3,
.galeria .img4 {
  width: auto;
  height: 100px;
  display: block;
  margin-bottom: 20px;
  flex-basis: 33%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--cor4);
  border-radius: 10px;
}

#produtos {
  display: grid;
  grid-template-columns: repeat(1fr, 3);
  column-gap: 20px;
  row-gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
}
#produtos aside {
  grid-area: 1 / 1 / 1 / 1;
  color: var(--cor2);
  border-radius: 20px;
  padding: 20px;
  font-weight: 700;
  text-transform: uppercase;
  height: max-content;
  border: 3px solid #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
#produtos aside a:hover {
  color: #ff1f25;
}
#produtos aside form {
  position: relative;
}
#produtos aside .category-list {
  margin-top: 20px;
}
#produtos aside input[type="search"] {
  background: #fff;
  padding: 10px 20px;
  border: solid 2px var(--cor4);
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  width: 100%;
}
#produtos aside button[type="submit"] {
  user-select: auto;
  background: none;
  border: none;
  color: var(--cor3);
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}
#produtos .produtos-post {
  grid-area: 1 / 2 / 2 / 4;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 20px;
  row-gap: 50px;
}
#produtos .wp-pagenavi {
  grid-area: 2 / 2 / 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.wp-pagenavi a,
.wp-pagenavi span {
  text-decoration: none !important;
  border: none !important;
  border-radius: 50px;
  width: 40px !important;
  height: 40px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}
.wp-pagenavi .pages {
  text-decoration: none;
  padding: 5px 20px !important;
  background: var(--cor4);
  color: #999;
  width: auto !important;
}
.wp-pagenavi a:hover,
.wp-pagenavi span.current {
  border: none;
  font-weight: bold;
  background: var(--cor3);
  color: #fff;
  border: none;
}

@media screen and (max-width: 768px) {
  .desktop {
    display: none;
  }
  .mobile {
    display: inherit;
  }
  section {
    padding: 0 20px 75px;
  }
  #produtos aside input[type="search"] {
    border: solid 2px var(--cor4);
    border-radius: 10px 10px 0 0;
  }
  details summary {
    margin: 0 auto 10px;
    cursor: pointer;
    font-size: 18px;
    background: var(--cor3);
    color: #fff;
    border-radius: 0 0 10px 10px;
    padding: 5px;
    user-select: none;
  }
  details > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  details > summary::-webkit-details-marker {
    display: none;
  }
  #produtos {
    display: block;
  }
  #produtos aside {
    border-radius: 0;
    text-align: center;
    border-bottom: 2px solid var(--cor4);
    box-shadow: none;
  }
  #produtos .produtos-post {
    grid-template-columns: 1fr 1fr;
    row-gap: 50px;
    padding: 0 10px;
    margin: 50px 0;
  }
  .post-content {
    grid-template-columns: repeat(2, 1fr);
  }
  .post h2 {
    font-size: 1.2em;
  }
  footer {
    padding: 50px 0;
  }
  footer section {
    padding-bottom: 0;
  }
  footer .contatos {
    flex-direction: column;
    gap: 40px;
  }
  footer .contatos div,
  footer .contatos a {
    flex-direction: column;
    text-align: center;
  }
  .copyright .meio {
    height: auto;
    padding: 20px;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
  }
}

/* RESPONSIVO */
@media only screen and (max-width: 1000px) {
  main {
    padding-bottom: 0;
  }
  nav .logotipo {
    width: 250px;
    margin-left: -25px;
  }
  #menu-principal {
    display: none;
  }
  #trigger-overlay {
    display: flex;
    background: transparent;
    color: #fff;
    border: none;
    align-items: center;
    width: 40px;
    font-size: 20px;
  }
  header#home {
    padding-bottom: 50px;
    margin-bottom: 50px;
  }

  header#pages nav #trigger-overlay {
    color: #fff;
  }
  header#pages h1 {
    display: none;
  }
  header#pages {
    width: 100%;
    height: 100px;
    margin-bottom: 50px;
    padding-bottom: 50px;
  }
  article {
    display: flex;
    flex-direction: column-reverse;
  }
  .sep {
    top: 180px;
  }
  footer .map {
    margin-bottom: 30px;
  }
}

/* CENTRALIZAR O PLUGIN DE ORÇAMENTO */
.whatsapp-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.whatsapp-button-container::before {
  content: "";
  display: block;
  margin: 15px 0;
  width: 100%;
  height: 2px;
  background: var(--cor4);
  border-radius: 10px;
}

/* Centralizar o lightbox */
#lightboxOverlay,
#lightbox {
  position: fixed;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
}
