*,
*::before,
*::after {
  box-sizing: border-box;
}

/* CUSTOM */

button:hover, a:hover {
  opacity: 0.7;
  transition: ease 0.3;
}

.max-w-290 { 
  width: 100%;
  max-width: 290px; 
}

.max-w-476 { 
  width: 100%;
  max-width: 476px; 
}

.max-w-540 { 
  width: 100%;
  max-width: 540px;
}

.max-w-660 {
  width: 100%;
  max-width: 660px;
}

.max-w-1080 {
  width: 100%;
  max-width: 1080px;
}

.min-h-14 {
  min-height: 56px;
}

.min-h-17 {
  min-height: 68px;
}

.min-h-24 {
  min-height: 96px;
}

/* TEXT TRUNCATE ("...") */
.text-ellipsis { 
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

/* tanto quanto couber dentro do container */
.min-h-24 .text-ellipsis {
  -webkit-line-clamp: 4;
}

.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.2);
}

.bg-midia {
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#midia-list {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  scroll-behavior: smooth;
  grid-template-columns: none;
}

#midia-list > a {
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  #midia-list > a {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 1024px) {
  #midia-list > a {
    flex-basis: calc((100% - 4.5rem) / 4);
  }
}

.bg-midia-01 {
  background-image: url('../img/bg-midia-01.png');
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-midia-02 {
  background-image: url('../img/bg-midia-02.png');
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-midia-03 {
  background-image: url('../img/bg-midia-03.png');
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-midia-04 {
  background-image: url('../img/bg-midia-04.png');
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-midia-05 {
  background-image: url('../img/bg-midia-05.png');
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-midia-06 {
  background-image: url('../img/bg-midia-06.png');
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-midia-07 {
  background-image: url('../img/bg-midia-07.png');
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-midia-08 {
  background-image: url('../img/bg-midia-08.png');
  background-size: cover;
  background-repeat: no-repeat;
}

/* MENU */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: bold;
  padding: 24px 30px;
}

/* Animação da seta */
.lang-selected img {
  transition: transform .3s ease;
}

/* Rotaciona quando abrir */
.lang-dropdown.active .lang-selected img {
  transform: rotate(180deg);
}

/* Menu */
.lang-options {
  position: absolute;
  top: calc(100%);
  left: 0;

  min-width: 165px;

  background: #fff;
  border: 1px solid #ddd;
  list-style: none;
  margin: 0 0 0 16px;
  padding: 8px 0;
  z-index: 1000;

  /* Estado fechado */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-10px);

  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s;
}

/* Estado aberto */
.lang-dropdown.active .lang-options {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}

.lang-options li {
  padding: 8px 12px;
  cursor: pointer;
  font-weight: bold;
}

.lang-options li:hover {
  background: #f0f0f0;
}

/* CAROUSEL */
.carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  width: 100%;
  flex: 0 0 100%;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transition: all 0.3s ease;
}


/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Caixa da modal */
.modal-content {
  background-image: url('../img/bg-contact.png');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 100px 16px 100px 30px;
  width: 90%;
  max-width: 1536px;
  border-radius: 12px;
  position: relative;
  animation: show 0.5s ease;
  margin: auto;
  max-height: 90vh;
  overflow: hidden;
}

.modal-scroll-area {
  max-height: calc(90vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 20px;
  -webkit-overflow-scrolling: touch;
}

/* Botão fechar */
.close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 48px;
  cursor: pointer;
  color: #CCC;
}

.close:hover {
  color: black;
}

@keyframes show {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.card-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: white;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.25) 10px 10px 20px 3px;
  padding: 32px;
}

.card-contact a:hover p {
  color: white;
}

.card-contact a .whatsapp-white {
  display: none;
}

.card-contact a:hover .whatsapp-black {
  display: none;
}

.card-contact a:hover .whatsapp-white {
  display: block;
}

.card-contact a:hover .whatsapp-black {
  display: none;
}

.card-contact a:hover .whatsapp-white {
  display: block;
}



/* ANIME */
/* Base para elementos com animação */
[data-anime] { opacity: 0; animation-play-state: paused; /* Animação pausada até entrar na tela */ }

/* Tipos de animação */
[data-anime="top"] { animation-name: fromTop; }
[data-anime="right"] { animation-name: fromRight; }
[data-anime="left"] { animation-name: fromLeft; }
[data-anime="bottom"] { animation-name: fromBottom; }
[data-anime="center"] { animation-name: fromCenter; }

/* Tempos de animação */
[data-time="fast"] {
  animation-duration: 0.2s;
  animation-delay: 0.2s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="medium"] {
  animation-duration: 0.4s;
  animation-delay: 0.4s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow01"] {
  animation-duration: 0.6s;
  animation-delay: 0.6s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow02"] {
  animation-duration: 0.8s;
  animation-delay: 0.8s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow03"] {
  animation-duration: 1.0s;
  animation-delay: 1.0s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow04"] {
  animation-duration: 1.2s;
  animation-delay: 1.1s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow05"] {
  animation-duration: 1.4s;
  animation-delay: 1.4s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow06"] {
  animation-duration: 1.6s;
  animation-delay: 1.6s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow07"] {
  animation-duration: 1.8s;
  animation-delay: 1.8s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow08"] {
  animation-duration: 2s;
  animation-delay: 2s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow09"] {
  animation-duration: 2.2s;
  animation-delay: 2.2s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow10"] {
  animation-duration: 2.4s;
  animation-delay: 2.4s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow11"] {
  animation-duration: 2.6s;
  animation-delay: 2.6s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow12"] {
  animation-duration: 2.8s;
  animation-delay: 2.8s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-time="slow13"] {
  animation-duration: 3s;
  animation-delay: 3s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

/* Dispara a animação quando a classe 'visible' é adicionada */
[data-anime].visible { animation-play-state: running; }

/* Definição das animações */
@keyframes fromTop {
  from { opacity: 0; transform: translate3d(0, -50px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fromRight {
  from { opacity: 0; transform: translate3d(50px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fromLeft {
  from { opacity: 0; transform: translate3d(-50px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fromBottom {
  from { opacity: 0; transform: translate3d(0, 50px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fromCenter {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* MEDIA QUERYS */
@media (max-width: 640px) {
  .max-w-300 {
    width: 100%;
    max-width: 300px;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .max-w-420 {
    width: 100%;
    max-width: 420px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .max-w-420 {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 768px) {}


/* MENU MOBILE - Telas MENORES que 1024px */
@media (max-width: 1023px) {
  #check {
    display: none;
  }
  .checkbtn {
    font-size: 30px;
    float: right;
    cursor: pointer;
    display: flex;
  }

  ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: var(--red-500);
    top:70px;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
  }
  nav ul li {
    display: block;
  }
  nav ul li a p{
    color: var(--white);
  }
  #check:checked ~ ul {
    left: 0;
  }

  h2 {
    font-size: 28;
    margin-bottom: 8px;
  }

  .img-company {
    max-width: 160px;
  }
}

/* MENU DESKTOP - Telas 1024px ou MAIORES */
@media (min-width: 1024px) {
  .checkbtn {
    display: none;
  }
  #check {
    display: none;
  }
  ul {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    text-align: left;
    transition: none;
  }
  nav ul li {
    display: inline-flex;
  }
  nav ul li a p {
    color: var(--black);
  }

  h2 {
    font-size: 60px;
    line-height: 68px;
    margin-bottom: 20px;
  }

  .lg\:max-w-280 {
    width: 100%;
    max-width: 280px;
  }

  .lg\:w-92 { width: 23rem; /* 368px */ }

  .max-w-420 {
    width: 100%;
    max-width: 420px;
  }

  .img-company {
    max-width: 200px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  #check {
    display: none;
  }
  .checkbtn {
    font-size: 30px;
    float: right;
    cursor: pointer;
    display: flex;
  }

  ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: var(--red-500);
    top:70px;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
  }
  nav ul li {
    display: block;
  }
  nav ul li a p{
    color: var(--white);
  }
  #check:checked ~ ul {
    left: 0;
  }

  h2 {
    font-size: 28;
    margin-bottom: 8px;
  }

  .img-company {
    max-width: 160px;
  }
  
  .lg\:min-h-28 {
    min-height: 112px;
  }
  .lg\:min-h-32 {
    min-height: 128px;
  }
}

@media (min-width: 1280px) {
  .xl\:min-h-28 {
    min-height: 112px;
  }
}

@media (min-width: 1366px) {}

@media (min-width: 1440px) {}
