/* ========================================
   VARIÁVEIS CSS
   ======================================== */
:root {
  --cor-primaria: #004a99;
  --cor-secundaria: #ddd;
  --cor-destaque: #ffffff;
  --cor-menu: #004a998f;
  --cor-seta: #04305edf;
}

/* ========================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a,
button,
img,
.slide,
.thumbs button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background: #fafafa;
  color: #2c2c2c;
  padding-top: 120px;
  margin: 0;
  padding-bottom: 0;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ========================================
   HEADER
   ======================================== */
header {
  background: var(--cor-primaria);
  color: var(--cor-destaque);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  min-height: 100px;
  box-shadow: 0 2px 16px rgba(0, 74, 153, 0.08);
}

.hamburguer {
  width: 40px;
  height: 30px;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  z-index: 1001;
  flex-shrink: 0;
  margin-right: 1rem;
}

.hamburguer span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--cor-secundaria);
  border-radius: 3px;
  transition: all .25s;
}

.hamburguer.ativo span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburguer.ativo span:nth-child(2) {
  opacity: 0;
}

.hamburguer.ativo span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nome-escola {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 998;
}

.logo-central {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 997;
  pointer-events: none;
}

.logo-central img {
  width: 105px;
  height: 105px;
  object-fit: contain;
  pointer-events: auto;
}

.menu-topo {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 998;
}

.menu-topo ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.menu-topo a {
  color: var(--cor-destaque);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.menu-topo a:hover {
  opacity: 0.8;
}

/* ========================================
   MENU LATERAL
   ======================================== */
#menu-lateral {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: var(--cor-menu);
  backdrop-filter: blur(10px);
  padding-top: 5rem;
  transition: left .28s;
  z-index: 999;
  overflow-y: auto;
  overflow-x: hidden;
}

#menu-lateral.show {
  left: 0;
}

#menu-lateral ul {
  list-style: none;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#menu-lateral a {
  color: var(--cor-destaque);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s;
}

#menu-lateral a:hover {
  opacity: 0.8;
}

/* ========================================
   PAGE HERO COM PARALLAX
   ======================================== */
.page-hero {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  height: 36vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 74, 153, 0.95) 0%, rgba(0, 102, 204, 0.88) 100%);
  border-radius: 16px;
  text-align: center;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 74, 153, 0.12);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  transform: translateZ(-1px) scale(1.1);
  transition: transform 0.1s ease-out;
}

.hero-content {
  position: relative;
  z-index: 1;
  transform: translateZ(20px);
  transition: transform 0.1s ease-out;
}

.page-hero h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

/* ========================================
   LINHA DO TEMPO - NOVA SEÇÃO
   ======================================== */
.timeline-section {
  max-width: 1100px;
  margin: 3rem auto 4rem;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, rgba(0, 74, 153, 0.02) 0%, rgba(0, 150, 255, 0.01) 100%);
  border-radius: 20px;
}

.timeline-header {
  text-align: center;
  margin-bottom: 3rem;
}

.timeline-header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--cor-primaria) 0%, #0066cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.timeline-header p {
  font-size: 1.1rem;
  color: #666;
  font-weight: 400;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--cor-primaria) 10%,
    var(--cor-primaria) 90%,
    transparent 100%
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 100%;
  padding: 2rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: calc(50% + 2rem);
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: calc(50% + 2rem);
  margin-right: 0;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--cor-primaria);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 74, 153, 0.2);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 0 6px rgba(0, 74, 153, 0.3);
}

.timeline-content {
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 74, 153, 0.08);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 74, 153, 0.06);
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--cor-primaria);
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -20px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -20px;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 74, 153, 0.15);
  border-color: rgba(0, 74, 153, 0.15);
}

.timeline-item::before {
  content: attr(data-date);
  position: absolute;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cor-primaria);
  background: rgba(0, 74, 153, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  z-index: 3;
  white-space: nowrap;
}

.timeline-item:nth-child(odd)::before {
  left: calc(50% + 2.5rem);
}

.timeline-item:nth-child(even)::before {
  right: calc(50% + 2.5rem);
}

.timeline-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.timeline-content p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-link {
  display: inline-block;
  color: var(--cor-primaria);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--cor-primaria);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.timeline-link:hover {
  background: var(--cor-primaria);
  color: #fff;
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    right: auto;
  }

  .timeline-item::before {
    left: 60px;
    right: auto;
    top: -1.5rem;
  }

  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 60px;
    right: auto;
  }
}

/* ========================================
   GALERIA / SLIDER
   ======================================== */
