/* ===== PAGINAS DE TEMA ===== */
:root {
    --tema-azul: #55749A;
    --tema-azul-escuro: #3E5878;
    --tema-rosa: #FF8DC2;
    --tema-ceu: #EEF3FA;
    --tema-tinta: #2E3A4A;
    --tema-suave: #5E6B7C;
}

.tema-topo {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #F7F7F7;
}
.tema-topo-inner {
    max-width: 1120px;
    margin: 0 auto;
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.tema-logo img { display: block; height: 60px; width: auto; }
.tema-botao-curto { display: none; }

.tema-botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--tema-rosa);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s;
}
.tema-botao:hover { background: #F577B3; color: #fff; }
.tema-botao:focus-visible { outline: 3px solid var(--tema-azul); outline-offset: 3px; }
.tema a:focus-visible,
.tema summary:focus-visible { outline: 3px solid var(--tema-rosa); outline-offset: 3px; }
.tema-botao i { color: #fff; }

.tema { text-align: left; color: var(--tema-tinta); }
.tema-largura { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.tema-abertura { background: var(--tema-ceu); padding: 28px 0 48px; }
.tema-trilha { font-size: 14px; color: var(--tema-suave); margin-bottom: 28px; }
.tema-trilha a { color: var(--tema-azul); text-decoration: none; }
.tema-trilha a:hover { text-decoration: underline; }
.tema-trilha span[aria-hidden] { margin: 0 6px; }

.tema-abertura-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 32px;
    align-items: center;
}
#tema .tema-titulo {
    font-family: 'Lora', Georgia, serif !important;
    font-weight: 600;
    font-size: 38px;
    line-height: 1.2;
    color: var(--tema-azul);
    margin: 0 0 20px;
    text-wrap: balance;
}
.tema-intro { font-size: 19px; line-height: 1.6; max-width: 62ch; margin: 0; color: var(--tema-tinta); }
.tema-icone { width: 120px; height: 120px; justify-self: end; }
@media (min-width: 1200px) {
    #tema .tema-titulo { white-space: nowrap; }
}

.tema-corpo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 64px;
    padding-top: 48px;
    padding-bottom: 72px;
}
.tema-texto { max-width: 68ch; }
.tema-texto .tema-secao + .tema-secao { margin-top: 40px; }
.tema-texto h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--tema-azul);
    margin: 0 0 14px;
}
.tema-texto p,
.tema-texto li { font-size: 17px; line-height: 1.7; }
.tema-texto p { margin: 0 0 14px; }
.tema-texto ul { list-style: none; padding: 0; margin: 0 0 16px; }
.tema-texto li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.tema-texto li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tema-rosa);
}

.tema-faq details { border-bottom: 1px solid #E3E9F2; }
.tema-faq details:first-of-type { border-top: 1px solid #E3E9F2; }
.tema-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 32px 16px 0;
    font-size: 17px;
    font-weight: 600;
    position: relative;
}
.tema-faq summary::-webkit-details-marker { display: none; }
.tema-faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--tema-azul);
    transition: transform .2s;
}
.tema-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.tema-faq details p { padding-bottom: 8px; }

.tema-aviso { margin-top: 32px; font-size: 14px !important; color: var(--tema-suave); }

.tema-lateral { position: relative; }
.tema-cartao {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid #E3E9F2;
    border-top: 4px solid var(--tema-rosa);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}
.tema-foto { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto 12px; display: block; }
.tema-cartao-nome { font-size: 18px; font-weight: 700; margin: 0; color: var(--tema-tinta); }
.tema-cartao-crp { font-size: 14px; color: var(--tema-suave); margin: 4px 0 14px; }
.tema-cartao-texto { font-size: 15px; line-height: 1.55; margin: 0 0 20px; }
.tema-cartao .tema-botao { width: 100%; }

.tema-outros { margin-top: 28px; }
.tema-outros p { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.tema-outros ul { list-style: none; padding: 0; margin: 0; }
.tema-outros li + li { margin-top: 8px; }
.tema-outros a { font-size: 15px; color: var(--tema-azul); }

@media (max-width: 900px) {
    .tema-corpo { grid-template-columns: 1fr; gap: 40px; }
    .tema-cartao { position: static; }
}
@media (max-width: 600px) {
    .tema-topo { box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2); }
    .tema-topo-inner { padding: 0 12px 0 8px; }
    .tema-logo img { height: 58px; }
    .tema-botao-topo { padding: 8px 16px; font-size: 15px; }
    .tema-botao-topo .tema-botao-longo { display: none; }
    .tema-botao-topo .tema-botao-curto { display: inline; }
    .tema-largura { padding-inline: 20px; }
    .tema-abertura { padding: 20px 0 32px; }
    .tema-abertura-grid { grid-template-columns: 1fr; gap: 16px; }
    .tema-icone { order: -1; width: 88px; height: 88px; justify-self: start; }
    #tema .tema-titulo { font-size: 28px; }
    .tema-intro { font-size: 17px; }
    .tema-texto h2 { font-size: 22px; }
    .tema-texto p, .tema-texto li { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .tema-botao, .tema-faq summary::after { transition: none; }
}

/* Texto justificado */
.tema-intro,
.tema-texto p,
.tema-texto li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.tema-aviso { text-align: left !important; }

/* Botao do topo: igual ao da home (azul) */
.tema-topo .tema-botao-topo {
    background: #6E96E0;
    border: 2px solid #6E96E0;
    border-radius: 28px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 400;
}
.tema-topo .tema-botao-topo:hover { background: #5A82CC; border-color: #5A82CC; }
@media (max-width: 600px) {
    .tema-topo .tema-botao-topo { padding: 8px 16px; font-size: 15px; }
}
