*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:         #1396C8;
  --blue-dark:    #0d74a0;
  --yellow:       #F5C835;
  --green:        #7DC142;
  --coral:        #E87040;
  --dark:         #0d1b2a;
  --primary:      #1396C8;
  --primary-dark: #0d74a0;
  --text:         #1a2332;
  --text-muted:   #5f7080;
  --bg:           #ffffff;
  --bg-alt:       #f0f8ff;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(19, 150, 200, 0.10);
  --shadow-hover: 0 14px 40px rgba(19, 150, 200, 0.20);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="left"] {
  transform: translateX(-28px);
}
[data-animate="left"].is-visible {
  transform: translateX(0);
}
[data-animate="scale"] {
  transform: scale(0.94) translateY(16px);
}
[data-animate="scale"].is-visible {
  transform: scale(1) translateY(0);
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-stagger].is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.00s; }
[data-stagger].is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.10s; }
[data-stagger].is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.20s; }
[data-stagger].is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.30s; }
[data-stagger].is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.40s; }
[data-stagger].is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.50s; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(19, 150, 200, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.nav__logo img {
  height: 38px;
  width: auto;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 28px;
}
.nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav__links a:hover { color: var(--blue); }
.nav__links a:hover::after { width: 100%; }

.nav__menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.nav__mobile {
  display: none;
  list-style: none;
  flex-direction: column;
  padding: 12px 24px 18px;
  gap: 0;
  border-top: 1px solid rgba(19, 150, 200, 0.1);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid #f0f4f8;
  transition: color 0.2s;
}
.nav__mobile a:hover { color: var(--blue); }

/* ===== HERO ===== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/banner.png');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  transition: transform 9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.hero__bg.loaded { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13, 27, 42, 0.78) 0%,
    rgba(13, 27, 42, 0.52) 50%,
    rgba(13, 27, 42, 0.82) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}

.hero__logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 24px;
  animation: fadeIn 0.9s ease 0.1s both;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

.hero__frase {
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
  animation: fadeIn 0.9s ease 0.3s both;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
  animation: fadeUp 0.85s ease 0.55s both;
}

.hero__sub {
  font-size: 1.15rem;
  opacity: 0.88;
  margin-bottom: 44px;
  animation: fadeUp 0.85s ease 0.75s both;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.85s ease 0.95s both;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  animation: fadeIn 1s ease 1.6s both;
  z-index: 1;
  transition: color 0.2s;
  border: none;
  background: none;
}
.hero__scroll:hover { color: rgba(255, 255, 255, 0.85); }

.hero__scroll-arrow {
  font-size: 1.2rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: inherit;
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(245, 200, 53, 0.38);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(245, 200, 53, 0.50);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.60);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }

.section__title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 44px;
  display: inline-block;
  color: var(--text);
}
.section__title::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  background: linear-gradient(to right, var(--blue), var(--green));
  border-radius: 2px;
  margin-top: 10px;
}

.loading { color: var(--text-muted); font-style: italic; }

/* ===== SOBRE ===== */
.sobre__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.sobre__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sobre__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.sobre__card:nth-child(1)::before { background: var(--blue); }
.sobre__card:nth-child(2)::before { background: var(--yellow); }
.sobre__card:nth-child(3)::before { background: var(--green); }

.sobre__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.sobre__card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.sobre__card:nth-child(1) h3 { color: var(--blue); }
.sobre__card:nth-child(2) h3 { color: #b8940a; }
.sobre__card:nth-child(3) h3 { color: #5a9e2a; }

.sobre__card p { color: var(--text-muted); line-height: 1.72; white-space: pre-line; }

/* ===== PROGRAMAÇÃO ===== */
.prog__grupo { margin-bottom: 40px; }

.prog__local {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(19, 150, 200, 0.18);
}
.prog__local::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.prog__itens {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prog__item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
  flex-wrap: wrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.prog__item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

.prog__dia   { font-weight: 600; min-width: 94px; color: var(--text); }
.prog__horario { color: var(--blue); font-weight: 700; font-size: 1.1rem; min-width: 68px; }
.prog__desc  { color: var(--text-muted); font-size: 0.9rem; flex: 1; }

/* ===== CÉLULAS ===== */
.section__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
  text-align: center;
}

/* Carrossel */
.carrossel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carrossel__viewport {
  flex: 1;
  overflow: hidden;
}

.carrossel__track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carrossel__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carrossel__btn:hover:not(:disabled) { background: var(--blue); color: #fff; }
.carrossel__btn:disabled { opacity: 0.3; cursor: default; }

.carrossel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carrossel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(19, 150, 200, 0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.carrossel__dot.active { background: var(--blue); transform: scale(1.3); }

/* Cards de célula */
.celula__card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  background: var(--bg);
  border: 1.5px solid rgba(19, 150, 200, 0.15);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.celula__card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.celula__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin-bottom: 4px;
}
.celula__logo img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.celula__logo ion-icon {
  font-size: 3rem;
  color: var(--blue);
  opacity: 0.4;
}

.celula__nome {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
}

.celula__info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.celula__info ion-icon { font-size: 1rem; color: var(--blue); flex-shrink: 0; }

.celula__wpp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 18px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}
.celula__wpp ion-icon { font-size: 1.1rem; }
.celula__wpp:hover { background: #1da851; transform: translateY(-2px); }

@media (max-width: 899px) {
  .celula__card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 599px) {
  .celula__card { flex: 0 0 100%; }
}

.celulas__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.celulas__card {
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(19, 150, 200, 0.28);
  position: relative;
  overflow: hidden;
}
.celulas__card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.celulas__card::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(125, 193, 66, 0.18);
}

.celulas__card ion-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
  position: relative;
  z-index: 1;
}
.celulas__card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; position: relative; z-index: 1; }
.celulas__card p { opacity: 0.88; line-height: 1.65; position: relative; z-index: 1; }
.celulas__card .btn {
  margin-top: 24px;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(245, 200, 53, 0.40);
  position: relative;
  z-index: 1;
}
.celulas__card .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(245, 200, 53, 0.52);
}

.celulas__texto p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.78;
}

/* ===== AVISOS ===== */
.avisos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.aviso__card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.aviso__card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
}

.aviso__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.aviso__body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aviso__body h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.aviso__body p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; flex: 1; }

.aviso__link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.aviso__link:hover { gap: 10px; }

/* ===== CONTATO ===== */
.locais__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.local__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 28px;
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.local__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.local__card h3 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.local__card p  { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 4px; }

.mapas__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.mapa__wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mapa__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  background: var(--bg-alt);
  border-bottom: 2px solid rgba(19, 150, 200, 0.12);
}
.mapa__wrapper iframe { width: 100%; height: 280px; border: none; display: block; }

.contato__redes {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

.rede__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--blue);
  padding: 12px 28px;
  border-radius: 12px;
  border: 2px solid var(--blue);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.rede__link ion-icon {
  font-size: 1.4rem;
}
.rede__link:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.40);
  text-align: center;
  padding: 32px 0;
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav__links  { display: none; }
  .nav__menu   { display: block; }
  .celulas__inner { grid-template-columns: 1fr; gap: 32px; }
  .mapas__grid { grid-template-columns: 1fr; }
  .hero__ctas  { flex-direction: column; align-items: center; }
  .section     { padding: 64px 0; }
  .hero__scroll { display: none; }
}