.galeria-wrap {
  max-width: 1100px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1rem;
}

.slider {
  width: 100%;
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 74, 153, 0.08), 0 0 0 1px rgba(0, 74, 153, 0.04);
  position: relative;
  background: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 74, 153, 0.12), 0 0 0 1px rgba(0, 74, 153, 0.06);
}

.slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cor-primaria), #0066cc, #00aaff);
  z-index: 10;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider:hover .slide img {
  transform: scale(1.04);
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 0 0 20px 20px;
}

.slide-overlay strong {
  font-size: 1.65rem;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

.slide-overlay div {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
  font-weight: 400;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
}

/* Removendo estilos do antigo card de boas-vindas e adicionando novo design para o card em destaque */

/* Slide Featured - Novo Design Moderno */
.slide-featured {
  position: relative;
  overflow: hidden;
  min-height: 450px;
}

.slide-featured img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider:hover .slide-featured img {
  transform: scale(1.08);
  filter: brightness(0.6);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 74, 153, 0.85) 75%,
    rgba(0, 74, 153, 0.95) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 40px;
  color: #fff;
  z-index: 2;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 193, 7, 0.95));
  color: #1a1a1a;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  width: fit-content;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 4px 24px rgba(255, 215, 0, 0.6);
  }
}

.featured-badge i {
  font-size: 1.1rem;
}

.featured-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-shadow: 2px 4px 24px rgba(0, 0, 0, 0.8);
  animation: slideInUp 0.8s ease both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-description {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 700px;
  text-shadow: 1px 2px 12px rgba(0, 0, 0, 0.6);
  animation: slideInUp 0.8s ease 0.2s both;
}

.featured-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease 0.4s both;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.stat-box:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-box i {
  font-size: 2.5rem;
  opacity: 0.9;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.5);
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsivo para o novo slide featured */
@media (max-width: 768px) {
  .slide-featured {
    min-height: 400px;
  }

  .featured-overlay {
    padding: 32px 24px;
  }

  .featured-title {
    font-size: 2rem;
  }

  .featured-description {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .featured-stats {
    gap: 16px;
  }

  .stat-box {
    padding: 12px 16px;
    gap: 12px;
  }

  .stat-box i {
    font-size: 2rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .slide-featured {
    min-height: 380px;
  }

  .featured-overlay {
    padding: 24px 20px;
  }

  .featured-title {
    font-size: 1.6rem;
  }

  .featured-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .featured-stats {
    gap: 12px;
  }

  .stat-box {
    padding: 10px 14px;
    gap: 10px;
    flex: 1;
    min-width: 140px;
  }

  .stat-box i {
    font-size: 1.8rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .featured-badge {
    font-size: 0.8rem;
    padding: 6px 16px;
  }
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
  background: linear-gradient(to bottom, rgba(0, 74, 153, 0.015) 0%, transparent 100%);
}

.thumbs button {
  border: 1.5px solid rgba(0, 74, 153, 0.1);
  padding: 0;
  width: 100px;
  height: 70px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: #fff;
}

.thumbs button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cor-primaria);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.thumbs button:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 74, 153, 0.15);
  border-color: var(--cor-primaria);
}

.thumbs button:hover::before {
  opacity: 0.15;
}

.thumbs button.active {
  border-color: var(--cor-primaria);
  box-shadow: 0 4px 16px rgba(0, 74, 153, 0.25);
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

/* ========================================
   EVENTOS
   ======================================== */
.eventos-list {
  max-width: 1100px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding: 0 1rem;
}

.evento-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 74, 153, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

.evento-card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.evento-card[data-animate]:nth-child(1) {
  transition-delay: 0.1s;
}
.evento-card[data-animate]:nth-child(2) {
  transition-delay: 0.2s;
}
.evento-card[data-animate]:nth-child(3) {
  transition-delay: 0.3s;
}
.evento-card[data-animate]:nth-child(4) {
  transition-delay: 0.4s;
}
.evento-card[data-animate]:nth-child(5) {
  transition-delay: 0.5s;
}
.evento-card[data-animate]:nth-child(6) {
  transition-delay: 0.6s;
}

.evento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cor-primaria), #0066cc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.evento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 74, 153, 0.15);
  box-shadow: 0 12px 32px rgba(0, 74, 153, 0.1), 0 0 0 1px rgba(0, 74, 153, 0.04);
}

.evento-card:hover::before {
  transform: scaleX(1);
}

