:root {
  --vermelho: #C7302D;
  --laranja: #E45933;
  --azul: #1E3386;
  --preto: #191A1C;
  --cinza: #e2e3e4;
}
html {
  scroll-behavior: smooth;
}
::-webkit-scrollbar {
  display: none;
}
html {
  scrollbar-width: none;
}
html {
  -ms-overflow-style: none;
}
body.preload {
  opacity: 0;
}
body.page-loaded {
  opacity: 1;
}
body.page-fadeout {
  opacity: 0;
}
@font-face {
  font-family: 'Pepi Regular';
  src: url('/wp-content/themes/unflat/fonts/PEPI_REGULAR.OTF') format('opentype');
}
@font-face {
  font-family: 'Pepi Medium';
  src: url('/wp-content/themes/unflat/fonts/PEPI_MEDIUM.OTF') format('opentype');
}
@font-face {
  font-family: 'Pepi Bold';
  src: url(/wp-content/themes/unflat/fonts/PEPI_BOLD.OTF) format('opentype');
}
@font-face {
  font-family: 'Pepi Black';
  src: url(/wp-content/themes/unflat/fonts/PEPI_HEAVY.OTF) format('opentype');
}
.pepi-regular {
  font-family: 'Pepi Regular';
}
.pepi-medium {
  font-family: 'Pepi Medium';
}
.pepi-bold {
  font-family: 'Pepi Bold';
}
.pepi-black {
  font-family: 'Pepi Black';
}
a, a h1, a h2, a h3, a h4, a h5, a h6, a p, a small, a:active, a:visited, a:hover {
  color: var(--preto);
  text-decoration: none;
  cursor: pointer;
}
body {
  background-color: var(--cinza);
  transition: opacity 0.5s ease;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Pepi Regular';
  color: var(--preto);
}
.page {
  margin-bottom: 0px;
}
.dn {
  display: none;
}
.mh-auto {
  margin: 0 auto;
}
.desk-none {
  display: none;
}
.btn {
  background-color: rgba(255,255,255,1);
  border-radius: 50px;
  padding: 12px 17px 11px 17px;
  margin-right: 16px;
  line-height: 1;
  width: fit-content;
  cursor: pointer;
  font-size: 14px;
  transition: ease 0.5s;
}
.btn:hover, .btn.blur {
  background-color: rgba(255,255,255,0.5);
  filter: blur(4px);
  transform: translateY(-2px);
  transition: ease 0.5s;
}
.black {
  color: var(--preto);
}

/* header */

  header {
    position: fixed;
    width: 100%;
    height: 72px;
    top: 0;
    left: 0;
    z-index: 999999;
    padding: 0px 32px;
    font-size: 16px;
    pointer-events: none;
  }
  header .logo img {
    height: 40px;
  }
  header a {
    pointer-events: all;
  }
  .true-glass-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 2rem;
    color: var(--preto);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    margin-left: 8px;
    /* Efeito glass com distorção */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%) contrast(120%) brightness(110%);
    -webkit-backdrop-filter: blur(20px) saturate(180%) contrast(120%) brightness(110%);
    /* Sombras múltiplas para profundidade */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .true-glass-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    border-radius: inherit;
    filter: blur(1px) contrast(130%) brightness(120%);
    z-index: -1;
    opacity: 0.7;
  }
  .true-glass-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 1rem 1rem 0 0;
    pointer-events: none;
  }
  .true-glass-btn:hover, .true-glass-btn.blur {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px) saturate(200%) contrast(130%) brightness(120%);
    -webkit-backdrop-filter: blur(25px) saturate(200%) contrast(130%) brightness(120%);
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-2px) scale(1.02);
    filter: blur(4px)
  }
  .true-glass-btn:active {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px) saturate(160%) contrast(110%) brightness(105%);
    -webkit-backdrop-filter: blur(15px) saturate(160%) contrast(110%) brightness(105%);
    transform: translateY(0) scale(0.98);
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  }

/* home */

  .unflat {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 200px;
  }
  section.home {
    position: fixed;
    top: 0;
    left: 0;
    height: auto;
    display: grid;
    width: 300vw;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 80px;
    padding: 80px;
    touch-action: none;
  }
  .img-container {
    position: relative;
    width: 75%;
    transition: all 0.5s ease;
    will-change: transform;
    align-self: start;
  }
  .img-container img {
    display: block;
    width: 100%;
    height: auto;
  }
  .img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--cor-overlay);
    opacity: 1;
    transition: opacity 1s ease;
    pointer-events: none;
  }
  .img-container.reveal::after {
    opacity: 0;
  }
  .img-container:hover {
    transform: scale(1.1);
    transition: ease 0.5s;
    z-index: 10;
    position: relative;
  }


