/* Variáveis CSS */
:root {
    --cor-fundo: #211e1e;
    --cor-texto: #f5f5f5;
    --cor-destaque: #e9ff2b;
    --cor-destaque-escuro: #09eafe;
    --cor-header: #000000;
    --cor-link: #2f4f4f;
    --cor-link-hover: #e0e0e0;
    --cor-titulo-secao: #ff0044;
    --cor-btn-hover: #ff0044;
    --cor-parcerias: #e0e0e0;
    --cor-parcerias-texto: #555555;
    --cor-footer: #2e2e2e;
    --cor-footer-texto: #b0b0b0;

    /* Paleta adicional (consolidada) */
    --color-primary: #e9ff2b;
    --color-secondary: #09eafe;
    --color-accent: #f3ff30;
    --color-dark: #000000;
    --color-light: #ffffff;
    --color-gray: #696969;
    --color-gray-light: #f1f1f1;
    --color-gray-dark: #333333;
}

/* ===== HERO (capa) ===== */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000 center/cover no-repeat;
    background-position: center 30%;
    /* prioriza a parte superior da foto */
    overflow: hidden;
}

/* degradê superior e inferior para esconder início/fim da imagem */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 20vh;
    pointer-events: none;
    z-index: 1;
}

.hero::before {
    /* topo + laterais */
    top: 0;
    bottom: 0;
    /* cobre toda a altura para permitir laterais */
    height: auto;
    /* sobrescreve altura definida no grupo */
    background:
        /* topo mais presente, leve aumento */
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0) 22%),
        /* lateral esquerda (mais discreta no desktop) */
        linear-gradient(to right, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 12%),
        /* lateral direita (mais discreta no desktop) */
        linear-gradient(to left, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 12%);
}

