@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ==========================================
   CLÍNICA DO PULMÃO — sistema "Fôlego"
   Apenas as duas cores reais da identidade do cliente (extraídas por pixel
   da logo): teal profundo como cor estrutural e azul-céu como accent único
   de CTA/destaque — sem cor inventada fora da identidade. Sobre papel
   quase branco e arejado, nada de blocos escuros alternados. Curva
   ondulada (respiração/espirometria) como motivo gráfico assinatura em
   divisores e detalhes. Outfit (títulos, geométrica e leve) + Manrope
   (texto) — deliberadamente distinto do petróleo/Fredoka+Inter do
   dr_matheo, do ledger mono da Numeri e do dark/gradiente da Excellence.
   ========================================== */
:root {
    --brand-teal: #107F9C;
    --brand-teal-deep: #0B5A6E;
    --teal-ink: #0A2A33;
    --sky: #77BDDF;
    --sky-soft: #EAF5FA;

    --accent: #77BDDF;
    --accent-hover: #107F9C;
    --accent-soft: #EAF5FA;
    --accent-on-dark: #8FD4EC;

    --paper: #FBFDFE;
    --paper-2: #EAF5FA;
    --ink: #17313A;
    --ink-muted: #55747E;
    --heading: var(--brand-teal-deep);
    --hairline: #D7E8EE;
    --hairline-on-dark: rgba(251, 253, 254, 0.16);

    --card-shadow: 0 4px 14px -4px rgba(10, 42, 51, 0.10), 0 2px 6px -2px rgba(10, 42, 51, 0.06);
    --card-shadow-hover: 0 22px 34px -10px rgba(10, 42, 51, 0.18), 0 8px 14px -6px rgba(10, 42, 51, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Tokens semânticos — usados pelo layout do admin (sidebar), o mesmo
       admin_header.php/admin_footer.php reaproveitado em outros projetos. */
    --brand-dark: var(--brand-teal-deep);
    --brand-accent: var(--accent);
    --brand-accent-hover: var(--accent-hover);
    --text-main: var(--ink);
    --text-muted: var(--ink-muted);
    --bg-light: var(--paper);
    --bg-white: #ffffff;
}

* { scroll-behavior: smooth; }

/* clip (e não hidden) corta a sobra lateral sem virar container de rolagem, senão o header sticky para de grudar.
   hidden fica antes como fallback para navegador antigo. */
html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
html { scroll-padding-top: 90px; }

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
    word-break: break-word;
}

img { max-width: 100%; height: auto; }

/* Bootstrap columns are flex items; without this they refuse to shrink
   below their content's intrinsic width (default min-width:auto), which
   overflows the viewport on mobile before a breakpoint's explicit width
   kicks in. This is the standard fix. */
.row > [class*="col-"] { min-width: 0; }

/* Belt-and-suspenders: force any column using only an md/lg-prefixed
   class (no bare col-N) to genuinely span 100% below that breakpoint,
   rather than relying on flex-basis:auto sizing to content. */