/* projetos */

.projetos-hero {
  height: 70dvh;
}
.animated-text-pr {
  height: 480px;
}
h1 {
  font-size: 12vw;
  margin: 0px;
  line-height: 0.9;
  font-family: 'Pepi Bold';

}
.animated-container {
  font-size: 10vw;
  margin: 0px;
  line-height: 0.9;
  height: 30vw;
  font-family: 'Pepi Bold';
}
.bold {
  font-family: 'Pepi Bold';
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid3 div {
  width: 100%;
  max-width: 100%;
}
.grid-projetos .grid3 div.relative img:nth-child(2), .grid3 div.relative *:nth-child(2){
  opacity: 0;
  transform: scale(0.7) rotate(1deg);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.grid-projetos .grid3 div.relative:hover img:nth-child(2), .grid3 div.relative:hover *:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(-2deg);
}
.grid-projetos .grid3 div.relative *:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

/* ocupa coluna 1 e 2 / ocupa coluna 2 e 3 */
.grid-projetos .grid3:nth-of-type(3n+1) > div:first-child,
.grid-projetos .grid3:nth-of-type(3n) > div:first-child {
  grid-column: 1;
}
.grid-projetos .grid3:nth-of-type(3n+1) > div:last-child,
.grid-projetos .grid3:nth-of-type(3n) > div:last-child {
  grid-column: 2;
}
.grid-projetos .grid3:nth-of-type(3n+2) > div:first-child {
  grid-column: 2;
}
.grid-projetos .grid3:nth-of-type(3n+2) > div:last-child {
  grid-column: 3;
}

.grid-projetos .grid3:nth-child(3n+1) div.relative:nth-child(1):hover img:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(-1deg);
}

.grid-projetos .grid3:nth-child(3n+1) div.relative:nth-child(2):hover img:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(2deg);
}

/* PADRÃO 2 - grid3 nas posições 2, 5, 8, 11, etc. */
.grid-projetos .grid3:nth-child(3n+2) div.relative:nth-child(-2):hover img:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(-1deg);
}

.grid-projetos .grid3:nth-child(3n+2) div.relative:nth-child(1):hover img:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(2deg);
}

/* PADRÃO 3 - grid3 nas posições 3, 6, 9, 12, etc. */
.grid-projetos .grid3:nth-child(3n) div.relative:nth-child(-1):hover img:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(-2deg);
}

.grid-projetos .grid3:nth-child(3n) div.relative:nth-child(2):hover img:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(3deg);
}
h2 {
  font-size: 64px;
  line-height: 1;
  margin: 0px;
  font-family: 'Pepi Black';
}
.linha-cliente {
  margin-top: -20px;
  background-color: #e2e3e4;
  position: relative;
  transition: ease 0.5s;
}
.linha-cliente:hover ~ .linha-cliente {
  margin-top: 0px;
  transition: ease 0.5s;
}
.linha-cliente div.absolute {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 60%;
  width: 100px;
  z-index: 9;
  transform: rotate(0deg) scale(0.8);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.linha-cliente:nth-child(2n + 1):hover div.absolute {
  opacity: 1;
  transform: rotate(3deg) scale(1);
}
.linha-cliente:nth-child(2n + 2):hover div.absolute {
  opacity: 1;
  transform: rotate(-3deg) scale(1);
}


/* something */

.grid6.something {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.grid6.something .card {
  width: 100%;
  transition: ease-out 0.5s;
  aspect-ratio: 3/4;
  position: relative;
  cursor: pointer;
  background-color: var(--laranja);
  --bs-card-border-width: 0px;
  --bs-card-border-color: transparent;
  --bs-card-border-radius: 0px;
  --bs-card-box-shadow: none ;
  --bs-card-inner-border-radius: 0px;
}
.grid6.something img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid6.something .card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--laranja);
  opacity: 1;
  z-index: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.grid6.something .card:hover::after {
  opacity: 0;
}
.grid6.something .card:nth-child(1), .grid6.something .card:nth-child(4),
.grid6.something .card:nth-child(8), .grid6.something .card:nth-child(11),
.grid6.something .card:nth-child(15), .grid6.something .card:nth-child(16) {
  transform:rotate(-4deg)
}
.grid6.something .card:hover {
  transform: rotate(6deg);
  transition: ease-out 0.5s;
}

.grid6.something .card::before {
  content: attr(data-number);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  font-size: 24px;
  font-weight: bold;
  color: var(--preto);
  z-index: 2;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
  padding-right: 12px;
  padding-top: 12px;
}

.grid6.something .card:hover::before {
  opacity: 0;
}


.modal {
  --bs-modal-width: 35vw;
  --bs-modal-padding: 20px;
  transform: rotate(-1deg);
  --bs-modal-border-color: transparent;
  --bs-modal-border-width: 0px;
  --bs-modal-color: black;
}
.modal-content {
border: none;
}

.modal, .modal-dialog, .modal-content, .modal-body {
  border-radius: 0px;
}
.modal {
  background-color: transparent;
}
.modal-content {
  background-color: rgba(180,57,24,0.6);
  backdrop-filter: blur(15px) saturate(160%) contrast(110%) brightness(105%);
    -webkit-backdrop-filter: blur(15px) saturate(160%) contrast(110%) brightness(105%);
}
.modal button.btn-close {
  position: absolute;
  z-index: 99999999;
  top: 20px;
  right: 20px;
}

.popup-inner {
  height: 100%;
  width: 100%;
}

#popup.is-open {
  opacity: 1;
  transform: translate(-50%,-50%) rotate(1deg);
  pointer-events: auto;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}