.hero::after {
    /* base */
    bottom: 0;
    height: 34vh;
    /* aumenta a faixa inferior para mesclar melhor */
    background: linear-gradient(to top,
            var(--cor-fundo, #211e1e) 0%,
            rgba(0, 0, 0, 0.85) 35%,
            rgba(0, 0, 0, 0) 75%);
}

.hero-content {
    position: relative;
    top: -3vh; /* eleva levemente o conteúdo (testar entre -2vh e -5vh) */
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
    padding: 2rem 1rem;
}

.hero .mylogo {
    width: min(82vw, 480px);
    height: auto;
    margin-bottom: 0.6rem;
    transform: translateY(-10px); /* sobe levemente a logo */
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
}

.hero-actions {
    display: flex;
    gap: 1.4rem;
    margin-top: 0.2rem;
}

.hero-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid var(--color-primary, #e9ff2b);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    background: var(--color-primary, #e9ff2b);
    backdrop-filter: blur(2px);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* Estado inicial oculto para animação de entrada dos botões do HERO */
.hero .hero-actions .hero-btn {
    opacity: 0;
    transform: scale(0.9);
}

/* Dispara a mesma animação utilizada na mylogo */
.hero .hero-actions .hero-btn.animate {
    animation: zoomIn 0.7s ease-out forwards;
}

/* Estado final persistente após a animação */
.hero .hero-actions .hero-btn.ready {
    opacity: 1;
    transform: scale(1);
}

.hero-btn:hover {
    transform: scale(1.06);
    background: #111;
    color: var(--color-primary, #e9ff2b);
    box-shadow: 0 0 16px 2px #e9ff2b66;
}

.hero-arrow {
    margin-top: 0.2rem;
    color: var(--color-light, #ffffff);
    font-size: 28px;
    text-decoration: none;
    animation: arrowPulse 2.2s infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.9;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.6;
    }
}

.hero-social {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.hero-social .social-circles {
    gap: 1rem;
}

.hero-social .social-btn {
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
    background: var(--color-primary, #e9ff2b);
    color: #111;
    border: none;
    box-shadow: none;
}

.hero-social .social-btn:hover {
    background: #111;
    color: var(--color-primary, #e9ff2b);
}

@media (max-width: 576px) {
    .hero {
        min-height: 88vh;
        background-position: center 20%; /* ajuste fino mobile */
    }

    .hero .mylogo {
        width: min(84vw, 340px);
        transform: translateY(-6px);
    }

    .hero-content {
        top: -2vh; /* ajuste menor no mobile */
    }

    .hero-btn {
        width: 58px;
        height: 58px;
        font-size: 22px;
    }

    .hero-social .social-btn {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .hero-social {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
    }

    .hero::before {
        top: 0;
        bottom: 0;
        height: auto;
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.9) 0%,
                rgba(0, 0, 0, 0) 26%),
            linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 16%),
            linear-gradient(to left, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 16%);
    }

    .hero::after {
        height: 24vh;
        background: linear-gradient(to top,
                var(--cor-fundo, #211e1e) 0%,
                rgba(0, 0, 0, 0.8) 35%,
                rgba(0, 0, 0, 0) 75%);
    }
}

@media (min-width: 1024px) {
    .hero {
        min-height: 86vh;
        /* aumenta a parte inferior visível */
        background-position: center 14%;
    }

    /* Reels: mostrar imagem completa no desktop */
    .reels {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center top;
        min-height: 70vh;
        padding: 3rem 0;
        /* espaço para os ícones e título */
    }

    .reels::after {
        height: 16vh;
    }
}

/* Layout Geral */

/* Estado base: visível */
.animar-visivel {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Estado de saída: sumindo */
.animar-saida {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Estado de entrada: animando para aparecer */
.animar-entrada {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: entradaAnimada 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes entradaAnimada {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== Efeito de movimento/opacity no scroll (tipo Elementor) ===== */
.motion-effect {
    /* Valores padrão ajustáveis */
    --motion-distance: 30px;
    /* amplitude do movimento */
    --translateY: var(--motion-distance);
    /* deslocamento inicial para baixo */
    --e-transform-transition-duration: 100ms;
    /* duração curta para resposta suave */

    transform: translate3d(0, var(--translateY, 30px), 0);
    opacity: 0;
    /* invisível no início */
    will-change: opacity, transform;
    transition: transform var(--e-transform-transition-duration) linear,
        opacity var(--e-transform-transition-duration) linear;
}

@media (prefers-reduced-motion: reduce) {
    .motion-effect {
        transition: none;
        transform: none;
        opacity: 1;
    }

    /* Desativar animações e garantir visibilidade dos elementos animados */
    .animate,
    .hero .hero-actions .hero-btn.animate,
    .elementor-section.elementor-inner-section.elementor-section-full_width.elementor-section-height-default.animate,
    .galeria img.animate,
    .btn.animate,
    .hero-arrow,
    .whatsapp-button,
    .whatsapp-button i {
        animation: none !important;
        transition: none !important;
    }

    .footer-note,
    .galeria img,
    .btn.animate,
    .hero .hero-actions .hero-btn {
        opacity: 1 !important;
        transform: none !important;
    }
}

.logo_orcamento {
    width: 300px;
    height: auto;
    margin-bottom: 10px;
}

/* ===== Efeito visual para seção Elementor ===== */
.elementor-section.elementor-inner-section.elementor-section-full_width.elementor-section-height-default {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease-out;
}

.elementor-section.elementor-inner-section.elementor-section-full_width.elementor-section-height-default.animate {
    animation: zoomIn 0.8s ease-out forwards;
}

/* ===== Social Circles ===== */
.social-circles {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0 2.5rem 0;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary, #e9ff2b);
    color: #181818;
    font-size: 2.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    text-decoration: none;
    border: none;
}

.social-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 16px 2px #e9ff2b66;
    background: #111;
    color: var(--color-primary, #e9ff2b);
}

.social-btn i {
    pointer-events: none;
}

/* ===== TRACKS AND DJ SETS ===== */
.tracks-title {
    color: #e9ff2b;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
    text-align: center;
}

.tracks-bloco {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    margin-left: 1.5rem;
}

.tracks-linha {
    border: none;
    border-top: 2px solid #e9ff2b;
    width: 500px;
    margin: 0 auto 2rem auto;
    opacity: 0.7;
}

.tracks-linha:last-child {
    margin: 2rem auto 0 auto;
}

.tracks-icone {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #e9ff2b;
    text-align: center;
}

.tracks-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tracks-lista li {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: #fff;
    font-weight: 500;
}

/* ===== EXPERIÊNCIAS (cards) ===== */
#experiencias .exp-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    width: min(1080px, 92%);
    margin: 0 auto;
}

#experiencias .exp-card {
    background: #202020;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 1rem 1.1rem;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 160px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
}

#experiencias .exp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(233, 255, 43, 0.12),
            rgba(9, 234, 254, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#experiencias .exp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(233, 255, 43, 0.22);
    border-color: rgba(233, 255, 43, 0.4);
}

#experiencias .exp-card:hover::before {
    opacity: 1;
}

#experiencias .exp-card h3 {
    font-size: 1.05rem;
    color: var(--color-primary, #e9ff2b);
    margin: 0 0 0.1rem 0;
    letter-spacing: 0.5px;
}

#experiencias .exp-funcao {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

#experiencias .exp-ano {
    font-size: 0.78rem;
    color: #cfcfcf;
    margin-top: auto;
    line-height: 1.3;
}

@media (max-width: 520px) {
    #experiencias .exp-card {
        min-height: 140px;
    }

    #experiencias .exp-card h3 {
        font-size: 0.98rem;
    }

    #experiencias .exp-funcao {
        font-size: 0.75rem;
    }

    #experiencias .exp-ano {
        font-size: 0.7rem;
    }
}

/* ===== mylogo ===== */
.mylogo {
    width: 450px;
    height: 85px;
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.9);
    transition: all 0.6s ease-out;
    will-change: opacity, transform;
}