.evento-card .evento-body img:first-of-type {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  order: -1;
  margin: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.evento-card:hover .evento-body img:first-of-type {
  transform: scale(1.05);
}

.evento-card .evento-body img:not(:first-of-type) {
  display: none;
}

.evento-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.evento-body h4 {
  color: #1a1a1a;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.evento-body p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.evento-card-destaque {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(0, 74, 153, 0.03) 0%, rgba(0, 150, 255, 0.02) 100%);
  border: 2px solid rgba(0, 74, 153, 0.12);
  box-shadow: 0 8px 32px rgba(0, 74, 153, 0.12);
  position: relative;
  overflow: visible;
}

.evento-card-destaque::before {
  height: 4px;
  background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.evento-card-destaque:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 74, 153, 0.18);
  border-color: rgba(0, 74, 153, 0.2);
}

.evento-card-destaque .evento-body {
  padding: 40px;
}

.destaque-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #1a1a1a;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  letter-spacing: 0.5px;
}

.evento-card-destaque h4 {
  font-size: 2rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--cor-primaria) 0%, #0066cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.evento-card-destaque p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 800px;
}

.retrospectiva-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
}

.retrospectiva-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: default;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  display: block;
}

.evento-card-destaque .retrospectiva-grid img {
  display: block !important;
  order: unset !important;
}

.retrospectiva-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-ver-todos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--cor-primaria);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 74, 153, 0.2);
  margin-top: 8px;
}

.btn-ver-todos::after {
  content: "→";
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-ver-todos:hover {
  background: #0066cc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 74, 153, 0.3);
}

.btn-ver-todos:hover::after {
  transform: translateX(4px);
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox .close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  font-weight: 300;
  line-height: 1;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.lightbox .close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(255, 255, 255, 0.35);
}

.lightbox button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  backdrop-filter: blur(10px);
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.lightbox button:active {
  transform: translateY(-50%) scale(1.05);
}

.lightbox .prev {
  left: 40px;
}

.lightbox .next {
  right: 40px;
}

.lightbox .prev::after,
.lightbox .next::after {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid white;
  border-right: 2px solid white;
  display: block;
  transition: transform 0.3s;
}

.lightbox .prev::after {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.lightbox .next::after {
  transform: rotate(45deg);
  margin-right: 3px;
}

/* ========================================
   MODO APRESENTAÇÃO - SLIDESHOW
   ======================================== */
.slideshow-mode {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 3000;
  animation: fadeIn 0.4s ease;
}

.slideshow-mode.active {
  display: flex;
  flex-direction: column;
}

.slideshow-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 3001;
}

.slideshow-btn {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.slideshow-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.slideshow-btn:active {
  transform: scale(0.95);
}

.slideshow-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 120px;
  gap: 30px;
}

.slideshow-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 65vh;
}

.slideshow-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
  animation: slideIn 0.6s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.slideshow-info {
  text-align: center;
  color: #fff;
  max-width: 800px;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slideshow-info h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
}

.slideshow-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 16px;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
}

.slideshow-counter {
  font-size: 1rem;
  opacity: 0.7;
  font-weight: 500;
  letter-spacing: 1px;
}

.slideshow-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.slideshow-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cor-primaria), #0066cc, #00aaff);
  width: 0%;
  transition: width 0.1s linear;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--cor-primaria);
  color: var(--cor-destaque);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 0;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-conteudo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-logo {
  width: 70px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.25);
}

.footer-nome {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--cor-destaque);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  transform: scale(1.08);
  color: #ffdd57;
}

.direitos {
  margin-top: 18px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ========================================
   BOTÃO VOLTAR AO TOPO
   ======================================== */
#btn-topo {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--cor-seta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, background 0.2s, transform 0.2s;
  cursor: pointer;
  z-index: 1500;
  box-shadow: 0 4px 16px rgba(4, 48, 94, 0.3);
}

#btn-topo.show {
  opacity: 1;
  visibility: visible;
}

#btn-topo:hover {
  background: var(--cor-primaria);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(4, 48, 94, 0.4);
}

/* ========================================
   MEDIA QUERIES - RESPONSIVO
   ======================================== */
