/* ===== MOBILE PEQUENO (430px a 350px) - VERSÃO FLUIDA OTIMIZADA ===== */
@media (max-width: 430px) and (min-width: 350px) {
    
    /* ===== VARIÁVEIS DE CONTROLE FLUIDO ===== */
    :root {
        --scale-factor: calc((100vw - 350px) / 80);
    }
    
    /* ===== HEADER ===== */
    .header .container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: clamp(0.2rem, 0.5vw, 0.3rem) 0;
    }
    
    .logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .logo img {
        height: clamp(30px, 8vw, 35px);
        max-width: clamp(120px, 35vw, 150px);
        object-fit: contain;
    }
    
    .menu {
        display: none;
        position: absolute;
        top: clamp(45px, 12vw, 50px);
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: clamp(10px, 4vw, 15px);
        z-index: 1000;
    }
    
    .menu ul {
        flex-direction: column;
        gap: clamp(0.5rem, 2vw, 0.8rem);
        align-items: center;
    }
    
    .menu-mobile {
        display: block;
        position: absolute;
        left: clamp(10px, 4vw, 15px);
    }
    
    .menu-mobile i {
        font-size: clamp(1.3rem, 5vw, 1.5rem);
        color: #2b3c6f;
    }
    
    /* ===== HERO SECTION ===== */
    .hero {
        padding: clamp(20px, 8vw, 30px) 0;
        background-position: 30% center;
        background-size: cover;
        min-height: auto;
        position: relative;
    }
    
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.2);
        z-index: 1;
    }
    
    .hero .container {
        position: relative;
        z-index: 2;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        width: clamp(88%, 5vw, 92%);
        max-width: clamp(300px, 85vw, 350px);
        padding: clamp(1rem, 5vw, 1.5rem) clamp(0.8rem, 4vw, 1.2rem);
        background: rgba(255,255,255,0.95);
        border-radius: clamp(8px, 3vw, 10px);
        text-align: center;
        margin: 0 auto;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .hero-content h2 {
        font-size: clamp(1.2rem, 6vw, 1.4rem);
        margin-bottom: clamp(0.3rem, 2vw, 0.5rem);
        color: #2b3c6f;
        text-align: center;
    }
    
    .hero-content p {
        font-size: clamp(0.7rem, 4vw, 0.85rem);
        margin-bottom: clamp(0.6rem, 4vw, 1rem);
        line-height: 1.4;
        text-align: center;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: clamp(0.4rem, 2vw, 0.6rem);
        margin-bottom: clamp(0.6rem, 4vw, 1rem);
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: clamp(0.5rem, 3vw, 0.7rem);
        font-size: clamp(0.7rem, 4vw, 0.8rem);
        text-align: center;
    }
    
    .entrega-gratis {
        font-size: clamp(0.7rem, 4vw, 0.8rem);
        padding: clamp(0.4rem, 2.5vw, 0.5rem) clamp(0.5rem, 3vw, 0.8rem);
        white-space: normal;
        text-align: center;
        background: rgba(76, 175, 80, 0.1);
        border-radius: 5px;
        display: inline-block;
        width: 100%;
    }
    
    /* ===== SOBRE NÓS - OTIMIZADO ===== */
    .sobre-banner {
        min-height: auto;
        padding: clamp(10px, 5vw, 20px) 0;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
    }
    
    .sobre-banner .container {
        padding: clamp(5px, 2vw, 10px) 0;
    }
    
    .sobre-header {
        text-align: center;
        margin-bottom: clamp(0.4rem, 3vw, 0.8rem);
        font-size: clamp(0.5rem, 2.8vw, 0.65rem) !important;
        line-height: 1.2;
    }
    
    .sobre-header h2 {
        font-size: clamp(1.2rem, 6vw, 1.5rem) !important;
        margin-bottom: clamp(0.2rem, 1.5vw, 0.3rem);
        text-align: center;
    }
    
    .sobre-diferenciais {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(0.2rem, 1.5vw, 0.4rem);
        margin-top: clamp(0.3rem, 2vw, 0.5rem);
    }
    
    .diferencial-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.8rem 0.2rem;
        min-height: auto;
        height: auto;
        gap: 0.2rem !important;
        background: rgba(255,255,255,0.1);
        backdrop-filter: blur(5px);
        border-radius: 8px;
    }
    
    .diferencial-icon {
        width: clamp(30px, 8vw, 38px);
        height: clamp(30px, 8vw, 38px);
        margin-bottom: 0.2rem !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    .diferencial-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .diferencial-texto h3 {
        font-size: clamp(0.6rem, 3.5vw, 0.75rem);
        margin-bottom: 0.1rem !important;
        color: white;
        line-height: 1.2;
        text-align: center;
    }
    
    .diferencial-texto p {
        font-size: clamp(0.5rem, 3vw, 0.65rem);
        color: rgba(255,255,255,0.9);
        line-height: 1.3;
        text-align: center;
        margin: 0;
        white-space: normal;
        word-break: break-word;
        overflow: visible !important;
        max-height: none !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
    }
    
    /* ===== PRODUTOS ===== */
    .servicos {
        padding: clamp(10px, 6vw, 20px) 0 !important;
        background: #fff;
        position: relative;
    }
    
    .servicos-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(0.3rem, 2vw, 0.5rem);
        margin-bottom: clamp(0.8rem, 5vw, 1.2rem);
    }
    
    .servicos-header h2 {
        font-size: clamp(1.2rem, 7vw, 1.5rem);
        text-align: center;
        margin: 0;
        width: 100%;
    }
    
    .btn-ver-todos-azul {
        align-self: center;
        padding: clamp(0.3rem, 2vw, 0.4rem) clamp(0.6rem, 4vw, 1rem);
        font-size: clamp(0.65rem, 4vw, 0.8rem);
        background: #2b3c6f;
        color: white;
        border: 2px solid #2b3c6f;
        border-radius: 5px;
        text-decoration: none;
        display: inline-block;
    }
    
    .servicos-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: clamp(0.4rem, 3vw, 0.6rem);
        margin-bottom: 1rem;
    }
    
    .servico-card:nth-child(n+5) {
        display: none;
    }
    
    .servico-imagem {
        height: clamp(70px, 25vw, 100px);
        width: 100%;
        overflow: hidden;
        border-radius: 6px 6px 0 0;
    }
    
    .servico-imagem img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .servico-info {
        padding: clamp(0.3rem, 2vw, 0.5rem) clamp(0.2rem, 1.5vw, 0.3rem);
        text-align: center;
    }
    
    .servico-info h3 {
        font-size: clamp(0.45rem, 3.5vw, 0.6rem);
        margin-bottom: clamp(0.2rem, 1.5vw, 0.3rem);
        line-height: 1.2;
        min-height: clamp(20px, 8vw, 28px);
        text-align: center;
    }
    
    .btn-whatsapp-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        font-size: clamp(0.4rem, 3vw, 0.55rem);
        padding: clamp(0.2rem, 1.5vw, 0.3rem) clamp(0.1rem, 1vw, 0.2rem);
        background: #2b3c6f;
        color: white;
        border-radius: 4px;
        text-decoration: none;
        width: 100%;
    }
    
    .btn-whatsapp-icon img {
        width: clamp(7px, 3vw, 10px);
        height: clamp(7px, 3vw, 10px);
        filter: brightness(0) invert(1);
    }
    
    /* ===== PARCEIROS ===== */
    .portfolio {
        padding: clamp(10px, 6vw, 20px) 0 !important;
        background: #2b3c6f;
        position: relative;
    }
    
    .portfolio-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(0.3rem, 2vw, 0.5rem);
        margin-bottom: clamp(0.8rem, 5vw, 1.2rem);
    }
    
    .portfolio-header h2 {
        font-size: clamp(1.2rem, 7vw, 1.5rem);
        color: white;
        text-align: center;
        margin: 0;
        width: 100%;
    }
    
    .btn-ver-todos {
        align-self: center;
        padding: clamp(0.3rem, 2vw, 0.4rem) clamp(0.6rem, 4vw, 1rem);
        font-size: clamp(0.65rem, 4vw, 0.8rem);
        background: white !important;
        color: #2b3c6f !important;
        border: 2px solid white !important;
        border-radius: 5px;
        text-decoration: none;
        display: inline-block;
    }
    
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: clamp(0.3rem, 2.5vw, 0.5rem);
        margin-bottom: 1rem;
    }
    
    .portfolio-card:nth-child(n+4) {
        display: none;
    }
    
    .portfolio-imagem {
        height: clamp(65px, 22vw, 85px);
        width: 100%;
        overflow: hidden;
        border-radius: 6px;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .portfolio-imagem img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* ===== CONTATO - VERSÃO COMPACTA ===== */
    .contato {
        padding: clamp(10px, 6vw, 20px) 0 !important;
    }
    
    .contato-header {
        text-align: center;
        margin-bottom: clamp(0.5rem, 4vw, 1rem);
    }
    
    .contato-header h2 {
        font-size: clamp(1.2rem, 7vw, 1.5rem);
        margin-bottom: clamp(0.3rem, 2vw, 0.5rem);
        text-align: center;
    }
    
    .contato-description {
        font-size: clamp(0.7rem, 4.5vw, 0.85rem);
        line-height: 1.4;
        margin-bottom: clamp(0.4rem, 3vw, 0.8rem);
        text-align: center;
        max-width: 100%;
    }
    
    .contato-content {
        display: flex;
        flex-direction: column;
        gap: clamp(0.8rem, 5vw, 1.2rem);
    }
    
    .contato-form {
        display: flex;
        flex-direction: column;
        gap: 0.3rem !important;
        width: 100%;
    }
    
    .contato-form .form-group {
        margin-bottom: 0 !important;
    }
    
    .contato-form .form-group input,
    .contato-form .form-group textarea {
        width: 100%;
        padding: 0.5rem 0.7rem !important;
        font-size: clamp(0.7rem, 4vw, 0.8rem);
        border: 1px solid #ddd;
        border-radius: 5px;
        text-align: center;
        height: auto;
        min-height: 35px;
    }
    
    .contato-form .form-group textarea {
        min-height: 60px;
        max-height: 80px;
    }
    
    .btn-contato {
        width: 100%;
        padding: 0.5rem !important;
        font-size: clamp(0.75rem, 4.5vw, 0.8rem);
        background: #2b3c6f;
        color: white;
        border: none;
        border-radius: 5px;
        margin-top: 0.1rem;
        cursor: pointer;
    }
    
    .contato-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(0.3rem, 2.5vw, 0.5rem);
        margin-top: 0.5rem;
    }
    
    .contato-card-item {
        padding: 0.4rem 0.2rem !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: #f5f5f5;
        border-radius: 8px;
    }
    
    .contato-card-icon {
        width: 30px;
        height: 30px;
        background: #2b3c6f;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contato-card-texto h3 {
        font-size: 0.55rem;
        margin-bottom: 0.1rem;
        color: #333;
        text-align: center;
    }
    
    .contato-card-texto p {
        font-size: 0.45rem;
        color: #666;
        line-height: 1.1;
        margin: 0;
        text-align: center;
        word-break: break-word;
    }
    
    /* ===== BOTÕES X DOS MODAIS ===== */
    .zoom-fechar,
    .modal-fechar {
        top: 8px;
        right: 8px;
        width: clamp(28px, 8vw, 32px);
        height: clamp(28px, 8vw, 32px);
        font-size: clamp(1.2rem, 5.5vw, 1.4rem);
        background: rgba(0,0,0,0.55);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        z-index: 1000;
    }

    /* ===== MODAL PRODUTO - FULLSCREEN MOBILE ===== */
    .modal {
        padding: 0;
        overflow-y: auto;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: clamp(0.85rem, 4vw, 1.1rem);
        border-radius: 0;
        min-height: 100dvh;
        box-sizing: border-box;
    }

    .modal-produto {
        display: flex;
        flex-direction: column;
        gap: clamp(0.8rem, 4vw, 1rem);
    }

    .modal-produto-imagem,
    .modal-produto-info {
        width: 100%;
    }

    .modal-carrossel {
        height: clamp(200px, 55vw, 250px);
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

    .modal-miniaturas {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }

    .miniatura {
        height: clamp(48px, 14vw, 60px);
        border-radius: 5px;
    }

    .modal-produto-info h2 {
        font-size: clamp(1.1rem, 5.5vw, 1.35rem);
        line-height: 1.3;
        margin-bottom: 0.45rem;
        padding-bottom: 0.4rem;
    }

    .modal-descricao {
        font-size: clamp(0.82rem, 3.8vw, 0.9rem);
        line-height: 1.55;
        margin-bottom: clamp(0.8rem, 4vw, 1rem);
    }

    .modal-especificacoes {
        padding: clamp(0.75rem, 3.5vw, 0.9rem);
        border-radius: 8px;
    }

    .especificacao-item {
        padding: clamp(0.55rem, 2.5vw, 0.75rem) 0;
        gap: 0.45rem;
    }

    .espec-label {
        font-size: clamp(0.82rem, 3.8vw, 0.9rem);
    }

    .espec-opcoes {
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .opcao-box span {
        padding: clamp(0.35rem, 1.5vw, 0.45rem) clamp(0.65rem, 3vw, 0.85rem);
        font-size: clamp(0.75rem, 3.5vw, 0.82rem);
        min-width: 40px;
    }

    .btn-contato-whatsapp {
        padding: clamp(0.75rem, 3.5vw, 0.9rem);
        font-size: clamp(0.88rem, 4vw, 0.98rem);
        margin-bottom: clamp(0.8rem, 4vw, 1rem);
        gap: 0.5rem;
    }
}

/* ===== FOOTER (Aplicado a todas as faixas abaixo de 430px) ===== */
@media (max-width: 430px) {
    
    .footer-logo {
        display: none !important;
    }
    
    .footer {
        padding: clamp(10px, 4vw, 15px) 0 clamp(5px, 2vw, 10px) 0 !important;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: clamp(0.4rem, 3vw, 0.8rem);
        margin-bottom: clamp(0.3rem, 2vw, 0.5rem);
    }
    
    .footer-social {
        display: flex;
        justify-content: center;
        gap: clamp(0.5rem, 4vw, 0.8rem);
        width: 100%;
    }
    
    .footer-social a {
        width: clamp(28px, 9vw, 32px);
        height: clamp(28px, 9vw, 32px);
        font-size: clamp(0.9rem, 5vw, 1.1rem);
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        color: white;
        transition: all 0.3s;
    }
    
    .footer-bottom {
        padding-top: clamp(0.3rem, 2vw, 0.5rem);
        font-size: clamp(0.5rem, 3vw, 0.6rem);
        line-height: 1.2;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
}

/* ===== FAIXA EXTRA PEQUENO (≤349px) ===== */
@media (max-width: 349px) {
    
    .logo img { height: 30px; max-width: 120px; }
    .menu-mobile i { font-size: 1.3rem; }
    .hero { padding: 15px 0; }
    .hero-content h2 { font-size: 1.2rem; }
    .hero-content p { font-size: 0.65rem; }
    
    .sobre-header {
        font-size: 0.45rem !important;
        line-height: 1.1;
    }
    
    .sobre-header h2 {
        font-size: 1.1rem !important;
    }
    
    .diferencial-item { 
        padding: 0.5rem 0.1rem; 
        gap: 0.1rem; 
        min-height: auto;
    }
    .diferencial-icon { width: 25px; height: 25px; margin-bottom: 0.1rem; }
    .diferencial-texto h3 { font-size: 0.5rem; margin-bottom: 0.1rem; }
    .diferencial-texto p { 
        font-size: 0.45rem; 
        line-height: 1.2;
        overflow: visible !important;
        max-height: none !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
    }
    
    .servico-imagem { height: 60px; }
    .portfolio-imagem { height: 60px; }
    .footer-social a { width: 28px; height: 28px; font-size: 1rem; }
    
    .contato-form .form-group input,
    .contato-form .form-group textarea {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.7rem;
    }
    .btn-contato { padding: 0.4rem !important; font-size: 0.7rem; }
    .contato-card-icon { width: 25px; height: 25px; font-size: 0.8rem; }
    .contato-card-texto h3 { font-size: 0.5rem; }
    .contato-card-texto p { font-size: 0.4rem; }
}