body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f0ea;
    color: #333;
}

.page {
    max-width: 900px;
    margin: auto;
    padding: 40px;
    background: white;
    margin-bottom: 50px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

/* Cabeçalho */
.header {
    border-bottom: 3px solid #9b7a5b;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.header-top {
    display: flex;
    align-items: center; /* Alinha verticalmente */
    justify-content: space-between;
}

.logo {
    max-width: 200px;
    display: cover;
    margin-bottom: 7px;
}

.header-info {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente o texto com o logo */
}

.header-info h2 {
    margin: 5px 0;
    color: #a0ae95;
}

.header-info p, .header-info a {
    color: #333;
    font-size: 0.9em;
    text-decoration: none;
}

/* Fotografia grande */
.photo-large {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 5px;
    border: 5px solid #a0ae95;
}

/* Botões de navegação */
nav {
    text-align: center;
    margin-bottom: 30px;
}

nav a {
    display: inline-block;
    background: #9b7a5b;
    color: white;
    padding: 10px 25px;
    margin: 5px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    background: #a0ae95;
    transform: translateY(-3px);
}

/* Portfólio */
.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #ebcc90;
    padding: 5px;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Galeria */
.gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.gallery img {
    width: 300px;
    height: 350px;
    object-fit: contain;  /* mostra a imagem inteira */
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .photo-large {
        width: 200px;
        height: 200px;
    }
}