.mylogo.animate {
    animation: zoomIn 0.8s ease-out forwards;
}

/* Estado final persistente após a animação da logo */
.mylogo.ready {
    opacity: 1;
    transform: scale(1);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    max-width: 100vw;
}

html {
    max-width: 100vw;
    overflow-x: hidden;
}

header {
    background-color: var(--cor-header);
    color: var(--cor-texto);
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

header h1 {
    margin: 0;
    font-size: 3rem;
}

header p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* Navegação principal */
nav {
    background-color: var(--cor-destaque);
    text-align: center;
    padding: 0.75rem 0;
}

nav a {
    color: var(--cor-link);
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--cor-btn-hover);
}

section {
    padding: 1rem 1.5rem;
    max-width: 960px;
    margin: auto;
}

/* ===== Orçamento (orcamento.html) ===== */
.container {
    padding: 20px;
    max-width: 700px;
    margin: auto;
}

.orcamento {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(255, 208, 0, 0.25);
}

.orcamento h2 {
    color: var(--cor-titulo-secao);
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.cliente-info {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cliente-info span {
    font-weight: bold;
    color: var(--cor-destaque);
    flex-shrink: 0;
}

.quote {
    font-style: italic;
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--cor-titulo-secao);
}

h2 {
    color: var(--cor-titulo-secao);
    margin-bottom: 0.5rem;
}

ul {
    list-style: none;
    padding: 0;
}

/* Emoji apenas nas listas de tracks (não global) */
.tracks-lista li::before {
    content: "🎵 ";
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.galeria img,
.btn.animate {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease-out;
}

.galeria img.animate,
.btn.animate {
    animation: zoomIn 0.8s ease-out forwards;
}

.galeria img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
    display: block;
}

.reels-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ===== REELS (fundo com imagem + degradês) ===== */
.reels {
    position: relative;
    background: #000 center/cover no-repeat;
    overflow: hidden;
}

.reels::before,
.reels::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
}

.reels::before {
    /* topo + laterais */
    top: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0) 22%),
        linear-gradient(to right, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0) 12%),
        linear-gradient(to left, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0) 12%);
}

