@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800;900&display=swap");

:root {
  --yellow: #f9d821;
  --gray: #555555;
  --light-gray: #b4b4b4;
  --dark-gray: #757575;
  --strong-yellow: #fbff00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
}

body {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-top: 2px solid var(--strong-yellow);
  border-bottom: 2px solid var(--strong-yellow);
}

.container {
  /* display: flex;
  flex-direction: column;
  justify-content: center; */
  min-height: 100vh;
  max-width: 95em;
  margin: 0 auto;
}

/* HEADER */
nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 10vh;
}

header .logo {
  margin-top: 30px;
  width: 150px;
}

.nav-list {
  display: flex;
  list-style: none;
  position: relative;
}

.nav-list li {
  letter-spacing: 1.5px;
  margin-left: 20px;
  transition: 0.4s ease;
  margin-top: 10px;
  padding: 11px;
}

.nav-list li:hover > .sub-nav {
  display: block;
  transition: 0.5s ease;
}

.nav-list a {
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.3s ease;
  text-transform: uppercase;
  --b: 0.2em; /* the thickness of the line */
  --c: #ffe800; /* the color */

  color: #0000;
  padding-block: var(--b);
  background: linear-gradient(var(--c) 50%, #4b4b4b 0) 0%
      calc(100% - var(--_p, 0%)) / 100% 200%,
    linear-gradient(var(--c) 0 0) 0% var(--_p, 0%) / var(--_p, 0%) var(--b)
      no-repeat;
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
  transition: 0.3s var(--_s, 0s) linear,
    background-size 0.3s calc(0.3s - var(--_s, 0s));
}

.nav-list a:hover {
  --_p: 100%;
  --_s: 0.3s;
}

.sub-nav {
  position: absolute;
  list-style: none;
  margin-left: 0;
  width: 200px;
  display: none;
}
.submenu-mobile {
  display: none;
}

.sub-nav li {
  width: 100%;
  left: 0;
  padding: 5px;
  margin: 10px;
}

.sub-nav li a {
  left: 50%;
  transform: translateX(-50%);
}

.mobile-menu {
  display: none;
  cursor: pointer;
}

.mobile-menu div {
  width: 32px;
  height: 2px;
  background: #4b4b4b;
  margin: 8px;
  transition: 0.4s;
}

.sm-icons {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.sm-icons i {
  color: #4b4b4b;
  font-size: 22px;
  transition: 0.3s ease;
}

.sm-icons i:hover {
  color: #ffe800;
}
/* HEADER */

/* MAIN */
main {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
/* MAIN */

/* GALERIA */

.section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

section h1 {
  font-size: 30px;
  font-weight: 900;
  margin: 30px 0 15px 0;
  color: var(--gray);
}

section h2 {
  margin: 20px 0 15px 0;
  font-size: clamp(0.5em, 0.8em + 2vw, 1.5em);
  color: var(--gray);
}

section p {
  margin-top: 1em;
  font-weight: 400;
  max-width: 90%;
  line-height: 25px;
  color: var(--gray);
}

.container-grid {
  width: 1400px;
  margin-top: 50px;
}

.subcontainer {
  /* width: 100%; */
  margin: auto;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  padding: 10px;
  overflow-x: hidden;
}

.img {
  min-height: 275px;
  background-position: center;
  background-size: cover;
  /* border-radius: 0 20px 0 20px; */
  transition: 0.3s;
}

.img:hover {
  scale: 0.95;
  /* border-radius: 20px 0 20px 0px; */
  -webkit-box-shadow: 7px 7px 15px 5px rgba(0, 0, 0, 0.3);
  box-shadow: 7px 7px 15px 5px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--yellow);
}

.img-jd-amanda {
  min-height: 275px;
  background-position: center;
  background-size: cover;
  /* border-radius: 0 20px 0 20px; */
  transition: 0.3s;
}

.img-jd-amanda:hover {
  scale: 0.95;
  /* border-radius: 20px 0 20px 0px; */
  -webkit-box-shadow: 7px 7px 15px 5px rgba(0, 0, 0, 0.3);
  box-shadow: 7px 7px 15px 5px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--yellow);
}

.img-viaduto-antonio {
  min-height: 275px;
  background-position: center;
  background-size: cover;
  /* border-radius: 0 20px 0 20px; */
  transition: 0.3s;
}

.img-viaduto-antonio:hover {
  scale: 0.95;
  /* border-radius: 20px 0 20px 0px; */
  -webkit-box-shadow: 7px 7px 15px 5px rgba(0, 0, 0, 0.3);
  box-shadow: 7px 7px 15px 5px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--yellow);
}

.img-paco-municipal {
  min-height: 275px;
  background-position: center;
  background-size: cover;
  /* border-radius: 0 20px 0 20px; */
  transition: 0.3s;
}

.img-paco-municipal:hover {
  scale: 0.95;
  /* border-radius: 20px 0 20px 0px; */
  -webkit-box-shadow: 7px 7px 15px 5px rgba(0, 0, 0, 0.3);
  box-shadow: 7px 7px 15px 5px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--yellow);
}

.img-paco-municipal:nth-child(1) {
  background-image: url(../assets/paco_municipal_1.jpg);
}

.img-paco-municipal:nth-child(2) {
  background-image: url(../assets/paco_municipal_2.jpg);
}

