/* Estilos adicionais que complementam o style.css principal */

/* ===========================
   PÁGINA: COMO ACOLHEMOS
=========================== */
.page-como-acolhemos .timeline {
  max-width: 720px;
  margin: 48px auto 0;
  position: relative;
}
.page-como-acolhemos .timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--azul-pale);
}
.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
  position: relative;
}
.timeline-dot {
  width: 50px; height: 50px;
  min-width: 50px;
  background: var(--azul);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--azul-pale);
}
.timeline-body { padding-top: 8px; }
.timeline-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline-body p  { color: var(--texto-med); font-size: 0.95rem; }

/* ===========================
   DESTAQUE DOAÇÃO
=========================== */
.donation-highlight {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--azul-pale);
  border-left: 4px solid var(--azul);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.donation-highlight-icon { font-size: 2rem; }
.donation-highlight-text strong { display: block; font-weight: 700; margin-bottom: 4px; }
.donation-highlight-text p { color: var(--texto-med); font-size: 0.9rem; margin: 0; }

/* ===========================
   GALERIA
=========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--azul-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ===========================
   NOTIFICAÇÃO / ALERT
=========================== */
.alert {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.alert-success { background: #D4EDDA; color: #155724; }
.alert-error   { background: #F8D7DA; color: #721C24; }
.alert-info    { background: var(--azul-pale); color: var(--azul); }

/* ===========================
   BADGE / TAG
=========================== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.tag-blue   { background: var(--azul-pale); color: var(--azul); }
.tag-yellow { background: rgba(248,240,16,0.15); color: #9A6B00; }
.tag-green  { background: #D4EDDA; color: #155724; }

/* ===========================
   BARRA LATERAL BLOG
=========================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.widget {
  background: var(--branco);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.widget-title {
  font-size: 1rem;
  font-family: var(--font-head);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--azul-pale);
}

/* ===========================
   MAPA / EMBED
=========================== */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--azul-pale);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ===========================
   ENTRADA DO CONTEÚDO
=========================== */
.entry-content h2, .entry-content h3 { margin: 28px 0 12px; }
.entry-content p  { margin-bottom: 18px; color: var(--texto-med); }
.entry-content ul, .entry-content ol { margin: 0 0 18px 20px; color: var(--texto-med); }
.entry-content li { margin-bottom: 6px; }
.entry-content a  { color: var(--azul); text-decoration: underline; }
.entry-content blockquote {
  border-left: 4px solid var(--amarelo);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--cinza-claro);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.entry-content img,
.entry-content figure img { border-radius: var(--radius); margin: 0; width: 100%; height: auto; }
.entry-content figure {
  margin: 32px 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,96,152,0.10);
}
.entry-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--texto-med);
  padding: 10px 16px;
  background: var(--cinza-claro);
}

/* ===========================
   SINGLE POST — featured image + placeholder + nav
=========================== */
.single-featured {
  margin: 0 0 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,96,152,0.14);
}
.single-featured img { display: block; width: 100%; height: auto; }

.single-featured-placeholder {
  background:
    radial-gradient(ellipse at 25% 25%, rgba(248,240,16,0.20), transparent 55%),
    radial-gradient(ellipse at 75% 75%, rgba(0,96,152,0.10), transparent 60%),
    var(--azul-pale);
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.single-featured-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
}
.single-featured-placeholder img {
  width: auto;
  max-height: 140px;
  opacity: 0.65;
}
.single-featured-cat {
  display: inline-block;
  padding: 6px 16px;
  background: var(--branco);
  color: var(--azul);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0,96,152,0.12);
}

/* Entry-content padronizado para corpo do post */
.entry-content {
  color: var(--texto-med);
  line-height: 1.85;
  font-size: 1.05rem;
}
.entry-content h2 { font-size: 1.55rem; margin: 32px 0 14px; color: var(--texto); }
.entry-content h3 { font-size: 1.22rem; margin: 28px 0 12px; color: var(--texto); }
.entry-content p  { margin: 0 0 18px; }
.entry-content p:first-child {
  font-size: 1.18rem;
  color: var(--texto);
  line-height: 1.7;
  font-weight: 500;
}
.entry-content strong { color: var(--texto); }
.entry-content a { color: var(--azul); border-bottom: 1px solid var(--azul-pale); }
.entry-content a:hover { background: var(--azul-pale); }

/* Navegação entre posts */
.single-nav {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--cinza-claro);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.single-nav > .btn { grid-column: 1 / -1; justify-self: center; }
.single-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--branco);
  border: 1.5px solid var(--cinza-claro);
  text-decoration: none;
  color: var(--texto);
  transition: var(--transition);
}
.single-nav-link.is-right { text-align: right; }
.single-nav-link small {
  color: var(--azul);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.single-nav-link strong { font-size: 0.95rem; line-height: 1.4; color: var(--texto); }
.single-nav-link:hover {
  border-color: var(--azul);
  background: var(--azul-pale);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .single-nav { grid-template-columns: 1fr; }
  .single-nav-link.is-right { text-align: left; }
  .single-featured-placeholder { aspect-ratio: 4 / 3; }
}

/* ===========================
   HERO SLIDER ROTATIVO
=========================== */
.hero-slider .hero-content { position: relative; min-height: 360px; }
.hero-slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(10px);
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  justify-content: flex-start;
}
.hero-dot {
  width: 38px;
  height: 6px;
  border-radius: 3px;
  border: 0;
  background: var(--azul-pale);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  padding: 0;
}
.hero-dot.is-active {
  background: var(--azul);
  width: 56px;
}
.hero-dot:hover { background: var(--azul-claro); }

