/* ===== RESPONSIVIDADE PERSONALIZADA ===== */

/* Breakpoints principais */
/* Mobile: até 767px */
/* Tablet: 768px - 1024px */
/* Desktop: 1025px+ */

/* ===== MOBILE FIRST - MELHORIAS GERAIS ===== */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    word-wrap: break-word;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* ===== CONTAINERS RESPONSIVOS ===== */
.e-con-inner {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

@media (max-width: 767px) {
    .e-con-inner {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* ===== TIPOGRAFIA RESPONSIVA ===== */
@media (max-width: 767px) {
    h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
    
    p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    h1 {
        font-size: 2.2rem !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
}

/* ===== FORMULÁRIOS RESPONSIVOS ===== */
@media (max-width: 767px) {
    .elementor-form-fields-wrapper {
        flex-direction: column;
    }
    
    .elementor-field-group {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    .elementor-field-textual {
        font-size: 16px !important; /* Evita zoom no iOS */
        padding: 12px 15px !important;
        min-height: 50px !important;
    }
    
    .elementor-button {
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 16px !important;
        min-height: 50px !important;
    }
}

/* ===== VÍDEOS RESPONSIVOS ===== */
.embed-container {
    position: relative !important;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    overflow: hidden !important;
    max-width: 100% !important;
    margin: 20px 0 !important;
}

.embed-container iframe,
.embed-container object,
.embed-container embed,
.embed-container video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    object-fit: cover !important;
}

/* Prevent video interaction */
.embed-container {
    pointer-events: none !important;
}

.embed-container * {
    pointer-events: none !important;
}

/* Disable video controls and interactions */
.embed-container iframe:hover,
.embed-container video:hover {
    cursor: default !important;
}

/* Mobile video optimizations */
@media (max-width: 767px) {
    .embed-container {
        z-index: 1 !important;
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
    }
    
    .embed-container video {
        z-index: 1 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure no elements overlap the video on mobile */
    .elementor-widget:not(.elementor-widget-html) {
        z-index: 0 !important;
    }
    
    /* Prevent any floating elements from covering the video */
    .elementor-widget-container {
        z-index: auto !important;
    }
    
    /* Ensure video is always on top on mobile */
    .elementor-element.elementor-widget-html {
        z-index: 10 !important;
        position: relative !important;
        display: block !important;
        width: 100% !important;
        overflow: visible !important;
    }
}

/* ===== IMAGENS RESPONSIVAS ===== */
@media (max-width: 767px) {
    .elementor-widget-image img {
        width: 100% !important;
        height: auto !important;
    }
    
    .elementor-widget-image {
        margin-bottom: 20px !important;
    }
}

/* ===== ESPAÇAMENTOS RESPONSIVOS ===== */
@media (max-width: 767px) {
    .elementor-widget:not(:last-child) {
        margin-bottom: 30px !important;
    }
    
    .elementor-section {
        padding: 30px 0 !important;
    }
    
    .e-con {
        margin-bottom: 20px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-widget:not(:last-child) {
        margin-bottom: 25px !important;
    }
    
    .elementor-section {
        padding: 40px 0 !important;
    }
}

/* ===== BOTÕES RESPONSIVOS ===== */
@media (max-width: 767px) {
    .elementor-button {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 10px 0 !important;
    }
    
    .elementor-button-content-wrapper {
        justify-content: center !important;
    }
}

/* ===== NAVEGAÇÃO RESPONSIVA ===== */
@media (max-width: 767px) {
    .elementor-menu-anchor {
        scroll-margin-top: 80px !important;
    }
}

/* ===== ANIMAÇÕES RESPONSIVAS ===== */
@media (max-width: 767px) {
    .pulsando {
        animation: pulse 2s infinite !important;
    }
    
    @keyframes pulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
        100% {
            transform: scale(1);
        }
    }
}

/* ===== MELHORIAS ESPECÍFICAS PARA O PROJETO ===== */

/* Container principal responsivo */
@media (max-width: 767px) {
    .elementor-395 {
        padding: 0 !important;
    }
    
    .e-con-boxed {
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* Seção de preço responsiva */
@media (max-width: 767px) {
    .elementor-heading-title {
        text-align: center !important;
    }
    
    /* Preço riscado */
    .elementor-heading-title s {
        font-size: 1.2rem !important;
    }
    
    /* Preço principal */
    .elementor-heading-title:has(h1) {
        font-size: 2rem !important;
        text-align: center !important;
    }
}

/* Formulário de compra responsivo */
@media (max-width: 767px) {
    .elementor-form {
        padding: 20px 15px !important;
    }
    
    .elementor-field-label {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }
}

/* ===== MELHORIAS DE PERFORMANCE ===== */
@media (max-width: 767px) {
    /* Reduz carregamento de imagens em mobile */
    img {
        loading: lazy;
    }
    
    /* Otimiza animações em mobile */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
}

/* ===== ACESSIBILIDADE ===== */
@media (max-width: 767px) {
    /* Melhora contraste em telas pequenas */
    .elementor-heading-title {
        text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    }
    
    /* Aumenta área de toque */
    .elementor-button,
    input[type="submit"],
    button {
        min-height: 44px !important;
        min-width: 44px !important;
    }
}

/* ===== CORREÇÕES ESPECÍFICAS ===== */

/* Corrige overflow horizontal */
@media (max-width: 767px) {
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .elementor {
        overflow-x: hidden !important;
    }
}

/* Melhora espaçamento em dispositivos pequenos */
@media (max-width: 480px) {
    .e-con-inner {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .elementor-field-textual {
        padding: 10px 12px !important;
    }
}

/* ===== ORIENTAÇÃO LANDSCAPE ===== */
@media (max-width: 767px) and (orientation: landscape) {
    .elementor-section {
        padding: 20px 0 !important;
    }
    
    .elementor-widget:not(:last-child) {
        margin-bottom: 20px !important;
    }
}