/* ========== RESET E CONFIGURAÇÕES GLOBAIS ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #fefaf5;
  color: #2e241f;
  line-height: 1.5;
  scroll-behavior: smooth;
}

:root {
  --miluli-dark: #323b6a;
  --miluli-orange: #F4A261;
  --miluli-terracota: #E76F51;
  --miluli-bege: #FEF7E8;
  --miluli-texto: #2c2c2c;
}

/* ========== BARRA DE NAVEGAÇÃO ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 248, 240, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.9rem 2rem;
  transition: all 0.2s;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo img {
  height: 55px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--miluli-dark);
  transition: 0.2s;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--miluli-terracota);
  transform: translateY(-2px);
}

.social-icons-desktop {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
}
.social-icons-desktop a {
  color: var(--miluli-dark);
  font-size: 1.2rem;
  transition: 0.2s;
}
.social-icons-desktop a:hover {
  color: var(--miluli-terracota);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--miluli-dark);
  background: none;
  border: none;
  transition: 0.2s;
}
.hamburger:hover {
  color: var(--miluli-terracota);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .social-icons-desktop {
    display: none;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 1rem;
    padding: 1rem 0;
    background: rgba(255, 248, 240, 0.98);
    border-radius: 20px;
    margin-top: 0.5rem;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-container {
    flex-wrap: wrap;
  }
  .mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(50, 59, 106, 0.2);
  }
  .mobile-social-icons a {
    color: var(--miluli-dark);
    font-size: 1.3rem;
    transition: 0.2s;
  }
  .mobile-social-icons a:hover {
    color: var(--miluli-terracota);
  }
}

@media (min-width: 769px) {
  .mobile-social-icons {
    display: none;
  }
}

/* ========== BOTÕES PADRÃO ========== */
.btn-primary {
  background: var(--miluli-orange);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 60px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: 0.25s;
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(244, 162, 97, 0.3);
}
.btn-primary:hover {
  background: var(--miluli-terracota);
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(231, 111, 81, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--miluli-orange);
  padding: 0.7rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  color: var(--miluli-terracota);
  transition: 0.2s;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--miluli-orange);
  color: white;
}

.btn-quero {
  background: none;
  border: 2px solid var(--miluli-orange);
  padding: 0.6rem 1.6rem;
  border-radius: 40px;
  font-weight: 700;
  margin-top: 1rem;
  transition: 0.2s;
  cursor: pointer;
  color: var(--miluli-terracota);
  display: inline-block;
  text-decoration: none;
}
.btn-quero:hover {
  background: var(--miluli-orange);
  color: white;
}

/* ========== HERO COM PARALLAX ========== */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 1.4rem 2rem;
  overflow: hidden;
}
.hero-parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: linear-gradient(107deg, rgba(50, 59, 106, 0.75), rgba(244, 162, 97, 0.65)), url('hero.jpg');
  background-size: cover;
  background-position: center center;
  will-change: transform;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero p {
  font-size: 1.3rem;
  color: #fff3e6;
  margin-bottom: 2rem;
}

/* ========== CONTAINER E TÍTULOS ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--miluli-dark);
  position: relative;
}
.section-title:after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--miluli-orange);
  display: block;
  margin: 0.8rem auto 0;
  border-radius: 4px;
}

/* ========== BENEFÍCIOS ========== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.benefit-card {
  background: white;
  border-radius: 28px;
  padding: 1.8rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.05);
  transition: all 0.3s;
  text-align: center;
  border-bottom: 4px solid var(--miluli-orange);
}
.benefit-card i {
  font-size: 2.5rem;
  color: var(--miluli-orange);
  margin-bottom: 1rem;
}
.benefit-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* ========== CARDS DE AULAS ========== */
.double-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}
.card-aula {
  flex: 1;
  background: white;
  border-radius: 36px;
  padding: 2rem;
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
  transition: 0.25s;
}
.card-aula:hover {
  transform: translateY(-8px);
}
.badge-musica {
  background: #FFE8D6;
  color: var(--miluli-terracota);
  font-weight: bold;
  display: inline-block;
  padding: 0.2rem 1rem;
  border-radius: 30px;
}
.badge-desenho {
  background: #E0F2E9;
  color: #2a9d8f;
  font-weight: bold;
  display: inline-block;
  padding: 0.2rem 1rem;
  border-radius: 30px;
}

