







(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PW4WTZRL');




!function(f,b,e,v,n,t,s){
  if(f.fbq)return;n=f.fbq=function(){
  n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  if(!f._fbq)f._fbq=n;
  n.push=n;n.loaded=!0;n.version='2.0';
  n.queue=[];
  t=b.createElement(e);t.async=!0;
  t.src='https://connect.facebook.net/en_US/fbevents.js';
  s=b.getElementsByTagName(e)[0];
  s.parentNode.insertBefore(t,s)
}(window, document,'script');
fbq('init', '1815186865996309');
fbq('init', '470266219501470');
fbq('track', 'PageView');








// Função para trackear conversões no Make
function trackConversion(eventName, value, currency) {
    // Para Facebook Pixel (ambos os pixels)
    if(typeof fbq !== 'undefined') {
        fbq('track', 'Purchase', {
            value: value,
            currency: currency || 'BRL'
        });
    }
    
    // Para Google Tag Manager
    if(typeof dataLayer !== 'undefined') {
        dataLayer.push({
            'event': 'purchase',
            'transaction_id': Date.now(),
            'value': value,
            'currency': currency || 'BRL',
            'event_name': eventName
        });
    }
    
    // Webhook para Make.com - substitua pela sua URL do Make
    fetch('https://hook.us1.make.com/XXXXXXXXXXXXXXXXXXXXXXXXX', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        body: JSON.stringify({
            event: eventName,
            value: value,
            currency: currency || 'BRL',
            timestamp: new Date().toISOString(),
            url: window.location.href,
            user_agent: navigator.userAgent
        })
    }).catch(console.error);
}

// Função para trackear leads
function trackLead(email, phone) {
    // Para Facebook Pixel (ambos os pixels)
    if(typeof fbq !== 'undefined') {
        fbq('track', 'Lead', {
            content_name: 'Lead Form',
            value: 1,
            currency: 'BRL'
        });
    }
    
    // Para Google Tag Manager
    if(typeof dataLayer !== 'undefined') {
        dataLayer.push({
            'event': 'generate_lead',
            'lead_value': 1,
            'currency': 'BRL'
        });
    }
    
    // Webhook para Make.com
    fetch('https://hook.us1.make.com/XXXXXXXXXXXXXXXXXXXXXXXXX', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        body: JSON.stringify({
            event: 'lead',
            email: email,
            phone: phone,
            timestamp: new Date().toISOString(),
            url: window.location.href
        })
    }).catch(console.error);
}




.video-container {
    width: 100%;
    max-width: 400px;
    margin: 8px auto;
    display: block;
    aspect-ratio: 16/9;
    background: #f0f0f0;
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}
@media (max-width: 768px) {
    .video-container {
        max-width: 200px;
    }
}
