/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: hsl(0, 1%, 21%);
    color: whitesmoke;
    a {
      text-decoration: none;
      color: whitesmoke;
      &:hover {
        color: hsl(60, 70%, 50%);
      }
    }
    ul {
      list-style: none;
      padding-left: 0;
      li {
        padding: 0;
      }
    }
    section {
      padding: 1.5rem 0;
      h2 {
        font-size: 1.8rem;
        color: hsl(0, 0%, 60%);
        margin-bottom: 1rem;
        border-left: 5px solid #e30000;
        padding-left: 0.75rem;
      }
      h3 {
        color: hsl(0, 100%, 90%);
      }
    }
  }
}

.cta-button {
  background-color: #e30000;
  color: #fff;
  text-decoration: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  transition: background 0.3s ease;
  margin: 0 0.5rem;
  &:hover {
    background-color: #b10000;
  }
}

/* Hero Section */
.hero {
  position: relative;
  background: url("./images/@Fonte_diagonal.jpg") center/cover no-repeat;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
  }

  .hero-content {
    position: relative;
    padding: 2rem;
    z-index: 2;
    h1 {
      font-size: 2.5rem;
    }
    p {
      font-size: 1.2rem;
      margin-bottom: 3rem;
    }
  }

  .hero-scroll-down {
    position: absolute;
    bottom: 2rem;
    left: auto;
    bottom: 1rem;
  }
}

/* Container geral */
.container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  @media (max-width: 768px) {
    padding: .75rem;
  }
  .content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}
.descricao {
  .content {
    justify-content: center;
    p {
      width: 80%;
      text-align: center;
    }
  }
}
.destaques {
  .content {
    flex-wrap: nowrap;
    align-items: center;
    @media (max-width: 796px) {
      flex-wrap: wrap;
      ul {
        max-width: 100%;
      }
    }
    .destaque-list {
      min-width: fit-content;
      list-style: disc outside;
      margin-left: 1.25rem;
    }
    .destaque-image {
      display: flex;
      width: 100%;
      img {
        display: block;
        width: 100%;
        height: 14.3rem;
        object-fit: cover;
        object-position: 50% 92%;
        border-radius: 7px;
        box-shadow: 0 0 6px 0 hsl(0, 1%, 33%);
      }
    }
  }
}

/* Galeria */
.galeria {
  .content {
    justify-content: center;
  }
  .galeria-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    li {
      overflow: hidden;
      cursor: pointer;
      img {
        border-radius: 7px;
        width: 100%;
        aspect-ratio: 3/2;
        object-fit: cover;
        transition: transform 0.3s ease;
        &:hover {
          transform: scale(1.05);
        }
        &:active {
          transform: scale(1.8);
          z-index: 999;
        }
      }
    }
  }
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  .close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
  }
  .lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
  }
  &.active {
    display: flex;
  }
  .lightbox-nav {
    position: absolute;
    top: 50%;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 0 15px;
    transform: translateY(-50%);
    transition: color 0.3s ease;
    z-index: 10000;
    &:hover {
      color: #ff3c3c;
    }
    &.left {
      left: 10px;
    }
    &.right {
      right: 10px;
    }
  }
}

.ficha-tecnica {
  a {
    color: yellow;
  }
  .ficha-grupo {
    margin-top: 0.75rem;
    width: 100%;
  }
  .ficha-itens {
    margin-left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    ul {
      width: calc(33.333% - 1rem);
      list-style: disc outside;
      padding-left: .25rem;
      @media (max-width: 960px) {
        width: calc(50% - .75rem);
      }
      @media (max-width: 768px) {
        width: 100%;
      }
    }
  }
  .fonte {
    width: 100%;
    font-style: italic;
    font-size: small;
    text-align: right;
    a {
      color: darkgoldenrod;
      &:hover {
        color: hsl(60, 70%, 50%);
      }
    }
  }
}

.video {
  iframe {
    width: 100%;
    aspect-ratio: 16/9;
  }
}

.cta-final {
  display: flex;
  flex-direction: column;
  p {
    text-align: center;
    margin-bottom: 1rem;
  }
  a {
    text-wrap: nowrap;
    display: block;
    width: fit-content;
    align-self: center;
  }
}
footer {
  background-color: hsl(0, 500%, 95%);
  color: black;
  padding: 1rem 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 2rem;
  @media (max-width: 768px) {
    font-size: 0.8rem;
  }
}

/* ###################################################### */
/* Animations */
/* ###################################################### */
@keyframes bounce-7 {
  0% {
    transform: scale(1, 1) translateY(0);
  }
  10% {
    transform: scale(1.1, 0.9) translateY(0);
  }
  30% {
    transform: scale(0.9, 1.1) translateY(-2rem);
  }
  50% {
    transform: scale(1.05, 0.95) translateY(0);
  }
  57% {
    transform: scale(1, 1) translateY(-0.75rem);
  }
  64% {
    transform: scale(1, 1) translateY(0);
  }
  100% {
    transform: scale(1, 1) translateY(0);
  }
}
.bounce-infinite {
  animation-name: bounce-7;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px hsl(0, 100%, 45%),
      0 0 40px hsl(0, 100%, 45%), 0 0 50px hsl(0, 100%, 45%),
      0 0 60px hsl(0, 100%, 45%), 0 0 70px hsl(0, 100%, 45%);
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px hsl(0, 100%, 65%),
      0 0 40px hsl(0, 100%, 65%), 0 0 50px hsl(0, 100%, 65%),
      0 0 60px hsl(0, 100%, 65%), 0 0 70px hsl(0, 100%, 65%),
      0 0 80px hsl(0, 100%, 65%);
  }
}
.glow {
  -webkit-animation: glow 0.75s ease-in-out infinite alternate;
  -moz-animation: glow 0.75s ease-in-out infinite alternate;
  animation: glow 0.75s ease-in-out infinite alternate;
}

/* ###################################################### */
/* Responsividade */
/* ###################################################### */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}
@media (max-width: 600px) {
  .lightbox-nav {
    font-size: 2.5rem;
    padding: 0 10px;
  }
}
