/* ===== Estilos Base ===== */
.diferencial {
  position: relative;
  color: white;
  display: flex;
  background-color: #1e1336;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.diferencial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(../images/diferencialbackground.png);
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.2;  
  z-index: -1;  
}

.diferencial h1 {
    margin-top: 50px;
    font-size: 40px;
}

.sides {
    display: flex;
    gap: 50px;
    align-items: center;
}

.leftside {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    margin-top: 50px;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.difContainer {
    padding: 10px;
    display: flex;
    gap: 20px; 
    align-items: center;
    width: 400px;
    justify-content: center;
    height: 200px;
}

.difContainer img {
    filter: invert(1);
    width: 100px;
}

.sideInfos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rightside img {
    filter: invert();
}


/* ===== Breakpoints para Computadores e Notebooks ===== */

/* Para telas próximas a 1920x1080 */
@media screen and (max-width: 1920px) {
  .diferencial h1 {
      font-size: 38px;
  }
  .difContainer {
      width: 380px;
      height: 190px;
      padding: 9px;
  }
  .difContainer img {
      width: 95px;
  }
}

/* Para telas próximas a 1720x960 */
@media screen and (max-width: 1720px) {
  .diferencial h1 {
      font-size: 36px;
  }
  .difContainer {
      width: 360px;
      height: 180px;
      padding: 8px;
  }
  .difContainer img {
      width: 90px;
  }
}

/* Para telas próximas a 1600x900 */
@media screen and (max-width: 1600px) {
  .diferencial h1 {
      font-size: 34px;
  }
  .difContainer {
      width: 340px;
      height: 170px;
      padding: 7px;
  }
  .difContainer img {
      width: 85px;
  }
}

/* Para telas próximas a 1280x720 */
@media screen and (max-width: 1280px) {
    .diferencial {
        height: auto;
        flex-direction: column;
        gap: 30px;
        width: auto;
        padding: 50px;
    }
  .diferencial h1 {
      font-size: 30px;
  }
  .leftside {
      grid-template-columns: 1fr; /* Ajuste para uma coluna, se necessário */
      padding: 15px;
  }
  .difContainer {
      width: auto;
      height: auto;
      padding: 5px;
      flex-direction: column;
      gap: 10px;
  }
  .difContainer img {
      width: 70px;
  }
}


/* ===== Breakpoints para Tablets e Celulares ===== */

/* Tablets (até 768px) */
@media screen and (max-width: 768px) {
  .diferencial {
      height: auto;
      flex-direction: column;
      gap: 30px;
      width: auto;
      padding: 50px;
  }
  .diferencial h1 {
      font-size: 26px;
      margin-top: 30px;
      text-align: center;
  }
  .sides {
      flex-direction: column;
      gap: 30px;
      height: auto;
  }
  .leftside {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .rightside img {
      width: 200px;
  }
  .difContainer {
      width: 90%;
      height: auto;
      padding: 50px;
      flex-direction: column;
  }
  .difContainer img {
      width: 100px;
  }
  .sideInfos {
      align-items: center;
      text-align: center;
  }
}

/* Celulares (até 480px) */
@media screen and (max-width: 480px) {
    .diferencial {
        height: auto;
        padding: 20px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
  .diferencial h1 {
      font-size: 24px;
      margin-top: 20px;
  }
  .rightside img {
      width: 150px;
  }
  .sides {
      height: auto;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 20px;
  }
  .leftside {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .difContainer {
    align-items: center;
    justify-content: center;
      padding: 8px;
  }
  .difContainer img {
      width: 50px;
  }
  .sideInfos {
      gap: 5px;
      font-size: 14px;
  }
}
