* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    background: #fffffff0;
}

/* ========================================
   HEADER PRINCIPAL - OTIMIZADO
   ======================================== */
.header {
  position: fixed;
  z-index: 2;
  display: flex;
  height: 10vh;
  text-align: center;
  align-items: center;
  justify-content: center;
  top: 0;
  width: 100%;
  background: white;
  color: rgb(124, 124, 124);
  border-bottom: 1px solid rgba(0, 0, 0, 0.267);
  font-size: 1.1rem;
  font-weight: 500;
}



.logo {
    position: absolute;
    left: 10%;
  /* Otimizações de imagem */
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Prevenção de layout shift */
}


main {
    position: relative;
    width: 100%;
    margin-top: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main .principal {
    width: 100%;
    display: flex;
    margin-top: 20rem;
    flex-direction: column;
    align-items: center;
    background: rgb(255, 255, 255);
}

.principal > .t1,
.principal > .t2,
.principal > .p2,
.principal > .p3,
.principal > .sec {
    width: 100%;
    font-size: 1.2rem;
    text-align: center;
}

.t1 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}
.t2 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    text-align: center;
    color: rgb(153, 0, 255);
}

.t2 span {
    font-size: 1rem;
    color: rgb(85, 85, 85);
}
.p2 {
   width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 1rem;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.foto {
    display: flex;
    justify-content: center;
    align-items: center;
}

.p2 .foto img {
    width: 100%;
    max-width: 390px;
    height: auto;
    display: block;
}
.p3 {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 1rem;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.q1 {
    font-size: 0.95rem;
    color: rgba(87, 87, 87, 0.8);
}

.q1 span {
    color: green;
}

.card {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.card .c1 {
    background: rgb(0, 210, 0);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: white;
}

.card .c2 {
    background: transparent;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid black;
    color: rgba(87, 87, 87, 0.8);
}
.card .c3 {
    background: transparent;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid black;
    color: rgba(87, 87, 87, 0.8);
}

.q1 button {
    width: 80%;
    margin-top: 2rem;
    padding: 0.9rem;
    border-radius: 8px;
    border: none;
    background-color: #e70a84d6;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.q1 button:hover {
    background-color: #ef2594cc;
    transform: translateY(1px) scale(.90);
    transform: translateY(-2px);
}

.foto {
    display: flex;
    justify-content: center;
    align-items: center;
}

.p3 .foto img {
    width: 100%;
    max-width: 390px;
    height: auto;
    display: block;
}

.sec {
    margin-bottom: 20rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2rem;
}

/* ========================================
   RESPONSIVIDADE RESULTADO
   ======================================== */

/* TABLET */
@media (max-width: 1024px) {

    main .principal {
        margin-top: 15rem;
    }

    main .c3 {
        display: none;
    }
    

    .p2,
    .p3 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .foto img {
        max-width: 300px;
        margin-top: 1rem;
    }

    .q1 button {
        width: 100%;
    }

   header .text {
        font-size: 1.5rem;
    }

    main .sec {
        margin-bottom: 4rem;
    }
}

/* CELULAR */
@media (max-width: 768px) {

    .header {
        padding: 0 0.5rem;
        height: 15vh;
    }

    main .c3 {
        display: none;
    }

    main .principal {
        margin-top: 2rem;
    }

    .logo img {
        width: 100px;
    }

    .text {
        font-size: 0.9rem;
        text-align: center;
    }

    main {
        margin-top: 6rem;
    }

    .p2,
    .p3 {
        padding: 1.5rem;
    }

    .t1 h1 {
        font-size: 1.5rem;
    }

    .t2 {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .card {
        justify-content: center;
    }

    .sec {
        flex-direction: column;
        text-align: center;
    }
}

/* CELULAR PEQUENO */
@media (max-width: 480px) {

     .header {
        flex-direction: column;
        height: 15vh;
        padding: 0.5rem 0;
        
    }

    main .c3 {
        display: none;
    }

    main .principal {
        margin-top: 4rem;
    }

    .logo {
        margin-bottom: 0.3rem;
        top: 1;
        right: 2%;
    }

    .text {
        font-size: 1rem;
        position: absolute;
        bottom: 0;
    }

    .p2,
    .p3 {
        padding: 1rem;
    }

    .t1 h2 {
        font-size: 1.2rem;
    }

    .q1 {
        font-size: 0.85rem;
    }

    .q1 button {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .foto img {
        max-width: 220px;
    }

    .sec {
        flex-direction: column;
        text-align: center;
    }
}