
/* ===== ECO-FLAT — regulamento.css (galeria + vídeo + menu CSS-only) ===== */

:root { scroll-behavior: smooth; }
html, body { height: auto !important; overflow: auto !important; }
body.reg-page { background: #fff; color: #333; font-family: Roboto, Arial, sans-serif; }

.container { max-width: 980px; margin: 0 auto; padding: 16px; }
.card { border: 1px solid #eee; border-radius: 14px; padding: 16px; background: #fff; }

/* Header / topo */
.reg-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #eee; }
.reg-header .inner {
  display: grid; grid-template-columns: 44px 1fr 44px;
  align-items: center; gap: 8px; padding: 10px 14px; max-width: 1080px; margin: 0 auto;
}
.reg-header .title { grid-column: 2; text-align: center; }
.reg-header .title img { max-width: 240px; height: auto; }

/* Hamburger (abre via âncora #menu) */
.hamburger {
  display: inline-flex; justify-content: center; align-items: center;
  width: 44px; height: 44px; border: 1px solid #e5e5e5; border-radius: 8px;
  background: #fff; cursor: pointer; text-decoration: none; color: inherit;
}
.hamburger .fa-bars { font-size: 18px; line-height: 1; }
.hamburger:focus-visible { outline: 2px solid #00D3B7; outline-offset: 2px; }
.hamburger:hover { background: #fafafa; }

/* Drawer controlado por :target */
.drawer {
  position: fixed; top: 0; left: 0; height: 100%; width: min(84vw, 340px);
  background: #fff; border-right: 1px solid #eee; padding: 16px;
  transform: translateX(-100%); transition: transform .25s ease;
  z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.drawer h3 { margin: 0 0 8px 0;}
.drawer ul { list-style: none; padding: 0; margin: 0; }
.drawer li { margin: 0; }
.drawer a { display: flex; align-items: center; gap: 8px; padding: 10px 8px; border-radius: 8px; text-decoration: none; color: #333; }
.drawer a:hover { background: #f7f7f7; }
.drawer i { width: 1.25em; text-align: center; }
.drawer:target { transform: translateX(0); }

/* Scrim quando menu aberto */
.scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.28);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 45;
}
.drawer:target + .scrim { opacity: 1; pointer-events: auto; }

/* Submenu local (chips) */
.submenu { border-top: 1px dashed #eee; background: #fff; }
.submenu .wrap {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px;
  max-width: 1080px; margin: 0 auto;
  justify-content: center; align-content: center; /* centralizado */
}
.submenu a {
  display: inline-block; padding: 6px 10px; border: 1px solid #e5e5e5;
  border-radius: 999px; text-decoration: none; color: inherit; font-size: 14px;
}
.submenu a:hover { border-color: #00D3B7; color: #00D3B7; }

/* Título + texto */
#page-title { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.2; margin: 4px 0 12px; color: #222; font-weight: 700; }
.reg-main p { color: #555; font-size: 1rem; line-height: 1.7; }

/* Âncoras com compensação do header fixo */
.anchor-target { scroll-margin-top: 96px; }

/* ==== Galeria (grid) ==== */
.reg-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.reg-gallery img {
  width: 100%; height: auto; border-radius: 12px;
  display: block; cursor: zoom-in;
}

/* ==== Lightbox ==== */
.lb-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center;
  z-index: 100;
}
.lb-backdrop.open { display: flex; }
.lb-stage { position: relative; max-width: 94vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.4); cursor: zoom-out; }
.lb-caption { position: absolute; bottom: -42px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; opacity: .9; }
/* Controles */
.lb-control { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff;
}
.lb-control:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: -56px; }
.lb-next { right: -56px; }
.lb-close { position: absolute; top: -56px; right: 0; width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff;
}

/* Mobile */
@media (max-width: 640px) {
  .reg-header .title img { max-width: 200px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 8px; right: 8px; }
  .lb-stage { max-width: 100vw; }
}

/* ==== Vídeo responsivo (16:9) ==== */
.video-container { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* === Shared footer & buttons (consolidated) === */
.reg-footer { border-top: 1px solid #eee; margin-top: 24px; padding: 22px 0; text-align: center; background:#fff; }
.reg-footer .footer-inner { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.reg-footer .wa-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  border: 1px solid #e5e5e5; border-radius: 999px; text-decoration: none; color: inherit;
  margin-bottom: 12px;
}
.reg-footer .wa-btn:hover { border-color: #00D3B7; color: #00D3B7; }
.reg-footer .icons { display: inline-flex; gap: 10px; margin: 8px 0 6px; padding: 0; list-style: none; }
.reg-footer .icons a { border: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #f6f6f6; }
.reg-footer .icons a:hover { background: #eefaf8; color: #00D3B7; }
.reg-footer .copy { font-size: 0.9rem; color: #777; margin-top: 8px; }

/* Generic buttons used across pages */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  border: 1px solid #e5e5e5; border-radius: 999px; text-decoration: none; color: inherit;
}
.btn:hover { border-color: #00D3B7; color: #00D3B7; }
.btn + .btn { margin-left: 8px; }
