@import url('https://fonts.googleapis.com/css2?family=Resamitz&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 10px;
    overflow: hidden; /* Remove barras de rolagem */
}

.card {
    max-width: 400px;
    width: 100%;
    height: auto;
    background-image: url('backgroud.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: center;
}

.header {
    padding: 20px;
    text-align: center;
}

.header img.logo {
    width: 80%;
    height: auto;
    object-fit: contain;
}

.contact-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-section h2 {
    margin: 15px 0;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2em;
    color: #B0925E;
    text-align: right;
    align-self: flex-end;
}

.contact-item {
    margin: 5px 0; /* Reduzi o espaçamento vertical entre os itens */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.contact-item a {
    font-family: 'Resamitz', sans-serif;
    font-size: 0.9em;
    color: #F1F2EF;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.contact-item a:hover {
    text-decoration: underline;
}

.icon {
    width: 24px;
    height: 24px;
    margin-left: 5px; /* Reduzi o espaçamento entre o ícone e o texto */
}

.footer {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 0.9em;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 0 10px 10px;
}

.footer p {
    display: flex;
    align-items: center;
    color: #fff;
}

.icon-footer {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Estilo do alerta discreto */
/* Estilo do alerta discreto */
#alerta-contato {
    position: fixed;
    top: 20px; /* Mantém no topo da tela */
    left: 50%; /* Centraliza horizontalmente */
    transform: translateX(-50%); /* Compensa o deslocamento apenas horizontalmente */
    background-color: rgba(240, 240, 240, 0.9); /* Fundo com 90% de opacidade */
    border: 1px solid #ccc;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: none; /* Inicia oculto */
    width: 90%; /* Largura responsiva */
    max-width: 500px; /* Limite de largura máxima */
    box-sizing: border-box; /* Inclui padding e bordas no tamanho total */
}

#alerta-contato button {
    margin-left: 10px;
    padding: 5px 10px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

#alerta-contato button.close {
    background-color: #999;
}

@media (max-width: 768px) {
    .card {
        width: 90vw;
        background-size: cover;
        align-self: center;
    }

    .header img.logo {
        width: 70%;
    }
}

@media (max-width: 480px) {
    .card {
        width: 95vw;
        align-self: center;
    }

    .header img.logo {
        width: 60%;
    }

    .contact-section h2 {
        font-size: 1em;
    }

    .contact-item a {
        font-size: 0.85em;
    }
}

/* Adaptação para telas pequenas */
@media (max-width: 480px) {
    #alerta-contato {
        width: 95%; /* Maior largura para dispositivos pequenos */
        padding: 10px; /* Reduz o padding em telas menores */
    }

    #alerta-contato button {
        padding: 5px 8px; /* Botões mais compactos */
    }
}
