/* ==========================================================================
   styles_mobile.css - Estilos Otimizados para Dispositivos Móveis
   Este arquivo é carregado condicionalmente apenas em telas menores.
   ========================================================================== */


/* 1. Layout Simples e Vertical */
/* Aplicações gerais para telas menores que 768px */
@media (max-width: 768px) {

    /* Garante que o corpo não tenha overflow horizontal */
    body {
        overflow-x: hidden;
    }
}

/* Seção Hero */
.hero {
    flex-direction: column;
    /* Conteúdo em coluna */
    text-align: center;
    padding: 2rem 1rem;
    min-height: 90vh;
    /* Ajuste para telas menores */
    justify-content: center;
}

.hero-content {
    order: 2;
    /* Coloca o texto abaixo da imagem/logo */
    max-width: 100%;
}

.fp-musical-note {
    position: static;
    /* Remove posicionamento fixo */
    transform: none;
    margin-bottom: 2rem;
    order: 1;
    /* Coloca a imagem/logo acima do texto */
}

.fp-logo-container {
    width: min(250px, 60vw);
    /* Tamanho responsivo para o logo */
    height: min(250px, 60vw);
    margin: 0 auto;
}

/* Seção Sobre o Artista */
.about-content {
    grid-template-columns: 1fr;
    /* Coluna única */
    text-align: center;
    gap: 2rem;
}

.about-image {
    order: -1;
    /* Coloca a imagem acima do texto na seção "Sobre" */
}

/* Seções de Grid (Repertório, Apresentações, Parceiros) */
.repertoire-grid,
.performance-types,
#partnersGrid {
    grid-template-columns: 1fr;
    /* Coluna única para grids */
    gap: 1.5rem;
}

/* Botões de Chamada para Ação (CTA) */
.cta-buttons {
    flex-direction: column;
    /* Botões de CTA em coluna */
    align-items: center;
    gap: 0.8rem;
}

.btn {
    width: 100%;
    /* Botões de largura total */
    max-width: 280px;
    /* Limite para não ficarem muito grandes */
    justify-content: center;
    padding: 0.9rem 1.5rem;
    /* Ajuste de padding */
}

/* Espaçamento generoso entre seções */
section {
    padding: 3rem 1rem;
    /* Mais padding nas laterais */
}

@media (max-width: 768px) {

    /* ✅ MENU LATERAL (SIDEBAR/DRAWER) COM BOTÃO */

    /* Botão hambúrguer visível */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        position: relative;
        z-index: 2000;
        transition: all 0.3s ease;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background: #d4af37;
        margin: 4px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* Animação do X quando aberto */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Menu lateral (sidebar) */
    .nav-links {
        position: fixed !important;
        top: 0;
        left: -280px;
        /* Escondido fora da tela à esquerda */
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(26, 26, 26, 0.98), rgba(20, 20, 20, 0.98));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 0 20px 0;
        margin: 0;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 1999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    /* Menu lateral aberto */
    .nav-links.active {
        left: 0;
    }

    /* Overlay escuro quando menu aberto */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0);
        pointer-events: none;
        transition: background 0.3s ease;
        z-index: 1998;
    }

    body.menu-open::before {
        background: rgba(0, 0, 0, 0.6);
        pointer-events: auto;
    }

    /* Itens do menu */
    .nav-links li {
        width: 100%;
        margin: 0;
        opacity: 1;
        transform: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 1.2rem 1.5rem;
        margin: 0;
        background: transparent;
        border: none;
        transition: all 0.3s ease;
        color: #ffffff;
        text-decoration: none;
        font-size: 1.1rem;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        background: rgba(212, 175, 55, 0.15);
        color: #d4af37;
        padding-left: 2rem;
    }

    .nav-links a i {
        margin-right: 1rem;
        font-size: 1.2rem;
        color: #d4af37;
        width: 24px;
        text-align: center;
    }

    /* Seção de Redes Sociais */
    .social-links {
        gap: 1rem;
    }

    .social-link {
        padding: 1.2rem;
        gap: 1rem;
        flex-direction: row;
        text-align: left;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-icon i {
        font-size: 20px;
    }

    /* Seção de Contato */
    .contact-card {
        margin: 0 1rem;
        /* Ajusta margem para telas menores */
    }

    /* 2. Tipografia Legível */
    body {
        font-size: 16px;
        /* Mínimo de 16px para o corpo */
    }

    h1 {
        font-size: clamp(2.2rem, 8vw, 4rem);
        /* Ajuste para títulos */
    }

    h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    p,
    li {
        font-size: clamp(1rem, 2.8vw, 1.1rem);
        /* Ajuste para parágrafos e listas */
    }

    /* 3. Imagens e Mídia Otimizadas */
    img {
        max-width: 100%;
        height: auto;
    }

    /* 4. Navegação e Interatividade */
    /* Chat ou assistente virtual */
    .ai-assistant {
        bottom: 15px;
        right: 15px;
    }

    .ai-chat {
        right: -15px;
        /* Ajusta para a borda da tela */
        width: calc(100vw - 30px);
        /* Largura máxima limitada */
        max-width: 350px;
        /* Limite superior */
        height: min(450px, calc(100vh - 120px));
        /* Altura adaptativa */
        max-height: 70vh;
    }

    .ai-toggle {
        width: 55px;
        /* Botão menor */
        height: 55px;
    }

    .ai-toggle i {
        font-size: 22px;
    }

    .ai-messages {
        max-height: calc(70vh - 180px);
        /* Ajusta altura da área de mensagens */
        -webkit-overflow-scrolling: touch;
        /* Scroll suave no iOS */
        overscroll-behavior: contain;
        /* Evita scroll do body ao chegar no fim do chat */
    }

    .ai-input input {
        font-size: 16px !important;
        /* Garante tamanho mínimo para input */
    }

    /* Botão "Voltar ao topo" */
    .back-to-top {
        bottom: 85px;
        /* Acima do botão do chat */
        right: 15px;
        width: 45px;
        height: 45px;
    }

    /* Notas musicais flutuantes desativadas para performance */
    .musical-note {
        display: none;
    }
}

