/* ========================================
   GUIDINE - ESTILO VINTAGE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    background-color: #f5f0e6;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='[w3.org](http://www.w3.org/2000/svg)'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4c4a8' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: #4a3728;
    line-height: 1.6;
}

/* CABEÇALHO */
header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #d4c4a8, #f5f0e6);
    border-bottom: 3px double #8b7355;
}

header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    color: #5c4a3a;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.subtitulo {
    font-style: italic;
    font-size: 1.2rem;
    color: #8b7355;
    margin-top: 5px;
}

.header-imagem {
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 220px;
    object-fit: cover;
    border: 3px solid #8b7355;
    box-shadow: 3px 3px 12px rgba(0,0,0,0.2);
}

/* FILTROS */
.filtros {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background-color: #ebe3d5;
    border-bottom: 1px solid #d4c4a8;
}

.filtro-btn {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    padding: 10px 25px;
    border: 2px solid #8b7355;
    background-color: transparent;
    color: #5c4a3a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-btn:hover,
.filtro-btn.ativo {
    background-color: #8b7355;
    color: #f5f0e6;
}

.filtro-btn.destaque {
    border-color: #a0522d;
    color: #a0522d;
}

.filtro-btn.destaque:hover,
.filtro-btn.destaque.ativo {
    background-color: #a0522d;
    color: #f5f0e6;
}

/* GALERIA */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* MOLDURA */
.moldura {
    background: linear-gradient(145deg, #c9a96e, #8b6914);
    padding: 15px;
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.3),
        5px 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.moldura::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px solid #d4af37;
    pointer-events: none;
}

.moldura:hover {
    transform: scale(1.02);
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.3),
        8px 8px 25px rgba(0,0,0,0.4);
}

.moldura img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border: 3px solid #f5f0e6;
}

.info-pintura {
    background-color: #f5f0e6;
    padding: 15px;
    text-align: center;
    border-top: 2px solid #d4c4a8;
}

.info-pintura h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #5c4a3a;
    margin-bottom: 5px;
}

.info-pintura p {
    font-size: 0.9rem;
    color: #8b7355;
    margin-bottom: 10px;
}

.preco {
    display: inline-block;
    background-color: #5c4a3a;
    color: #f5f0e6;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.95rem;
}

/* OCULTAR ITENS FILTRADOS */
.moldura.oculto {
    display: none;
}

/* SEÇÃO PERSONALIZADO */
.secao-personalizado {
    display: none;
    max-width: 600px;
    margin: 40px auto;
    padding: 30px 20px;
    background-color: #ebe3d5;
    border: 3px double #8b7355;
}

.secao-personalizado.visivel {
    display: block;
}

.secao-personalizado h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: #5c4a3a;
    margin-bottom: 10px;
}

.descricao-personalizado {
    text-align: center;
    color: #8b7355;
    margin-bottom: 25px;
    font-style: italic;
}

.campo {
    margin-bottom: 20px;
}

.campo label {
    display: block;
    font-weight: bold;
    color: #5c4a3a;
    margin-bottom: 5px;
}

.campo input,
.campo textarea,
.campo select {
    width: 100%;
    padding: 12px;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    border: 2px solid #d4c4a8;
    background-color: #f5f0e6;
    color: #4a3728;
}

.campo input:focus,
.campo textarea:focus,
.campo select:focus {
    outline: none;
    border-color: #8b7355;
}

.aviso-preco {
    text-align: center;
    color: #a0522d;
    font-style: italic;
    margin-bottom: 20px;
}

.btn-enviar {
    display: block;
    width: 100%;
    padding: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    background-color: #25d366;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-enviar:hover {
    background-color: #128c7e;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.aberto {
    display: flex;
}

.modal-conteudo {
    background: linear-gradient(145deg, #c9a96e, #8b6914);
    padding: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        inset 0 0 15px rgba(0,0,0,0.3),
        0 0 50px rgba(0,0,0,0.5);
}

/* borda interna do modal removida */

.fechar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #f5f0e6;
    cursor: pointer;
    z-index: 10;
}

#modal-img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    border: 4px solid #f5f0e6;
    margin-top: 20px;
}

.modal-info {
    background-color: #f5f0e6;
    padding: 20px;
    text-align: center;
    margin-top: 15px;
}

.modal-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #5c4a3a;
    margin-bottom: 10px;
}

.modal-info p {
    color: #8b7355;
    margin-bottom: 15px;
}

.btn-whatsapp {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #5c4a3a;
    color: #d4c4a8;
    font-style: italic;
}

/* ========================================
   RESPONSIVO - CELULAR
   ======================================== */

@media (max-width: 600px) {
    header h1 {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }

    .header-imagem {
        max-width: 90%;
        max-height: 160px;
    }

    .filtros {
        gap: 8px;
    }

    .filtro-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .galeria {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 25px;
    }

    .moldura img {
        height: 220px;
    }

    .modal-conteudo {
        padding: 15px;
    }

    #modal-img {
        max-height: 250px;
    }
}