/* ========== SEÇÃO "POR QUE MILULI" (PARALLAX) ========== */
.porque-miluli {
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
}
.porque-miluli .parallax-bg-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: linear-gradient(0deg, rgba(50,59,106,0.85), rgba(50,59,106,0.85)), url('https://assets.zyrosite.com/cdn-cgi/image/format=auto,w=1920,h=1080,f=jpg/miluli/famm-2024-23-m5KLlp6EJbt6MqBN.JPG');
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.porque-miluli .container {
  position: relative;
  z-index: 2;
}
.lista-motivos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.motivo-item {
  background: rgba(255,255,240,0.12);
  backdrop-filter: blur(6px);
  border-radius: 40px;
  padding: 1.5rem;
  width: 260px;
  font-weight: 500;
}

/* ========== GALERIA DE FOTOS ========== */
.subtitulo-video {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--miluli-dark);
  margin-bottom: 1rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  cursor: pointer;
}
.gallery img:hover {
  transform: scale(1.02);
}
@media (max-width: 768px) {
  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .gallery img {
    width: calc(50% - 0.5rem);
    max-width: 280px;
  }
}

/* ========== FORMULÁRIO (IFRAME) ========== */
.form-container {
  margin: 2rem auto;
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  overflow: hidden;
}
.form-container iframe {
  width: 100%;
  height: 750px;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent;
  display: block;
  overflow: hidden;
}
@media (max-width: 768px) {
  .form-container iframe {
    height: 700px;
  }
}

/* ========== SEÇÃO DO MAPA ========== */
.mapa-section {
  background: linear-gradient(135deg, #fff7ed 0%, #fefaf5 100%);
  border-radius: 48px;
  margin: 2rem auto;
  padding: 2rem 1.5rem 3rem 1.5rem;
  text-align: center;
}
.mapa-subtitulo {
  font-size: 1.2rem;
  color: var(--miluli-terracota);
  margin-bottom: 2rem;
  font-weight: 500;
}
.mapa-container {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15);
}
.mapa-container iframe {
  width: 100%;
  height: 450px;
  display: block;
  border: 0;
}
@media (max-width: 768px) {
  .mapa-container iframe {
    height: 300px;
  }
  .mapa-subtitulo {
    font-size: 1rem;
  }
}

/* ========== RODAPÉ ========== */
footer {
  background: var(--miluli-dark);
  color: #fce5cf;
  text-align: center;
  padding: 2rem;
}
.footer-map {
  text-align: center;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}
.footer-map i {
  margin-right: 0.5rem;
  color: var(--miluli-orange);
}
.footer-map .map-link {
  color: #fce5cf;
  text-decoration: none;
  transition: 0.2s;
}
.footer-map .map-link:hover {
  color: var(--miluli-orange);
  text-decoration: underline;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.footer-social a {
  color: #fce5cf;
  font-size: 1.4rem;
  transition: 0.2s;
}
.footer-social a:hover {
  color: var(--miluli-orange);
  transform: translateY(-3px);
}
.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ========== AJUSTES RESPONSIVOS GERAIS ========== */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .subtitulo-video {
    font-size: 1.2rem;
  }
  .hero {
    padding: 1.2rem 2rem;
    min-height: 70vh;
  }
  #agendar.container {
    padding-top: 2rem;
  }
}

/* ========== LINK DO MAPA ========== */
.map-link {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.map-link:hover {
  color: var(--miluli-terracota);
  text-decoration: underline;
}

/* ========== BOTÃO VOLTAR AO TOPO COM FADE IN/OUT ========== */
.btn-topo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--miluli-orange);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.2s, transform 0.2s;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.btn-topo.visible {
  opacity: 0.5;
  visibility: visible;
  pointer-events: auto;
}

.btn-topo:hover {
  opacity: 1;
  background-color: var(--miluli-terracota);
  transform: scale(1.05);
}

.btn-topo i {
  pointer-events: none;
}

@media (max-width: 768px) {
  .btn-topo {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    bottom: 15px;
    right: 15px;
  }
}