@media (max-width: 768px) {

    /* Header: mantém logo + links na mesma linha com scroll horizontal */
    header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    header nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        margin-left: auto;
        white-space: nowrap;
        overflow-x: auto;
    }
    /* Esconde scrollbars */
    header nav ul::-webkit-scrollbar {
        display: none;
    }
    header nav ul {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Links: reduz fonte e padding para caber */
    header nav ul .nav-link {
        font-size: 14px;
        padding: 4px 6px;
        position: relative;
        padding-bottom: 3px;
    }
    header nav ul .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--primary-color);
    }

    header .logo {
        height: 45px;
    }

    /* Seção Hero (mantém da versão anterior) */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text, .hero-image {
        flex: 1 1 auto;
    }
    .hero-text h1 {
        font-size: 2em;
    }

    /* Seção Sobre */
    .about-home p {
        max-width: 100%;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text, .about-image {
        flex: 1 1 100%;
    }
    .about-image img {
        margin-top: 20px;
    }

    /* Seção Serviços centralizada */
    .services .service-cards {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .services .service-cards .card {
        width: 80%;
        margin: 0 auto 1.5rem;
    }

    /* Seção Contato */
    .contact-content {
        flex-direction: column;
        align-items: center;
    }
    .contact-form, .contact-info {
        flex: 1 1 100%;
    }
    .contact-info .map iframe {
        height: 200px;
    }

}
