/* ========== PÁGINAS DE AVALIAÇÃO (miolo dinâmico) ========== */
/* Tudo prefixado com .av- para não colidir com o CSS legado do site. */

.av-page {
    --av-border: #e4ded6;
    --av-white: #ffffff;
    --av-radius: 14px;
    --av-radius-lg: 22px;
    --av-shadow: 0 10px 30px rgba(78, 54, 41, .08);
    --av-serif: var(--font-heading, 'Libre Baskerville', Georgia, serif);
    --av-sans: var(--font-sans, 'Inter', system-ui, sans-serif);

    font-family: var(--av-sans);
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-bg);
}

.av-page h1,
.av-page h2,
.av-page h3 { font-family: var(--av-serif); color: var(--color-primary); font-weight: 400; line-height: 1.3; margin: 0; }
/* O CSS global do site força cor e tamanho em <p>; aqui o parágrafo herda do bloco (ex.: texto claro no bloco escuro) */
.av-page p { margin: 0 0 1.1em; color: inherit; font-size: inherit; line-height: inherit; }
.av-page a:not(.av-btn) { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.av-page a:not(.av-btn):hover { color: var(--color-secondary); }
.av-page img { max-width: 100%; display: block; }
.av-page section[id] { scroll-margin-top: 110px; }

.av-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.av-content { max-width: 1120px; margin: 0 auto; }

/* ---------- Botões ---------- */
.av-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--av-sans); font-weight: 600; font-size: 12px;
    letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center;
    padding: 16px 30px; border-radius: 999px; border: 1px solid var(--color-primary);
    background: var(--color-primary); color: var(--av-white);
    box-shadow: 0 8px 20px rgba(78, 54, 41, .18); transition: .2s; cursor: pointer;
}
.av-btn:hover { background: var(--color-secondary); border-color: var(--color-secondary); color: var(--av-white); transform: translateY(-1px); }
.av-btn i { font-size: 16px; }
.av-btn-sm { padding: 10px 22px; font-size: 10px; box-shadow: none; }
.av-btn-outline { background: transparent; color: var(--color-primary); box-shadow: none; }
.av-btn-outline:hover { background: var(--color-primary); color: var(--av-white); }

/* ---------- Hero ---------- */
.av-hero {
    padding: clamp(130px, 14vw, 170px) 0 clamp(50px, 6vw, 80px);
    background: var(--color-surface);
    position: relative; overflow: hidden;
}
.av-hero::after {
    content: ""; position: absolute; right: -120px; top: 60px; width: 420px; height: 420px;
    border-radius: 50%; border: 1px solid rgba(121, 95, 86, .14);
    box-shadow: 0 0 0 60px rgba(121, 95, 86, .03), 0 0 0 120px rgba(121, 95, 86, .02);
    pointer-events: none;
}
/* Mesmo padrão do breadcrumb do blog: links discretos e a página atual em destaque */
.av-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-light); margin-bottom: 22px; }
.av-page .av-breadcrumb a { color: var(--color-text-light); text-decoration: none; transition: color .2s; }
.av-page .av-breadcrumb a:hover { color: var(--color-secondary); }
.av-breadcrumb-sep { opacity: .6; }
.av-breadcrumb-atual { color: var(--color-secondary); font-weight: 500; }

/* Listagem (/avaliacao e /teste) */
.av-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.av-page a.av-lista-card {
    display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--color-text);
    background: var(--av-white); border: 1px solid var(--av-border); border-radius: var(--av-radius-lg);
    padding: 28px; box-shadow: var(--av-shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.av-page a.av-lista-card:hover { transform: translateY(-3px); border-color: var(--color-secondary); box-shadow: 0 16px 36px rgba(78, 54, 41, .12); color: var(--color-text); }
.av-lista-card h2 { font-size: 22px; }
.av-lista-card p { font-size: 15.5px; margin: 0; }
.av-lista-link { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary); }
.av-lista-link i { margin-left: 6px; transition: transform .2s; }
.av-lista-card:hover .av-lista-link i { transform: translateX(4px); }

.av-eyebrow {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--color-secondary); margin-bottom: 18px;
}
.av-eyebrow .av-tag { background: var(--av-white); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--av-border); }
.av-eyebrow .av-by { letter-spacing: .04em; text-transform: none; font-weight: 500; font-size: 13px; color: var(--color-text-light); }
.av-page .av-eyebrow .av-by a { text-decoration: none; font-weight: 600; }

