/* perere-style-mobile.css - Otimizado para Mobile */

@media (max-width: 768px) {
    
    /* ========== Reset para Mobile ========== */
    html, body {
        scroll-padding-top: 0;
        overflow-x: hidden;
    }

    /* ========== Seções e Layout ========== */
    .inicio,
    .secao {
        height: auto;
        min-height: 50vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
    }

    .conteudo_completo {
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    /* ========== Lado Esquerdo e Direito ========== */
    .lado_esquerdo {
        width: 100% !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
        padding: 3rem 1rem !important;
        background: transparent;
    }

    .lado_direito {
        width: 100% !important;
        height: auto !important;
        background-color: #FFFFFF;
        text-align: left;
        align-items: flex-start;
        padding: 2rem 1.5rem !important;
        display: flex;
        flex-direction: column;
    }

    /* ========== Seção Intro - Layout em Linha ========== */
    .inicio .conteudo_completo {
        flex-direction: row !important;
        height: auto;
        min-height: 50vh;
    }

    .inicio .lado_esquerdo {
        width: 50% !important;
        height: auto;
        padding: 2rem 1rem !important;
        justify-content: flex-start;
    }

    .inicio .lado_direito {
        width: 50% !important;
        height: auto;
        padding: 2rem 1rem !important;
        justify-content: center;
    }

    /* ========== Texto Esquerdo ========== */
    .texto_esquerdo {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    /* ========== Tipografia em Mobile ========== */
    h1 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        letter-spacing: 0rem !important;
        word-break: break-word;
        margin: 1rem 0 !important;
        color: #FFFFFF;
    }

    h1.fonte1, h1.fonte2, h1.fonte3, h1.fonte4, h1.fonte5 {
        font-size: 1.6rem !important;
        letter-spacing: 0rem !important;
    }

    h2 {
        font-size: 1.3rem !important;
        color: #000000;
        margin: 1.5rem 0 0.8rem 0 !important;
        font-weight: 700;
    }

    p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        color: #000000;
        margin-bottom: 1rem !important;
    }

    /* ========== Ações e Botões ========== */
    .acoes-bottom {
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
        width: 100%;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        margin: 1.5rem 0;
    }

    .btn-proximo {
        width: auto;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
        border-radius: 6px;
        transition: all 0.3s ease;
        display: inline-block;
    }

    .btn-proximo:active {
        transform: scale(0.95);
    }

    /* ========== Serviços - Botões Escondidos ========== */
    #Serviços .acoes-bottom {
        display: none;
    }

    #Serviços .lado_direito h2 {
        margin-top: 0;
    }

    /* ========== Logo ========== */
    .logo_1 {
        width: 150px;
        max-width: 90vw;
        height: auto;
        margin: 0 auto 2rem auto;
        display: block;
    }

    /* ========== Espaçamento ========== */
    .espaco {
        height: 0.5rem;
    }

    .noMeio, .noInicio, .spacado {
        gap: 1rem !important;
    }

    /* ========== Galeria em Mobile ========== */
    .galeria-secao {
        width: 100%;
        padding: 1.5rem 0;
        margin-bottom: 2rem;
        border-bottom: 2px solid var(--cor-primaria);
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .galeria-secao h2 {
        text-align: left;
        margin-top: 0;
    }

    /* Container da galeria */
    .gallery {
        width: 100%;
        aspect-ratio: 16/9;
        border-radius: 8px;
        overflow: hidden;
        background: #f0f0f0;
    }

    /* Imagem da galeria */
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }

    /* Controles de galeria */
    .controles-galeria {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1rem;
        width: 100%;
    }

    .controles-galeria button {
        padding: 0.8rem 1.2rem !important;
        font-size: 1.3rem !important;
        border-radius: 6px;
        transition: all 0.3s ease;
        background-color: var(--cor-primaria) !important;
        color: white !important;
        border: none !important;
        cursor: pointer;
        min-width: 50px;
    }

    .controles-galeria button:active {
        transform: scale(0.95);
        background-color: var(--cor-secundaria) !important;
    }

    /* ========== Seção Fotografia ========== */
    #Fotografia {
        height: auto;
        min-height: auto;
    }

    #Fotografia .conteudo_completo {
        height: auto;
    }

    #Fotografia .lado_direito {
        height: auto;
    }

    /* ========== Links ========== */
    a {
        color: var(--cor-primaria);
        text-decoration: underline;
        transition: all 0.3s ease;
    }

    a:active {
        opacity: 0.7;
        text-decoration: none;
    }

    /* ========== Background Fixo ========== */
    #textura-fixa {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -1;
        pointer-events: none;
    }

    /* ========== Texturas para Mobile ========== */
    .textura1 { --s: 20px; }
    .textura2 { --s: 100px; }
    .textura3 { --s: 50px; }
    .textura4 { --s: 50px; }
    .textura5 { --s: 100px; }

}

@media (max-width: 480px) {
    
    /* ========== Ajustes para Telas Muito Pequenas ========== */
    
    .conteudo_completo {
        width: 100% !important;
    }

    /* ========== Seção Intro - Layout em Linha ========== */
    .inicio .conteudo_completo {
        flex-direction: row !important;
        height: auto;
        min-height: 50vh;
    }

    .inicio .lado_esquerdo {
        width: 50% !important;
        height: auto;
        padding: 1.5rem 0.8rem !important;
    }

    .inicio .lado_direito {
        width: 50% !important;
        height: auto;
        padding: 1.5rem 0.8rem !important;
    }

    .lado_esquerdo {
        padding: 2rem 1rem !important;
    }

    .lado_direito {
        padding: 1.5rem 1rem !important;
    }

    h1 {
        font-size: 1.4rem !important;
        margin: 0.8rem 0 !important;
    }

    h1.fonte1, h1.fonte2, h1.fonte3, h1.fonte4, h1.fonte5 {
        font-size: 1.4rem !important;
        letter-spacing: 0rem !important;
    }

    h2 {
        font-size: 1.15rem !important;
        margin: 1rem 0 0.6rem 0 !important;
    }

    p {
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem !important;
    }

    .acoes-bottom {
        gap: 0.6rem;
        margin: 1rem 0;
    }

    .btn-proximo {
        padding: 0.7rem 1.2rem !important;
        font-size: 0.85rem !important;
    }

    .logo_1 {
        width: 120px;
        margin: 0 auto 1.5rem auto;
    }

    .espaco {
        height: 0.3rem;
    }

    /* ========== Galeria em telas pequenas ========== */
    .galeria-secao {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }

    .gallery {
        aspect-ratio: 1;
    }

    .controles-galeria {
        gap: 1rem;
        margin-top: 0.8rem;
    }

    .controles-galeria button {
        padding: 0.6rem 1rem !important;
        font-size: 1.1rem !important;
        min-width: 45px;
    }

}
