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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #faf8f8;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header {
    background-color: #006699;
    padding: 1px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

header .logo img {
    width: 150px;
}

/* Menu padrão desktop */
.menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.menu li a {
    text-decoration: none;
    color: #f7f3f3;
    font-weight: bold;
    transition: 0.3s;
}

.menu li a:hover {
    color: #007bff;
}

/* Botão hamburguer */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #007bff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Responsivo */
@media (max-width: 768px) {
    .menu {
        position: absolute;
        top: 70px;
        right: 20px;
        background-color: #006699;
        flex-direction: column;
        width: 150px;
        padding: 10px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        z-index: 999;
    }

    .menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu li {
        margin-bottom: 10px;
    }

    .menu-toggle {
        display: flex;
    }

    /* Animação do botão hamburguer */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

.banner {
    background: url('../img/banner1.jpg') center center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: rgb(34, 9, 126);
}

.banner h2 {
    font-size: 2.5rem;
}

.banner p {
    margin: 15px 0;
}

.btn {
    background-color: #00aaff;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #0088cc;
}

.servicos, .unidades {
    padding: 6px 0;
    background-color: white;
}

.servicos h2, .unidades h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #006699;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

.card2 {
    background-color: #fff;
    padding: 2px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}
.card2:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #006699;
    margin-bottom: 10px;
}

.card2 h3 {
    color: #006699;
    margin-bottom: 10px;
}
.card img {
    width: 100%;
}

.card2 img {
    width: 50%;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}
footer a{
    color: #007bff;
}
/* Estilo do botão WhatsApp */
.whatsapp {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: 60px;
    height: 60px;
    transition: transform 0.3s;
}

.whatsapp:hover {
    transform: scale(1.1);
}

.whatsapp img {
    width: 60px;
    height: 60px;
}

/* Tooltip */
.whatsapp::after {
    content: "Agende seus exames por aqui";
    position: absolute;
    bottom: 10px;
    right: 80px;
    background-color: #25d366;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
}

/* Setinha do balão */
.whatsapp::before {
    content: "";
    position: absolute;
    bottom: 28px;
    right: 65px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent #25d366;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Tooltip ativa */
.whatsapp:hover::after,
.whatsapp:hover::before,
.whatsapp.ativo::after,
.whatsapp.ativo::before {
    opacity: 1;
    transform: translateY(0);
}

/* Animação de tremor */
@keyframes shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-2px, 2px) rotate(-2deg); }
    40% { transform: translate(-2px, -2px) rotate(2deg); }
    60% { transform: translate(2px, 2px) rotate(0deg); }
    80% { transform: translate(2px, -2px) rotate(2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.whatsapp.shake {
    animation: shake 0.5s;
}

.conteudo {
    padding: 60px 0;
    background-color: #fff;
}

.conteudo h2 {
    text-align: center;
    color: #006699;
    margin-bottom: 30px;
}

.conteudo h3 {
    color: #006699;
    margin: 20px 0 10px;
}

.justificado {
    text-align: center;
    line-height: 1.8;
    margin-bottom: 20px;
}

.sobre-box {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.sobre-img img {
    width: 500px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sobre-texto {
    flex: 1;
    text-align: justify;
    line-height: 1.8;
}

.sobre-texto p {
    margin-bottom: 15px;
}

.missao {
    padding: 6px 0;
    background-color: #fff;
    text-align:center;
}
.missao h2 {
    text-align: center;
    color: #006699;
    margin-bottom: 30px;
}
.missao h3 {
    color: #006699;
    margin: 20px 0 10px;
}

/* Banner específico da página de serviços */
.banner-servicos {
    background: url('../img/banner-servicos.jpg') center center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: white;
}

.banner-servicos h2 {
    font-size: 2.8rem;
}

.banner-servicos p {
    margin-top: 10px;
    font-size: 1.2rem;
}

/* Cards */
.card h4 {
    color: #006699;
    margin-bottom: 8px;
}

html {
  scroll-behavior: smooth;
}
/* Banner de Contato */
.banner-contato {
    background: url('../img/banner-contato.jpg') center center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: white;
}

.banner-contato h2 {
    font-size: 2.8rem;
}

.banner-contato p {
    margin-top: 10px;
    font-size: 1.2rem;
}

/* Seção Contato */
.contato {
    padding: 50px 0;
}

.contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contato-info {
    background: #f4f9ff;
    padding: 20px;
    border-radius: 8px;
}

.formulario-contato {
    background: #f4f9ff;
    padding: 20px;
    border-radius: 8px;
}

.formulario-contato form input,
.formulario-contato form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.formulario-contato form button {
    background: #006699;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.formulario-contato form button:hover {
    background: #004d66;
}
.convenios {
    padding: 60px 20px;
    text-align: center;
}

.convenios h3 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #003366;
}

.convenios p {
    margin-bottom: 30px;
    color: #333;
}

.grid-convenios {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.convenio-item {
    width: 150px;
    height: 100px;
    background-color: transparent !important;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.convenio-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Em telas menores (até 768px), remove fundo, sombra e padding */
@media (max-width: 768px) {
    .convenios {
    background-color: white;
    padding: 60px 20px;
    text-align: center;
}
    .convenio-item {
        background-color: white;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        display: inline-block; /* ou block, para que fique no fluxo natural */
        text-align: center;
        margin: 5px; /* espaçamento leve entre imagens */
    }

    /* Ajusta o grid para ficar em 2 colunas (ou 3, se preferir) */
    .grid-convenios {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .convenio-item img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .grid-convenios {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em celulares */
        gap: 8px;
    }
}
.convenio-item:hover {
    transform: scale(1.05);
}

