body {
    background-color: #f9f9ff;
}
main {
    padding: 4rem 2rem;
}

h1 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
    color: rgb(6, 28, 118);
}

.subtitulo {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.05rem;
    color: rgba(6, 28, 118, 0.7);
}

/* CONTAINER */
.contactos-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* BLOCO */
.contacto {
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(6, 28, 118, 0.08);
    box-shadow: 0 20px 60px rgba(6, 28, 118, 0.08);
    background: linear-gradient(145deg, #e8edff, #ffffff);
}

/* HEADER */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(6, 28, 118, 0.1);
    color: rgb(6, 28, 118);
    padding: 0.4rem 1rem;
    border-radius: 40px;
}

.contacto-header h2 {
    margin-top: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: rgb(6, 28, 118);
}

.linha {
    width: 60px;
    height: 3px;
    background-color: rgb(6, 28, 118);
    margin-top: 0.8rem;
    border-radius: 2px;
}

/* FORM */
form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
}

form input,
form textarea {
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(6, 28, 118, 0.2);
    background-color: white;
    font-size: 0.95rem;
    transition: 0.3s ease;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

form input:focus,
form textarea:focus {
    border-color: rgb(6, 28, 118);
    box-shadow: 0 0 0 3px rgba(6, 28, 118, 0.15);
    outline: none;
}

form input[type="submit"] {
    background-color: rgb(6, 28, 118);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 40px;
    transition: 0.3s ease;
}

form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 28, 118, 0.25);
}

/* MAPA */
iframe {
    margin-top: 2rem;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* REDES */
.social-icons {
    margin-top: 2rem;
    display: flex;
    gap: 4rem;
}
header{z-index:300;}
.social-icons img {
    width: 38px;
    transition: 0.3s ease;
    z-index: 10;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .contactos-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    main {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .subtitulo {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .contactos-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .contacto {
        width: 100%;
        padding: 1.2rem;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(6, 28, 118, 0.05);
    }

    .contacto-header h2 {
        font-size: 1.3rem;
        margin-top: 0.8rem;
    }

    form input,
    form textarea {
        padding: 0.7rem;
        margin-bottom: 0.8rem;
        font-size: 0.85rem;
    }

    form input[type="submit"] {
        margin-top: 0.5rem;
        padding: 0.8rem;
    }

    iframe {
        height: 300px;
        margin-top: 1rem;
        width: 100%;
    }

    .social-icons {
        justify-content: center;
        gap: 2rem;
        margin-top: 1.2rem;
    }

    .social-icons a {
        width: auto;
        display: inline-block;
    }

    .social-icons img {
        width: 28px;
        height: auto;
    }
}