@media (max-width: 768px) {
  .evento-card-destaque .evento-body {
    padding: 28px 20px;
  }

  .evento-card-destaque h4 {
    font-size: 1.6rem;
  }

  .retrospectiva-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .retrospectiva-grid img {
    height: 150px;
  }

  .btn-ver-todos {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }

  .slideshow-controls {
    top: 10px;
    right: 10px;
    gap: 6px;
  }

  .slideshow-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .slideshow-content {
    padding: 60px 20px 100px;
    gap: 20px;
  }

  .slideshow-image-container {
    max-height: 50vh;
  }

  .slideshow-info h3 {
    font-size: 1.5rem;
  }

  .slideshow-info p {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 140px;
  }

  header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    padding: 1rem;
    min-height: auto;
    width: 100%;
    align-items: center;
  }

  .hamburguer {
    grid-column: 1;
    grid-row: 1;
    width: 32px;
    height: 28px;
    margin: 0;
    padding: 0;
    align-self: start;
  }

  .hamburguer span {
    height: 3px;
  }

  .logo-central {
    position: static;
    transform: none;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    margin: 0;
  }

  .logo-central img {
    width: 80px;
    height: 80px;
  }

  .nome-escola {
    position: static;
    transform: none;
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.95rem;
    text-align: center;
    padding: 0;
    margin: 0;
    white-space: normal;
    line-height: 1.2;
  }

  .menu-topo {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin: 0.5rem 0 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .menu-topo::-webkit-scrollbar {
    display: none;
  }

  .menu-topo ul {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    margin: 0;
    justify-content: flex-start;
    min-width: max-content;
  }

  .menu-topo li {
    flex-shrink: 0;
  }

  .menu-topo a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    border-radius: 6px;
    transition: background 0.2s;
  }

  .menu-topo a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  #menu-lateral {
    width: 240px;
    left: -240px;
    padding-top: 4rem;
  }

  #menu-lateral ul {
    padding: 1rem;
    gap: 0.6rem;
  }

  #menu-lateral a {
    font-size: 0.95rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .page-hero {
    height: auto;
    min-height: 200px;
    padding: 1.5rem 1rem;
    margin: 4rem 0.5rem 1.5rem;
  }

  .page-hero h2 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .page-hero p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
  }

  .slider {
    border-radius: 16px;
  }

  .slide img {
    height: 280px;
    border-radius: 16px;
  }

  .slide-overlay {
    padding: 20px;
  }

  .slide-overlay strong {
    font-size: 1.3rem;
  }

  .slide-overlay div {
    font-size: 0.9rem;
  }

  .thumbs {
    padding: 16px;
    gap: 8px;
  }

  .thumbs button {
    width: 80px;
    height: 55px;
  }

  .eventos-list {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 1rem;
  }

  .evento-card .evento-body img:first-of-type {
    height: 200px;
  }

  .evento-body {
    padding: 20px;
  }

  .evento-body h4 {
    font-size: 1.1rem;
  }

  .evento-body p {
    font-size: 0.9rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  .footer-nome {
    font-size: 1.2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-links a {
    font-size: 0.95rem;
  }

  #btn-topo {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .lightbox img {
    max-width: 95%;
    max-height: 80%;
  }

  .lightbox .close {
    top: 16px;
    right: 16px;
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
  }

  .lightbox button {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .lightbox .prev {
    left: 16px;
  }

  .lightbox .next {
    right: 16px;
  }

  .lightbox .prev::after,
  .lightbox .next::after {
    width: 10px;
    height: 10px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  body {
    padding-top: 110px;
  }

  header {
    padding: 1.2rem 1.5rem;
    min-height: 90px;
  }

  .logo-central img {
    width: 90px;
    height: 90px;
  }

  .nome-escola {
    font-size: 1.2rem;
  }

  .menu-topo ul {
    gap: 1rem;
  }

  .menu-topo a {
    font-size: 0.95rem;
  }

  .page-hero h2 {
    font-size: 1.7rem;
  }

  .slide img {
    height: 380px;
  }

  .eventos-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .thumbs {
    justify-content: center;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .retrospectiva-grid {
    grid-template-columns: 1fr;
  }

  .retrospectiva-grid img {
    height: 180px;
  }

  .destaque-badge {
    font-size: 0.85rem;
    padding: 6px 16px;
  }

  .slideshow-info h3 {
    font-size: 1.3rem;
  }

  .slideshow-info p {
    font-size: 0.9rem;
  }
}

.frases-motivacionais {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  background: linear-gradient(135deg, rgba(0,74,153,0.08), rgba(0,150,255,0.08));
  padding: 28px 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,74,153,0.1);
  border: 1px solid rgba(0,74,153,0.15);
  animation: fadeIn 1.2s ease;
}

.frase-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.frase-container i {
  font-size: 1.8rem;
  color: var(--cor-primaria);
  opacity: .7;
}

#frase-texto {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.6;
  max-width: 650px;
  opacity: 0;
  transition: opacity .6s ease;
}

/* animação entrada */
.mostra-frase {
  opacity: 1 !important;
}
