/* ============================================================
   RESET / ISOLAMENTO DA PÁGINA
   ============================================================ */
.PAGINA-GALERIA-ROOT {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

#GALERIA-APP {
    background-color: #ffffff;
    color: #1A0106;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

#GALERIA-APP .GALERIA-CONTAINER {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HEADER GALERIA
   ============================================================ */
.GALERIA-HEADER {
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.GALERIA-LOGO {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.GALERIA-LOGO span { color: #770623; }

/* ============================================================
   GRID EDITORIAL DINÂMICO
   ============================================================ */
.GALERIA-GRID {
    display: grid;
    /* 6 colunas no desktop, mas flexível */
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 150px;
    gap: 15px;
    margin: 60px 0;
}

.GALERIA-ITEM {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
}

.GALERIA-ITEM img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(0.2, 1, 0.3, 1), filter 0.6s ease;
}

.GALERIA-ITEM:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}
/* Botão do Hero */
.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary); /* Seu bordô #770623 */
    color: #ffffff !important;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    border-radius: 2px;
    margin-top: 30px;
    border: 1px solid var(--primary);
}

.btn-hero:hover {
    background-color: transparent;
    color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(119, 6, 35, 0.1);
}
/* VARIAÇÕES DE TAMANHO - DESKTOP */
.GALERIA-ITEM.grande { grid-column: span 3; grid-row: span 3; }
.GALERIA-ITEM.vertical { grid-column: span 2; grid-row: span 3; }
.GALERIA-ITEM.horizontal { grid-column: span 3; grid-row: span 2; }
.GALERIA-ITEM.pequena { grid-column: span 2; grid-row: span 2; }

/* ============================================================
   INFO OVERLAY
   ============================================================ */
.GALERIA-INFO {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 1, 6, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity .4s ease;
}