.reels::after {
    /* base */
    bottom: 0;
    height: 24vh;
    background: linear-gradient(to top,
            var(--cor-fundo, #211e1e) 0%,
            rgba(0, 0, 0, 0.8) 35%,
            rgba(0, 0, 0, 0) 75%);
}

.reels>* {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .reels {
        background-position: center 30%;
    }

    .reels::before {
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.78) 0%,
                rgba(0, 0, 0, 0) 26%),
            linear-gradient(to right, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 16%),
            linear-gradient(to left, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 16%);
    }

    .reels::after {
        height: 28vh;
    }
}

/* Imagem da logo */
/* Ícone Instagram Font Awesome */
.logo-instagram {
    color: var(--cor-destaque);
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 165px;
    width: 165px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

/* Animação ao passar o mouse na logo */
.logo-link:hover .logo-instagram {
    transform: scale(1.2);
    filter: drop-shadow(0px 0px 8px var(--cor-destaque));
}

/* Área dos botões */
.reels-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.btn:hover {
    background-color: var(--cor-btn-hover);
    color: var(--cor-texto);
}

.contato a {
    color: var(--cor-destaque);
    text-decoration: none;
    padding: 1rem 8px;
}

.contato a:hover {
    color: var(--cor-btn-hover);
}

.parcerias {
    background-color: var(--cor-parcerias);
    padding: 1% 1.5rem;
    margin-top: 2rem;
    border-top: 10px solid var(--cor-destaque);
    color: var(--cor-parcerias-texto);
}

.whatsapp-button {
    position: fixed;
    bottom: 50px;
    right: 20px;
    background-color: var(--color-primary, #e9ff2b);
    color: var(--cor-footer);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 2147483647;
    /* garantir sobreposição no mobile */
    animation: bounce 3s infinite ease-in-out;
    filter: drop-shadow(0px 0px 4px var(--cor-destaque));
    font-size: 45px;
}

.whatsapp-button:hover {
    background: #111;
    color: var(--color-primary, #e9ff2b);
    /* box-shadow: 0 0 16px 2px #E9FF2B66; */
    transform: scale(1.08);
}

.whatsapp-button i {
    transform: scale(1.2);
    animation: bounce 3s infinite ease-in-out;
}

.back-to-top {
    position: fixed;
    bottom: 130px;
    /* fallback desktop */
    /* fica acima do WhatsApp */
    right: 26px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    border: 4px solid var(--color-primary, #e9ff2b);
    color: var(--color-primary, #e9ff2b);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2147483646;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
        opacity 0.2s ease, visibility 0.2s ease;
    opacity: 0;
    visibility: hidden;
    /* leve brilho como no exemplo */
}

.back-to-top i {
    font-size: 22px;
}

.back-to-top:hover {
    background: var(--color-primary, #e9ff2b);
    color: #111;
    transform: scale(1.05);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Ajustes para áreas seguras (iPhone com notch) */
.whatsapp-button {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    right: calc(env(safe-area-inset-right, 0px) + 16px);
}

.back-to-top {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
    /* 60px (whatsapp) + 16px gap + margem */
    right: calc(env(safe-area-inset-right, 0px) + 22px);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-4px);
    }
}

footer {
    background-color: var(--cor-footer);
    width: 100%;
    text-align: center;
    padding: 8px;
    font-size: 0.8rem;
    color: var(--cor-footer-texto);
}

footer a {
    color: var(--cor-footer-texto);
    text-decoration: underline;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--cor-btn-hover);
}

#galeria-videos {
    text-align: center;
}

.grid-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.video-item video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.legenda {
    position: absolute;
    bottom: 10px;
    left: 10px;
    margin: 0;
    padding: 5px 10px;
    background: var(--cor-destaque);
    color: #000000;
    font-size: 1rem;
    border-radius: 10px;
}

.video-wrapper {
    position: relative;
}

.ativar-som-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.ativar-som-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Impressão: tudo visível, sem efeitos de animação e layout limpo para PDF */
@media print {
    @page { margin: 14mm; }

    /* Neutraliza TODAS as animações / transições / transforms */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
        scroll-behavior: auto !important;
    }

    /* Força visibilidade de elementos que dependem de JS ou classes de estado */
    .animar-visivel,
    .animar-saida,
    .animar-entrada,
    .btn,
    .btn-danger,
    button,
    .back-to-top,
    .back-to-top.show,
    .whatsapp-button,
    .hero .hero-actions .hero-btn,
    .logo_orcamento,
    .mylogo,
    .mylogo.animate,
    .galeria img,
    .galeria img.animate,
    footer {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Remove overlays de gradiente que podem escurecer conteúdo na impressão */
    .hero::before,
    .hero::after,
    .reels::before,
    .reels::after { display: none !important; }

    /* Elementos originalmente fixos viram fluxo normal mas mantêm cor original */
    .whatsapp-button,
    .back-to-top {
        position: static !important;
        inset: auto !important;
        margin: 6px 4px !important;
        width: auto !important;
        height: auto !important;
        font-size: 12px !important;
        padding: 6px 10px !important;
        transform: none !important;
    }

    /* Cards e blocos não devem quebrar ao meio */
    .exp-card,
    .orcamento,
    .video-item,
    .tracks-bloco,
    .reels-buttons .btn,
    table,
    footer { break-inside: avoid !important; page-break-inside: avoid !important; }

    /* Mantém tema original com cores impressas (quando suportado) */
    html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    nav a { text-decoration: none !important; }
    /* Remove qualquer pseudo URL adicionada anteriormente */
    a[href]::after { content: "" !important; }

    /* Logo e imagens sempre dimensionadas corretamente */
    img, video { max-width: 100% !important; height: auto !important; }
    /* 'poster' não é propriedade CSS; removido */

    /* Rodapé consolidado ao final da página */
    footer {
        position: static !important;
        background: #111 !important;
        color: #fff !important;
        padding: 12px 8px !important;
        font-size: 0.85rem !important;
    }

    /* ===== Agrupamento e proximidade de títulos ===== */
    h1, h2, h3, h4, h5, h6 {
        margin-top: 0.6rem !important;
        margin-bottom: 0.4rem !important;
    }
    /* Evita título no fim da página separado do primeiro bloco relevante */
    h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + * { break-inside: avoid !important; page-break-inside: avoid !important; }
    /* Reduz espaçamento interno para seções impressas longas */
    section { padding-top: 0.5rem !important; }
    /* Classe utilitária opcional para forçar agrupamento manual */
    .keep-with-next { break-after: avoid-page !important; page-break-after: avoid !important; }

    /* Oculta botão WhatsApp na impressão conforme solicitação */
    .whatsapp-button { display: none !important; }

    /* ===== Otimização de espaço e proximidade ===== */
    header, nav { padding: 4mm 0 !important; margin: 0 0 3mm !important; }
    nav a { padding: 0 2mm !important; font-size: 0.85rem !important; }
    .container, section { padding: 4mm 5mm !important; margin: 0 0 6mm !important; }
    .orcamento { padding: 5mm 5mm !important; margin: 0 0 6mm !important; }
    body, html { line-height: 1.28 !important; }
    p { margin: 0 0 3.5mm !important; }
    ul, ol { margin: 0 0 4mm !important; padding-left: 6mm !important; }
    .orcamento .item { padding-bottom: 2mm !important; margin: 2mm 0 !important; }
    .orcamento h2 { margin: 0 0 3mm !important; }
    .cliente-info { margin: 0 0 3mm !important; }
    .total { margin-top: 4mm !important; }

    /* Remove margem superior redundante em primeiro título de blocos */
    section h1:first-child,
    section h2:first-child,
    section h3:first-child { margin-top: 0 !important; }

    /* Títulos não quebram e carregam os primeiros elementos (parágrafo/lista/form/tabela) */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid !important;
        break-after: avoid-page !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    h1 + p, h1 + ul, h1 + ol, h1 + table, h1 + div,
    h2 + p, h2 + ul, h2 + ol, h2 + table, h2 + div,
    h3 + p, h3 + ul, h3 + ol, h3 + table, h3 + div,
    h4 + p, h4 + ul, h4 + ol, h4 + table, h4 + div { break-inside: avoid !important; page-break-inside: avoid !important; }

    /* Agrupamento mais forte para blocos de orçamento / tabelas / listas longas */
    .orcamento, table, .tracks-bloco { page-break-inside: avoid !important; break-inside: avoid !important; }
    table thead, table tbody, table tfoot { break-inside: avoid !important; }

    /* Inputs impressos mais compactos */
    input, button { padding: 2mm 3mm !important; font-size: 0.85rem !important; }
    input { background: #f5f5f5 !important; color: #000 !important; }

    /* Elimina grandes gaps causados por quebras forçadas anteriores */
    .gap-print-small { margin-bottom: 3mm !important; }
}

/* ===================== MEDIA QUERIES CENTRALIZADAS ===================== */

/* 1) Até 768px: ajustes gerais e layout dos Reels conforme mock */
@media (max-width: 768px) {
    .mylogo {
        width: 250px;
        height: auto;
    }

    .logo-instagram {
        width: 120px;
        /* ícone grande porém proporcional no mobile */
        font-size: 120px;
        flex: 0 0 auto;
    }

    .reels-container {
        flex-direction: row;
        /* lado a lado como na imagem */
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 1rem;
    }

    .reels-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        gap: 0.8rem 1rem;
        width: auto;
        max-width: none;
    }

    .reels-buttons .btn {
        background: var(--color-primary, #e9ff2b);
        color: #111;
        font-weight: 800;
        border-radius: 14px;
        padding: 12px 16px;
    }
}

/* 2) Até 576px: social-circles, Tracks, Contato e formulários compactos */
@media (max-width: 576px) {
    .social-circles {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.7rem;
        margin: 0.7rem 0 0.7rem 0;
        justify-content: center;
        align-items: center;
    }

    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        line-height: 1;
        padding: 0;
        margin: 0;
    }

    .tracks-linha,
    .tracks-lista {
        width: 95vw;
        max-width: 98vw;
    }

    .tracks-title {
        font-size: 1.5rem;
    }

    .tracks-lista li {
        font-size: 1rem;
    }

    .contato {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 1rem;
        padding: 2rem 0;
        margin-left: 1.5rem;
    }

    .contato a {
        padding: 4px 0;
        font-size: 1rem;
        display: block;
        width: 100%;
    }

    /* Regras que antes estavam em 500px, agora abrangidas por 576px */
    .item {
        flex-direction: column;
        gap: 5px;
    }

    .total {
        text-align: left;
    }

    .cliente-info {
        flex-direction: column;
        gap: 5px;
    }

    .nome-contratante,
    .cpf-cnpj {
        width: 100%;
    }
}

.item {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #444;
    padding-bottom: 5px;
}

.item input {
    width: 100px;
    padding: 5px;
    background-color: #333;
    color: var(--cor-texto);
    border: 1px solid #444;
    border-radius: 5px;
    text-align: right;
}

.nome-contratante,
.cpf-cnpj {
    width: 320px;
    /* Ajustado para maior espaço */
    padding: 5px;
    background-color: #333;
    color: var(--cor-texto);
    border: 1px solid #444;
    border-radius: 5px;
    text-align: left;
}

.cpf-cnpj {
    width: 100px;
    /* Ajustado para maior espaço */
}

.total {
    font-weight: bold;
    font-size: 18px;
    color: #00ffcc;
    text-align: right;
    margin-top: 10px;
}

.btn,
.btn-orcamento {
    display: inline-block;
    background-color: var(--cor-destaque);
    color: var(--cor-header);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    border: none;
    /* Adicionado para remover borda */
    box-shadow: none;
    /* Adicionado para remover sombra */
}

.btn:hover,
.btn-orcamento:hover {
    background-color: var(--cor-btn-hover);
    color: var(--cor-texto);
}

.btn-orcamento {
    margin: 10px;
}

footer {
    background-color: var(--cor-footer);
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 8px;
    font-size: 0.8rem;
    color: var(--cor-footer-texto);
}
