/* === VARIÁVEIS DO SISTEMA === */
:root {
    --primary-color: #d4af37;
    --bg-dark: #121212;
    --text-light: #d4af37;
    --glass-bg: rgba(0, 0, 0, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Zera as margens do navegador */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

/* === BODY === */
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    position: relative;
}

/* === CAMADA EXCLUSIVA PARA O FUNDO ANIMADO === */
body::before {
    content: "";
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: linear-gradient(rgba(18, 18, 18, 0.5), rgba(18, 18, 18, 0.5)), url('fundo.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: deslizeFundo 30s ease-in-out infinite alternate;
}

@keyframes deslizeFundo {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(3%, 3%, 0); }
}

/* === MENU DE NAVEGAÇÃO === */
nav {
    position: fixed; 
    top: 35px !important; 
    width: 100%; 
    background: rgba(18, 18, 18, 0.95);
    padding: 1rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 1000; 
    border-bottom: 1px solid var(--glass-border); 
    transition: all 0.3s ease;
}

nav .logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); text-transform: uppercase; letter-spacing: 2px; }
nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav ul li a { color: var(--text-light); text-decoration: none; font-weight: 500; transition: color 0.3s; }
nav ul li a:hover, nav ul li a.ativo { color: var(--primary-color); }

nav .logo img {
    height: 45px;
    width: auto;
    display: block;
    filter: drop-shadow(0px 2px 5px rgba(0,0,0,0.7));
    transition: transform 0.3s ease;
}

nav .logo img:hover {
    transform: scale(1.05);
}

@keyframes pageFadeZoom {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

/* === CONTEÚDO PRINCIPAL === */
main { 
    flex: 1; 
    padding: 140px 10% 0px;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;
    animation: pageFadeZoom 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 2rem; text-align: center; text-transform: uppercase; }

.text-box { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); padding: 2rem; border-radius: 12px; margin-bottom: 2rem; line-height: 1.6; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }

/* === SEÇÃO DE VÍDEOS COM FUNDO AMADEIRADO === */
.secao-videos-branca {
    background-color: #ffffff;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 60px 0 100px;
    margin-top: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.08);
}

.secao-interna {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 10%; 
    width: 100%;
}

.text-box-branca {
    color: #121212;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-size: 1.2rem;
    font-weight: 500;
}

.secao-videos-branca .video-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
}

/* === GRID DE VÍDEOS === */
.grid-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 2rem; 
}

.video-wrapper { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    overflow: hidden; 
    border-radius: 12px; 
    border: 1px solid var(--glass-border); 
}
.video-wrapper iframe, .video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }


/* ======================================================= */
/* === DESTAQUES DO INSTAGRAM (COM MÁSCARA DOURADA) ===== */
/* ======================================================= */
.destaques-instagram {
    margin-top: 80px; 
    width: 100%;
    text-align: center;
    position: relative;
}

.titulo-destaque {
    font-size: 2rem;
    color: #121212; 
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Container que permite a rolagem */
.slider-container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch; 
    display: flex;
    align-items: center;
    cursor: grab;
}

.slider-container::-webkit-scrollbar {
    display: none;
}
.slider-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slider-track {
    display: flex;
    gap: 30px;
    width: max-content; 
    padding-right: 30px; 
}

.slider-track:active {
    cursor: grabbing;
}

/* Container do Card com corte de borda rigoroso e fundo preto */
.iframe-box {
    width: 320px;
    height: 520px;
    flex-shrink: 0;
    border-radius: 22px;
    background: #000;
    overflow: hidden; /* Força o corte de tudo que vaza nos cantos */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: none;
    transition: transform 0.3s ease;
}

.iframe-box:hover {
    transform: translateY(-4px);
}

/* O iframe interno preenche perfeitamente o card */
.slider-track iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 22px;
}

/* A MÁSCARA DOURADA SOBREPOSTA: Esconde os cantos duros do Instagram */
.iframe-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    box-shadow: inset 0 0 0 2px var(--primary-color); /* Moldura dourada de 2px por cima */
    pointer-events: none; /* Deixa o clique passar direto para o vídeo */
    z-index: 10;
    opacity: 0.85;
}

.slider-track.dragging iframe {
    pointer-events: none;
}

/* Efeito de fade nas laterais */
.destaques-instagram::before,
.destaques-instagram::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none; 
}
.destaques-instagram::before { left: 0; background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0)); }
.destaques-instagram::after { right: 0; background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0)); }


/* === RODAPÉ === */
footer { text-align: center; padding: 2rem; background: rgba(0,0,0,0.8); border-top: 1px solid var(--glass-border); width: 100%; position: relative; z-index: 10; }

/* === BOTÃO FLUTUANTE DO WHATSAPP === */
.whatsapp-flutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 9999; 
    transition: transform 0.3s ease;
    animation: pulse-flutuante 2s infinite;
}
.whatsapp-flutuante svg { width: 35px; height: 35px; fill: white; }
.whatsapp-flutuante:hover { transform: scale(1.1); }

@keyframes pulse-flutuante {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* === FAIXA PROMOCIONAL DO TOPO === */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: var(--primary-color);
    color: #000;
    overflow: hidden;
    z-index: 1005;
    display: flex;
    align-items: center;
    font-family: "Segoe UI Symbol","Segoe UI","Arial Unicode MS","Noto Sans Symbols",sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}
.track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: rolarTopo 22s linear infinite;
}
.track span { display: flex; align-items: center; gap: 12px; padding-right: 70px; font-size: 15px; }
@keyframes rolarTopo {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


/* ======================================================= */
/* === RESPONSIVIDADE COMPLETA === */
/* ======================================================= */
@media (max-width: 768px) {
    nav { flex-direction: column; padding: 0.5rem; gap: 0.5rem; }
    nav .logo img { height: 35px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.8rem; }
    nav ul li a { font-size: 0.85rem; }

    main { padding: 180px 5% 0px; }
    h2 { font-size: 1.8rem; }
    main img[src="logo_home.png"] { max-width: 230px !important; }

    .secao-videos-branca { padding: 40px 0 80px; }
    .secao-interna { padding: 0 5%; }
    .text-box-branca { font-size: 1.05rem; margin-bottom: 2rem; }
    
    .titulo-destaque { font-size: 1.6rem; }

    .iframe-box {
        width: 280px; 
        height: 480px;
    }

    .destaques-instagram::before,
    .destaques-instagram::after {
        width: 30px;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }

    .whatsapp-flutuante { bottom: 20px; right: 20px; width: 52px; height: 52px; }
    .whatsapp-flutuante svg { width: 28px; height: 28px; }
}

/* Outros componentes secundários de galerias/contato */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 4px;
}

.fechar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.seta {
    color: white;
    font-size: 40px;
    padding: 20px;
    cursor: pointer;
}

.contato-container {
    text-align: center;
    padding: 3rem 1rem;
}

.botoes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 2.5rem;
}

.btn-contato {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px; 
}

.btn-contato svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.btn-whatsapp {
    background-color: #25D366;
    animation: pulse-flutuante 2s infinite; 
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-3px);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}