

html { overflow-x: hidden; }
body {
  width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

/* ================================================
   HERO - FULL BLEED COM SOBREPOSIÇÃO PREMIUM
================================================ */
.hero {
  position: relative;
  width: auto;
  height: 50vh; height: 50dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #091510;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 1;
  filter: none;
  transition: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    168deg,
    rgba(5,20,12,0.08) 0%,
    rgba(5,20,12,0.48) 45%,
    rgba(5,20,12,0.87) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 3rem;
  color: white;
  width: 100%;
  max-width: 800px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  margin: 0;
  text-align: left;
  display: block;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(28,182,125,0.16);
  border: 1px solid rgba(28,182,125,0.38);
  color: #86efbc;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.27rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 0.9rem;
}
.hero-copy h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.85rem, 6.5vw, 3.6rem);
  font-weight: 900;
  margin: 0 0 0.75rem;
  color: #ffffff;
  letter-spacing: -0.026em;
  line-height: 1.06;
  text-shadow: none;
}
.hero-em {
  font-style: normal;
  color: #6ee7b7;
}
.lead {
  font-size: clamp(0.87rem, 2.1vw, 1.02rem);
  color: rgba(255,255,255,0.76);
  margin: 0 0 1.6rem;
  max-width: 46ch;
  line-height: 1.57;
  font-family: 'Inter', sans-serif;
}
.hero-ctas {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0;
  justify-content: flex-start;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #1cb67d;
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.72rem 1.38rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
  white-space: nowrap;
  letter-spacing: 0.01em;
  font-family: 'Inter', sans-serif;
}
.hero-btn-primary:hover { background: #14a368; transform: translateY(-2px); }
.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.72rem 1.38rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.hero-btn-ghost:hover { background: rgba(255,255,255,0.2); color: white; }
.cta-path { display: none; }

/* Faixa de ação (inscrição e contactos) */
@media (max-width: 600px) { .home-cta-actions { width: 100%; } .home-cta-btn { flex: 1 1 100%; } }

/* Botões */
.btn {
  display: inline-block;
  padding: .7rem 1.3rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  transition: background .18s, color .18s, box-shadow .18s, transform .18s;
  border: none;
}
.btn.primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn.primary:hover, .btn.primary:focus {
  background: linear-gradient(135deg, #0b3d2e 0%, #1cb67d 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-hover);
}
/* .btn.ghost removido para evitar conflito com modal revolucionário */
.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: 16px;
}

/* ================================================
   UNIDADES - CARDS COMPACTOS E MODERNOS
================================================ */
.modern-units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.unit {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15,23,42,0.06);
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex;
  flex-direction: column;
  border: 1px solid #f1f5f9;
  border-bottom: 4px solid transparent;
  cursor: pointer;
}
.unit:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(15,23,42,0.12);
}
.unit:active { transform: scale(0.97); }
.unit a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 1.5rem 1rem 1.3rem;
  gap: 0.7rem;
  height: 100%;
}
.unit-media {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.03);
  overflow: hidden;
  flex-shrink: 0;
}
.unit-media img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transition: transform 0.2s;
}
.unit:hover .unit-media img { transform: scale(1.1); }
.unit-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: #f8fafc;
  padding: 0.3rem;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 16px 16px;
  margin: 0;
  border-left: 3px solid transparent;
}
.unit h3 {
  margin: 0;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0;
}
.unit .muted {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}
.unit .unit-icon { display: none; }
.unit-media::after { display: none; }