/* Ajustes para telas muito pequenas (ex: iPhone SE, Galaxy S) */
@media (max-width: 360px) {
    .hero {
        min-height: 80vh;
        /* Reduz ainda mais a altura do hero */
    }

    .fp-logo-container {
        width: min(200px, 55vw);
        height: min(200px, 55vw);
    }

    .btn {
        max-width: 250px;
    }

    .ai-chat {
        width: calc(100vw - 20px);
        right: -10px;
        height: min(380px, calc(100vh - 100px));
        max-height: 75vh;
    }

    .ai-messages {
        max-height: calc(75vh - 160px);
    }

    .social-link {
        padding: 1rem;
        gap: 0.8rem;
        border-radius: 12px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    .social-icon i {
        font-size: 18px;
    }

    .partner-card {
        padding: 1.2rem;
        margin: 0;
    }

    .partner-description {
        -webkit-line-clamp: 4;
        /* Permite mais linhas em telas menores */
    }
}

/* Correção para viewport units no iOS (garante que --vh seja usado corretamente) */
@supports (-webkit-touch-callout: none) {
    .ai-chat {
        height: calc(var(--vh, 1vh) * 45);
        max-height: calc(var(--vh, 1vh) * 70);
    }

    @media (max-width: 768px) {
        .ai-messages {
            max-height: calc(var(--vh, 1vh) * 35);
        }
    }
}

/* CORREÇÃO: Prevenção de bounce scroll no iOS */
body.ai-chat-open,
body.menu-open {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Melhorias para navegação por teclado em mobile */
.keyboard-navigation .social-link:focus,
.keyboard-navigation .partner-link:focus {
    outline: 3px solid #d4af37;
    outline-offset: 3px;
}

/* FOCUS STYLES MELHORADOS */
.hamburger:focus {
    outline: 3px solid #d4af37;
    outline-offset: 3px;
    background: rgba(212, 175, 55, 0.1);
}

/* High contrast mode para mobile */
@media (prefers-contrast: high) and (max-width: 768px) {

    .social-link,
    .partner-card {
        border: 2px solid #d4af37;
    }

    .social-link:hover,
    .social-link:focus,
    .partner-card:hover,
    .partner-card:focus-within {
        border-color: #ffb84c;
        background: rgba(212, 175, 55, 0.1);
    }
}

/* Reduced motion para mobile */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {

    .social-link,
    .partner-card,
    .partner-photo,
    .partner-link i,
    .loading-spinner,
    .nav-links,
    .hamburger span,
    .nav-links a {
        animation: none;
        transition: none;
    }

    .social-link:hover,
    .social-link:focus,
    .partner-card:hover,
    .partner-card:focus-within {
        transform: none;
    }

    .nav-links li {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* RESPONSIVIDADE PARA ORIENTAÇÃO */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .nav-links {
        padding-top: 1rem;
    }

    .nav-links li {
        margin: 0.3rem 0;
    }

    .nav-links a {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   CORREÇÃO DOS TÍTULOS DAS SEÇÕES - ADICIONAR NO FINAL DO mobileCss.css
   ========================================================================== */

/* Garantir cor dourada para TODOS os títulos em dispositivos móveis */
@media (max-width: 768px) {

    .section-title,
    #social-title,
    #partners-title,
    #about-title,
    #repertoire-title,
    #performances-title,
    #contact-title,
    section h2,
    #social-media h2,
    #partners h2 {
        color: #d4af37 !important;
        font-family: 'Georgia', serif;
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        text-align: center;
        margin-bottom: 2rem;
        position: relative;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    /* Estilos do nav-links definidos acima (linhas 138-166) */

    /* Garantir que o decorativo também apareça em todos os títulos em mobile */
    .section-title::after,
    #social-title::after,
    #partners-title::after,
    #about-title::after,
    #repertoire-title::after,
    #performances-title::after,
    #contact-title::after,
    section h2::after,
    #social-media h2::after,
    #partners h2::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #d4af37, #ffb84c);
        border-radius: 2px;
    }

    /* Especificidade alta para sobrescrever qualquer outro estilo em mobile */
    h2.section-title,
    h2#social-title,
    h2#partners-title,
    h2#about-title,
    h2#repertoire-title,
    h2#performances-title,
    h2#contact-title {
        color: #d4af37 !important;
    }

    /* Para garantir que herança não interfira em mobile */
    #social-media .section-title,
    #partners .section-title {
        color: #d4af37 !important;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {

    .section-title,
    #social-title,
    #partners-title,
    #about-title,
    #repertoire-title,
    #performances-title,
    #contact-title,
    section h2 {
        font-size: clamp(1.6rem, 5vw, 2rem);
        margin-bottom: 1.8rem;
    }

    /* Decorativo menor para telas pequenas */
    .section-title::after,
    #social-title::after,
    #partners-title::after,
    #about-title::after,
    #repertoire-title::after,
    #performances-title::after,
    #contact-title::after,
    section h2::after,
    #social-media h2::after,
    #partners h2::after {
        width: 50px;
        height: 2px;
        bottom: -6px;
    }
}

/* Ajustes para telas extra pequenas */
@media (max-width: 360px) {

    .section-title,
    #social-title,
    #partners-title,
    #about-title,
    #repertoire-title,
    #performances-title,
    #contact-title,
    section h2 {
        font-size: clamp(1.4rem, 4.5vw, 1.8rem);
        margin-bottom: 1.5rem;
    }

    /* Decorativo ainda menor para telas extra pequenas */
    .section-title::after,
    #social-title::after,
    #partners-title::after,
    #about-title::after,
    #repertoire-title::after,
    #performances-title::after,
    #contact-title::after,
    section h2::after,
    #social-media h2::after,
    #partners h2::after {
        width: 40px;
        height: 2px;
        bottom: -5px;
    }
}

/* High contrast mode para títulos em mobile */
@media (prefers-contrast: high) and (max-width: 768px) {

    .section-title,
    #social-title,
    #partners-title,
    #about-title,
    #repertoire-title,
    #performances-title,
    #contact-title,
    section h2 {
        color: #ffff00 !important;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    }
}

/* Reduced motion para títulos em mobile */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {

    .section-title,
    #social-title,
    #partners-title,
    #about-title,
    #repertoire-title,
    #performances-title,
    #contact-title,
    section h2 {
        text-shadow: none;
        transition: none;
    }
}


/* ==========================================================================
   CORREÇÃO DA LOGO FP - RESPONSIVA PARA MOBILE
   Adicione este código ao final do seu mobileCss.css
   ========================================================================== */

/* Logo responsiva para diferentes tamanhos de tela */
@media (max-width: 768px) {
    .fp-musical-note {
        position: static;
        transform: none;
        margin-bottom: 1.5rem;
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .fp-logo-container {
        width: clamp(120px, 35vw, 200px);
        /* Tamanho muito menor para mobile */
        height: clamp(120px, 35vw, 200px);
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .fp-logo {
        width: 90%;
        height: 90%;
        object-fit: contain;
        max-width: 180px;
        /* Limite máximo para não ficar muito grande */
        max-height: 180px;
    }

    /* Ondas sonoras menores em mobile */
    .pulse-ring {
        width: 100%;
        height: 100%;
        border-width: 1px;
        /* Bordas mais finas */
        opacity: 0.6;
        /* Menos opaco */
    }

    /* Ajustes para a seção hero */
    .hero {
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .hero-content {
        margin-top: 1rem;
    }
}

/* Para telas muito pequenas (iPhone SE, Galaxy S, etc) */
@media (max-width: 480px) {
    .fp-logo-container {
        width: clamp(100px, 30vw, 150px);
        /* Ainda menor */
        height: clamp(100px, 30vw, 150px);
    }

    .fp-logo {
        max-width: 140px;
        max-height: 140px;
    }

    .fp-musical-note {
        margin-bottom: 1rem;
    }

    /* Reduz o espaçamento vertical da hero */
    .hero {
        min-height: 85vh;
        padding: 1rem 0.8rem;
    }
}

/* Para telas extra pequenas */
@media (max-width: 360px) {
    .fp-logo-container {
        width: clamp(80px, 25vw, 120px);
        /* Muito pequeno */
        height: clamp(80px, 25vw, 120px);
    }

    .fp-logo {
        max-width: 110px;
        max-height: 110px;
    }

    /* Desabilita as ondas sonoras em telas muito pequenas para melhor performance */
    .pulse-ring {
        display: none;
    }

    .hero {
        min-height: 80vh;
        gap: 0.8rem;
    }
}

/* Orientação landscape em mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .fp-logo-container {
        width: clamp(80px, 20vh, 140px);
        /* Usa vh em landscape */
        height: clamp(80px, 20vh, 140px);
    }

    .hero {
        min-height: 100vh;
        flex-direction: row;
        /* Volta para row em landscape */
        align-items: center;
    }

    .fp-musical-note {
        order: 2;
        margin-bottom: 0;
        margin-left: 1rem;
    }

    .hero-content {
        order: 1;
        text-align: left;
        margin-top: 0;
    }
}

/* Para dispositivos com altura muito pequena */
@media (max-height: 500px) {
    .fp-logo-container {
        width: clamp(70px, 15vh, 100px);
        height: clamp(70px, 15vh, 100px);
    }

    .hero {
        min-height: 90vh;
        padding: 0.5rem 1rem;
    }
}

/* Fallback caso a imagem não carregue */
.fp-logo[src=""],
.fp-logo:not([src]),
.fp-logo[alt]:empty {
    display: none;
}

.fp-logo-container:has(.fp-logo[src=""]),
.fp-logo-container:has(.fp-logo:not([src])) {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(255, 184, 76, 0.1));
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.fp-logo-container:has(.fp-logo[src=""])::before,
.fp-logo-container:has(.fp-logo:not([src]))::before {
    content: "FP";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: bold;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Otimizações de performance para mobile - mantendo animações */
@media (max-width: 768px) {
    .fp-logo {
        will-change: transform;
        /* Mantém otimização GPU para transições suaves */
    }

    .pulse-ring {
        animation-duration: 2.5s;
        /* Mantém velocidade original */
        will-change: transform, opacity;
        /* Otimiza GPU para animações */
    }
}

/* High contrast mode */
@media (prefers-contrast: high) and (max-width: 768px) {
    .fp-logo-container {
        border: 2px solid #d4af37;
        background: rgba(0, 0, 0, 0.8);
    }

    .pulse-ring {
        border-color: #ffff00;
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
    .pulse-ring {
        animation: none;
        display: none;
    }

    .fp-logo {
        transition: none;
    }
}

/* Correção específica para diferentes densidades de tela */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px) {
    .fp-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Ajuste para notch em dispositivos com tela cheia */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .hero {
            padding-top: max(1.5rem, env(safe-area-inset-top));
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
        }
    }
}

/* ==========================================================================
   CORREÇÃO COMPLETA DA LOGO FP - RESPONSIVA PARA MOBILE
   Solução definitiva para logo saindo da tela
   ========================================================================== */

/* Primeiro, vamos garantir que a hero section tenha espaço adequado */
@media (max-width: 768px) {

    /* Hero section - ajuste fundamental */
    .hero {
        min-height: 100vh;
        padding: 90px 1rem 2rem 1rem;
        /* 90px para navbar + espaço extra */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Container da logo - posicionamento seguro */
    .fp-musical-note {
        position: relative;
        width: 100%;
        max-width: 200px;
        height: auto;
        margin: 0 auto;
        order: 1;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1;
    }

    .fp-logo-container {
        position: relative;
        width: 150px;
        height: 150px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* Logo - tamanho controlado */
    .fp-logo {
        width: 120px;
        height: 120px;
        max-width: 120px;
        max-height: 120px;
        object-fit: contain;
        display: block;
    }

    /* Ondas sonoras - mantidas e ajustadas */
    .pulse-ring {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        border: 2px solid rgba(212, 175, 55, 0.4);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
        animation: soundwave 2.5s infinite;
        z-index: 0;
    }

    .pulse-ring:nth-child(2) {
        animation-delay: 0.8s;
    }

    .pulse-ring:nth-child(3) {
        animation-delay: 1.6s;
    }

    /* Conteúdo hero */
    .hero-content {
        order: 2;
        width: 100%;
        max-width: 100%;
        margin: 0;
        flex-shrink: 0;
    }

    /* Títulos ajustados */
    .hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 1rem;
    }

    .typing-text {
        font-size: clamp(1rem, 3vw, 1.3rem);
        margin-bottom: 1rem;
    }

    .description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: 1.5rem;
    }
}

/* Telas pequenas - iPhone, Galaxy S */
@media (max-width: 480px) {
    .hero {
        padding: 85px 1rem 1.5rem 1rem;
        gap: 1rem;
    }

    .fp-musical-note {
        max-width: 160px;
    }

    .fp-logo-container {
        width: 120px;
        height: 120px;
    }

    .fp-logo {
        width: 100px;
        height: 100px;
        max-width: 100px;
        max-height: 100px;
    }
}

/* Telas muito pequenas - iPhone SE */
@media (max-width: 360px) {
    .hero {
        padding: 80px 0.8rem 1rem 0.8rem;
        gap: 0.8rem;
    }

    .fp-musical-note {
        max-width: 120px;
    }

    .fp-logo-container {
        width: 100px;
        height: 100px;
    }

    .fp-logo {
        width: 85px;
        height: 85px;
        max-width: 85px;
        max-height: 85px;
    }

    .pulse-ring {
        border-width: 1px;
        opacity: 0.6;
    }
}

/* Orientação landscape em mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        flex-direction: row;
        padding: 85px 1rem 1rem 1rem;
        text-align: left;
        justify-content: space-between;
        align-items: center;
    }

    .fp-musical-note {
        order: 2;
        max-width: 140px;
        margin: 0;
    }

    .fp-logo-container {
        width: 120px;
        height: 120px;
    }

    .fp-logo {
        width: 100px;
        height: 100px;
    }

    .hero-content {
        order: 1;
        text-align: left;
        max-width: 60%;
    }
}

/* Para dispositivos com altura muito pequena */
@media (max-height: 600px) {
    .hero {
        padding: 70px 1rem 1rem 1rem;
    }

    .fp-logo-container {
        width: 100px;
        height: 100px;
    }

    .fp-logo {
        width: 85px;
        height: 85px;
    }
}

/* Correção específica para navbar fixa */
@media (max-width: 768px) {
    #navbar {
        height: 70px;
        /* Altura fixa da navbar */
        z-index: 1000;
    }

    .nav-container {
        height: 70px;
        align-items: center;
    }
}

/* Fallback caso a imagem não carregue */
.fp-logo[src=""],
.fp-logo:not([src]) {
    display: none;
}

.fp-logo-container:has(.fp-logo[src=""]):before,
.fp-logo-container:has(.fp-logo:not([src])):before {
    content: "FP";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Animação das ondas sonoras - FIXA para não interferir */
@keyframes soundwaveMobile {
    0% {
        transform: translate(-50%, -50%) scale(0.5) !important;
        opacity: 0.8;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.5) !important;
        opacity: 0.2;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8) !important;
        opacity: 0;
    }
}

/* CORREÇÃO CRÍTICA - Sobrescreve estilos do desktop */
@media (max-width: 768px) {

    /* Remove qualquer estilo conflitante */
    .fp-logo,
    .fp-logo-container,
    .fp-musical-note {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    /* Garante que as ondas não afetem o layout */
    .pulse-ring {
        will-change: opacity !important;
        contain: layout style paint !important;
    }

    /* Remove hover effects que podem causar mudanças */
    .fp-logo:hover,
    .fp-logo-container:hover,
    .fp-musical-note:hover {
        transform: none !important;
        transition: none !important;
    }
}

/* Otimizações de performance */
@media (max-width: 768px) {
    .fp-logo {
        will-change: transform;
    }

    .pulse-ring {
        will-change: transform, opacity;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) and (max-width: 768px) {
    .fp-logo-container {
        border: 2px solid #d4af37;
        background: rgba(0, 0, 0, 0.8);
    }

    .pulse-ring {
        border-color: #ffff00;
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
    .pulse-ring {
        animation: none;
        opacity: 0.3;
    }

    .fp-logo {
        transition: none;
    }
}

/* ==========================================================================
   CORREÇÃO LOGO FP - TAMANHO REDUZIDO PARA MOBILE
   Adicione este código ao seu mobileCss.css (substitui as regras existentes)
   ========================================================================== */

/* Logo muito menor para dispositivos móveis */
@media (max-width: 768px) {
    .fp-musical-note {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .fp-logo-container {
        width: 80px;
        /* Tamanho bem pequeno */
        height: 80px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .fp-logo {
        width: 70px;
        /* Logo ainda menor */
        height: 70px;
        max-width: 70px;
        max-height: 70px;
        object-fit: contain;
        display: block;
    }

    /* Ondas sonoras menores e mais sutis */
    .pulse-ring {
        width: 100%;
        height: 100%;
        border: 1px solid rgba(212, 175, 55, 0.3);
        /* Mais sutil */
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
        animation: soundwave 3s infinite;
        /* Mais lento */
        z-index: 0;
    }

    .pulse-ring:nth-child(2) {
        animation-delay: 1s;
    }

    .pulse-ring:nth-child(3) {
        animation-delay: 2s;
    }

    /* Ajustes da seção hero */
    .hero {
        padding: 80px 1rem 2rem 1rem;
        gap: 1rem;
    }

    .hero-content {
        order: 2;
        margin-top: 0.5rem;
    }
}

/* Para telas pequenas (iPhone, Galaxy S) - AINDA MENOR */
@media (max-width: 480px) {
    .fp-logo-container {
        width: 60px;
        /* Muito pequeno */
        height: 60px;
    }

    .fp-logo {
        width: 50px;
        /* Logo bem pequena */
        height: 50px;
        max-width: 50px;
        max-height: 50px;
    }

    .fp-musical-note {
        margin-bottom: 0.8rem;
    }

    .hero {
        gap: 0.8rem;
        padding: 75px 1rem 1.5rem 1rem;
    }
}

/* Para telas muito pequenas (iPhone SE) - MÍNIMO */
@media (max-width: 360px) {
    .fp-logo-container {
        width: 45px;
        /* Tamanho mínimo */
        height: 45px;
    }

    .fp-logo {
        width: 40px;
        /* Logo mínima */
        height: 40px;
        max-width: 40px;
        max-height: 40px;
    }

    /* Desabilita ondas para economizar espaço */
    .pulse-ring {
        display: none;
    }

    .hero {
        gap: 0.6rem;
        padding: 70px 0.8rem 1rem 0.8rem;
    }

    .fp-musical-note {
        margin-bottom: 0.5rem;
    }
}

/* Para dispositivos em landscape - mantém pequeno */
@media (max-width: 768px) and (orientation: landscape) {
    .fp-logo-container {
        width: 50px;
        height: 50px;
    }

    .fp-logo {
        width: 45px;
        height: 45px;
    }

    .hero {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        align-items: center;
        padding: 70px 1rem;
    }

    .fp-musical-note {
        order: 2;
        margin: 0;
    }

    .hero-content {
        order: 1;
        max-width: 65%;
    }
}

/* Fallback caso a imagem não carregue */
.fp-logo[src=""],
.fp-logo:not([src]) {
    display: none;
}

.fp-logo-container:has(.fp-logo[src=""]):before,
.fp-logo-container:has(.fp-logo:not([src])):before {
    content: "FP";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    /* Texto menor também */
    font-weight: bold;
    color: #d4af37;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Otimizações de performance */
@media (max-width: 768px) {
    .fp-logo {
        will-change: transform;
    }

    .pulse-ring {
        will-change: transform, opacity;
    }

    /* Remove transformações desnecessárias */
    .fp-logo:hover,
    .fp-logo-container:hover,
    .fp-musical-note:hover {
        transform: none !important;
    }
}



/* ==========================================================================
   CORREÇÕES MOBILE - ADICIONAR AO FINAL DO mobileCss.css
   Estas regras sobrescrevem as existentes com maior especificidade
   ========================================================================== */

/* CORREÇÃO DA LOGO FP - TAMANHOS MAIORES */
@media (max-width: 768px) {
    .fp-logo-container {
        width: 180px !important;
        height: 180px !important;
    }

    .fp-logo {
        width: 160px !important;
        height: 160px !important;
        max-width: 160px !important;
        max-height: 160px !important;
    }

    .fp-musical-note {
        margin-bottom: 2rem !important;
    }

    .hero {
        gap: 2rem !important;
        padding: 80px 1rem 3rem 1rem !important;
    }
}

@media (max-width: 480px) {

    /* Mantendo tamanhos visíveis conforme styles.css */
    .fp-logo-container {
        width: 180px !important;
        height: 180px !important;
    }

    .fp-logo {
        width: 160px !important;
        height: 160px !important;
        max-width: 160px !important;
        max-height: 160px !important;
        display: block !important;
        visibility: visible !important;
    }

    .fp-musical-note {
        margin-bottom: 1.5rem !important;
    }

    .hero {
        gap: 1.5rem !important;
        padding: 75px 1rem 2.5rem 1rem !important;
    }
}

@media (max-width: 360px) {
    .fp-logo-container {
        width: 120px !important;
        height: 120px !important;
    }

    .fp-logo {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
    }

    .fp-musical-note {
        margin-bottom: 1.2rem !important;
    }

    .hero {
        gap: 1.2rem !important;
        padding: 70px 0.8rem 2rem 0.8rem !important;
    }
}

/* CORREÇÃO DO ESPAÇAMENTO ENTRE SEÇÕES */
@media (max-width: 768px) {
    #about {
        padding-top: 4rem !important;
        margin-top: 0 !important;
    }

    section:not(.hero) {
        padding: 4rem 1rem !important;
    }

    .section-observer {
        scroll-margin-top: 80px !important;
    }
}

/* FALLBACK PARA LOGO - TEXTO MAIOR */
@media (max-width: 768px) {

    .fp-logo-container:has(.fp-logo[src=""]):before,
    .fp-logo-container:has(.fp-logo:not([src])):before {
        font-size: 3rem !important;
    }
}

@media (max-width: 480px) {

    .fp-logo-container:has(.fp-logo[src=""]):before,
    .fp-logo-container:has(.fp-logo:not([src])):before {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 360px) {

    .fp-logo-container:has(.fp-logo[src=""]):before,
    .fp-logo-container:has(.fp-logo:not([src])):before {
        font-size: 2rem !important;
    }
}

/* ==========================================================================
   AJUSTE POSIÇÃO DA LOGO - MOVER MAIS PARA BAIXO
   Adicione ao final do mobileCss.css
   ========================================================================== */

@media (max-width: 768px) {
    .hero {
        justify-content: flex-start !important;
        /* Muda de center para flex-start */
        padding-top: 120px !important;
        /* Aumenta padding do topo */
        min-height: 100vh !important;
    }

    .fp-musical-note {
        margin-top: 3rem !important;
        /* Adiciona margem superior */
        margin-bottom: 2rem !important;
    }

    /* Se quiser ainda mais para baixo, descomente a linha abaixo: */
    /* .fp-musical-note { margin-top: 5rem !important; } */
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px !important;
    }

    .fp-musical-note {
        margin-top: 2.5rem !important;
    }
}

@media (max-width: 360px) {
    .hero {
        padding-top: 90px !important;
    }

    .fp-musical-note {
        margin-top: 2rem !important;
    }
}

/* Para orientação landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        justify-content: center !important;
        /* Volta ao centro em landscape */
        padding-top: 70px !important;
    }

    .fp-musical-note {
        margin-top: 0 !important;
        /* Remove margem extra em landscape */
    }
}