/* =========================== */
/* ======= 1. RESET & BASE === */
/* =========================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* Reset Básico */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Configuração do Corpo e Fonte Principal */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #ffffff;
    color: #111;
    /* A mágica: Definimos a fonte aqui, e o resto herda. 
       Isso evita quebrar os ícones do FontAwesome. */
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Flex para o Sticky Footer funcionar */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Elementos de formulário herdam a fonte do body */
input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Configuração de Imagens */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s, opacity 0.2s;
}

/* Títulos */
h1, h2, h3, .section-title, .map-title {
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 15px;
    color: #111;
    text-align: center;
    
}

.title-contact {
    text-align: justify;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 15px;
    color: #111;

}

h1, .section-title {
    font-size: 18px;
    text-transform: none; /* Remove maiúsculo forçado */
}

/* =========================== */
/* ======= 2. ÍCONES ========= */
/* =========================== */

/* Como não aplicamos Open Sans no seletor universal (*), 
   o FontAwesome funciona nativamente. 
   Mas garantimos a especificidade aqui apenas por segurança.
*/
.fab, .fas, .far, .fa, .icon i {
    font-family: "Font Awesome 5 Brands", "Font Awesome 5 Free", "Font Awesome 6 Brands", "Font Awesome 6 Free", sans-serif;
    font-weight: 400;
    font-style: normal;
    display: inline-block;
    text-decoration: none;
}

/* Cores específicas de ícones */
.whatsapp-icon {
    color: #25D366;
    font-size: 20px;
    margin-right: 8px;
}



/* =========================== */
/* ======= 3. LAYOUT ========= */
/* =========================== */

/* Main empurra o footer para baixo */
main {
    flex: 1 0 auto;
    width: 100%;
    position: relative;
    background-color: #ffffff;
}

.page-container {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    padding: 20px;
    padding-bottom: 60px;
}