.img-paco-municipal:nth-child(3) {
  background-image: url(../assets/paco_municipal_3.jpg);
}

.img-paco-municipal:nth-child(4) {
  background-image: url(../assets/paco_municipal_4.jpg);
}

.img-paco-municipal:nth-child(5) {
  background-image: url(../assets/paco_municipal_5.jpg);
}

.img-paco-municipal:nth-child(6) {
  background-image: url(../assets/paco_municipal_6.jpg);
}

.img-viaduto-antonio:nth-child(1) {
  background-image: url(../assets/viaduto_antonio_1.jpg);
}

.img-viaduto-antonio:nth-child(2) {
  background-image: url(../assets/viaduto_antonio_2.jpg);
}

.img-viaduto-antonio:nth-child(3) {
  background-image: url(../assets/viaduto_antonio_3.jpg);
}

.img-jd-amanda:nth-child(1) {
  background-image: url(../assets/jd_amanda_1.jpg);
}

.img-jd-amanda:nth-child(2) {
  background-image: url(../assets/jd_amanda_2.jpg);
}

.img-jd-amanda:nth-child(3) {
  background-image: url(../assets/jd_amanda_3.jpg);
}

.img-jd-amanda:nth-child(4) {
  background-image: url(../assets/jd_amanda_4.jpg);
}

.img-jd-amanda:nth-child(5) {
  background-image: url(../assets/jd_amanda_5.jpg);
}

.img-jd-amanda:nth-child(6) {
  background-image: url(../assets/jd_amanda_6.jpg);
}

.container-videos {
  width: 1400px;
}

/* FOOTER */
footer {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  text-align: center;
  align-items: center;
  margin: 10em 0 0 0;
  color: var(--gray);
}

footer h4 {
  font-weight: 900;
}

footer .footer-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 0.5em;
  gap: 1em;
}

footer .footer-icons a {
  font-size: 25px;
  justify-content: flex-start;
  transition: 0.4s ease;
  color: var(--gray);
}

footer .footer-icons a:hover {
  color: #fbff00;
}
/* FOOTER */

/* RESPONSIVIDADE */
@media (max-width: 1550px) {
  .nav-list a {
    font-size: 10px;
    font-weight: 900;
  }

  .container {
    max-width: 90em;
  }
  .container-grid {
    width: 1200px;
    margin-top: 50px;
  }

  .container-videos {
    width: 1200px;
  }

  .grid,
  .grid-videos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1120px) {
  /* ÍCONES */
  .sm-icons {
    position: absolute;
    left: 40%;
    bottom: 10px;
    z-index: -1;
  }

  .sm-icons i {
    color: #b3b3b3;
    font-size: 25px;
  }
  /* ÍCONES */

  /* MOBILE / HEADER */
  .nav-list {
    position: absolute;
    top: 11vh;
    right: 0;
    width: 98vw;
    height: 90vh;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
  }

  .submenu-mobile {
    display: initial;
  }

  .nav-list li:hover > .sub-nav {
    display: none;
  }

  .nav-list li {
    margin-left: 0;
    opacity: 0;
    margin-top: 0;
  }

  .nav-list a {
    font-size: 10px;
    font-weight: 900;
    color: #b3b3b3;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu div {
    background: #b3b3b3;
  }
  /* MOBILE / HEADER */

  /* FOOTER */
  footer {
    flex-direction: column;
  }

  .sm-icons {
    display: none;
  }
  /* FOOTER */

  main .container-img {
    display: none;
  }

  .container-grid {
    width: 600px;
    margin-top: 50px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .container-videos {
    width: 600px;
  }

  .grid-videos {
    grid-template-columns: 1fr;
  }

  .videos {
    margin-top: 20px;
  }
}

@media (max-width: 1120px) {
  .container {
    position: relative;
    overflow-x: hidden;
  }
}

@media (max-width: 500px) {
  /* Esconde todos os itens do menu principal */
  .nav-list li {
    display: none;
  }

  /* Mostra somente os itens submenu-mobile */
  .nav-list li.submenu-mobile {
    display: block;
  }

  .section-content h1 {
    font-size: 20px;
  }

  /* Ajustes gerais do menu mobile */
  .container {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }

  /* MOBILE / HEADER */
  .nav-list {
    width: 100%;
    max-height: calc(100vh - 10vh);
    overflow-y: auto;
    flex-direction: column;
  }

  .nav-list a {
    font-size: 10px;
    font-weight: 600;
  }

  .sub-nav {
    display: none;
  }

  .sub-nav li {
    margin-top: 12px;
    padding: 0;
  }

  header .logo {
    width: 100px;
    margin-top: 5px;
  }
  /* MOBILE / HEADER */

  .options {
    flex-direction: column;
  }

  .container-grid {
    width: 300px;
    margin-top: 50px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
/* RESPONSIVIDADE */

/* CLASSE ADICIONADA COM JS */
.nav-list.active {
  transform: translateX(0);
}

/* ANIMAÇÕES */
@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu.active .line1 {
  transform: rotate(-45deg) translate(-8px, 8px);
}

.mobile-menu.active .line2 {
  opacity: 0;
}

.mobile-menu.active .line3 {
  transform: rotate(45deg) translate(-5px, -7px);
}
/* ANIMAÇÕES */