.av-hero h1 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 22px; max-width: 760px; }
.av-hero-lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 720px; }
.av-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; position: relative; z-index: 1; }

/* Resumo */
.av-summary {
    position: relative; z-index: 1;
    margin-top: 50px; background: var(--av-white); border-radius: var(--av-radius-lg);
    box-shadow: var(--av-shadow); padding: clamp(26px, 4vw, 42px);
    border: 1px solid var(--av-border);
}
.av-summary-title {
    font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--color-secondary); margin-bottom: 20px;
}
.av-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 34px; list-style: none; margin: 0; padding: 0; }
.av-summary-grid li { display: flex; gap: 14px; font-size: 15.5px; line-height: 1.6; }
.av-summary-grid i {
    flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--color-surface);
    color: var(--color-primary); display: grid; place-items: center; font-size: 15px;
}
.av-summary-grid strong { color: var(--color-primary); }

.av-author-line { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--av-border); }
.av-author-line .av-name { font-family: var(--av-serif); font-weight: 700; color: var(--color-primary); font-size: 16px; }
.av-author-line .av-crm { font-size: 13px; color: var(--color-text-light); margin: 2px 0 0; }

/* ---------- Seções ---------- */
.av-section { padding: clamp(56px, 7vw, 90px) 0 0; }
.av-section-alt { background: var(--color-surface); padding-bottom: clamp(56px, 7vw, 90px); margin-top: clamp(56px, 7vw, 90px); }
.av-section-alt + .av-section-alt { margin-top: 0; }
.av-section h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 22px; }
.av-section h2::after { content: ""; display: block; width: 46px; height: 2px; background: var(--color-secondary); margin-top: 16px; opacity: .6; }

/* Conteúdo vindo do editor: listas viram check-list */
.av-rich > :last-child { margin-bottom: 0; }
.av-rich h3 { font-size: 21px; margin: 1.4em 0 .6em; }
.av-rich ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.av-rich ul li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.av-rich ul li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px;
    position: absolute; left: 0; top: 5px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--color-surface); color: var(--color-primary); display: grid; place-items: center;
}
.av-section-alt .av-rich ul li::before { background: var(--av-white); }
.av-rich ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.av-rich ol li { margin-bottom: 8px; }
.av-rich blockquote {
    margin: 0 0 1.4em; background: var(--av-white); border: 1px solid var(--av-border);
    border-left: 3px solid var(--color-secondary); border-radius: var(--av-radius); padding: 20px 24px; font-size: 16px;
}
.av-rich blockquote p:last-child { margin-bottom: 0; }
.av-rich-after { margin-top: 24px; }

.av-callout {
    background: var(--av-white); border: 1px solid var(--av-border);
    border-left: 3px solid var(--color-secondary); border-radius: var(--av-radius);
    padding: 20px 24px; font-size: 16px; margin-top: 8px;
}
.av-callout p:last-child { margin-bottom: 0; }
.av-callout-forte { background: var(--color-primary); color: #f3ede8; border: 0; }
.av-callout-forte strong { color: var(--av-white); }
.av-page .av-callout-forte a:not(.av-btn) { color: var(--av-white); }

/* Linha do tempo */
.av-timeline { list-style: none; margin: 34px 0; padding: 0; position: relative; }
.av-timeline::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 1px; background: #d9cfc6; }
.av-timeline li { position: relative; padding-left: 64px; margin-bottom: 22px; }
.av-timeline li:last-child { margin-bottom: 0; }
.av-timeline .av-dot {
    position: absolute; left: 0; top: 2px; width: 40px; height: 40px; border-radius: 50%;
    background: var(--color-primary); color: var(--av-white); display: grid; place-items: center;
    font-family: var(--av-serif); font-size: 15px;
}
.av-timeline li.av-optional .av-dot { background: var(--color-surface); color: var(--color-secondary); border: 1px dashed var(--color-secondary); }
.av-timeline .av-card { background: var(--av-white); border: 1px solid var(--av-border); border-radius: var(--av-radius); padding: 22px 24px; }
.av-timeline li.av-optional .av-card { border: 1px dashed #cbbdb2; background: transparent; }
.av-timeline .av-step-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--color-secondary); margin-bottom: 6px; }
.av-timeline h3 { font-size: 20px; margin-bottom: 10px; }
.av-timeline p { font-size: 16px; margin-bottom: 0; }

