html,
body {
  background: #1c1c1c !important;
}

body {
  &::before {
    content: none !important;
    display: none !important;
  }

  &.projetos-lista,
  &.page-id-projetos,
  &.post-type-archive-projeto,
  &.tax-projeto_categoria {
    .newsletter {
      background: #f6f6f6 !important;

      h2 {
        color: var(--texto-escuro) !important;
      }

      input {
        border-bottom-color: var(--texto-escuro) !important;
        color: var(--texto-escuro) !important;
      }

      * {
        background: transparent !important;
      }
    }
  }
}

main,
#content,
.site-content,
.content-area {
  background: transparent !important;
}

.page-projetos {
  background: #1c1c1c !important;
  color: #fff;
  overflow-x: clip;

  section,
  .container,
  .container-fluid,
  .row,
  .col,
  [class*="col-"] {
    background: transparent !important;
  }

  .topo-pagina h1,
  .titulo-pagina h1,
  .breadcrumb,
  .breadcrumb li,
  .breadcrumb li span,
  .complemento-topo p,
  .filtros p,
  .filtros label,
  .card-projeto p,
  .card-principal .bg-layer p {
    color: #ffffff !important;
  }

  .card-projeto .categoria,
  .card-principal .categoria {
    color: #000000 !important;
  }

  .active {
    color: #ffffff !important;
  }
}

.page-projetos .lista-projetos {
  --projetos-gap: clamp(10px, 1.2vw, 16px);
}

.page-projetos .lista-projetos .lista-projetos-row + .lista-projetos-row {
  margin-top: var(--projetos-gap);
}

.page-projetos .lista-projetos .lista-projetos-principal {
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
}

.page-projetos .lista-projetos-principal .card-principal {
  flex: 1;
}

.page-projetos .lista-projetos .lista-projetos-laterais {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-projetos .lista-projetos .card-projeto-lateral {
  width: 100%;
  margin: 0;
}

.page-projetos .card-principal {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: clamp(360px, 46vw, 630px);
  overflow: hidden;
}

.page-projetos .card-principal .box-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 9;
  overflow: hidden;
}

.page-projetos .card-principal .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-projetos .card-principal .bg-layer {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: auto !important;
  min-height: inherit;
  z-index: 2;
  padding: clamp(18px, 2.8vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .7) 100%);
  pointer-events: auto;
}

@media (max-width: 767px) {
  .page-projetos .card-principal .bg-layer {
    position: relative !important;
    inset: auto;
    background: transparent;
    padding: 0;
    justify-content: flex-start;
  }

  .page-projetos .card-projeto {
    display: flex;
    flex-direction: column;
  }
}

.page-projetos .card-principal .bg-layer p {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.12;
}

.page-projetos .card-projeto .categoria {
  margin-bottom: 0;
}

.page-projetos .card-projeto .box-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.page-projetos .card-projeto .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1199px) {
  .page-projetos .card-principal {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 767px) {
  .page-projetos .topo-pagina {
    padding-top: clamp(28px, 6vw, 48px);
    padding-bottom: clamp(28px, 6vw, 48px);
  }

  .page-projetos .pb-5 {
    padding-bottom: 1.5rem !important;
  }

  .page-projetos .lista-projetos .lista-projetos-row {
    align-items: flex-start;
    row-gap: 12px;
  }

  .page-projetos .lista-projetos .lista-projetos-row + .lista-projetos-row {
    margin-top: 12px;
  }

  .page-projetos .lista-projetos .lista-projetos-laterais {
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
  }

  .page-projetos :is(.card-principal, .card-projeto) {
    height: auto;
    overflow: visible;
  }

  .page-projetos :is(.card-principal, .card-projeto) .box-img {
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
  }

  .page-projetos .card-principal {
    min-height: 0;
    aspect-ratio: auto;
  }

  .page-projetos .card-principal .box-img {
    width: 100%;
    height: clamp(160px, 48vw, 220px);
    min-height: clamp(160px, 48vw, 220px);
    aspect-ratio: auto;
  }

  .page-projetos :is(.card-principal, .card-projeto) .box-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-projetos .card-principal .bg-layer .categoria {
    margin: 10px 0 0;
  }

  .page-projetos .card-principal .bg-layer p {
    font-size: clamp(16px, 4.8vw, 20px);
    margin-top: 8px;
  }

  .page-projetos .card-projeto .box-img {
    height: clamp(160px, 48vw, 220px);
    min-height: clamp(160px, 48vw, 220px);
  }

  .page-projetos .card-projeto p {
    font-size: clamp(16px, 4.8vw, 20px);
    margin-top: 8px;
  }
}

.filtros {
  width: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;

  form {
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 auto;
  }

  p,
  label,
  label span {
    color: #fff !important;
  }

  input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: transparent;
    position: relative;

    &:checked {
      border-color: #f69743;

      &::after {
        content: "";
        position: absolute;
        width: 8px;
        height: 8px;
        background: #f69743;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }

    &:focus-visible {
      outline: 2px solid #f69743;
      outline-offset: 3px;
    }
  }

  &::after {
    content: "";
    display: block;
    width: 100%;
    max-width: 100%;
    height: 1px;
    background: #3b3b3b;
    margin-top: 18px;
  }
}

.faq-solucao {
  .faq-item {
    border-bottom: 1px solid rgba(88, 88, 88, 0.2);
    padding: 12px 0;
  }

  .faq-question {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-weight: 600;

    span:first-child {
      padding-right: 16px;
    }

    &[aria-expanded="true"] {
      .faq-icon {
        transform: rotate(180deg);
      }
    }
  }

  .faq-icon {
    display: inline-flex;
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .faq-answer-inner {
    padding: 0 0 16px;
    color: #585858;

    p:last-child {
      margin-bottom: 0;
    }
  }
}

@media (max-width: 900px) {
  .filtros {
    padding: 8px 0 0;
    margin-bottom: 14px;

    form {
      gap: 12px;
    }

    p {
      font-size: 16px;
      margin-bottom: 10px;
    }

    label {
      font-size: 15px;
      gap: 8px;
    }

    input[type="radio"] {
      width: 16px;
      height: 16px;

      &:checked {
        &::after {
          width: 7px;
          height: 7px;
        }
      }
    }
  }
}

@media (max-width: 480px) {
  .filtros {
    form {
      flex-direction: column;
      align-items: center !important;
      gap: 10px;
    }
  }
}