#popup-image,
#popup-video {
  position: absolute;
  top:50%;
  transform: translateY(-50%);
  right: 0;
  width: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

#popup-image.show,
#popup-video.show {
  opacity: 1;
}

#popup-media-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 50%;
  height: 100%;
}
#popup-media-container > div {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
}





/* single */
.single-img {
  aspect-ratio: 16/9;
}
.scroll-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform:  translateX(-50%);
  width: 25%;
  transition: width 0.3s;
}
.scroll-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.video-wrapper-16-9 {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-wrapper-16-9 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
h3 {
  font-size: 96px;
  font-family: 'Pepi Bold';
  line-height: 1;
  margin: 0px;
  letter-spacing: -3px;
}
h4, h4 p {
  font-size: 32px;
  line-height: 1.2;
  margin: 0px;
}
h5, h5 p {
  font-size: 20px;
  margin: 0px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.aspect-3x4 {
  aspect-ratio: 3/4;
  object-fit: cover;
}
.bloco-txtimg .grid2 img {
  width: 100%;
  height: auto;
  /* aspect-ratio: 3/4;
  object-fit: cover; */
}




.grid1 img {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.bloco-txtimg .grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.bloco-txt {
  position: fixed;
  width: 100vw;
  height: 100dvh;
  z-index: 999;
  top: 0;
  right: 0;
  padding: 5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out;
  cursor: e-resize;
}
.bloco-txt.abre {
  transform: translateX(0);
}
.bloco-txt p {
  margin-top: 0px;
}
.two-col {
  column-count: 2;
  column-gap: 40px;
}
#contato {
  height: 90dvh;
  background: rgba(255, 255, 255, 0.4);
  background: rgba(25,26,28,0.95);
  backdrop-filter: blur(20px) saturate(180%) contrast(120%) brightness(110%);
  -webkit-backdrop-filter: blur(20px) saturate(180%) contrast(120%) brightness(110%);
}
#contato h3 {
  font-size: 24px;
  letter-spacing: -0.3px;
  font-family: 'Pepi Regular';
  color: #E2E3E4;
}
#contato.footer-home {
  position: fixed;
  z-index: 999999;
  bottom: 0;
  left: 0;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  cursor: s-resize;
}
#contato.footer-home.abre {
  transform: translateY(0);
}
#contato.footer-home a,
#contato.footer-home .email-link,
#contato.footer-home .email-link * {
  cursor: pointer;
  color: #E2E3E4;
}

.copy-success-tag {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(0) rotate(0);
    background: var(--azul);
    color: white;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 14px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    white-space: nowrap;
    z-index: 9;
    opacity: 0;
    pointer-events: none;
}
.copy-success-tag.show {
    opacity: 1;
    transform: translate(-30%, -30%) rotate(-3deg);
}

a:focus {
  outline: none;
}


/* video */
#video-prewarm {
  position: fixed;
  left: -9999px; top: -9999px;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
  /* Importante: NÃO usar display:none; queremos que o navegador carregue/execute */
}
#popup-media-container { position: relative; }
.video-overlay {
  position: absolute; inset: 0;
  background: #000;        /* ou um blur/gradient/imagem */
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px;
  opacity: 1; transition: opacity .25s ease;
  pointer-events: none;
}
.video-overlay.is-hidden { opacity: 0; }


.video-frame {
  position: relative;
}
.video-container {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: transparent;
  cursor: pointer;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}
#popup-media-container .video-container, #popup-media-container.video-container {
  background-color: rgba(1,1,1,0);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
