@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14.32,100.900;1,14.32,100.900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ================= .container-comodoar DOS PASSOS ================= */

.container-comodoar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
    margin: 40px 0;
}

.container-comodoar-box {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

section {
    margin-bottom: 60px;
}

.box {
    width: 300px;
    position: relative;
}

.numero {
    position: absolute;
    top: 10px;
    left: 10px;

    width: 30px;
    height: 30px;
    background-color: #DA0707;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    font-size: 14px;
    color: white !important;
}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px 20px;

    border-radius: 16px;
    min-height: 160px;
}

.card-amarelo {
    background-color: #FFF4CC;
    justify-content: flex-start;
    padding-top: 20px;
}

.card-amarelo p {
    margin: 2px 0;
    line-height: 1.3;
}

.card-verde {
    background-color: #DFF5E1;
    justify-content: flex-start;
    align-items: center;
    padding-top: 20px;
    text-align: center;
}

.p-verde span {
    color: rgb(33, 97, 33);
}

.card-amarelo h2,
.card-verde h2 {
    margin-bottom: 10px;
}

.card-verde p {
    margin: 6px 0;
    line-height: 1.4;
}

.card-amarelo p {
    margin: 2px 0;
    line-height: 1.3;
}

.box-2 {
    background-color: #DA0707;
    border-radius: 20px;
    padding: 40px;
    width: 500px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    margin: 40px auto;
}

.box-2 h2,
.box-2 p {
    color: white;
}

.box h2 {
    margin-top: 10px;
    margin-bottom: 8px;
}

.box p {
    font-size: 14px;
    line-height: 1.4;
}

.btn-doar {
    margin-top: 20px;
    background-color: white;
    color: black;

    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;

    transition: all 0.3s ease;
}

.btn-doar:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

main h4 {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px;
    color: #555;
}

.titulo {
    text-align: center;
    margin-top: 20px;
}

/* terceira section com 2 cards */
section:nth-of-type(3) .container-comodoar {
    grid-template-columns: repeat(2, 300px);
    justify-content: center;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .titulo {
        font-size: 28px;
        padding: 0 10px;
    }

    main h4 {
        font-size: 14px;
        padding: 0 15px;
    }

    .plata {
        display: block;
        text-align: center;
        margin: 10px auto;
        width: fit-content;
    }

    .container-comodoar {
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin: 20px 0;
    }

    .box {
        width: 90%;
        max-width: 300px;
        padding: 25px 15px;
    }

    .box h2 {
        font-size: 18px;
    }

    .box p {
        font-size: 14px;
    }

    .numero {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    section:nth-of-type(3) .container-comodoar {
        grid-template-columns: 1fr !important;
    }

    .box-2 {
        width: 90%;
        padding: 25px;
    }

    .box-2 h2 {
        font-size: 20px;
    }

    .box-2 p {
        font-size: 14px;
    }

    .btn-doar {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ================= (1024px) ================= */

@media (max-width: 1024px) {

    .container-comodoar {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    section:nth-of-type(3) .container-comodoar {
        grid-template-columns: repeat(2, 1fr);
    }

    .box {
        width: 100%;
        max-width: 280px;
    }

    .box-2 {
        width: 80%;
    }

    .titulo {
        font-size: 40px;
    }
}