/* Containers Centrais */
.galeria-container,
.map-wrapper,
.three-columns,
.product-gallery-container,
.related-products {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* =========================== */
/* ======= 4. HEADER ========= */
/* =========================== */

header {
    background-color: #c2c2c2;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

/* Menu Desktop */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #ed282e;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.3px;
    padding: 10px 15px;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ed282e;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}


/* ======= Language (Bandeiras) ======= */

.language-dropdown {
    display: flex;
    align-items: center;
}

.mobile-language-wrap {
    display: flex;
    gap: 30px;
    align-items: center;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.mobile-language-wrap .flag {
    width: 30px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-language-wrap .lang-option {
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.mobile-language-wrap .lang-option.active {
    opacity: 1;
}

.mobile-language-wrap .lang-option:hover {
    opacity: 1;
}

/* Elementos do Menu Mobile (Escondidos no Desktop) */
.hamburger, 
.mobile-menu, 
.overlay {
    display: none;
}

/* =========================== */
/* ======= 5. PÁGINAS ======== */
/* =========================== */

/* --- Texto Geral --- */
.default-text p, 
.column-box p {
    text-align: justify;
    margin-bottom: 15px;
    color: #111;
}

/* --- Missão / Visão --- */
.three-columns {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.column-box {
    flex: 1;
}

.column-box h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

/* --- Galeria --- */
.galeria-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
    margin-top: 20px;
}

.form-header-text{
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}


.cartao {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.cartao-imagem-wrapper {
    position: relative;
    padding-top: 100%; /* Quadrado */
    border: 1px solid #111;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cartao:hover .cartao-imagem-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cartao img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cartao-rodape {
    padding: 10px 0;
    text-align: center;
    font-weight: 700;
}

/* --- Sobre Imagem --- */
.sobre-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px auto;
}

.sobre-image img {
    border-radius: 12px;
    border: 1px solid #111;
    box-shadow: 0 6px 18px rgba(0,0,0,0.20);
}

/* --- Mapa --- */
.map-wrapper {
    margin: 50px auto;
    text-align: center;
}

.map-title {
    font-size: 18px;
    color: #ed282e;
    text-transform: uppercase;
}

.map-container {
    height: 380px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #111;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.map-container:hover {
    transform: scale(1.01);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Contato --- */
.contact-section {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info-container,
.contact-form-container {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.submit-button {
    background-color: #ed282e;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 700;
    border-radius: 5px;
    transition: background 0.3s;
}

.submit-button:hover {
    background-color: #cc0000;
}

/* =========================== */
/* === 6. GALERIA PRODUTO ==== */
/* =========================== */

.breadcrumb {
    max-width: 800px;
    margin: 10px 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
    justify-content: flex-start;
}

.breadcrumb a {
    color: #1a4a72;
    font-weight: 700;
    margin-right: 6px;
}

.breadcrumb .separator {
    margin-right: 6px;
}

.product-gallery-container {
    display: flex;
    gap: 30px;
    padding: 10px 20px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.thumbnails-column {
    width: 15%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.thumbnail-item {
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.8;
    transition: 0.2s;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    opacity: 1;
    border-color: #ed282e;
}

.main-image-area {
    width: 100%;
    max-width: 650px;
    border: 1px solid #111;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-top: 12px;
}

.image-display {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.image-display::-webkit-scrollbar { display: none; }

.image-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease-in-out;
}

.image-track img {
    min-width: 100%;
    scroll-snap-align: center;
    object-fit: contain;
}

/* Botões da Galeria */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.2);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}
.main-image-area:hover .nav-btn { opacity: 1; }
.prev-btn { left: 0; }
.next-btn { right: 0; }

.dots-container {
    display: none; /* Só aparece no mobile via JS/CSS */
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.dot {
    width: 8px; 
    height: 8px; 
    background-color: #ccc; 
    border-radius: 50%;
}
.dot.active { background-color: #333; }

/* Detalhes do Produto */
.product-details {
    flex: 1;
    padding: 0 10px;
    margin-top: 25px;
}

.product-details h2 {
    color: #ed282e;
    font-size: 28px;
    margin-top: 0;
}

.colors {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-sizing: border-box;
    border: 1px solid #4f4f4f; 
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color  0.2s ease;
}

.color-dot.active {
    border: 2px solid #ffffff; 
    box-shadow: 0 0 0 2px #2b211e; 
}

/* Mapeamento de Cores (Exemplos) */
.color-dot[data-color="preto"] { background-color: #111; }
.color-dot[data-color="branco"] { background-color: #fff; }
.color-dot[data-color="vermelho"] { background-color: #ed282e; }
.color-dot[data-color="azul"] { background-color: #007bff; }
.color-dot[data-color="verde"] { background-color: #28a745; }
.color-dot[data-color="cinza"] { background-color: #6c757d; }
.color-dot[data-color="personalizar"] { background: linear-gradient(45deg, red, blue, green);}


hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #000000, transparent);
    margin: 30px 0;
}



/* =========================== */
/* ======= 7. FOOTER ========= */
/* =========================== */

.site-footer {
    background-color: #c2c2c2;
    color: #fff;
    padding-top: 40px;
    margin-top: auto; /* Sticky Footer: Fica no fim se o conteúdo for curto */
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Colunas do Footer */
.footer-logo, .footer-nav, .footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 15px;
}

.footer-description p {
    color: #fff;
    text-align: justify;
    font-size: 14px;
    max-width: 300px;
    line-height: 1.5;

}

/* Links do Rodapé */
.footer-nav {
    display: flex;
    flex-direction: column;
}

.footer-nav a {
    color: #fff;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    font-size: 14px;
}
.footer-nav a:last-child { border-bottom: none; }
.footer-nav a:hover { color: #ed282e; }

/* Contato Rodapé */
.contact-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-contact .icon {
    width: 25px;
    text-align: center;
    color: #fff;
}

.footer-contact .text,
.footer-contact a {
    color: #fff;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    font-size: 11px;
    color: #fff;
}

/* Correção para o texto invertido aparecer certo para o humano */
.proteger-email {
    unicode-bidi: bidi-override;
    direction: rtl;
    text-align: left;
    text-decoration: none;
    cursor: pointer; /* Mostra a "mãozinha" ao passar o mouse */
}



/* =========================== */
/* ======= 8. MOBILE ========= */
/* =========================== */

/* Regras aplicadas APENAS em telas menores que 768px.
   Aqui sobrescrevemos o comportamento Desktop sem usar !important,
   apenas aproveitando a cascata (vêm depois no arquivo).
*/
@media (max-width: 768px) {
    
    /* 8.1 - Ajustes de Texto e Layout Base */
    body {
        font-size: 14px;
        line-height: 1.5;
        color: #333;

    }

    .page-container {
        padding: 5px 25px;

    }

    h1, h3, .section-title {
        font-size: 16px;
        text-align: center;
        line-height: 1.5;
        margin-bottom: 20px;

    }

    .column-box h2 {
        font-size: 16px;
        text-align: center;
        line-height: 1.5;

    }


    /* 8.2 - HEADER MOBILE */
    header {
        height: 70px;
        padding: 0;
        z-index: 1005;
    }

    nav {
        /* Inverte ordem: Hamburguer (direita), Logo (esquerda) */
        flex-direction: row-reverse; 
        height: 100%;
        padding: 0 30px;
        justify-content: space-between;
    }

    .logo img {
        height: 58px;
    }

    /* Esconde elementos Desktop */
    .nav-links, .language-dropdown {
        display: none;
    }

    /* Mostra Hamburguer */
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1006;
        padding: 0;
    }

    .hamburger::before {
        content: "";
        position: absolute;
        width: 25px;
        height: 2px;
        background: #111;
        box-shadow: 0 8px 0 #111, 0 -8px 0 #111;
        transition: 0.3s;
    }

    .hamburger:hover::before {
        background: #ed282e;
        box-shadow: 0 8px 0 #ed282e, 0 -8px 0 #ed282e;
    }

    /* 8.3 - MENU GAVETA (OFF-CANVAS) */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 80vw; /* Gaveta ocupa 80% da tela */
        max-width: 350px;
        height: calc(100vh - 70px);
        background: #c2c2c2;
        transform: translateX(-100%); /* Escondido à esquerda */
        transition: transform 0.3s ease;
        z-index: 10000;
        overflow-y: auto;
        padding-top: 20px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }

    .mobile-menu.active {
        transform: translateX(0); /* Entra na tela */
    }

    .mobile-links {
        list-style: none;
        padding: 0;
        margin: 10px 0 0 0;
    }

    .mobile-links a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(237, 40, 46, 0.3);
        color: #ed282e;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 16px;
    }

    /* Fundo Escuro ao abrir menu */
    .overlay {
        display: block; /* Existe no DOM, mas invisível */
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0,0,0,0.7);
        z-index: 9998;
        opacity: 0;
        pointer-events: none; /* Não bloqueia cliques quando invisível */
        transition: opacity 0.3s;
    }

    .overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* 8.4 - CONTEÚDO EM 1 COLUNA */
    .three-columns,
    .contact-section,
    .footer-grid,
    .product-gallery-container {
        flex-direction: column;
        gap: 10px;
    }

    /* Galeria (2 Colunas no Mobile) */
    .galeria-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 3px;
    }

    /* Produto */
    .thumbnails-column {
        display: none; /* Esconde miniaturas laterais */
    }

    .dots-container {
        display: flex; /* Mostra bolinhas de navegação */
    }
    


    #dotsContainer.dots-container {
        display: flex;
        justify-content: center;
        gap: 6px;
        
        position: relative;
        height: 0;
        top: -10px;       /* Puxa para dentro da imagem */
        z-index: 20;
        margin-top: 0;
        pointer-events: none;
    }

    /* Estilizando as bolinhas dentro do container mobile */
    #dotsContainer.dots-container .dot {
        width: 5px;       /* Tamanho minúsculo */
        height: 5px;
        background-color: rgba(255, 255, 255, 0.6);
        border-radius: 50%;
        display: block;
        box-shadow: 0 1px 2px rgba(0,0,0,0.3);
        transition: all 0.3s ease;
        transition: background-color 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
    }

    /* Bolinha ativa */
    #dotsContainer.dots-container .dot.active {
        background-color: #ff0303;
        transform: scale(1.3);
    }



    .form-header-text{
    margin-top: 20px;
    font-weight: bold;
    }

    .breadcrumb {
        display: flex;
        flex-direction: row; /* ADICIONE ESTA LINHA AQUI */
        align-items: center;
        justify-content: flex-start; 
        font-size: 13px; 
        padding: 0px 15px;
        margin: 0 0 1px 0;
        
        direction: ltr;           
        text-align: left;         
        width: 100%;              
        flex-wrap: wrap;          
    }

    .related-products {
    margin-top: px;
    }



    .nav-btn {
        background: rgba(0,0,0,0.3);
        opacity: 1;
        padding: 10px 5px;
    }

    .product-details {
        padding: 0;
    }

    /* Footer Mobile */
    .footer-grid {
        align-items: center;
        text-align: center;
    }

    .footer-nav {
        align-items: center;
        width: 100%;
    }

    .footer-nav a {
        color: #fff;
        padding: 12px 0; /* Aumentei um pouco o respiro para ficar mais elegante */
        border-bottom: 1px solid white;
        font-size: 14px;
    
    /* A CHAVE DA MUDANÇA: */
        display: block;  /* Faz o link ocupar 100% da largura da coluna, esticando a linha */
        width: 100%;     /* Garante que ele preencha tudo */
}

    .footer-contact .contact-line {
        justify-content: center;
    }
    
    /* Centraliza e justifica texto no mobile */
    .footer-description p {
        text-align: justify;
        padding: 0 10px;
    }

    .footer-logo img {
        height: 60px;
        margin: 0 auto 15px auto;
    }
}





/* Adicione isso ao FINAL do seu arquivo CSS */

/* Para telas GRANDES (Monitores de 27" a 32" ou resoluções acima de 1440px) */
@media (min-width: 1600px) {
    body {
        font-size: 18px; /* Aumenta o texto base de 14px para 18px */
    }

    h1, .section-title, .title-contact {
        font-size: 26px; /* Aumenta os títulos principais */
    }

    .nav-links a {
        font-size: 18px; /* Melhora a leitura do menu */
    }
}

/* Para telas MUITO GRANDES (4K ou 32" UltraWide) */
@media (min-width: 2000px) {
    body {
        font-size: 22px; 
    }

    .page-container {
        max-width: 1600px; /* Permite que o conteúdo espalhe mais, se quiser */
    }
    
    .logo img {
        height: 140px; /* Logo maior para acompanhar a escala */
    }
}