html,
body {
  margin: 0;
}


/* LOGO */

#logo {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 9999;
}


/* FIRST SCREEN */

.primeira-tela {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;

  background-image: url("images/silvio-retrato.jpg");
  background-position: right center;
  background-color: black;
  background-repeat: no-repeat;
  background-size: auto 100%;

  float: left;
}


/* SECOND SCREEN */

.segunda-tela {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;

  background-image: url("images/silvio-retrato-dois.jpg");
  background-color: white;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center;

  float: left;
}


/* CONTENT */

.content {
  padding-top: 30px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  box-sizing: border-box;
}

.content-two {
  padding-top: 30px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  box-sizing: border-box;
}


/* THIRD SCREEN */

.terceira-tela {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;

  background-image: url("images/footer-image.jpg");
  background-color: white;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center;

  display: flex;
  align-items: flex-end;

  padding-bottom: 50px;
}

a,
a:visited,
a:hover,
a:active {
  color: #000;
}


/* CONTACT BOX */

.contato-box {
  background-color: white;
  padding: 10px;
  width: 400px;
}


/* PHONE NUMBER + WHATSAPP ICON */

.contato-box h1 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contato-box h1 img {
  display: block;
}


.contato-box h1, h2, p {
  padding-left: 20px;
}

/* MARGINS */

.caixa-margem {
  float: left;
  padding-right: 14px;
  text-align: right;
}

.caixa-margem-two {
  float: left;
  padding-right: 14px;
  width: 155px;
}


/* TEXT BOXES */

.caixa-texto {
  padding-right: 15px;
  width: 85%;
  background-color: white;
  height: auto;
}

.caixa-texto-two {
  padding-right: 15px;
  width: 85%;
  background-color: white;
  height: auto;
}


/* TYPOGRAPHY */

h1,
h2 {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding-left: 20px;
}

h3 {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding-left: 20px;
}

p {
  max-width: 1000px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}


/* SERVICES */

.list-services-one,
.list-services-two,
.list-services-full {
  float: left;
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}

.list-services-full li,
.list-services-one li,
.list-services-two li {
  margin-bottom: 12px;
}


/* SERVICES — DESKTOP */

.list-services-one,
.list-services-two {
  display: block;
}

.list-services-full {
  display: none;
}


/* SERVICES — BELOW 1325px */

@media (max-width: 1325px) {

  .list-services-one,
  .list-services-two {
    display: none;
  }

  .list-services-full {
    display: block;
  }

}


/* MOBILE */

@media (max-width: 768px) {

  .content-two {
    padding-top: 60px;
  }

  .segunda-tela {
    background-size: auto 100%;
    background-position: center center;
  }

  .terceira-tela {
    background-size: auto 100%;
    background-position: center center;

  }

  .caixa-texto-two {
    margin-left: 15px;
    padding-left: 15px;
  }

  .anima {
    width: 60px;
  }

  .caixa-margem-two {
    display: none;
  }

}

/* PROJECT SELECTION */

.content-three {
  padding-top: 60px;
  padding-bottom: 100px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  box-sizing: border-box;
  clear: both;
}

.galeria {
  clear: both;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 1200px;
  padding: 20px 0 0 20px;
}

.galeria-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #eee;
}

.galeria-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.galeria-item:hover img {
  opacity: 0.8;
}


/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.aberto {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  display: block;
  max-width: calc(100vw - 240px);
  max-height: calc(100vh - 140px);
  max-height: calc(100svh - 140px);
  border: 12px solid white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.lightbox-img.trocando {
  opacity: 0;
}

.lightbox button {
  position: absolute;
  padding: 0 10px;
  border: none;
  background: none;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease;
}

.lightbox button:hover {
  opacity: 0.7;
}

.lightbox-fechar {
  top: 25px;
  right: 40px;
  font-size: 80px;
}

.lightbox-anterior,
.lightbox-proxima {
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
}

.lightbox-anterior {
  left: 40px;
}

.lightbox-proxima {
  right: 40px;
}

body.sem-scroll {
  overflow: hidden;
}


/* PROJECT SELECTION — RESPONSIVE */

@media (max-width: 1024px) {

  .galeria {
    grid-template-columns: repeat(4, 1fr);
  }

}

@media (max-width: 768px) {

  .galeria {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .lightbox-img {
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 160px);
    max-height: calc(100svh - 160px);
    border-width: 6px;
  }

  .lightbox-fechar {
    top: 15px;
    right: 15px;
    font-size: 56px;
  }

  .lightbox-anterior,
  .lightbox-proxima {
    top: auto;
    bottom: 20px;
    transform: none;
    font-size: 72px;
  }

  .lightbox-anterior {
    left: 20px;
  }

  .lightbox-proxima {
    right: 20px;
  }

}

@media (max-width: 480px) {

  .galeria {
    grid-template-columns: repeat(2, 1fr);
  }

}
