* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            line-height: 1.6;
            color: #333;
            background: #fff;
        }

        header {
    background: linear-gradient(to right, rgba(179, 229, 252, 0.8), rgba(248, 187, 208, 0.8));
    padding: 1rem 2rem;
    color: rgb(24, 24, 24);
    border-bottom: solid 5px white;
}




        .hero-estimulacao-precoce {

            background: linear-gradient(to right, rgba(179, 229, 252, 0.8), rgba(248, 187, 208, 0.8)),
                url('imagens/estimulacao_precoce.jpg') center/cover no-repeat;
            color: white;
            text-align: center;
            padding: 10rem 2rem;
            min-height: 40vh;
        }
        .hero-reabilitacao-neurologica {
            background: linear-gradient(to right, rgba(179, 229, 252, 0.8), rgba(248, 187, 208, 0.8)),
                url('imagens/ReabilitacaoNeurologica3.webp') center/cover no-repeat;
            color: white;
            text-align: center;
            padding: 10rem 2rem;
            min-height: 40vh;
        }
        .hero-neuromodulacao {

            background: linear-gradient(to right, rgba(179, 229, 252, 0.8), rgba(248, 187, 208, 0.8)),
                url('imagens/neuromodulacao_nao_invasiva2.webp') center/cover no-repeat;
            color: white;
            text-align: center;
            padding: 10rem 2rem;
            min-height: 40vh;
        }
        .hero-terapia-ocupacional {

            background: linear-gradient(to right, rgba(179, 229, 252, 0.8), rgba(248, 187, 208, 0.8)),
                url('imagens/terapia_ocupacional.jpg') top/cover no-repeat;
            color: white;
            text-align: center;
            padding: 10rem 2rem;
            min-height: 40vh;
        }
        .hero-estimulacao-precoce h1,.hero-reabilitacao-neurologica h1,.hero-neuromodulacao h1,.hero-terapia-ocupacional h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;

        }

        .hero-estimulacao-precoce h3,.hero-reabilitacao-neurologica h3,.hero-neuromodulacao h3,.hero-terapia-ocupacional h3 {
            font-size: 2.5rem;
            color: #ffffff;
            text-shadow: 1px 1px 2px #292929;
        }

        .hero-estimulacao-precoce p,.hero-reabilitacao-neurologica p,.hero-neuromodulacao p,.hero-terapia-ocupacional p {
            font-size: 1.2rem;
            color: #ffffff;
        }

        .features {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
            padding: 4rem 2rem;
            background-color: #f9f9f9;
        }

        .feature {
            flex: 1 1 300px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            text-align: center;
        }

        .feature img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .feature h2 {
            margin: 1rem 0 0.5rem;
            color: #005a87;
        }

        .feature p {
            padding: 0 1rem 1rem;
        }

        .testimonials {
            background: #fff;
            padding: 4rem 2rem;
            text-align: center;
        }

        .testimonial-wrapper {
            position: relative;
            height: auto;
            transition: height 0.6s ease-in-out;
        }

        .testimonial {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            margin: auto;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            max-width: 600px;
            width: 100%;
            font-style: italic;
            pointer-events: none;
            padding-top: 2rem;
        }

        .testimonial.ativo {
            opacity: 1;
            pointer-events: auto;
            /* Mantém no mesmo lugar, sem alterar transform */
        }


        .testimonial strong {
            display: block;
            margin-top: 1rem;
            font-style: normal;
        }

        .contact {
            background: #f0f0f0;
            padding: 4rem 2rem;
            text-align: center;
        }

        .contact form {
            max-width: 500px;
            margin: auto;
            display: grid;
            gap: 1rem;
        }

        input,
        textarea {
            padding: 0.8rem;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        button {
            background: #005a87;
            color: white;
            border: none;
            padding: 1rem;
            font-weight: bold;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        button:hover {
            background: #003f5c;
        }

        /* ===== Footer ===== */
footer {
    background: #eee;
    color: #222;
    text-align: center;
    padding: 3rem 1rem;
}

.footer-container {
    max-width: 80vw;
    margin: auto;
}

.footer-logo {
    width: 150px;
    margin-bottom: 1rem;
}

footer h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin: 0;
}

footer p {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    margin: 0.3rem 0 2rem;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.5rem;
}

.footer-icons a {
    color: #000;
    transition: color 0.3s;
}

.footer-icons a:hover {
    color: #005a87;
}
.dados-contato {
    background-color: #005a87;
    display: flex;
    width: 100vw;
    text-align: center;
    align-items: center;
    padding-top: 2.5rem;
}
.dados-contato div {
    width: 100vw;
}
.dados-contato h2 {
    color: white;
    margin-bottom: 1.5rem;
}
.dados-contato p {
    color: white;
}
.dados-contato h3 {
    color: white;
}

        .sobre {
            background: #fff;
            padding: 4rem 2rem;
            text-align: left;
            display: flex;
            margin-left: 12.5vw;
            width: 75vw;
            flex-direction: row;

        }

        .sobre-container {
            max-width: 800px;
            margin: auto;
        }

        .sobre h2 {
            color: #005a87;
            font-size: 1.2rem;
            margin-bottom: 1rem;
            font-family: 'Poppins';
            font-weight: lighter;

        }

        .sobre h3 {
            color: #222;
            font-weight: bolder;
            font-size: 1.8rem;
            margin-bottom: 1rem;
            font-family: 'Poppins';
        }

        .sobre p {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            color: #444;
        }

        .credenciamentos {
            background: #fff;
            padding: 4rem 2rem;
            text-align: center;
        }

        .credenciamentos-container {
            max-width: 800px;
            margin: auto;
        }

        .credenciamentos h2 {
            color: #005a87;
            font-size: 1.2rem;
            margin-bottom: 1rem;
            font-family: 'Poppins';
            font-weight: lighter;
        }

        .credenciamentos img {
            width: 10vw;
        }

        .imagem-especialidade img {
            height: 25vw;
        }

        #logotipo {
            width: 15vw;
        }

        #logotipo-grupo path {
            fill: rgb(31, 31, 31);
        }

        /* ===== Menu Base ===== */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        nav h1 {
            font-size: 1.5rem;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 1rem;
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        nav a:hover {
            text-decoration: underline;

        }

        .menu {
            list-style: none;
            display: flex;
            gap: 1.5rem;
            margin: 0;
        }

        .menu li {
            position: relative;
        }

        .menu a {
            color: rgb(31, 31, 31);
            text-decoration: none;
            font-weight: bold;
            transition: color 0.3s;
        }



        /* ===== Submenu ===== */
        .has-submenu:hover .submenu {
            display: block;
        }

        .submenu {
            display: none;
            position: absolute;
            top: 1.5rem;
            left: 0;
            background: white;
            padding: 0.5rem 0;
            border-radius: 4px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            z-index: 1000;
        }

        .submenu li {
            white-space: nowrap;
        }

        .submenu a {
            color: rgb(31, 31, 31);
            padding: 0.5rem 1rem;
            display: block;
        }

        .submenu a:hover {
            background: #f0f0f0;
        }

        /* ===== Botão Hamburger ===== */
        #menu-toggle {
            display: none;
            font-size: 2rem;
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            z-index: 10001;
            position: relative;
        }
/* ===== Botão Flutuante WhatsApp ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float i {
    line-height: 60px;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}
@keyframes fadeIn {
    to { opacity: 1; }
}
        /* ===== Modal Menu (Mobile) ===== */
        @media (max-width: 768px) {
             #menu-toggle {
        display: block;

        color: rgb(31, 31, 31);
    }

    .menu {
        display: none;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: linear-gradient(to right, rgba(179, 229, 252, 1), rgba(248, 187, 208, 1));
        padding: 5rem 2rem 2rem;
        z-index: 10000;
        gap: 1.5rem;
    }

    .menu.open {
        display: flex;
    }

    .submenu {
        position: relative;
        top: 0;
        background: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .submenu a {
        color: rgb(31, 31, 31);
        padding-left: 1.5rem;
    }


            .has-submenu:hover .submenu {
                display: block;
            }

            nav ul {
                flex-direction: column;
                gap: 0.5rem;
                margin-top: 1rem;
            }

            #logotipo {
                width: 40vw;
            }

            .credenciamentos img {
                width: 25vw;
            }
            .sobre {
            
            flex-direction: column;

        }
        .imagem-especialidade img {
            height: 65vw;
        }
        }