/* Site institucional Painel Paróquias — rosa-chá, marfim e dourado fosco */
:root {
  --rosa: #f6e3e3; --rosa-forte: #c98f94; --rosa-texto: #8a4f57; --marfim: #fbf7ee; --papel: #ffffff;
  --dourado: #b89a5a; --texto: #3d3436; --suave: #6f6466; --borda: #eadfd8;
  --serifa: Georgia, "Times New Roman", serif; --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --rosa: #3a2a2d; --rosa-forte: #d9a3a8; --rosa-texto: #f0cfd2; --marfim: #231d1e; --papel: #2d2527;
          --dourado: #cdb27a; --texto: #f1e9e6; --suave: #b9acad; --borda: #4a3e40; }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--marfim); color: var(--texto); line-height: 1.6; }
a { color: var(--rosa-texto); }
h1, h2, h3 { font-family: var(--serifa); font-weight: 600; color: var(--rosa-texto); line-height: 1.25; }
.faixa { background: var(--papel); border-bottom: 2px solid var(--dourado); }
.faixa-interna, .secao-interna { max-width: 1000px; margin: 0 auto; padding: 0 1rem; }
.faixa-interna { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; padding-top: .7rem; padding-bottom: .7rem; }
.logo { font-family: var(--serifa); font-size: 1.2rem; color: var(--rosa-texto); text-decoration: none; margin-right: auto; }
.faixa nav a { margin-left: 1rem; text-decoration: none; color: var(--texto); }
.faixa nav a:hover { color: var(--rosa-texto); }
.botao { display: inline-block; background: var(--rosa-forte); color: #fff; border-radius: 10px; padding: .6rem 1.2rem; text-decoration: none; }
.botao:hover { filter: brightness(.95); }
.botao-suave { background: var(--rosa); color: var(--rosa-texto); }
:focus-visible { outline: 3px solid var(--dourado); outline-offset: 2px; }

.heroi { background: linear-gradient(180deg, var(--rosa), var(--marfim)); padding: 4rem 0 3rem; text-align: center; }
.heroi h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 0 0 .8rem; }
.heroi p { max-width: 640px; margin: 0 auto 1.6rem; color: var(--suave); font-size: 1.1rem; }
.secao { padding: 2.5rem 0; }
.secao h2 { text-align: center; margin: 0 0 1.5rem; }
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.cartao { background: var(--papel); border: 1px solid var(--borda); border-radius: 14px; padding: 1.2rem; }
.cartao h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.cartao p { margin: 0; color: var(--suave); font-size: .95rem; }
.selo { display: inline-block; font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; border: 1px solid var(--dourado); color: var(--dourado); margin-left: .4rem; vertical-align: middle; }
.rodape { border-top: 1px solid var(--borda); padding: 1.5rem 0; text-align: center; color: var(--suave); font-size: .9rem; }
.post { background: var(--papel); border: 1px solid var(--borda); border-radius: 14px; padding: 1.2rem; margin-bottom: 1rem; }
.post h2 { margin: 0 0 .3rem; text-align: left; font-size: 1.3rem; }
.post small { color: var(--suave); }
.vazio { text-align: center; color: var(--suave); padding: 2rem 0; }
.acoes-publicas { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.horarios { list-style: none; margin: 0; padding: 0; }
.horarios li { padding: .25rem 0; }
.horarios small { display: block; color: var(--suave); }
.texto { max-width: 720px; margin: 0 auto 1rem; }
.form-pub { max-width: 640px; margin: 0 auto; background: var(--papel); border: 1px solid var(--borda); border-radius: 14px; padding: 1.2rem; }
.form-pub label { display: block; font-weight: 600; margin: .8rem 0 .25rem; }
.form-pub .check-pub { font-weight: 400; }
.form-pub input:not([type=checkbox]), .form-pub textarea { width: 100%; padding: .55rem .7rem; border: 1px solid var(--borda); border-radius: 10px; font: inherit; background: var(--marfim); color: var(--texto); }
.form-pub .botao { border: 0; margin-top: 1rem; cursor: pointer; font: inherit; }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso-pub { max-width: 640px; margin: 0 auto 1rem; padding: .7rem 1rem; border-radius: 10px; border: 1px solid var(--borda); background: var(--papel); }
.aviso-pub-ok { border-color: #2f6b4a; }
.aviso-pub-erro { border-color: #9b2c2c; }
.escolha-nome { border: 0; padding: 0; margin: 0 0 .5rem; }
.escolha-nome legend { font-weight: 600; padding: 0; margin-bottom: .3rem; }
.form-pub .radio-pub { display: inline-block; font-weight: 400; margin: 0 1.2rem .3rem 0; }
.nota-pub { background: var(--rosa); color: var(--rosa-texto); border-radius: 10px; padding: .6rem .9rem; margin: .5rem 0; font-size: .95rem; }
.nota-ciente { border-left: 4px solid var(--dourado); }
.texto h3 { font-family: var(--serifa); color: var(--rosa-texto); font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
.texto p { margin: 0 0 1rem; }

/* Pétalas de rosa caindo por trás da página (Chuva de rosas). Sutil, sem JavaScript, desligada para quem prefere menos movimento. */
.petalas { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.petala {
  position: absolute; top: -8vh; left: var(--x); width: var(--s); height: calc(var(--s) * 1.35);
  background: radial-gradient(ellipse at 30% 25%, #fbe3e6 0%, #efb5bd 55%, #d98a96 100%);
  border-radius: 85% 0 85% 0; opacity: .5; will-change: transform;
  animation: petala-cair var(--t) linear var(--d) infinite;
}
@keyframes petala-cair {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: .5; }
  50%  { transform: translate3d(calc(var(--dx) * -1), 55vh, 0) rotate(calc(var(--r) / 2)); }
  92%  { opacity: .5; }
  100% { transform: translate3d(var(--dx), 112vh, 0) rotate(var(--r)); opacity: 0; }
}
.faixa, main, .rodape { position: relative; z-index: 1; }
@media (max-width: 640px) { .petala:nth-child(n+9) { display: none; } }
@media (prefers-reduced-motion: reduce) { .petalas { display: none; } }
@media (prefers-color-scheme: dark) { .petala { opacity: .38; } }

/* Imagem de fundo opcional da comunidade: public/assets/site/img/comunidade-<slug>.webp (com véu para o texto continuar legível) */
/* Retrato à direita, com as bordas se dissolvendo no fundo (máscara); texto à esquerda. No celular a foto fica suave atrás do texto. */
.heroi.com-fundo { position: relative; overflow: hidden; min-height: 440px; display: flex; align-items: center; text-align: left; }
.heroi.com-fundo::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 4%; width: min(46%, 560px); z-index: 0;
  background: var(--fundo) center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 38%, #000 80%, transparent 100%);
}
.heroi.com-fundo > .secao-interna { position: relative; z-index: 1; width: 100%; }
.heroi.com-fundo h1, .heroi.com-fundo p { max-width: 17ch; margin-left: 0; margin-right: 0; }
.heroi.com-fundo p { max-width: 30ch; }
.heroi.com-fundo .acoes-publicas { justify-content: flex-start; max-width: 520px; }
@media (max-width: 760px) {
  .heroi.com-fundo { min-height: 0; text-align: center; }
  .heroi.com-fundo::before { right: 0; left: 0; width: auto; opacity: .22; -webkit-mask-image: none; mask-image: none; }
  .heroi.com-fundo h1, .heroi.com-fundo p { margin-left: auto; margin-right: auto; max-width: none; }
  .heroi.com-fundo .acoes-publicas { justify-content: center; max-width: none; }
}
