main {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
}

section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem;
}

.card, h3, footer {
    visibility: hidden;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 50px;                                   
    background-color: #F6F6F6;
    width: 350px;
    max-width: 90%;
    height: auto;
    border-radius: 10px; 
    box-shadow: #1B3B32 5px 5px, #4E7358 10px 10px, #A5C9A1 15px 15px; 
    text-align: center;
    padding-bottom: 1%;
    transition: transform 0.3s ease;
}

nav a, .email2, .icon_g, .icon_p, .icon_m, #um, #dois, #tres {
    transition: transform 0.3s ease;
}

nav a:hover, .email2:hover, .icon_g:hover, .icon_p:hover, .icon_m:hover, #um:hover, #dois:hover, #tres:hover {
    transform: translateY(-5px);
}

.card > img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    width: 100%;
    height: 350px; 
    object-fit: cover;
}

.card > h3 {
    padding: 10px;
    font-size: 20px;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: #E6b800;
}

.card > ul {
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background: #E6b800;
    color: #D8E2DC;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 30px;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
    z-index: 100;
}

.back-to-top img{ 
    width: 20px;
}

.back-to-top.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top.hide {
    opacity: 0;
    transform: translateY(20px);
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    background-color: #1B3B32;
    color: #F6F6F6;
    padding: 2rem 1rem;
}
 
.icons2 {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.Logo2 {
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease;
}

.copy {
    padding: 1%;
    padding-bottom: 1%;
    text-align: center;
}

.email2 {
    padding-bottom: 1%;
}

.copiarmensagem {
    display: none;
    color: #F6F6F6;
    font-size: 16px;
    transition: opacity 0.3s ease;
    text-align: center;
}

.email {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

/* MEDIA QUERIES PARA RESPONSIVIDADE */

/* Tablets */
@media (max-width: 1024px) {
    body {
        font-size: 16px;
    }

    .card {
        margin: 30px;
    }

    .card > img {
        height: 300px;
    }

    .card > h3 {
        font-size: 18px;
    }

    .card > ul {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    section {
        padding: 0.5rem;
    }

    .card {
        width: 250px;
        margin: 20px;
        max-width: 95%;
        box-shadow: #1B3B32 4px 4px, #4E7358 8px 8px, #A5C9A1 12px 12px;
    }

    .card > img {
        height: 250px;
    }

    .card > h3 {
        font-size: 18px;
    }

    .card > ul {
        font-size: 16px;
        padding: 0 15px;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 24px;
    }

    .back-to-top img {
        width: 16px;
    }

    footer {
        padding: 1.5rem 0.5rem;
    }

    .icons2 {
        gap: 1.5rem;
    }

    .copy, .email2, .copiarmensagem {
        font-size: 14px;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .card {
        margin: 15px 10px;
        box-shadow: #1B3B32 3px 3px, #4E7358 6px 6px, #A5C9A1 9px 9px;
    }

    .card > img {
        height: 200px;
    }

    .card > h3 {
        font-size: 16px;
        padding: 8px;
    }

    .card > ul {
        font-size: 14px;
        padding: 0 10px;
    }

    .back-to-top {
        bottom: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 20px;
    }

    .back-to-top img {
        width: 14px;
    }

    .icons2 {
        gap: 1rem;
    }

    .icons2 img {
        max-width: 24px;
    }

    .Logo2 img {
        max-width: 80px;
    }

    .copy, .email2, .copiarmensagem {
        font-size: 12px;
    }
}

/* Mobile a partir de 912px de largura */
@media (max-width: 912px) {
    
    .card {
        width: 250px;
    }
    
    section {
    display: flex;
    flex-direction: column;
    align-content: center;
}

}