@media (max-width: 767.98px) {
    .row > [class^="col-md-"], .row > [class*=" col-md-"],
    .row > [class^="col-lg-"], .row > [class*=" col-lg-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .row > [class^="col-lg-"]:not([class*="col-md-"]),
    .row > [class*=" col-lg-"]:not([class*="col-md-"]) {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

h1, h2, h3, h4, .display-heading {
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--heading);
}

.text-muted { color: var(--ink-muted) !important; }
.text-accent { color: var(--accent); }
.bg-sky-soft, .bg-paper-2, .bg-light { background-color: var(--paper-2) !important; }

.section-pad { padding: 92px 0; }

@media (max-width: 767.98px) {
    .section-pad { padding: 56px 0; }
}

.rule { border: none; border-top: 1px solid var(--hairline); margin: 0; }
.rule-dark { border-top-color: var(--hairline-on-dark); }

/* Rótulo de seção: badge pill coral com traço de onda antes do texto */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-hover);
    background: var(--accent-soft);
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.section-kicker .wave-glyph { flex-shrink: 0; }
.section-teal .section-kicker { background: rgba(255,255,255,0.16); color: #fff; }

/* ==========================================
   SEÇÃO TEAL — bloco de cor sólida vívida (não azul-escuro corporativo),
   usado com moderação para dar ritmo/contraste — não como alternância padrão.
   ========================================== */
.section-teal {
    background: var(--brand-teal);
    background-image: radial-gradient(circle at 88% 12%, rgba(255,255,255,0.14), transparent 55%);
    color: #fff;
}
.section-teal h1, .section-teal h2, .section-teal h3, .section-teal h4 { color: #fff; }
.section-teal p, .section-teal .text-muted { color: #D8EFF6 !important; }
.section-teal .rule { border-top-color: var(--hairline-on-dark); }

/* ==========================================
   HEADER / NAV
   ========================================== */
.top-strip {
    background: var(--teal-ink);
    color: #B7D9E2;
    font-size: 0.82rem;
    padding: 8px 0;
}
.top-strip a { color: #B7D9E2; text-decoration: none; }
.top-strip a:hover { color: #fff; }
.top-strip .divider { opacity: 0.3; }

.site-header {
    background-color: rgba(251, 253, 254, 0.97);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.site-header { transition: box-shadow .25s ease; }
.site-header .navbar-brand img { height: 56px; transition: height .25s ease; }
@media (max-width: 991.98px) {
    .site-header .navbar-brand img { height: 46px; }
}
/* Ao rolar a página o header fica compacto e ganha sombra (classe posta pelo script do footer) */
.site-header.is-scrolled { box-shadow: 0 6px 18px -10px rgba(10, 42, 51, 0.25); }
.site-header.is-scrolled .navbar-brand img { height: 44px; }
/* Notebook pequeno: logo, menu e CTA disputam 960px, então o telefone sai (fica no topo e no rodapé) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .navbar-brand img { height: 48px; }
    .site-header .navbar-nav .nav-link { padding: 10px 9px !important; }
    .site-header .nav-actions .nav-phone { display: none; }
}

/* Layout de 3 zonas: logo | nav centralizada | telefone+CTA — em vez do
   padrão "logo esquerda, links+CTA empurrados à direita" usado nos outros
   sites do Iodo. */
.nav-3zone { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 12px; }
@media (max-width: 991.98px) {
    .nav-3zone { flex-wrap: wrap; }
}
.nav-center { flex: 1 1 auto; }

.site-header .navbar-nav { flex-wrap: nowrap; }
.site-header .nav-item { white-space: nowrap; }
.site-header .nav-link {
    position: relative;
    color: var(--brand-teal-deep) !important;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 13px !important;
    white-space: nowrap;
    transition: var(--transition-smooth);
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--accent-hover) !important; }

/* Seta de dropdown como ícone de verdade (não o triângulo padrão do
   Bootstrap), pra deixar claro que o item abre um submenu. Gira 180°
   quando aberto. */
.site-header .dropdown-toggle::after { display: none; }
.site-header .nav-caret {
    font-size: 0.65rem;
    margin-left: 3px;
    vertical-align: 1px;
    transition: var(--transition-smooth);
}
.site-header .dropdown-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.site-header .navbar-toggler i { color: var(--brand-teal-deep) !important; }

.nav-actions { flex: 0 0 auto; }
.nav-phone {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--brand-teal-deep);
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    white-space: nowrap;
}
.nav-phone i { color: var(--accent); }
.nav-phone:hover { color: var(--accent-hover); }
/* Submenu: painel reto com fio teal no topo e itens em linhas finas, cada um com uma linha do que a
   página trata (doenças reais), em vez de cartão flutuante arredondado com seta em todo item. */
.site-header .dropdown-menu {
    border: 1px solid var(--hairline);
    border-top: 2px solid var(--brand-teal);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 16px 30px -18px rgba(10, 42, 51, 0.35);
    padding: 6px 0;
    min-width: 290px;
}
.menu-lista { list-style: none; margin: 0; padding: 0 18px; }
.menu-lista li + li { border-top: 1px solid var(--hairline); }
.site-header .dropdown-item {
    display: block;
    padding: 11px 0 11px 12px;
    border-left: 2px solid transparent;
    color: var(--ink);
    white-space: normal;
    transition: border-color .15s ease, color .15s ease;
}
.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus,
.site-header .dropdown-item:active,
.site-header .dropdown-item.active { background: none; color: var(--brand-teal); border-left-color: var(--brand-teal); }
.menu-nome { display: block; font-size: 0.93rem; font-weight: 600; }
.menu-desc { display: block; font-size: 0.79rem; color: var(--ink-muted); margin-top: 1px; }

/* Especialidades: lista à esquerda, coluna clara com Exames, Vacinas e a ajuda da recepção à direita */
.menu-lado { background: var(--sky-soft); padding: 14px 18px 16px; margin-top: 6px; }
.menu-lado-titulo { display: block; font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 4px; }
.menu-lado .dropdown-item { padding: 7px 0 7px 12px; font-size: 0.93rem; font-weight: 600; }
.menu-lado-ajuda { font-size: 0.8rem; color: var(--ink-muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--hairline); line-height: 1.45; white-space: normal; }
.menu-lado-ajuda a { color: var(--brand-teal-deep); font-weight: 700; }
@media (min-width: 992px) {
    .site-header .menu-painel--duplo { min-width: 0; width: 540px; padding: 0; }
    .site-header .menu-painel--duplo.show,
    .site-header .dropdown:hover > .menu-painel--duplo,
    .site-header .dropdown:focus-within > .menu-painel--duplo { display: grid; grid-template-columns: 1fr 190px; }
    .menu-painel--duplo .menu-lista { padding-top: 6px; padding-bottom: 6px; }
    .menu-lado { margin-top: 0; padding-top: 18px; }
}
@media (max-width: 991.98px) {
    .site-header .dropdown-menu { box-shadow: none; border-radius: 0; margin-bottom: 8px; }
}

/* Desktop com mouse: submenu abre no hover (e no foco via teclado), com leve
   deslize. O clique do Bootstrap continua funcionando; no celular segue só o toque. */
@media (min-width: 992px) and (hover: hover) {
    .site-header .dropdown-menu {
        display: block;
        top: 100%;
        left: 0;
        margin-top: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    }
    /* Ponte invisível no vão entre o item e o submenu, para o mouse não "cair" no caminho */
    .site-header .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
    .site-header .dropdown:hover > .dropdown-menu,
    .site-header .dropdown:focus-within > .dropdown-menu,
    .site-header .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity .18s ease, transform .18s ease, visibility 0s;
    }
    .site-header .dropdown:hover > .dropdown-toggle .nav-caret { transform: rotate(180deg); }
    .site-header .dropdown:hover > .dropdown-toggle { color: var(--accent-hover) !important; }
}

.btn-brand {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--brand-teal-deep);
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 26px;
    transition: var(--transition-smooth);
}
.btn-brand:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}
.btn-outline-brand {
    border: 1.5px solid var(--brand-teal-deep);
    color: var(--brand-teal-deep);
    font-weight: 700;
    border-radius: 999px;
    background: transparent;
    padding: 10px 26px;
}
.btn-outline-brand:hover {
    background-color: var(--brand-teal-deep);
    border-color: var(--brand-teal-deep);
    color: #fff;
}
.section-teal .btn-outline-brand,
.cta-strip .btn-outline-brand {
    border-color: rgba(255,255,255,0.55);
    color: #fff;
}
.section-teal .btn-outline-brand:hover,
.cta-strip .btn-outline-brand:hover {
    background: rgba(255,255,255,0.14);
    border-color: #fff;
    color: #fff;
}

.whatsapp-float-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1040;
    background-color: #25D366;
    color: #fff;
    width: 58px;
    height: 58px;
    border: none;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(10, 42, 51, 0.35);
    transition: var(--transition-smooth);
}
.whatsapp-float-btn:hover { transform: scale(1.08); color: #fff; }

/* ==========================================
   HERO — carrossel de banners institucionais (gerenciável pelo admin),
   nunca uma foto de um médico específico: a clínica tem 3 sócios em
   igualdade (Dr. João Isidro Fracasso, Dr. Guilherme Baroni de Macêdo,
   Dr. Leonardo Priori) e o site não deve destacar um deles sobre os outros.
   ========================================== */
.hero-carousel { overflow: hidden; }
.hero-carousel .carousel-item { min-height: 460px; }
@media (max-width: 767.98px) {
    .hero-carousel .carousel-item { min-height: 560px; }
}

.banner-slide {
    position: relative;
    min-height: clamp(520px, 72vh, 680px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
@media (max-width: 767.98px) { .banner-slide { min-height: 600px; } }
.banner-slide.bg-teal { background-image: linear-gradient(135deg, #12909F 0%, var(--brand-teal-deep) 100%); }
.banner-slide.bg-sky { background-image: linear-gradient(135deg, #4FA9C9 0%, var(--brand-teal) 100%); }
.banner-slide.bg-deep { background-image: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--teal-ink) 100%); }
/* Slide com foto: a pessoa fica à direita e uma camada teal da marca cobre o lado do texto */
.banner-slide.com-foto { background-position: 70% center; }
.banner-slide.com-foto::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(11, 90, 110, 0.94) 0%, rgba(11, 90, 110, 0.80) 38%, rgba(11, 90, 110, 0.15) 75%, rgba(11, 90, 110, 0) 100%);
}
@media (max-width: 767.98px) {
    /* Celular: foto limpa no alto mostrando a pessoa, texto embaixo sobre o teal */
    .banner-slide.com-foto { min-height: 680px; align-items: flex-end; background-position: 82% top; background-size: auto 62%; background-repeat: no-repeat; background-color: var(--brand-teal-deep); }
    .banner-slide.com-foto::before { background: linear-gradient(180deg, rgba(11, 90, 110, 0) 0%, rgba(11, 90, 110, 0) 38%, rgba(11, 90, 110, 0.85) 55%, var(--brand-teal-deep) 64%); }
    .banner-slide.com-foto .banner-content { padding-top: 0; padding-bottom: 56px; }
}
.banner-slide .banner-content { position: relative; z-index: 2; color: #fff; max-width: 620px; padding: 70px 0; }
.banner-slide .banner-heading {
    color: #fff;
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-weight: 600;
    font-size: clamp(2.1rem, 3.8vw, 3rem);
    line-height: 1.15;
    max-width: 18ch;
    margin-bottom: 0.5rem;
}
.banner-slide p.lead { color: rgba(255,255,255,0.92); max-width: 50ch; font-size: 1.08rem; }
.banner-slide .btn-light { font-weight: 700; border-radius: 999px; padding: 11px 26px; }

/* Arte dos banners sem foto (index.php): pulmão em traço com anéis de respiração à direita,
   grade de pontos e ondas nos dois azuis da marca embaixo, como no banner "Agende sua consulta" do site antigo. */
.banner-slide .banner-content { padding-bottom: 130px; }
.banner-slide .banner-heading { font-size: clamp(2rem, 3.4vw, 2.5rem); }
.banner-arte { position: absolute; inset: 0; z-index: 1; pointer-events: none; color: #fff; }
.banner-desenho {
    position: absolute; right: 6%; top: 50%; transform: translateY(-56%);
    width: min(44vw, 520px); height: auto; opacity: 0.32;
}
.banner-desenho .anel { stroke-width: 1.2; stroke-dasharray: 2 9; opacity: 0.8; }
.banner-desenho .anel-2 { stroke-dasharray: none; opacity: 0.45; }
.banner-desenho .ramo { stroke-width: 1.5; opacity: 0.75; }
.banner-pontos {
    position: absolute; left: 3%; top: 16%; width: 60px; height: 190px; opacity: 0.4;
    background-image: radial-gradient(currentColor 2.2px, transparent 2.6px); background-size: 20px 20px;
}
.banner-ondas { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; }
.banner-ondas .onda-clara { fill: rgba(119, 189, 223, 0.45); }
.banner-ondas .onda-escura { fill: var(--brand-teal-deep); }
.bg-deep .banner-ondas .onda-escura { fill: var(--teal-ink); }
.bg-deep .banner-arte { color: var(--accent-on-dark); }

/* Slide 2: fluxo de ar atravessando a metade direita, bolhas soltas e onda clara no topo */
.banner-arte--2 .banner-desenho { right: 0; width: min(56vw, 760px); transform: translateY(-50%); opacity: 0.38; }
.banner-desenho .fluxo { opacity: 0.6; }
.banner-desenho .fluxo-2 { opacity: 0.35; }
.banner-bolhas {
    position: absolute; right: 30%; bottom: 14%; width: 160px; height: 90px; opacity: 0.35;
    background-image: radial-gradient(circle, currentColor 3px, transparent 3.5px), radial-gradient(circle, currentColor 1.6px, transparent 2px);
    background-size: 46px 38px, 27px 23px; background-position: 0 0, 12px 9px;
}
.banner-ondas--topo { top: -1px; bottom: auto; height: 90px; }
.banner-arte--2 ~ .container .banner-content { padding-bottom: 70px; padding-top: 110px; }
/* Slide 3: estetoscópio com o diafragma dentro dos anéis, pontos do lado direito e uma onda só */
.banner-arte--3 .banner-desenho { right: 4%; width: min(40vw, 470px); transform: translateY(-52%); }
.banner-pontos--direita { left: auto; right: 2.5%; top: auto; bottom: 22%; width: 190px; height: 60px; }
@media (max-width: 767.98px) {
    .banner-arte--2 .banner-desenho { width: 130vw; right: -40vw; top: 38%; }
    .banner-arte--3 .banner-desenho { width: 80vw; right: -14vw; }
    .banner-bolhas, .banner-pontos--direita { display: none; }
}

/* Variação clara (estilo "sky" no painel): papel claro, texto teal, ondas cheias embaixo */
.banner-slide.bg-sky:not(.com-foto) { background-image: linear-gradient(120deg, var(--paper) 0%, var(--sky-soft) 100%); }
.bg-sky:not(.com-foto) .banner-arte { color: var(--brand-teal); }
.bg-sky:not(.com-foto) .banner-desenho { opacity: 0.22; }
.bg-sky:not(.com-foto) .banner-ondas .onda-clara { fill: var(--accent); }
.bg-sky:not(.com-foto) .banner-ondas .onda-escura { fill: var(--brand-teal); }
.bg-sky:not(.com-foto) .banner-content { color: var(--ink); }
.bg-sky:not(.com-foto) .banner-heading { color: var(--brand-teal-deep); }
.bg-sky:not(.com-foto) p.lead { color: var(--ink-muted); }
.bg-sky:not(.com-foto) .btn-light { background: var(--brand-teal-deep); border-color: var(--brand-teal-deep); color: #fff; }
.bg-sky:not(.com-foto) .btn-light:hover { background: var(--brand-teal); border-color: var(--brand-teal); }

@media (max-width: 767.98px) {
    /* No celular o pulmão fica atrás do texto, bem apagado */
    .banner-desenho { width: 88vw; right: -18vw; top: 34%; opacity: 0.14; }
    .bg-sky:not(.com-foto) .banner-desenho { opacity: 0.1; }
    .banner-pontos { display: none; }
    .banner-ondas { height: 80px; }
    .banner-slide .banner-content { padding-bottom: 100px; }
}

.hero-carousel .carousel-indicators { bottom: 18px; }
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 9px; height: 9px; border-radius: 50%; background-color: #fff;
    opacity: 0.5; border: none; margin: 0 5px;
}
.hero-carousel .carousel-indicators .active { opacity: 1; }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { width: 6%; opacity: 0; transition: var(--transition-smooth); }
.hero-carousel:hover .carousel-control-prev, .hero-carousel:hover .carousel-control-next { opacity: 0.8; }

/* Faixa de números institucionais — tipografia limpa com divisórias finas,
   sem balões/pílulas, para um tom mais sóbrio/profissional. */
.trust-stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}
.trust-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 4px 36px;
    border-left: 1px solid var(--hairline);
}
.trust-stat:first-child { border-left: none; padding-left: 0; }
.trust-stat strong { font-family: 'Outfit', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--brand-teal-deep); line-height: 1; }
.trust-stat span { font-size: 0.8rem; color: var(--ink-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.25; }
@media (max-width: 575.98px) {
    .trust-stat { padding: 4px 18px; }
    .trust-stat strong { font-size: 1.5rem; }
    .trust-stat span { font-size: 0.7rem; }
}

.hero-photo-wrap { position: relative; max-width: 420px; margin: 0 auto; }
.hero-photo-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow-hover);
    aspect-ratio: 4/5;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    background: rgba(10, 42, 51, 0.82);
    backdrop-filter: blur(4px);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 12px 16px;
}
.hero-photo-caption strong { display: block; font-size: 0.98rem; }
.hero-photo-caption span { font-size: 0.78rem; color: #CDEAF2; }

/* ==========================================
   CARDS DE ESPECIALIDADE — lideradas por ícone (sem foto genérica),
   badge circular teal + tag pill, ao contrário do grid fotográfico do
   dr_matheo.
   ========================================== */
.spec-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px 26px 28px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}
.spec-tile:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: var(--hairline); }
.spec-tile .spec-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    background: var(--sky-soft);
    color: var(--brand-teal-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
    transition: var(--transition-smooth);
}
.spec-tile:hover .spec-icon { background: var(--brand-teal); color: #fff; }
.spec-tile h3 { font-size: 1.2rem; margin-bottom: 8px; }
.spec-tile p { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 12px; }
.spec-tile .spec-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.86rem; color: var(--accent-hover); }
.spec-tile:hover .spec-more i { transform: translateX(3px); }
.spec-more i { transition: var(--transition-smooth); display: inline-block; }

/* ==========================================
   CORPO CLÍNICO — cards de médico (foto circular) + página individual
   ========================================== */
.doctor-card {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
    height: 100%;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px 20px 26px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.doctor-card .doctor-photo {
    width: 128px; height: 128px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 18px;
    border: 4px solid var(--sky-soft);
}
.doctor-card .doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.doctor-card .doctor-especialidade { color: var(--accent-hover); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.4px; }
.doctor-card .doctor-cremers { color: var(--ink-muted); font-size: 0.78rem; margin-top: 6px; }

/* Perfil do especialista: topo com foto + ficha, trajetória em grupos com linhas finas */
.doctor-hero { background: var(--sky-soft); padding: 40px 0 56px; }
.doctor-hero-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: #fff; box-shadow: var(--card-shadow); }
.doctor-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doctor-hero-role { color: var(--accent-hover); font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.doctor-hero h1 { color: var(--heading); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.doctor-hero-lead { color: var(--ink-muted); font-size: 1.02rem; line-height: 1.7; max-width: 60ch; margin-bottom: 24px; }
.doctor-facts { margin: 0 0 28px; max-width: 620px; border-top: 1px solid var(--hairline); }
.doctor-facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.doctor-facts dt { font-size: 0.82rem; font-weight: 600; color: var(--ink-muted); }
.doctor-facts dd { margin: 0; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.doctor-facts dd a { color: var(--brand-teal); text-decoration: none; border-bottom: 1px solid var(--accent); }
.doctor-facts dd a:hover { color: var(--brand-teal-deep); border-bottom-color: var(--brand-teal-deep); }
@media (max-width: 575.98px) {
    .doctor-facts > div { grid-template-columns: 1fr; gap: 2px; }
}

.doctor-path-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 28px; }
.doctor-path { border-top: 1px solid var(--hairline); }
.doctor-path-group { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--hairline); }
.doctor-path-group h3 { font-size: 1.05rem; color: var(--brand-teal-deep); margin: 2px 0 0; }
.doctor-path-group ul { list-style: none; padding: 0; margin: 0; }
.doctor-path-group li { position: relative; padding: 0 0 12px 22px; color: var(--ink); line-height: 1.6; }
.doctor-path-group li:last-child { padding-bottom: 0; }
.doctor-path-group li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
@media (max-width: 767.98px) {
    .doctor-path-group { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
}


/* ==========================================
   PAGE-HERO (banner de página interna) — claro/arejado, não escuro
   ========================================== */
.page-hero {
    background: var(--sky-soft);
    color: var(--ink);
    padding-top: 52px;
    position: relative;
}
.page-hero > .container { padding-bottom: 46px; }
.page-hero h1 { color: var(--heading); font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 26ch; }
.page-hero p.lead { color: var(--ink-muted); max-width: 66ch; font-size: 1.05rem; }

.breadcrumb-bar { font-size: 0.8rem; font-weight: 600; }
.breadcrumb-bar a { color: var(--brand-teal-deep); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--accent-hover); }
.breadcrumb-bar .active { color: var(--ink-muted); }
.breadcrumb-bar .bi-chevron-right { font-size: 0.7rem; color: var(--ink-muted); margin: 0 4px; }

/* ==========================================
   PLACEHOLDER DE IMAGEM
   ========================================== */
.img-placeholder {
    aspect-ratio: var(--ar, 4/3);
    width: 100%;
    border-radius: var(--radius-md);
    background: repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 14px, #D8ECF2 14px, #D8ECF2 28px);
    border: 1.5px dashed var(--hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
}
.img-placeholder span {
    color: var(--ink-muted);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255,255,255,0.92);
    padding: 7px 14px;
    border-radius: 999px;
}

/* ==========================================
   STAT BLOCKS
   ========================================== */
.stat-block { text-align: left; }
.stat-block strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-teal-deep);
    line-height: 1;
}
.stat-block span { font-size: 0.84rem; color: var(--ink-muted); font-weight: 500; }
.stat-block.on-teal strong { color: #fff; }
.stat-block.on-teal span { color: #D8EFF6; }

/* ==========================================
   QUOTE HIGHLIGHT
   ========================================== */
.quote-highlight {
    border-left: 4px solid var(--accent);
    padding: 6px 0 6px 28px;
}
.quote-highlight p {
    font-family: 'Outfit', sans-serif;
    font-style: normal;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--heading);
}

/* ==========================================
   CARDS GENÉRICOS / EXAMES
   ========================================== */
.info-card {
    border-radius: var(--radius-md);
    padding: 30px;
    background: #fff;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
}
.info-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.info-card .info-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: var(--sky-soft);
    color: var(--brand-teal-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
}
.info-card h3, .info-card h4 { font-size: 1.12rem; margin-bottom: 8px; }
.info-card p { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 0; }

/* Vacinas: lista com linhas finas + filtro por público, e calendários em imagem */
.vacinas-lista h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.vacinas-filtro { display: flex; flex-wrap: wrap; gap: 6px; }
.vacinas-filtro button { border: 1px solid var(--hairline); background: #fff; color: var(--brand-teal-deep); font-weight: 600; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.vacinas-filtro button:hover { border-color: var(--accent); }
.vacinas-filtro button.active { background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; }
.vacinas-itens { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.vacinas-itens li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.vacinas-itens li[hidden] { display: none; }
.vacinas-itens h3 { font-size: 1.05rem; color: var(--heading); margin: 0 0 4px; }
.vacinas-itens p { color: var(--ink-muted); font-size: 0.92rem; margin: 0 0 4px; max-width: 70ch; }
.vacina-publicos { font-size: 0.78rem; font-weight: 700; color: var(--accent-hover); text-transform: uppercase; letter-spacing: 0.5px; }
.vacina-perguntar { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; color: var(--brand-teal); text-decoration: none; padding: 8px 14px; border: 1px solid var(--hairline); border-radius: 999px; transition: border-color .2s, background .2s; }
.vacina-perguntar:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--brand-teal-deep); }
@media (max-width: 575.98px) {
    .vacinas-itens li { flex-direction: column; align-items: flex-start; gap: 10px; }
}
.vacinas-aviso { color: var(--ink-muted); font-size: 0.95rem; background: var(--paper-2); border-radius: var(--radius-md); padding: 14px 18px; }
.calendario-vacina { margin: 0; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden; }
.calendario-vacina img { width: 100%; height: auto; display: block; }
.calendario-vacina figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--hairline); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.calendario-vacina figcaption a { color: var(--brand-teal); text-decoration: none; white-space: nowrap; }

/* Galeria de fotos da clínica (a-clinica.php) */
.gallery-item {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}
.gallery-item:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
a.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
a.gallery-item:hover img { transform: scale(1.06); }
a.gallery-item .gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 10px 14px 8px;
    background: linear-gradient(to top, rgba(10, 42, 51, 0.72), transparent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s ease;
}
a.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: var(--paper-2);
    border: 1.5px dashed var(--hairline);
    color: var(--ink-muted);
}
.gallery-placeholder i { font-size: 1.8rem; color: var(--sky); }
.gallery-placeholder .gallery-caption { font-size: 0.8rem; font-weight: 600; text-align: center; padding: 0 10px; }