.GALERIA-ITEM:hover .GALERIA-INFO { opacity: 1; }
.GALERIA-INFO span {
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* ============================================================
   MANIFESTO EDITORIAL
   ============================================================ */
.EDITORIAL-MANIFESTO {
    padding: 80px 20px;
    background-color: #ffffff;
    border-top: 1px solid rgba(119, 6, 35, 0.1);
    margin: 40px 0;
}

.editorial-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.editorial-side {
    min-width: 130px;
    text-align: center;
    color: #770623;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.editorial-body { flex: 1; }
.editorial-lead {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #1A0106;
    margin-bottom: 20px;
    line-height: 1.3;
}
.editorial-lead strong { color: #770623; }
.editorial-sub { color: #555; line-height: 1.8; font-size: 1rem; }

/* ============================================================
   FEEDBACK / FORMULÁRIO
   ============================================================ */
.FEEDBACK-FORM-WRAPPER {
    max-width: 700px;
    margin: 60px auto;
    padding: 40px 20px;
}

.FEEDBACK-FORM input, .FEEDBACK-FORM textarea {
    width: 100%; margin-bottom: 20px; padding: 15px;
    border: 1px solid #eee; background: #fafafa;
}

.FEEDBACK-BTN-SUBMIT {
    width: 100%; background: #770623; color: #fff;
    padding: 20px; border: none; font-family: 'Cinzel', serif;
    cursor: pointer; transition: 0.3s;
}

.FEEDBACK-BTN-SUBMIT:hover { background: #1A0106; }

/* ============================================================
   RESPONSIVIDADE AGRESSIVA (Para todas as telas)
   ============================================================ */

/* Tablet (iPad) */
@media (max-width: 1024px) {
    .GALERIA-GRID {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 180px;
    }
}

/* Celular Grande (Lanscape) */
@media (max-width: 768px) {
    .GALERIA-GRID {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .GALERIA-ITEM.grande, .GALERIA-ITEM.vertical, 
    .GALERIA-ITEM.horizontal, .GALERIA-ITEM.pequena {
        grid-column: span 2; /* Ocupa a largura total no mobile */
        grid-row: span 2;
    }
    .editorial-wrapper { flex-direction: column; text-align: center; }
}

/* Celular Pequeno (iPhone SE/Portrait) */
@media (max-width: 480px) {
    .GALERIA-GRID {
        grid-template-columns: 1fr; /* 1 foto por linha para detalhe total */
        grid-auto-rows: 250px;
    }
    .GALERIA-ITEM.grande, .GALERIA-ITEM.vertical, 
    .GALERIA-ITEM.horizontal, .GALERIA-ITEM.pequena {
        grid-column: span 1;
        grid-row: span 1;
    }
    .GALERIA-HEADER { padding: 40px 10px; }
}

/* ============================================================
   REDES SOCIAIS - ESTILO EDITORIAL
   ============================================================ */
.GALERIA-SOCIAL-SECTION {
    padding: 100px 0;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.SOCIAL-TITLE-EDITORIAL {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #1A0106;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.SOCIAL-SUBTITLE-EDITORIAL {
    font-family: 'Montserrat', sans-serif;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 50px;
}

.SOCIAL-GRID-EDITORIAL {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.SOCIAL-CARD-EDITORIAL {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border: 1px solid #eee;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.SOCIAL-CARD-EDITORIAL i {
    color: #770623;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.SOCIAL-TEXT {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.SOCIAL-PLATFORM {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: #770623;
    letter-spacing: 1px;
    font-weight: 700;
}

.SOCIAL-USER {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #1A0106;
    font-weight: 600;
}

/* Hover Effect */
.SOCIAL-CARD-EDITORIAL:hover {
    border-color: #770623;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(119, 6, 35, 0.08);
}

.SOCIAL-CARD-EDITORIAL:hover i {
    transform: scale(1.2);
}

/* --- RESPONSIVIDADE REDES SOCIAIS --- */
@media (max-width: 768px) {
    .GALERIA-SOCIAL-SECTION { padding: 60px 20px; }
    .SOCIAL-TITLE-EDITORIAL { font-size: 1.4rem; }
    .SOCIAL-GRID-EDITORIAL { grid-template-columns: 1fr; }
    .SOCIAL-CARD-EDITORIAL { padding: 20px; }
}

/* ============================================================
   SEÇÃO DE FEEDBACKS (RELATOS)
   ============================================================ */
.FEEDBACK-SECTION {
    padding: 100px 0;
    background-color: #ffffff;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.FEEDBACK-TITLE {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #1A0106;
    margin-bottom: 50px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Container onde os depoimentos aparecem */
.FEEDBACK-LIST {
    max-width: 800px;
    margin: 0 auto 60px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Mensagem de "Nenhum depoimento ainda" */
.FEEDBACK-LIST:empty::after {
    content: "Nenhum depoimento ainda. Seja o primeiro a nos contar sua experiência!";
    display: block;
    font-family: 'Montserrat', sans-serif;
    color: #999;
    font-size: 1rem;
    font-style: italic;
    padding: 20px;
}

/* Estilo do card de depoimento (quando gerado pelo JS) */
.feedback-card {
    background: #fdfafb;
    padding: 30px;
    border-radius: 4px;
    border-left: 4px solid #770623;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.feedback-card strong {
    font-family: 'Cinzel', serif;
    color: #770623;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feedback-card p {
    font-family: 'Montserrat', sans-serif;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   FORMULÁRIO DE DEPOIMENTOS
   ============================================================ */
.FEEDBACK-FORM-WRAPPER {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.FEEDBACK-FORM-TITLE {
    font-family: 'Cinzel', serif;
    color: #770623;
    font-size: 1.3rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.FEEDBACK-FORM input, 
.FEEDBACK-FORM textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    background: #fafafa;
    transition: all 0.3s ease;
}

.FEEDBACK-FORM input:focus, 
.FEEDBACK-FORM textarea:focus {
    border-color: #770623;
    background: #fff;
    outline: none;
    box-shadow: 0 0 8px rgba(119, 6, 35, 0.1);
}

.FEEDBACK-BTN-SUBMIT {
    width: 100%;
    background-color: #770623;
    color: #ffffff;
    padding: 18px;
    border: none;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.FEEDBACK-BTN-SUBMIT:hover {
    background-color: #1A0106;
    transform: translateY(-2px);
}

/* Ajuste Mobile */
@media (max-width: 600px) {
    .FEEDBACK-FORM-WRAPPER { padding: 25px 15px; }
    .FEEDBACK-TITLE { font-size: 1.5rem; }
}

/* ============================================================
   ADICIONAIS PARA RESPONSIVIDADE (SEM ALTERAR O ORIGINAL)
   ============================================================ */

/* Ajuste do Container Geral */
#GALERIA-APP .GALERIA-CONTAINER {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 1. Ajuste do Grid (Tablets e Telas Médias) */
@media (max-width: 1024px) {
    .GALERIA-GRID {
        grid-template-columns: repeat(4, 1fr); /* Reduz para 4 colunas */
        grid-auto-rows: 180px;
        gap: 12px;
    }
}

/* 2. Ajuste para Celulares Grandes (Mobile Landscape) */
@media (max-width: 768px) {
    .GALERIA-GRID {
        grid-template-columns: repeat(2, 1fr); /* 2 fotos por linha */
        grid-auto-rows: 200px;
    }
    
    /* Faz as fotos especiais ocuparem a largura total do mobile se necessário */
    .GALERIA-ITEM.grande, .GALERIA-ITEM.vertical, 
    .GALERIA-ITEM.horizontal, .GALERIA-ITEM.pequena {
        grid-column: span 2;
        grid-row: span 2;
    }

    .editorial-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .editorial-side {
        min-width: 100%;
    }

    .SOCIAL-GRID-EDITORIAL {
        grid-template-columns: 1fr; /* Redes sociais em lista no celular */
    }
}

/* 3. Ajuste para Celulares Pequenos (Portrait) */
@media (max-width: 480px) {
    .GALERIA-HEADER {
        padding: 40px 15px;
    }

    .GALERIA-GRID {
        grid-template-columns: 1fr; /* 1 foto por linha para destaque total */
        grid-auto-rows: 280px;
        gap: 20px;
    }

    .GALERIA-ITEM.grande, .GALERIA-ITEM.vertical, 
    .GALERIA-ITEM.horizontal, .GALERIA-ITEM.pequena {
        grid-column: span 1;
        grid-row: span 1;
    }

    .FEEDBACK-FORM-WRAPPER {
        padding: 25px 15px;
        width: 100%;
    }

    .btn-hero {
        width: 100%; /* Botão ocupa a largura toda no celular */
        padding: 18px 20px;
    }
}

/* Garante que imagens não estourem o layout */
img {
    max-width: 100%;
    height: auto;
    display: block;
}