/* Cores por unidade */
.unit-lobitos { border-bottom-color: #fbbf24; }
.unit-lobitos .unit-media { background: rgba(251,191,36,0.08); }
.unit-lobitos .unit-body { border-left-color: #fbbf24; }
.unit-lobitos h3 { color: #1e293b; }
.unit-lobitos .muted { color: #64748b; }

/* Exploradores - verde */
.unit-exploradores { border-bottom-color: #1cb67d; }
.unit-exploradores .unit-media { background: rgba(28,182,125,0.08); }
.unit-exploradores .unit-body { border-left-color: #1cb67d; }
.unit-exploradores h3 { color: #1e293b; }
.unit-exploradores .muted { color: #64748b; }

/* Pioneiros - azul */
.unit-pioneiros { border-bottom-color: #3b82f6; }
.unit-pioneiros .unit-media { background: rgba(59,130,246,0.07); }
.unit-pioneiros .unit-body { border-left-color: #3b82f6; }
.unit-pioneiros h3 { color: #1e293b; }
.unit-pioneiros .muted { color: #64748b; }

/* Caminheiros - vermelho */
.unit-caminheiros { border-bottom-color: #ef4444; }
.unit-caminheiros .unit-media { background: rgba(239,68,68,0.07); }
.unit-caminheiros .unit-body { border-left-color: #ef4444; }
.unit-caminheiros h3 { color: #1e293b; }
.unit-caminheiros .muted { color: #64748b; }

/* Pioneiros - azul */
.unit-pioneiros { border-bottom-color: #3b82f6; }
.unit-pioneiros .unit-media { background: rgba(59,130,246,0.09); }
.unit-pioneiros h3 { color: #1e293b; }
.unit-pioneiros .muted { color: #64748b; }

/* Caminheiros - vermelho */
.unit-caminheiros { border-bottom-color: #ef4444; }
.unit-caminheiros .unit-media { background: rgba(239,68,68,0.08); }
.unit-caminheiros h3 { color: #1e293b; }
.unit-caminheiros .muted { color: #64748b; }

/* Footer compacto, robusto, moderno, bem estruturado e estilizado */

/* Editor mode: estilos modernos e agradáveis para forms/banners adicionados em tela */
body.editor-mode {
  --editor-panel-bg: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  --editor-accent: #0b5f3a;
}
.form-modern{
  background: var(--editor-panel-bg);
  border: 1px solid rgba(16,32,64,0.06);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(16,32,64,0.08);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1rem;
}
.form-modern .form-row{ display:flex; flex-direction:column; gap:.35rem; }
.form-modern label span{ font-weight:700; color:var(--green-dark); }
.form-modern input[type="text"], .form-modern input[type="date"], .form-modern input[type="time"], .form-modern textarea, .form-modern input[type="file"]{
  padding: .6rem .8rem;
  border-radius: 10px;
  border: 1px solid rgba(16,32,64,0.08);
  background: #fff;
  font-size: 0.98rem;
  box-shadow: inset 0 2px 8px rgba(16,32,64,0.03);
}
.form-modern textarea{ min-height:120px; resize:vertical; }
.form-modern .checkbox-group{ display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; }
.form-modern .checkbox-group label{ background: rgba(11,95,58,0.04); padding:.45rem .6rem; border-radius:8px; cursor:pointer; }
.form-modern .muted{ color:var(--muted); font-size:.92rem; }
.form-actions{ display:flex; gap:.6rem; align-items:center; }
.form-actions .btn.primary{ padding:.62rem 1rem; border-radius:10px; box-shadow: 0 8px 28px rgba(11,95,58,0.08); }
.form-actions .btn.ghost{ background:transparent; border:1px solid rgba(16,32,64,0.06); color:var(--green-dark); }

/* Modal para formulário de atividades */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16,32,64,0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(16,32,64,0.20);
  max-width: 600px;
  width: calc(100% - 2rem);
  max-height: 90vh; max-height: 90dvh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform .3s ease;
}
.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}
.modal-header {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}
.modal-body {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
}
.form-compact {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.form-compact .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.form-compact .form-row-inline {
  display: flex;
  gap: 0.8rem;
}
.form-compact .form-row-inline > div {
  flex: 1;
}
.form-compact label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
}
.form-compact input, .form-compact textarea, .form-compact select {
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(16,32,64,0.1);
  background: #fff;
  font-size: 0.9rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-compact input:focus, .form-compact textarea:focus, .form-compact select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11,95,58,0.1);
}
.form-compact .checkbox-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.25rem;
}
.form-compact .checkbox-group label {
  background: rgba(11,95,58,0.06);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: background .2s;
}
.form-compact .checkbox-group label:hover {
  background: rgba(11,95,58,0.12);
}
.form-compact .checkbox-group input[type="checkbox"] {
  margin: 0;
}

/* ================================================
   CARDS DE ATIVIDADE - PREMIUM REDESIGN
================================================ */
.activity-card-modern {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e8ecf3;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(15,23,42,0.07);
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  position: relative;
  height: 100%;
  width: 100%;
  max-width: none;
  padding: 0;
}
.activity-card-modern::after { display: none; }
.activity-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.13);
}

.card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  gap: 0;
  line-height: inherit;
  box-shadow: none;
}

.card-image-section {
  position: relative;
  width: 100%;
  height: 148px;
  flex-shrink: 0;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.card-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 1rem;
}

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(15,23,42,0.05) 100%);
  pointer-events: none;
}

.card-date-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  color: #065f46;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.24rem 0.62rem;
  border-radius: 100px;
  border: 1px solid rgba(6,95,70,0.13);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.card-content-section {
  flex: 1;
  padding: 1rem 1rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  background: none;
}

.card-content-header {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.card-title-modern {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.24;
  letter-spacing: -0.01em;
  font-family: 'Inter', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-sections-modern {
  display: flex;
  gap: 0.28rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.52rem;
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  box-shadow: none;
}
.section-icon {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}
.section-badge.section-lobitos  { background: rgba(251,191,36,0.15); color: #92400e; }
.section-badge.section-lobitos .section-icon  { background: #fbbf24; }
.section-badge.section-exploradores { background: rgba(28,182,125,0.12); color: #065f46; }
.section-badge.section-exploradores .section-icon { background: #1cb67d; }
.section-badge.section-pioneiros { background: rgba(59,130,246,0.1); color: #1d4ed8; }
.section-badge.section-pioneiros .section-icon { background: #3b82f6; }
.section-badge.section-caminheiros { background: rgba(239,68,68,0.1); color: #b91c1c; }
.section-badge.section-caminheiros .section-icon { background: #ef4444; }
.section-badge.section-chefia { background: rgba(15,20,40,0.07); color: #1e293b; }
.section-badge.section-chefia .section-icon { background: #475569; }
.section-badge.section-agrupamento { background: rgba(11,95,58,0.18); color: #052e18; font-weight: 800; }
.section-badge.section-agrupamento .section-icon { background: #0b5f3a; }

.card-meta-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0;
}
.meta-info-item {
  display: flex;
  align-items: center;
  gap: 0.36rem;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0;
  background: none;
  border-radius: 0;
  width: auto;
}
.meta-icon {
  font-size: 0.82rem;
  color: #94a3b8;
  flex-shrink: 0;
  margin-right: 0;
  width: auto;
  height: auto;
}
.card-description {
  color: #64748b;
  font-size: 0.77rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin: 0;
  padding: 0;
  box-shadow: none;
  background: none;
  border-radius: 0;
  height: auto;
}
.card-footer { margin-top: 0; padding-top: 0; }
.editor-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
.btn-editor {
  width: 24px; height: 24px;
  border: none; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .14s ease;
}
.btn-editor svg { width: 10px; height: 10px; }
.btn-edit { background: rgba(34,197,94,0.08); color: #16a34a; border: 1px solid rgba(34,197,94,0.14); }
.btn-edit:hover { background: #16a34a; color: #fff; }
.btn-delete { background: rgba(239,68,68,0.08); color: #dc2626; border: 1px solid rgba(239,68,68,0.14); }
.btn-delete:hover { background: #dc2626; color: #fff; }

/* ================================================
   EVENTOS - GRID + CARROSSEL
================================================ */
.events-carousel {
  position: relative;
  width: 100%;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
  justify-items: stretch;
  width: 100%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 100px;
  border: none;
  background: rgba(15,23,42,0.55);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15,23,42,0.2);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
  opacity: 0;
  pointer-events: none;
}
.carousel-arrow.visible { opacity: 1; pointer-events: auto; }
.carousel-arrow:hover:not(:disabled) { background: rgba(15,23,42,0.8); transform: translateY(-50%) scale(1.06); }
.carousel-arrow:disabled { opacity: 0.25; cursor: not-allowed; box-shadow: none; }
.carousel-arrow-prev { left: -14px; }
.carousel-arrow-next { right: -14px; }
.events-grid::-webkit-scrollbar { height: 6px; }
.events-grid::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.2); border-radius: 100px; 
  z-index: 5;
  transition: background .2s, color .2s, transform .2s;
  opacity: 0;
  pointer-events: none;
}

.carousel-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Media Queries para Responsividade */
@media (max-width: 1200px) {
  .container { max-width: 100%; padding: 1rem; }
  
  .modern-units { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
  .events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
}

@media (max-width: 1100px) {
  .modern-units { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-image-section { height: 130px; }
  .container { padding: 1.1rem; }
}

@media (max-width: 900px) {
  
  
  
  
  
  
  .hero { height: 40vh; height: 40dvh; min-height: 300px; }
  .hero-content { padding: 0 1.2rem 2.2rem; }
  h2 { font-size: 1.8rem; }
}

@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: unset;
    grid-auto-flow: column;
    grid-auto-columns: min(74vw, 290px);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding: 0.75rem;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem 1.2rem;
    margin: 0 -0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .events-grid::-webkit-scrollbar { display: none; }
  .carousel-arrow {
    display: flex;
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }
  .carousel-arrow-prev { left: 4px; }
  .carousel-arrow-next { right: 4px; }
  .activity-card-modern {
    min-width: 0;
    scroll-snap-align: start;
    padding: 0;
  }
  .activity-card-modern::after { display: none; }
  .card-inner {
    flex-direction: column;
    padding: 0;
    gap: 0;
    border-radius: 16px;
    box-shadow: none;
    line-height: inherit;
  }
  .card-image-section {
    height: 120px;
    padding: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }
  .card-hero-img {
    border-radius: 0;
    object-fit: contain;
    padding: 0.8rem;
  }
  .card-date-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.55rem;
  }
  .card-content-section {
    padding: 0.75rem 0.85rem 0.8rem;
    gap: 0.35rem;
  }
  .card-meta-info { flex-direction: column; align-items: flex-start; gap: 0.18rem; }
  .meta-info-item {
    font-size: 0.72rem;
    padding: 0;
    background: none;
    border-radius: 0;
    width: auto;
  }
  .card-description {
    font-size: 0.73rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    height: auto;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
}

@media (max-width: 600px) {
  .events-grid {
    grid-auto-columns: min(78vw, 280px);
    gap: 0.65rem;
    padding: 0.4rem 0.65rem 1rem;
    margin: 0 -0.65rem;
  }
  .card-image-section { height: 110px; }
  .card-content-section { padding: 0.7rem 0.75rem 0.75rem; }
  .card-description { font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .events-grid {
    grid-auto-columns: min(82vw, 260px);
    gap: 0.55rem;
  }
  .card-image-section { height: 100px; }
  .card-description { font-size: 0.7rem; }
}
@media (max-width: 700px) {
  
  
  
  
  
  .hero { height: 40vh; height: 40dvh; min-height: 280px; }
  .hero-content { padding: 0 1rem 2rem; }
  h2 { font-size: 1.6rem; }
  .modern-units {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .unit a { padding: 0.8rem 0; }
  .unit-media { width: 68px; height: 68px; }
  .unit-media img { width: 54px; height: 54px; }
  .unit h3 { font-size: 0.95rem; }
  .unit .muted { font-size: 0.76rem; }
  
  
  
  
  
  
  
  .inspiration-section { padding: 1.4rem 0.4rem; }
  .inspiration-content {
    padding: 0.9rem 1rem;
    width: min(92%, 460px);
    margin-inline: auto;
    border-radius: 18px;
  }
  .inspiration-quote { font-size: 0.95rem; line-height: 1.45; }
  .inspiration-author { font-size: 0.78rem; gap: 0.2rem; }
}

@media (max-width: 600px) {
  .container { padding: 0.8rem; }
  
  
  
  
  
  
  
  
  
  .inspiration-content::before{ display:none; }
  .inspiration-content {
    padding: 0.8rem 0.9rem;
    width: min(94%, 420px);
  }
  .inspiration-quote { font-size: 0.9rem; }
  .inspiration-author { font-size: 0.76rem; }
}

@media (max-width: 479px) {
  .container { padding: 0.6rem; }
  
  
  
  
  .btn-editor { width: 28px; height: 28px; }
  .btn-editor svg { width: 12px; height: 12px; }
  h2 { font-size: 1.4rem; }
  .hero { height: 40vh; height: 40dvh; min-height: 260px; }
  .hero-content { padding: 0 0.9rem 1.8rem; }
  .inspiration-section { padding: 1.1rem 0.3rem; }
  .inspiration-content {
    padding: 0.7rem 0.8rem;
    width: min(96%, 360px);
  }
  .inspiration-quote { font-size: 0.85rem; }
  .inspiration-author { font-size: 0.72rem; }
}

@media (max-width: 400px) {
  .hero { height: 40vh; height: 40dvh; min-height: 240px; }
  .hero-content { padding: 0 0.8rem 1.6rem; }
  .form-modern { padding: 0.8rem; gap: .4rem; }
  .form-modern input { font-size: 0.9rem; padding: .5rem .6rem; }
  .checkbox-group { gap: .4rem; }
  .btn-editor { width: 24px; height: 24px; }
  .btn-editor svg { width: 10px; height: 10px; }
  
  
  
  
  
}

/* Card hover redefined in main block above */

/* Modal pequeno de confirmação secreta (press-and-hold) */
.secret-overlay {
  /* centered modal */
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s cubic-bezier(.4,.8,.4,1), transform .3s cubic-bezier(.4,.8,.4,1);
  transform: scale(.98);
  background: rgba(16,32,64,0.18);
  animation: fadeInModal 1.2s;
}
.secret-overlay.show {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1);
  animation: fadeInModal 1.2s;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}
.secret-card {
  background: linear-gradient(120deg,#e6f0ff 0%,#fff 100%);
  color: #102040;
  padding: 2.2rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(16,32,64,0.18);
  border: 1px solid rgba(16,32,64,0.06);
  font-weight: 900;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-size: 2.1rem;
  min-width: 340px;
  max-width: 600px;
  text-align: center;
  justify-content: center;
  animation: fadeInModal 1.2s;
}
.secret-card span {
  font-size: 2.3rem;
  margin-right: 0.7rem;
}
@media (max-width: 700px) {
  .secret-card {
    font-size: 1.2rem;
    padding: 1.2rem 0.7rem;
    min-width: 180px;
  }
  .secret-card span {
    font-size: 1.5rem;
  }
}

/* ================================================
   FILTRO DE ATIVIDADES - CAIXA DE ESCOLHA
================================================ */
.activity-filter-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.activity-filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}
#activityFilter {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 220px;
  max-width: 100%;
  padding: 0.52rem 2.2rem 0.52rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background:
    linear-gradient(45deg, transparent 50%, #475569 50%) calc(100% - 17px) calc(50% - 2px) / 7px 7px no-repeat,
    linear-gradient(135deg, #475569 50%, transparent 50%) calc(100% - 12px) calc(50% - 2px) / 7px 7px no-repeat,
    #f8fafc;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
#activityFilter:hover { border-color: #94a3b8; }
#activityFilter:focus {
  outline: none;
  border-color: #0b5f3a;
  box-shadow: 0 0 0 3px rgba(11,95,58,0.16);
  background-color: #fff;
}

.activities-more-wrap {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
#viewAllActivitiesBtn {
  display: none;
  border: 1px solid #0b5f3a;
  background: #ffffff;
  color: #0b5f3a;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 999px;
  padding: 0.58rem 1.2rem;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(11,95,58,0.12);
}
#viewAllActivitiesBtn:hover {
  background: #0b5f3a;
  color: #fff;
  transform: translateY(-1px);
}

.activities-explorer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(4px);
}
.activities-explorer-overlay.show { display: flex; }
.activities-explorer-modal {
  width: min(1180px, 98vw);
  max-height: 92vh; max-height: 92dvh;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 20%);
  border: 1px solid #dbe4ef;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.33);
  display: flex;
  flex-direction: column;
}
.activities-explorer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}
.activities-explorer-title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: #0f172a;
  letter-spacing: 0.01em;
}
.activities-explorer-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.activities-explorer-controls label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
#popupActivityFilter {
  min-width: 190px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  color: #0f172a;
  font-weight: 600;
}
.activities-explorer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: all 0.15s ease;
}
.activities-explorer-close:hover { background: #0f172a; color: #fff; }
.activities-explorer-body {
  overflow: hidden;
  padding: 0.9rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.activities-month-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.15rem;
}
.activities-month-tabs::-webkit-scrollbar { display: none; }
.activities-month-tab {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
}
.activities-month-tab.active {
  border-color: #0b5f3a;
  background: #0b5f3a;
  color: #fff;
  box-shadow: 0 4px 10px rgba(11,95,58,0.24);
}
.activities-month-slider {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  min-height: 280px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.activities-month-slider::-webkit-scrollbar { display: none; }
.activities-month-page {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  padding: 0.95rem;
  box-sizing: border-box;
  overflow-y: auto;
  max-height: 62vh; max-height: 62dvh;
}
.activities-month-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}
.activities-month-page-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}
.activities-month-page-count {
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
}
.activities-month-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.activities-month-cards .activity-card-modern {
  padding: 0;
}
.activities-month-cards .card-inner {
  border-radius: 16px;
  height: 100%;
}
.activities-month-cards .card-image-section {
  height: 98px;
}
.activities-month-cards .card-hero-img {
  padding: 0.45rem;
  object-fit: contain;
}
.activities-month-cards .card-content-section {
  padding: 0.62rem 0.68rem 0.65rem;
  gap: 0.3rem;
}
.activities-month-cards .card-title-modern {
  font-size: 0.82rem;
  line-height: 1.2;
}
.activities-month-cards .card-date-badge {
  font-size: 0.58rem;
  padding: 0.16rem 0.46rem;
  top: 7px;
  right: 7px;
}
.activities-month-cards .card-sections-modern {
  gap: 0.2rem;
}
.activities-month-cards .section-badge {
  font-size: 0.58rem;
  padding: 0.14rem 0.38rem;
}
.activities-month-cards .meta-info-item {
  font-size: 0.64rem;
  padding: 0.16rem 0.42rem;
}
.activities-month-cards .card-description {
  font-size: 0.68rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.activities-explorer-empty {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  padding: 1.8rem 1.2rem;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}

/* 600px units */
@media (max-width: 600px) {
  .modern-units {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .unit a { padding: 1.1rem 0.75rem 0.95rem; }
  .unit-media { width: 60px; height: 60px; }
  .unit-media img { width: 48px; height: 48px; }
  .unit h3 { font-size: 0.88rem; }
  .unit .muted { font-size: 0.74rem; }
}
@media (max-width: 900px) {
  #viewAllActivitiesBtn { display: none !important; }
  .activities-explorer-modal {
    width: 100%;
    max-height: 96vh; max-height: 96dvh;
    border-radius: 14px;
  }
  .activities-explorer-header {
    padding: 0.8rem 0.9rem;
  }
  .activities-explorer-title { font-size: 0.92rem; }
  .activities-explorer-controls { width: 100%; justify-content: flex-start; }
  #popupActivityFilter { min-width: 150px; }
  .activities-explorer-body { padding: 0.7rem; }
  .activities-month-page { padding: 0.7rem; max-height: 70vh; max-height: 70dvh; }
  .activities-month-cards { grid-template-columns: 1fr; gap: 0.7rem; }
  .activities-month-cards .card-image-section { height: 108px; }
}

/* Faixa de informações sob o hero */
.info-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; max-width: 1240px; margin: 0 auto; padding: .9rem 1.25rem; box-sizing: border-box; color: #2f4a3b; font-size: .95rem; }
.info-strip-list { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.info-strip-list li { display: inline-flex; align-items: center; gap: .55rem; }
.info-strip-list svg { flex: none; color: #0b5f3a; }
.info-strip-list strong { font-weight: 750; color: #12301f; }
.info-strip a { color: inherit; text-decoration: none; }
.info-strip-list a { font-weight: 650; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s cubic-bezier(.22,.8,.24,1); }
.info-strip-list a:hover { background-size: 100% 1px; }
.info-strip-link { font-weight: 750; color: #0b5f3a; padding: .45rem .1rem; }
.info-strip-link span { display: inline-block; transition: transform .3s cubic-bezier(.22,.8,.24,1); }
.info-strip-link:hover span { transform: translateX(4px); }
@media (max-width: 700px) { .info-strip { padding: .85rem 1.1rem; } .info-strip-list { flex-direction: column; align-items: flex-start; gap: .55rem; } }
