/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f7f7f7;
    color: #333;
}

/* HEADER / TOPO */

header {
    background-color: #ffffff;
    border-bottom: 2px solid #3b3b98;
    padding: 5px 40px;              /* espaço interno horizontal */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;                    /* ocupa 100% da largura da janela */
}

/* Container da logo */
header .logo {
    display: flex;
    align-items: center;
}

/* Logo maior */
header .logo img {
    height: 110px;                  /* ajuste este valor se quiser maior/menor */
}

/* Menu próximo da logo */
header nav {
    display: flex;
    align-items: center;
    gap: 20px;                      /* espaço entre os links */
    margin-left: 40px;              /* pequena distância entre logo e menu */
}

/* Links do menu */
header nav a {
    text-decoration: none;
    color: #3b3b98;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 0;
}

header nav a:hover {
    text-decoration: underline;
}

/* CONTEÚDO PRINCIPAL */

main {
    max-width: 1100px;              /* se quiser tudo 100%, remova esta linha */
    margin: 20px auto;
    padding: 0 15px 40px 15px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Títulos de seção */
section {
    margin-top: 30px;
}

section h1,
section h2 {
    color: #3b3b98;
    margin-bottom: 10px;
}

/* HERO (destaque da home) */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.hero-text {
    flex: 1 1 300px;
    padding-right: 20px;
}

.hero-text h1 {
    margin-bottom: 10px;
}

.hero-text p {
    margin-bottom: 15px;
}

/* Box de destaque no hero */
.highlight-box {
    background-color: #f1f1ff;
    border-left: 4px solid #3b3b98;
    padding: 15px;
    border-radius: 4px;
}

/* Imagem do hero */
.hero-image {
    flex: 1 1 280px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 6px;
}

/* Listas gerais */
ul {
    margin-top: 10px;
    padding-left: 18px;
}

ul li {
    margin-bottom: 5px;
}

/* CONTATO / CREDENCIAIS (home) */
.contact-info p {
    margin-bottom: 5px;
}

/* RODAPÉ */

footer {
    background-color: #3b3b98;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    margin-top: 20px;
}

/* BOTÃO WHATSAPP FIXO (todas as páginas) */

.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.whatsapp-float:hover {
    background-color: #1ebe57;
}

/* Ícone simples (usando texto 'W') */
.whatsapp-float span {
    font-weight: bold;
}

/* ------------------ GALERIA (página 2) ------------------ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item img {
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Modal de imagem ampliada */
.modal {
    display: none;                  /* escondido por padrão */
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 6px;
}

.modal-caption {
    margin: 15px auto;
    text-align: center;
    color: #fff;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Área visual de upload (admin) */
.upload-section {
    margin-top: 30px;
    padding: 15px;
    background: #f7f7ff;
    border-radius: 6px;
    border-left: 4px solid #3b3b98;
}

.upload-section input[type="file"] {
    margin-top: 10px;
}

/* ------------------ FORMULÁRIO (página 3) ------------------ */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-primary {
    background-color: #3b3b98;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #323281;
}

/* ------------------ RESPONSIVO ------------------ */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 20px;
    }

    header nav {
        margin-left: 0;
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    header .logo img {
        height: 80px;               /* logo menor em telas pequenas */
    }

    main {
        margin: 10px auto 30px auto;
        padding: 0 10px 30px 10px;
    }
}
/* ------------------ GALERIA (página 2) ------------------ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item img {
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Modal de imagem ampliada */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 6px;
}

.modal-caption {
    margin: 15px auto;
    text-align: center;
    color: #fff;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Área visual de upload (admin) */
.upload-section {
    margin-top: 30px;
    padding: 15px;
    background: #f7f7ff;
    border-radius: 6px;
    border-left: 4px solid #3b3b98;
}

.upload-section input[type="file"],
.upload-section input[type="text"] {
    margin-top: 10px;
    width: 100%;
    max-width: 400px;
}