.placeholder-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-hover);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 4px 12px;
}

/* ==========================================
   VÍDEOS — grade com fachada (thumbnail) e carregamento do iframe só no clique
   ========================================== */
.video-tile {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #000;
}
.video-facade {
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-facade::after { content: ""; position: absolute; inset: 0; background: rgba(10,42,51,0.28); transition: var(--transition-smooth); }
.video-facade:hover::after { background: rgba(10,42,51,0.15); }
.video-play-btn {
    position: relative;
    z-index: 2;
    width: 62px; height: 62px;
    border-radius: 50%;
    background: rgba(255,255,255,0.94);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--card-shadow-hover);
    transition: var(--transition-smooth);
}
.video-facade:hover .video-play-btn { background: var(--accent-hover); color: #fff; transform: scale(1.08); }
.video-tile iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.video-title { padding: 14px 16px; background: #fff; font-size: 0.92rem; font-weight: 600; color: var(--ink); line-height: 1.4; }

/* ==========================================
   POSTS DE BLOG
   ========================================== */
.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: var(--transition-smooth);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.post-card .post-img { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.post-card .post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 20px 22px 22px; }
.blog-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.blog-pagination a { min-width: 42px; height: 42px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--brand-teal); color: var(--brand-teal); font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.blog-pagination a:hover { background: var(--accent); border-color: var(--accent); color: var(--brand-teal-deep); }
.blog-pagination a.active { background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; }

/* Lateral do post: "Leia também" em mini-cards + temas */
.post-aside { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 992px) { .post-aside { position: sticky; top: 110px; } }
.post-aside-box { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 22px; }
.post-aside-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-hover); margin: 0 0 6px; }
.mini-post { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; color: var(--ink); }
.mini-post-img { flex: 0 0 84px; width: 84px; height: 84px; border-radius: var(--radius-md); overflow: hidden; background: var(--paper-2); }
.mini-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mini-post-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-post-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-muted); }
.mini-post-title { font-family: 'Outfit', 'Manrope', sans-serif; font-weight: 600; font-size: 0.98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.mini-post:hover .mini-post-img img { transform: scale(1.07); }
.mini-post:hover .mini-post-title { color: var(--brand-teal); }
.post-aside-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 0.9rem; color: var(--brand-teal); text-decoration: none; }
.post-aside-all i { transition: transform .2s; }
.post-aside-all:hover i { transform: translateX(4px); }
.tema-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tema-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--brand-teal-deep); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.tema-chips a span { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.tema-chips a:hover { background: var(--brand-teal); color: #fff; }
.tema-chips a:hover span { color: var(--brand-teal-deep); }
.post-card .post-meta { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent-hover); font-weight: 700; margin-bottom: 8px; }
.post-card h3 { font-size: 1.12rem; margin-bottom: 8px; transition: var(--transition-smooth); }
.post-card:hover h3 { color: var(--accent-hover); }
.post-card p { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 0; }

.post-row { display: flex; gap: 20px; text-decoration: none; color: inherit; padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.post-row:hover .post-row-title { color: var(--accent-hover); }
.post-row-img { width: 140px; flex-shrink: 0; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.post-row-img img { width: 100%; height: 100%; object-fit: cover; }
.post-row-meta { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-muted); font-weight: 600; }
.post-row-title { font-size: 1.18rem; margin: 4px 0 6px; transition: var(--transition-smooth); }
.post-row p { color: var(--ink-muted); margin-bottom: 0; font-size: 0.92rem; }

/* ==========================================
   FAQ
   ========================================== */
.faq-clean .accordion-item {
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md) !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-clean .accordion-button {
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 1.06rem;
    font-weight: 600;
    color: var(--heading);
    padding: 18px 22px;
    box-shadow: none !important;
}
.faq-clean .accordion-button:not(.collapsed) { color: var(--accent-hover); background: var(--accent-soft); }
.faq-clean .accordion-body { padding: 4px 22px 22px; color: var(--ink-muted); }

/* ==========================================
   CTA STRIP
   ========================================== */
.cta-strip {
    background: var(--brand-teal);
    background-image: radial-gradient(circle at 85% 15%, rgba(225,85,46,0.30), transparent 55%);
    color: #fff;
    padding: 48px clamp(24px, 5vw, 64px);
    border-radius: var(--radius-lg);
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #D8EFF6; }

/* ==========================================
   FORMULÁRIOS (admin)
   ========================================== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--hairline);
    padding: 10px 14px;
    background: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(16, 127, 156, 0.12);
}
label.form-label { font-weight: 600; font-size: 0.85rem; color: var(--brand-teal-deep); }

/* ==========================================
   ADMIN — conteúdo (sidebar/topbar ficam inline em admin_header.php)
   ========================================== */
.admin-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    padding: 26px;
}
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th { text-align: left; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-muted); padding: 10px 12px; border-bottom: 2px solid var(--hairline); }
table.admin-table td { padding: 12px; border-bottom: 1px solid var(--hairline); vertical-align: middle; font-size: 0.92rem; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--teal-ink);
    color: #B7D9E2;
    padding-top: 68px;
}
/* Altura fixa no CSS: o height="46" do HTML perdia para o "img { height: auto }" geral e a logo esticava na coluna toda */
.site-footer img.footer-logo { filter: brightness(0) invert(1); opacity: 0.95; height: 48px; width: auto; }
.site-footer h5 {
    color: #fff;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 20px;
}
.site-footer a { color: #9FC7D2; text-decoration: none; }
.site-footer a:hover { color: var(--accent-on-dark); }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact-icon { color: var(--accent-on-dark); margin-top: 2px; }
.footer-bottom {
    border-top: 1px solid var(--hairline-on-dark);
    margin-top: 52px;
    padding: 22px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    color: #6D97A2;
}
.footer-legal { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 22px; }
.site-footer .footer-legal a { color: #6D97A2; }
.site-footer .footer-legal a:hover { color: var(--accent-on-dark); }

/* Aviso de cookies (cookies.php + assets/js/consentimento.js) */
.cookie-aviso {
    position: fixed; left: 22px; bottom: 22px; z-index: 1050;
    width: min(27rem, calc(100vw - 44px));
    padding: 18px 20px;
    background: #fff; color: var(--ink);
    border: 1px solid var(--hairline); border-radius: var(--radius-md);
    box-shadow: 0 18px 40px -12px rgba(10, 42, 51, 0.28);
    font-size: 0.88rem; line-height: 1.5;
}
.cookie-aviso[hidden] { display: none; }
.cookie-aviso-titulo { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem; color: var(--heading); margin: 0 0 6px; }
.cookie-aviso-titulo .bi { color: var(--brand-teal); margin-right: 4px; }
.cookie-aviso-texto { margin: 0 0 14px; color: var(--ink-muted); }
.cookie-aviso-texto a { color: var(--brand-teal); font-weight: 700; }
.cookie-aviso-opcoes { display: grid; gap: 10px; margin-bottom: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.cookie-aviso-opcoes[hidden] { display: none; }
.cookie-opcao { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--ink-muted); cursor: pointer; }
.cookie-opcao strong { color: var(--ink); }
.cookie-opcao input { flex: none; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand-teal); }
.cookie-aviso-botoes { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.cookie-btn {
    padding: 8px 20px; border: 1.5px solid var(--brand-teal-deep); border-radius: 999px;
    background: var(--brand-teal-deep); color: #fff; font-weight: 700; font-size: 0.84rem;
    transition: var(--transition-smooth);
}
.cookie-btn:hover { background: var(--brand-teal); border-color: var(--brand-teal); }
.cookie-btn--link { margin-right: auto; padding-left: 0; padding-right: 0; border-color: transparent; background: transparent; color: var(--brand-teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.cookie-btn--link:hover { background: transparent; border-color: transparent; color: var(--brand-teal); }
.cookie-btn[hidden] { display: none; }
@media (max-width: 575.98px) {
    .cookie-aviso { left: 16px; right: 16px; bottom: 16px; width: auto; }
    /* O aviso ocupa a largura toda: o WhatsApp flutuante sobe para não ficar por cima */
    .tem-cookie-aviso .whatsapp-float-btn { bottom: calc(var(--cookie-aviso-altura, 0px) + 28px); }
}

.social-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--hairline-on-dark);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: var(--transition-smooth);
}
.social-icon:hover { background: var(--accent); border-color: var(--accent); color: var(--brand-teal-deep); }

/* ==========================================
   CONTEÚDO DE BLOG / TRATAMENTO (texto longo)
   ========================================== */
.rich-content { color: var(--ink); line-height: 1.8; font-size: 1.04rem; }
.rich-content h2, .rich-content h3 { margin-top: 1.6em; font-size: 1.4rem; }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
/* Galeria: parágrafo só com fotos (posts migrados do WordPress e fotos coladas no editor) */
.rich-content p:has(> img + img) { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rich-content p:has(> img + img) img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.rich-content p:has(> img + img) br { display: none; }
.rich-content a { color: var(--accent-hover); }
.rich-content blockquote { border-left: 3px solid var(--accent); padding-left: 18px; color: var(--ink-muted); font-style: italic; }
.rich-content ul li { margin-bottom: 6px; }

/* Política de Privacidade */
.politica h2 { scroll-margin-top: 100px; }
.politica h2:first-of-type { margin-top: 0.6em; }
.tabela-cookies { width: 100%; border-collapse: collapse; font-size: 0.88rem; line-height: 1.5; margin: 6px 0 18px; }
.tabela-cookies th { text-align: left; font-weight: 700; color: var(--heading); background: var(--sky-soft); padding: 10px 12px; }
.tabela-cookies td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.tabela-cookies code { color: var(--brand-teal-deep); background: none; font-size: 0.82rem; white-space: nowrap; }

/* ==========================================
   404 / ERRO
   ========================================== */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page .error-code {
    font-family: 'Outfit', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent-hover);
    line-height: 1;
}