/* ===========================
   PARCEIROS — GRID DE LOGOS
=========================== */
.parceiros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.parceiro-logo {
  background: var(--branco);
  border: 1px solid var(--cinza-claro);
  border-radius: var(--radius);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--azul);
  font-size: 1rem;
  line-height: 1.25;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.parceiro-logo small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--texto-med);
  margin-top: 4px;
}
.parceiro-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}
.parceiro-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--azul-pale);
}

/* ===========================
   CAMPANHAS
=========================== */
.campanhas { background: var(--cinza-claro); }

/* ===========================
   TRANSPARÊNCIA — DOWNLOAD CARDS
=========================== */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.doc-card {
  background: var(--branco);
  border: 1px solid var(--cinza-claro);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: inherit;
}
.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--azul);
}
.doc-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.doc-card-body strong {
  display: block;
  font-family: var(--font-head);
  color: var(--azul);
  margin-bottom: 4px;
}
.doc-card-body span {
  font-size: 0.85rem;
  color: var(--texto-med);
}

/* ===========================
   DOC CARDS (Transparência) — botões em vez de <a>
=========================== */
button.doc-card {
  font-family: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  border: 1px solid var(--cinza-claro);
}
button.doc-card.is-disabled,
button.doc-card[disabled] { opacity: 0.55; cursor: not-allowed; }
.doc-card-action {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--azul);
}
.doc-card-warn {
  color: #9A6B00;
  font-size: 0.78rem;
  display: block;
  margin-top: 4px;
}

/* ===========================
   MODAL DE VISUALIZAÇÃO DE DOCUMENTO (PDF view-only)
=========================== */
.doc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.doc-modal[aria-hidden="false"] {
  display: flex;
  animation: docFadeIn 0.22s ease;
}
@keyframes docFadeIn { from { opacity: 0; } to { opacity: 1; } }
.doc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,30,60,0.78);
  backdrop-filter: blur(4px);
}
.doc-modal-content {
  position: relative;
  background: var(--branco);
  border-radius: 18px;
  width: 100%;
  max-width: 980px;
  height: calc(100vh - 48px);
  max-height: 900px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 72px rgba(0,0,0,0.4);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
.doc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--cinza-claro);
  background: var(--azul-pale);
}
.doc-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--azul-escuro);
  font-family: var(--font-head);
}
.doc-modal-close {
  background: var(--branco);
  border: 1px solid var(--cinza-claro);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--texto);
  cursor: pointer;
  transition: var(--transition);
}
.doc-modal-close:hover {
  background: var(--azul);
  color: var(--branco);
  border-color: var(--azul);
}
.doc-modal-body {
  flex: 1;
  background: #525659;     /* fundo escuro tipo viewer de PDF */
  overflow: hidden;
  position: relative;
}
.doc-modal-body iframe,
.doc-modal-body object {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #525659;
}
.doc-loading {
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 60px 20px;
  font-size: 0.95rem;
}
.doc-fallback {
  color: var(--branco);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.95rem;
}
.doc-fallback a {
  color: var(--amarelo);
  text-decoration: underline;
  font-weight: 600;
}
.doc-modal-footer {
  padding: 12px 22px;
  background: var(--cinza-claro);
  font-size: 0.78rem;
  color: var(--texto-med);
  border-top: 1px solid #E5E7EB;
}
.doc-modal-footer a { color: var(--azul); }

@media (max-width: 640px) {
  .doc-modal { padding: 0; }
  .doc-modal-content { border-radius: 0; height: 100vh; max-height: none; }
}

/* ===========================
   FORMULÁRIO DE VOLUNTÁRIO/PARCEIRO
=========================== */
/* Forms — design system unificado */
.contact-form {
  background: var(--branco);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 12px 40px rgba(0,96,152,0.10);
  border: 1px solid rgba(0,96,152,0.06);
}
.contact-form > h3 {
  font-family: var(--font-head);
  color: var(--azul);
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.contact-form h4 {
  margin-top: 22px;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--azul);
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--azul-pale);
  margin-bottom: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
}
.form-grid .field-full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--texto);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1.5px solid #E0E5EB;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--texto);
  background: var(--branco);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { height: auto; min-height: 100px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #9CA3AF; }
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: #C6D2DD; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px var(--azul-pale);
}
.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.form-checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cinza-claro);
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.86rem;
  margin: 0;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.form-checkbox-group label:hover { background: var(--azul-pale); border-color: rgba(0,96,152,0.2); }
.form-checkbox-group input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--azul);
  margin: 0;
}
.form-feedback {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ===========================
   REGRAS DE VISITAÇÃO
=========================== */
.regras-list {
  background: var(--azul-pale);
  border-left: 4px solid var(--azul);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}
.regras-list h3 {
  margin-top: 0;
  color: var(--azul);
  font-family: var(--font-head);
}
.regras-list ul { margin: 12px 0 0 20px; color: var(--texto-med); }
.regras-list li { margin-bottom: 6px; }

/* ===========================
   RESPONSIVO EXTRA
=========================== */
@media (max-width: 1024px) {
  .parceiros-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .blog-layout    { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .timeline-item  { flex-direction: row; }
  .parceiros-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid      { grid-template-columns: 1fr; }
  .hero-slider .hero-content { min-height: 460px; }
}
@media (max-width: 480px) {
  .gallery-grid   { grid-template-columns: 1fr; }
  .parceiros-grid { grid-template-columns: repeat(2, 1fr); }
}
