/* Site publico (home): carregado depois de app.css, que traz as cores, .button, .brand etc.
   Tudo aqui vale so dentro de <body class="site">.
   Paleta (pedido do usuario em 12/10/2026: site mais colorido, em verde e laranja e seus tons):
   verde #2A9D8F com o profundo #17544C (titulos e links, no lugar do azul #1D3557) e os claros
   #EDF7F4/#DCF0EB/#8CCFC2; laranja #E76F51 (botoes principais) com o escuro #B5462A (texto, AA)
   e os claros #FFF4EE/#FDE8DF/#F4A582. As secoes alternam faixas de fundo verde-claro, branco e
   laranja-claro; o cacho de circulos da abertura vem das uvas do logo.
   Tipografia: Newsreader (titulos) + Figtree (texto), do Google Fonts, com fallback do sistema. */

.site {
    --display: 'Newsreader', Georgia, 'Times New Roman', serif;
    --body: 'Figtree', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    --blue: #17544C;             /* no site, o "azul" do sistema vira verde profundo (titulos, links, contornos) */
    --green-texto: #1B6F66;      /* verde com contraste AA sobre branco e sobre os fundos claros */
    --green-claro: #DCF0EB;
    --green-fundo: #EDF7F4;
    --green-medio: #8CCFC2;
    --orange-texto: #B5462A;     /* laranja com contraste AA sobre branco e sobre os fundos claros */
    --orange-claro: #FDE8DF;
    --orange-fundo: #FFF4EE;
    --orange-medio: #F4A582;
    /* faixa de cinco tons (topo e rodape): do verde profundo ao laranja */
    --faixa-tons: linear-gradient(90deg, #17544C 0 20%, #2A9D8F 20% 40%, #8CCFC2 40% 60%, #F4A582 60% 80%, #E76F51 80% 100%);
    --texto-2: rgba(43, 45, 66, .78);
    --site-largura: 1180px;
    --gutter: 1.25rem;
    --barra-h: 64px;
    font-size: 1.0625rem;
}
.site h1, .site h2, .site h3 { text-wrap: balance; }
body.site { background: var(--white); }
.site p { text-wrap: pretty; }
.site .button { border-radius: 999px; padding-inline: 1.5rem; cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 600; }
.site .button-primary { box-shadow: 0 6px 18px -8px rgba(231, 111, 81, .7); }

.site-pular { position: absolute; left: 1rem; top: -4rem; z-index: 80; padding: .6rem 1rem; background: var(--blue); color: var(--white); border-radius: 0 0 8px 8px; }
.site-pular:focus { top: 0; }
.site [id] { scroll-margin-top: 5.5rem; }

/* ---------- Cabecalho ---------- */
.site-topo { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.site-topo::before { content: ''; display: block; height: 4px; background: var(--faixa-tons); }
.site .site-header { max-width: var(--site-largura); padding: .65rem var(--gutter); gap: 1.25rem; }
.site .brand img { width: 140px; height: auto; }
.site .desktop-nav { gap: 1.2rem; color: var(--ink); font-size: .95rem; font-weight: 500; }
.site .desktop-nav a { padding: .4rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site .desktop-nav a:hover { border-bottom-color: var(--orange); color: var(--blue); }
.site .nav-login { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue); font-size: .95rem; font-weight: 600; white-space: nowrap; }
.site .nav-login svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site .nav-login:hover { color: var(--green-texto); }
.site-topo-cta { flex: none; min-height: 42px; white-space: nowrap; }
.site .nav-equipe { flex: none; min-height: 42px; padding: 0 .8rem; gap: .4rem; font-size: .9rem; white-space: nowrap; }
.site .nav-equipe svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-equipe-curto { display: none; }

/* ---------- Abertura: titulo + escolha rapida da especialidade ----------
   O cartao da escolha e branco, como os demais cartoes do site (ja foi azul-escuro: pesava e destoava). */
.abertura { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem 4.5rem; align-items: center; max-width: var(--site-largura); margin: 0 auto; padding: 4.5rem var(--gutter) 4rem; position: relative; isolation: isolate; background: var(--orange-fundo); box-shadow: 0 0 0 100vmax var(--orange-fundo); clip-path: inset(0 -100vmax); }
.site .abertura h1 { max-width: 13ch; margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 400; line-height: 1.02; letter-spacing: -.015em; color: var(--blue); }
.abertura-texto > p { max-width: 32rem; margin: 1.4rem 0 2rem; font-size: 1.2rem; line-height: 1.55; color: var(--texto-2); }
.abertura-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.abertura-acoes .button { min-height: 54px; padding-inline: 2rem; font-size: 1.05rem; }
.abertura-link { color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.abertura-link:hover { color: var(--green-texto); }
.abertura-fatos { display: flex; flex-wrap: wrap; gap: .5rem 0; margin: 2.6rem 0 0; padding: 0; list-style: none; color: var(--texto-2); font-size: .95rem; }
.abertura-fatos li { padding-right: 1rem; margin-right: 1rem; border-right: 2px solid var(--orange-medio); }
.abertura-fatos li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.escolha { position: relative; padding: 1.8rem 1.6rem 1.4rem; background: var(--white); border-radius: 24px; color: var(--ink); box-shadow: 0 26px 50px -34px rgba(23, 84, 76, .5); }
/* Cacho de circulos (as uvas do logo) saindo de tras do cartao: verdes em cima, laranjas embaixo */
.escolha::before { content: ''; position: absolute; z-index: -1; inset: -46px -18px -46px -46px; pointer-events: none; background-repeat: no-repeat; background-image:
    radial-gradient(circle 34px at calc(100% - 34px) 34px, #2A9D8F 98%, transparent),
    radial-gradient(circle 26px at calc(100% - 98px) 30px, #8CCFC2 98%, transparent),
    radial-gradient(circle 22px at calc(100% - 24px) 98px, #17544C 98%, transparent),
    radial-gradient(circle 17px at calc(100% - 152px) 22px, #BFE5DD 98%, transparent),
    radial-gradient(circle 30px at 30px calc(100% - 30px), #E76F51 98%, transparent),
    radial-gradient(circle 22px at 90px calc(100% - 24px), #F4A582 98%, transparent),
    radial-gradient(circle 18px at 22px calc(100% - 90px), #F9C9B3 98%, transparent),
    radial-gradient(circle 13px at 134px calc(100% - 16px), #B5462A 98%, transparent); }
.site .escolha h2 { margin: 0; font-family: var(--display); font-size: 1.7rem; font-weight: 400; line-height: 1.15; color: var(--blue); }
.escolha > p { margin: .45rem 0 1.2rem; color: var(--texto-2); font-size: .98rem; }
.escolha-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.escolha-item { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 60px; padding: .45rem .7rem .45rem .45rem; border: 1px solid transparent; border-radius: 14px; background: var(--green-fundo); color: var(--ink); font: inherit; font-weight: 600; font-size: .98rem; text-align: left; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.escolha-item:hover { background: var(--green-claro); border-color: var(--green-medio); }
/* as opcoes alternam verde e laranja */
.escolha-lista li:nth-child(even) .escolha-item { background: var(--orange-fundo); }
.escolha-lista li:nth-child(even) .escolha-item:hover { background: var(--orange-claro); border-color: var(--orange-medio); }
.escolha-lista li:nth-child(even) .escolha-item svg { stroke: var(--orange-texto); }
.escolha-item img { flex: none; width: 46px; height: 46px; border-radius: 10px; object-fit: cover; object-position: center; background: var(--white); }
.escolha-item span { flex: 1; min-width: 0; }
.escolha-item svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--green-texto); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.escolha-rodape { margin: 1.1rem 0 0; color: var(--texto-2); font-size: .93rem; }
.escolha-rodape a { color: var(--blue); font-weight: 600; }

/* ---------- Secoes ---------- */
.site-secao { max-width: var(--site-largura); margin: 0 auto; padding: 4.5rem var(--gutter); }
.site-secao-cabeca { margin-bottom: 2rem; }
.site .site-secao-cabeca h2, .site .recepcao h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; color: var(--blue); }
.site-secao-cabeca p { margin: .55rem 0 0; max-width: 40rem; color: var(--texto-2); font-size: 1.05rem; }
/* Faixas de fundo de lado a lado: especialidades em branco, profissionais em verde-claro,
   convenios em laranja-claro (clinica e contato ficam no branco da pagina) */
#especialidades, #profissionais, #convenios { max-width: none; }
#especialidades > *, #profissionais > *, #convenios > * { max-width: calc(var(--site-largura) - 2 * var(--gutter)); margin-inline: auto; }
#profissionais { background: var(--green-fundo); }
#convenios { background: var(--orange-fundo); }

/* Especialidades: imagem + pequena descricao */
.esp-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.esp-cartao { display: flex; flex-direction: column; overflow: hidden; background: var(--green-fundo); border-radius: 18px; }
/* os cartoes alternam verde e laranja */
.esp-cartao:nth-child(even) { background: var(--orange-fundo); }
.esp-cartao:nth-child(even) .esp-imagem { background: var(--orange-claro); }
.esp-cartao:nth-child(even) .esp-link { color: var(--orange-texto); }
/* 4:3: as imagens das especialidades (icone no centro) nao cabem inteiras em 16:10 */
.esp-imagem { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--green-claro); }
.esp-corpo { display: flex; flex: 1; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; }
.esp-corpo h3 { margin: 0 0 .4rem; font-family: var(--display); font-size: 1.55rem; font-weight: 400; color: var(--blue); }
.esp-corpo p { margin: 0 0 1.1rem; color: var(--texto-2); font-size: .97rem; }
.esp-link { margin-top: auto; align-self: flex-start; color: var(--green-texto); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.esp-link:hover { color: var(--blue); }

/* Profissionais (classes de app.css, com acabamento do site) */
.site .team-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; margin-top: 0; }
.site .team-card { display: flex; flex-direction: column; padding: 1.6rem 1.1rem 1.3rem; border: 0; border-radius: 18px; box-shadow: 0 14px 26px -24px rgba(23, 84, 76, .55); }
.site .team-photo { width: 104px; height: 104px; border: 3px solid var(--green-medio); }
.site .team-card:nth-child(even) .team-photo { border-color: var(--orange-medio); }
.site .team-card h3 { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.site .team-card p { font-size: .9rem; }
.team-agendar { align-self: center; margin-top: auto; padding-top: .9rem; color: var(--green-texto); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.team-agendar:hover { color: var(--orange-texto); }

/* Conheça a clínica: fotos reais; a primeira maior, as outras duas empilhadas ao lado */
.fotos { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1rem; }
.foto { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: var(--green-claro); }
.foto img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.fotos-3 .foto:first-child { grid-row: span 2; }
.fotos-3 .foto:first-child img { aspect-ratio: auto; }
.fotos-1 { grid-template-columns: 1fr; max-width: 820px; }
/* 4 fotos: mosaico em duas linhas da mesma altura (larga + estreita, depois estreita + larga) */
.fotos-4 { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(230px, 27vw, 360px); }
.fotos-4 .foto img { aspect-ratio: auto; }
.fotos-4 .foto:nth-child(1), .fotos-4 .foto:nth-child(4) { grid-column: span 7; }
.fotos-4 .foto:nth-child(2), .fotos-4 .foto:nth-child(3) { grid-column: span 5; }
.foto figcaption { position: absolute; left: .8rem; bottom: .8rem; padding: .35rem .8rem; border-radius: 999px; background: var(--orange-texto); color: var(--white); font-size: .9rem; font-weight: 600; }

/* Convenios: logotipos em vitrine; sem logotipo, so o nome (lista corrida) */
.conv-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.conv-logos li { display: grid; place-items: center; height: 84px; padding: .8rem 1rem; background: var(--white); border-radius: 14px; box-shadow: 0 10px 20px -20px rgba(181, 70, 42, .6); }
.conv-logos img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.conv-nomes { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.conv-nomes li { padding: .45rem .95rem; background: var(--white); border: 1px solid var(--orange-medio); border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--ink); }
.conv-ajuda { margin: 1.8rem 0 0; color: var(--texto-2); }
.conv-ajuda a { color: var(--blue); font-weight: 600; }




/* Contato: endereco, telefone/WhatsApp, e-mail e Instagram (Dados da Clinica) */
.contato-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.contato-item { display: flex; align-items: center; gap: .9rem; height: 100%; padding: 1.1rem 1.2rem; background: var(--green-fundo); border-radius: 16px; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .2s ease; }
a.contato-item:hover { border-color: var(--green); }
/* os cartoes de contato alternam verde e laranja */
.contato-grade li:nth-child(even) .contato-item { background: var(--orange-fundo); }
.contato-grade li:nth-child(even) a.contato-item:hover { border-color: var(--orange); }
.contato-grade li:nth-child(even) .contato-icone { background: var(--orange-claro); color: var(--orange-texto); }
.contato-icone { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--green-claro); color: var(--green-texto); }
.contato-icone svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contato-texto { display: flex; flex-direction: column; min-width: 0; }
.contato-rotulo { font-size: .88rem; color: var(--texto-2); }
.contato-valor { font-weight: 600; overflow-wrap: anywhere; }

/* Rodape */
.site .site-rodape { display: block; max-width: none; margin: 0; padding: 0; border-top: 0; background: var(--white); color: var(--ink); }
.site .site-rodape::before { content: ''; display: block; height: 6px; background: var(--faixa-tons); }
.site-rodape-dentro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem 2rem; align-items: start; max-width: var(--site-largura); margin: 0 auto; padding: 2.4rem var(--gutter) 2rem; }
.site-rodape-marca img { width: 132px; height: auto; display: block; }
.site-rodape-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; }
.site-rodape-links a { color: var(--blue); font-size: .95rem; font-weight: 500; text-decoration: none; }
.site-rodape-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pwa-instalar { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border: 1px solid var(--blue); border-radius: 999px; background: transparent; color: var(--blue); font: inherit; font-size: .93rem; font-weight: 600; cursor: pointer; }
.pwa-instalar[hidden] { display: none; }
.pwa-instalar:hover { background: var(--blue); color: var(--white); }
.site-rodape-copy { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; grid-column: 1 / -1; margin: .6rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--texto-2); font-size: .88rem; }
.site-rodape-copy a { text-decoration: underline; text-underline-offset: 3px; }
.site-rodape-copy a:hover { color: var(--blue); }

/* Paginas de politicas (privacidade e termos de uso): uma coluna de leitura */
.legal { max-width: var(--site-largura); margin: 0 auto; padding: 3.5rem var(--gutter) 4.5rem; }
.legal-texto { max-width: 46rem; }
.site .legal h1 { margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 400; line-height: 1.06; letter-spacing: -.01em; color: var(--blue); }
.legal-data { margin: .7rem 0 2.2rem; color: var(--texto-2); font-size: .93rem; }
.site .legal h2 { margin: 2.4rem 0 .6rem; font-family: var(--display); font-size: 1.6rem; font-weight: 400; line-height: 1.15; color: var(--blue); }
.legal p { margin: 0 0 1rem; line-height: 1.65; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: .45rem; line-height: 1.6; }
.legal a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }


/* Falar com a recepcao: os dois canais lado a lado, com o mesmo peso, para a pessoa escolher.
   Chat = botao laranja (acao principal do site); WhatsApp = verde escuro (contraste AA com branco). */
.recepcao { background: var(--blue); color: var(--white); }
.site .recepcao h2 { color: var(--white); }
.site .recepcao .recepcao-cabeca p, .site .recepcao .recepcao-conta { color: rgba(255, 255, 255, .86); }
.site .recepcao .recepcao-conta a { color: var(--white); text-decoration-color: var(--orange-medio); text-underline-offset: 4px; }
.recepcao-dentro { max-width: var(--site-largura); margin: 0 auto; padding: 4.5rem var(--gutter); }
.recepcao-cabeca p { margin: .55rem 0 0; max-width: 40rem; color: var(--texto-2); font-size: 1.05rem; }
.recepcao-canais { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.2rem; max-width: 760px; margin-top: 2rem; }
.canal { display: flex; flex-direction: column; align-items: flex-start; padding: 1.6rem 1.5rem 1.5rem; background: var(--white); border-radius: 20px; color: var(--ink); }
.canal-icone { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; border-radius: 50%; }
.canal-icone svg { width: 26px; height: 26px; }
.canal-icone-chat { background: var(--orange-claro); color: var(--orange-texto); }
.canal-icone-chat svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.canal-icone-zap { background: #E3F6EA; }
.icone-zap { fill: #128C4A; }
.canal h3 { margin: 0 0 .3rem; font-family: var(--display); font-size: 1.5rem; font-weight: 400; color: var(--blue); }
.canal p { margin: 0 0 1.3rem; color: var(--texto-2); font-size: .97rem; }
.site .canal .button { width: 100%; margin-top: auto; min-height: 52px; }
.site .botao-zap { background: #0E7A3E; color: var(--white); box-shadow: 0 6px 18px -8px rgba(14, 122, 62, .7); }
.site .botao-zap:hover { background: #0B6B34; }
.recepcao-conta { margin: 1.6rem 0 0; font-size: .97rem; color: var(--texto-2); }
.recepcao-conta a { color: var(--blue); font-weight: 600; }
/* Telas largas: titulo a esquerda, os dois canais a direita */
@media (min-width: 941px) {
    .recepcao-dentro { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 1.2rem 4rem; align-items: center; }
    .recepcao-cabeca { align-self: end; }
    .recepcao-canais { grid-column: 2; grid-row: 1 / span 2; max-width: none; margin-top: 0; }
    .recepcao-conta { grid-column: 1; align-self: start; margin-top: 0; }
}

/* Barra de atalhos (so no celular) */
.site-barra { display: none; }

/* ---------- Telas medias ---------- */
/* "Acesso da equipe" encolhe para caber no topo: rotulo curto, depois so o cadeado. */
@media (max-width: 1240px) {
    .nav-equipe-longo { display: none; }
    .nav-equipe-curto { display: inline; }
}
@media (max-width: 1120px) {
    .nav-equipe-curto { display: none; }
    .site .nav-equipe { width: 42px; padding: 0; }
}
@media (max-width: 1070px) {
    .site-topo-cta { display: none; }
}
@media (max-width: 1060px) {
    .site .site-header { gap: 1.2rem; }
    .site .desktop-nav { gap: 1.1rem; }
    .abertura { gap: 2.5rem 2.5rem; }
}
@media (max-width: 940px) {
    .site-topo-cta { display: none; }
    .abertura { grid-template-columns: 1fr; padding-top: 3rem; }
    .site .abertura h1 { max-width: 16ch; }
}

/* ---------- Celular: jeito de aplicativo ---------- */
@media (max-width: 860px) {
    .site { --gutter: 1rem; }
    body.site { padding-bottom: calc(var(--barra-h) + env(safe-area-inset-bottom)); }
    body.site-sem-barra { padding-bottom: 0; }
    .legal { padding-block: 2.2rem 3rem; }
    .site .desktop-nav { display: none; }
    .site .site-header { justify-content: space-between; padding-block: .55rem; flex-wrap: nowrap; }
    .site .brand img { width: 120px; }
    .nav-equipe-curto { display: inline; }
    .site .nav-equipe { width: auto; min-height: 38px; padding: 0 .7rem; font-size: .85rem; }
    .site .nav-login { font-size: .88rem; }
    .site [id] { scroll-margin-top: 4.5rem; }

    .abertura { padding: 2rem var(--gutter) 2.5rem; gap: 2rem; }
    .site .abertura h1 { font-size: clamp(2.4rem, 10.5vw, 3.4rem); }
    .abertura-texto > p { margin: 1rem 0 1.5rem; font-size: 1.08rem; }
    .abertura-acoes .button { flex: 1 1 100%; }
    .abertura-acoes { gap: 1rem; justify-content: center; }
    .abertura-fatos { flex-direction: column; gap: .35rem; margin-top: 1.6rem; }
    .abertura-fatos li { border-right: 0; margin: 0; padding: 0 0 0 .9rem; border-left: 3px solid var(--orange-medio); }
    .abertura-fatos li:nth-child(even) { border-left-color: var(--green-medio); }
    .escolha::before { inset: -30px -6px -30px -6px; }
    .escolha { margin-inline: calc(-1 * var(--gutter) + .5rem); padding: 1.4rem 1rem 1.1rem; border-radius: 20px; }
    .site .escolha h2 { font-size: 1.45rem; }
    .escolha-item { min-height: 56px; font-size: .95rem; }
    .escolha-item img { width: 40px; height: 40px; }

    .site-secao { padding-block: 3rem; }
    .site .site-secao-cabeca h2, .site .recepcao h2 { font-size: 2rem; }
    .site-secao-cabeca { margin-bottom: 1.4rem; }

    /* Especialidades em lista compacta: miniatura ao lado do texto */
    .esp-grade { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: .6rem; }
    .esp-cartao { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .85rem; align-items: start; padding: .8rem; border-radius: 14px; }
    .esp-imagem { width: 64px; height: 64px; aspect-ratio: 1; border-radius: 12px; }
    .esp-corpo { padding: 0; }
    .esp-corpo h3 { font-size: 1.18rem; line-height: 1.2; margin-bottom: .15rem; }
    /* descricao em no maximo 3 linhas: o card fica baixo e do mesmo tamanho em todas */
    .esp-corpo p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem; line-height: 1.4; margin-bottom: .45rem; }
    .esp-link { font-size: .9rem; }

    /* Profissionais em faixa que desliza para o lado */
    .site .team-grid { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: .2rem var(--gutter) 1rem; scrollbar-width: none; }
    .site .team-grid::-webkit-scrollbar { display: none; }
    .site .team-card { flex: 0 0 158px; scroll-snap-align: start; padding: 1.2rem .8rem 1.1rem; }
    .site .team-photo { width: 84px; height: 84px; }
    .site .team-card h3 { font-size: .95rem; }

    .fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    /* 4 fotos no celular: a fachada inteira em cima e as tres internas embaixo */
    .fotos-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
    .fotos-4 .foto:nth-child(n) { grid-column: auto; }
    .fotos-4 .foto:nth-child(1) { grid-column: 1 / -1; }
    .fotos-4 .foto img { aspect-ratio: 3 / 2; }
    .fotos-4 .foto:nth-child(n+2) img { aspect-ratio: 1; }
    .fotos-4 .foto:nth-child(n+2) figcaption { left: .3rem; bottom: .3rem; padding: .15rem .45rem; font-size: .68rem; }
    .fotos-3 .foto:first-child { grid-row: auto; grid-column: 1 / -1; }
    .fotos-3 .foto:first-child img { aspect-ratio: 3 / 2; }
    .foto { border-radius: 14px; }
    .foto figcaption { left: .5rem; bottom: .5rem; padding: .25rem .65rem; font-size: .8rem; }
    .conv-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .conv-logos li { height: 68px; padding: .5rem; }
    .conv-nomes li { font-size: .86rem; padding: .38rem .8rem; }

    .recepcao-dentro { padding-block: 3rem; }
    .recepcao-canais { gap: .6rem; margin-top: 1.4rem; }
    .canal { padding: 1rem .8rem 1rem; border-radius: 16px; }
    .canal-icone { width: 44px; height: 44px; margin-bottom: .6rem; }
    .canal h3 { font-size: 1.2rem; }
    .canal p { font-size: .86rem; line-height: 1.4; margin-bottom: .9rem; }
    .site .canal .button { min-height: 46px; padding-inline: .5rem; font-size: .93rem; }

    .site-rodape-dentro { grid-template-columns: 1fr; padding-block: 2rem 1.4rem; }
    /* "Instalar o app" centralizado, em linha propria (a quebra so existe quando o botao aparece) */
    .site-rodape-links:has(.pwa-instalar:not([hidden]))::after { content: ''; order: 1; flex-basis: 100%; height: 0; }
    .site-rodape-links .pwa-instalar { order: 2; margin-inline: auto; }

    .site-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; height: calc(var(--barra-h) + env(safe-area-inset-bottom)); padding: 0 .25rem env(safe-area-inset-bottom); background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
    .site-barra a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--barra-h); color: rgba(43, 45, 66, .66); font-size: .7rem; font-weight: 500; text-decoration: none; }
    .site-barra a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .site-barra svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .site-barra a.is-ativo { color: var(--green-texto); font-weight: 700; box-shadow: inset 0 3px 0 var(--green); }
    /* Agendar: o botao principal da barra, em destaque */
    .site-barra .site-barra-agendar { color: var(--ink); font-weight: 700; }
    .site-barra .site-barra-agendar svg { width: 50px; height: 50px; margin-top: -22px; padding: 12px; border-radius: 50%; background: var(--orange); color: var(--white); stroke: var(--white); box-shadow: 0 8px 18px -8px rgba(231, 111, 81, .8); border: 3px solid var(--white); }

    /* O chat sobe acima da barra. O botao mantem o texto "Falar com a recepção"
       tambem no celular (pedido da clinica). */
    body.site .aw-fab { bottom: calc(var(--barra-h) + 14px + env(safe-area-inset-bottom)); right: 14px; }
}
@media (max-width: 480px) {
    .escolha-lista { grid-template-columns: 1fr; gap: .4rem; }
    .escolha-item { min-height: 52px; }
}
@media (max-width: 380px) {
    .site-barra a { font-size: .64rem; }
}

/* App instalado (aberto pelo icone): sem o link de instalar */
@media (display-mode: standalone) {
    .pwa-instalar { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .site { scroll-behavior: auto; }
    .site .button:hover { transform: none; }
}

/* ---------- Celular estreito: o topo (logo, Área do paciente, Equipe) precisa caber em uma linha ---------- */
@media (max-width: 400px) {
    .site .site-header { gap: .6rem; }
    .site .brand img { width: 104px; }
    .site .nav-equipe svg { display: none; }
}
@media (max-width: 350px) {
    .nav-equipe-curto { display: none; }
    .site .nav-equipe { width: 38px; padding: 0; }
    .site .nav-equipe svg { display: block; }
}