/* Quadros com ícone */
.av-outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 8px 0 24px; }
.av-outcomes > div {
    background: var(--av-white); border: 1px solid var(--av-border); border-radius: var(--av-radius);
    padding: 18px 16px; text-align: center; font-size: 14.5px; line-height: 1.5; color: var(--color-primary); font-weight: 500;
}
.av-outcomes i { display: block; font-size: 18px; color: var(--color-secondary); margin-bottom: 8px; }
.av-outcomes:last-child { margin-bottom: 0; }

/* Cards */
.av-info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 10px; }
.av-info-card { background: var(--av-white); border: 1px solid var(--av-border); border-radius: var(--av-radius); padding: 24px; }
.av-info-card h3 { font-size: 19px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.av-info-card h3 i { color: var(--color-secondary); font-size: 16px; }
.av-info-card p { font-size: 15.5px; margin-bottom: 0; }

/* Médico */
.av-doctor { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
/* Mesmos cantos assimétricos da foto do hero da home */
.av-doctor-photo { border-radius: 80px 0 120px 0; overflow: hidden; box-shadow: 0 16px 40px rgba(121, 95, 86, .1); aspect-ratio: 4 / 5; background: var(--color-surface); }
.av-doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Chamada WhatsApp */
.av-cta-box { background: var(--color-primary); color: #efe7e2; border-radius: var(--av-radius-lg); padding: clamp(30px, 5vw, 52px); }
.av-page .av-cta-box h2 { color: var(--av-white); }
.av-cta-box h2::after { background: #d8c6bc; }
.av-page .av-cta-box a:not(.av-btn) { color: var(--av-white); }
.av-cta-box .av-btn { background: var(--av-white); color: var(--color-primary); border-color: var(--av-white); margin-top: 10px; }
.av-cta-box .av-btn:hover { background: var(--color-surface); color: var(--color-primary); }

/* FAQ */
.av-faq { border-top: 1px solid var(--av-border); }
.av-faq details { border-bottom: 1px solid var(--av-border); }
.av-faq summary {
    list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
    font-family: var(--av-serif); font-size: 18px; color: var(--color-primary);
}
.av-faq summary::-webkit-details-marker { display: none; }
.av-faq summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 50%; background: var(--av-white);
    display: grid; place-items: center; font-family: var(--av-sans); font-size: 18px;
}
.av-faq details[open] summary::after { content: "–"; }
.av-faq .av-answer { padding: 0 48px 22px 0; font-size: 16px; }
.av-faq .av-answer p:last-child { margin-bottom: 0; }
.av-faq-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.av-faq-cta > div { margin: 0; flex: 1 1 360px; }
.av-faq-cta > div p:last-child { margin-bottom: 0; }

/* Sobre o autor */
.av-author-box {
    display: flex; gap: 22px; align-items: flex-start;
    background: var(--av-white); border: 1px solid var(--av-border); border-radius: var(--av-radius-lg); padding: 28px;
}
.av-author-avatar {
    flex: 0 0 72px;
    width: 72px;
    min-width: 72px;
    height: 72px;
    min-height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-primary);
}

.av-author-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.av-author-box .av-label { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--color-secondary); margin-bottom: 4px; }
.av-author-box h3 { font-size: 20px; }
.av-author-box .av-crm { font-size: 13px; color: var(--color-text-light); margin: 4px 0 12px; }
.av-author-box .av-rich { font-size: 15.5px; }

.av-disclaimer {
    margin: 34px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--color-text-light);
    padding: 20px 22px; border-radius: var(--av-radius); background: var(--color-surface);
}
.av-disclaimer p:last-child { margin-bottom: 0; }

.av-end { padding-bottom: clamp(56px, 7vw, 90px); }

/* ---------- Responsivo ---------- */
@media (max-width: 720px) {
    .av-page { font-size: 16px; }
    .av-container { padding: 0 16px; }
    .av-doctor { grid-template-columns: 1fr; gap: 26px; }
    .av-doctor-photo { max-width: 280px; border-radius: 60px 0 90px 0; }
    .av-hero-actions .av-btn { width: 100%; }
    .av-timeline li { padding-left: 54px; }
    .av-timeline .av-card { padding: 18px; }
    .av-author-box { flex-direction: column; }
    .av-faq summary { font-size: 17px; }
    .av-faq .av-answer { padding-right: 0; }
    .av-cta-box .av-btn { width: 100%; }
}