button.video-sound-btn {
  width: 100px;
  font-family: 'Pepi Medium';
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 0.6rem 1rem 0.5rem 1rem;
  border: none;
  border-radius: 2rem;
  color: white;
  cursor: pointer;
  font-size: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px) saturate(180%) contrast(120%) brightness(110%);
  -webkit-backdrop-filter: blur(20px) saturate(180%) contrast(120%) brightness(110%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
button.video-sound-btn:hover {
  transform: translateY(-3px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}

@media (max-width: 1024px) {
  .modal {
    --bs-modal-width: 70vw;
  }
  #contato {
    height: 70dvh;
  }
}

@media (max-width: 760px) {
  h5, h5 p {
    font-size: 15px;
  }
  .grid-projetos .grid3 {
    margin-bottom: 2rem;
    margin-top: 8px;
  }
  .grid-projetos .grid3 > div {
    grid-column: auto !important;
  }
  .listas.pv6 {
    padding-top: 3rem;
    padding-bottom: 5rem;
  }
  .linha-cliente h2 {
    font-size: 20px;
    line-height: 1;
    margin: 0px;
    font-family: 'Pepi Black';
    width: auto;
  }
  .linha-cliente {
    margin-top: 0px;
  }
  .linha-cliente p.mr4 {
    margin-right: 1rem;
  }
  .linha-cliente p {
    margin-top: 0px;
    margin-bottom: 0px;
  }
  .linha-cliente .cats {
    display: none;
  }
  .linha-cliente .tit {
    margin-left: auto;
    text-align: right;
  }
  .linha-cliente img {
    display: none;
  }
  .linha-cliente h2.w-50 {
    width: auto!important;
  }
  .grid6.something {
    padding: 20px;
    grid-template-columns: repeat(2, 1fr);
  }
  section.home {
    width: 400vw;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 40px;
    padding: 20px;
  }
  #contato {
    padding: 20px;
  }
  #contato h3 {
    font-size: 16px;
  }
  #contato h3.mh4 {
    margin: 0px 16px;
  }
  .true-glass-btn {
    padding: 4px 10px;
    font-size: 12px;
  }
  .btn {
    padding: 7px 12px 6px 12px;
    margin-right: 8px;
    font-size: 12px;
  }
  header.pr4 {
    padding-right: 16px;
  }
  header img.tiu {
    width: 32px!important;
  }
  header {
    padding: 0px 20px;
  }
  .grid3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .animated-text-pr {
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
  }
  .animated-text-pr .w-30, .animated-text-pr .w-70 {
    width: 100%;
    padding-left: 0px;
  }
  .animated-text-pr h5.pt5 {
    padding-top: 0px;
  }
  .categories {
    padding-top: 40px;
  }

  #popup {
    width: 90vw;
    height: 70dvh;
  }
  .popup-inner {
    flex-direction: column;
    padding: 32px;
  }
  #popup div.w-40, #popup img.w-50 {
    width: 100%!important;
  }

  #popup-content {
    font-size: 12px;
  }

  #popup-media-container {
    width: 100%;
    height: auto;
  }
  #popup-media-container > div {
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .scroll-image {
    position: static;
    transform:  translateX(0);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 40px;

  }
  .scroll-image img, .single-img {
    aspect-ratio: 3/4;
  }
  .scroll-image.mobi {
    display: block;
  }
  .scroll-image.desk {
    display: none;
  }

  h3 {
    font-size: 32px;
    letter-spacing: 0px;
  }
  h4, h4 p {
    font-size: 18px;
  }
  /* .single-img div.w-30 {
    display: none;
  }
  .single-img p.w-30 {
    width: 100%;
  } */
  .single-img div.w-25 {
    width: 100%!important;
  }
  .single-header div.flex{
    flex-direction: column;
  }
  .single-header h4.mh5 {
    margin: 0px;
  }

  #popup {
    width: 85vw;
    height: 85dvh;
  }

  .bloco-txtimg h4.w-50 {
    width: 100%!important;
    padding-left: 0px;
    padding: auto 2rem!important;
  }
  .mobi-none {
    display: none;
  }
  .desk-none {
    display: flex;
  }
  .bloco-txt div.flex.justify-between {
    flex-direction: column;
  }
  .bloco-txt .w-40.pr4, .bloco-txt .w-60.pl4 {
    padding-right: 0px;
    padding-left: 0px;
    width: 100%;
  }
  #contato h3.ano {
    display: none;
  }
  #contato .sociais a {
    width: 40vw;
    margin-bottom: 20px;
    margin-right: 0px;
  }
  #contato .sociais a h3, #contato .sociais div {
    margin-right: 0px;
  }
  #contato .sociais {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  #contato .sociais a:nth-child(2), #contato .sociais a:nth-child(4) {
    text-align: right;
  }
  .bloco-txt .two-col {
    font-size: 12px;
  }

  .modal {
  --bs-modal-width: calc(100vw - 40px);
  }
}
