/* ========= BASE ========= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.7; color: #2d3748; background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 4rem 0; }
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 1.2rem; color: #2d3748; line-height: 1.2; }
.fade-in { opacity: 0; transform: translateY(30px); transition: all .8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========= HERO ========= */
.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 6rem 0; min-height: 95vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"><animate attributeName="opacity" values="0.1;0.4;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="0.8" fill="%23ffffff" opacity="0.15"><animate attributeName="opacity" values="0.15;0.5;0.15" dur="2s" repeatCount="indefinite"/></circle><circle cx="40" cy="80" r="1.2" fill="%23ffffff" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="4s" repeatCount="indefinite"/></circle></svg>') repeat; }
.hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.5rem; text-shadow: 0 2px 4px rgba(0,0,0,.1); }
.hero p { font-size: 1.15rem; margin-bottom: 2.2rem; opacity: .95; line-height: 1.6; font-weight: 300; }
.cta-primary, .cta-secondary { display: inline-flex; align-items: center; gap: 12px; color: #fff; padding: 1.1rem 2.2rem; border: none; border-radius: 999px; font-size: 1.05rem; font-weight: 700; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; position: relative; overflow: hidden; }
.cta-primary { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); box-shadow: 0 8px 30px rgba(245,87,108,.3); }
.cta-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(245,87,108,.4); }

.hero-media {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden; /* garante que a imagem não vaze */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* preenche o espaço sem distorcer */
  border-radius: 24px; /* acompanha o container */
  display: block;
}

/* ========= SOBRE ========= */
.sobre { background: linear-gradient(45deg, #ffecd2 0%, #fcb69f 100%); padding: 6rem 0; }
.sobre-content { max-width: 850px; margin: 0 auto; text-align: center; }
.sobre-text { font-size: 1.1rem; color: #4a5568; margin-bottom: 1.1rem; line-height: 1.8; font-weight: 300; }
.credibilidade { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.credibilidade-item { background: rgba(255,255,255,.9); padding: 2rem; border-radius: 20px; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.08); border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(10px); transition: transform .3s ease; }
.credibilidade-item:hover { transform: translateY(-5px); }
.credibilidade-item i { font-size: 2rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: .6rem; }
.credibilidade-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; color: #2d3748; }
.credibilidade-item p { color: #718096; font-size: .95rem; line-height: 1.6; }

/* ========= CURSOS ========= */
.cursos { padding: 6rem 0; background: #fff; }
.cursos-intro { text-align: center; max-width: 700px; margin: 0 auto 2rem; }
.cursos-intro p { font-size: 1.05rem; color: #718096; }
.cursos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.curso-card { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.06); transition: transform .3s ease, box-shadow .3s ease; border: 1px solid #f7fafc; }
.curso-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(102,126,234,.15); }
.curso-media {
  aspect-ratio: 1;
  background: #f7fafc;
  border-radius: 16px;
  overflow: hidden;
  margin: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curso-img {width: 100%;height: 100%;object-fit: cover; /* preenche o quadrado sem distorcer */display: block;}

.curso-content { padding: 0 1.5rem 1.8rem; }
.curso-content h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .4rem; color: #2d3748; }
.curso-content p { color: #718096; font-size: .98rem; line-height: 1.6; }

/* ========= DIFERENCIAIS ========= */
.diferenciais { background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%); color: #fff; padding: 6rem 0; position: relative; overflow: hidden; }
.diferenciais-intro { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.diferenciais-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.diferencial-item { text-align: center; padding: 1.6rem; border-radius: 16px; background: rgba(255,255,255,0.05); }
.diferencial-item i { font-size: 2rem; background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: .6rem; }
.diferencial-item h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .4rem; }
.diferencial-item p { font-size: 1rem; opacity: .95; line-height: 1.7; font-weight: 300; }

/* ========= INSTAGRAM (EMBED OFICIAL) ========= */
.instagram { background: #fff; padding: 6rem 0; }
.instagram-intro { text-align: center; max-width: 700px; margin: 0 auto 2rem; }
.instagram-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.insta-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.06); border: 1px solid #edf2f7; display: flex; flex-direction: column; }
.insta-embed-wrap { background: #fff; border: 0; margin: 0; max-width: 540px; width: 100%; align-self: center; }
.insta-footer { padding: .9rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.insta-footer span { color: #4a5568; font-size: .95rem; }
.insta-btn { font-size: .92rem; font-weight: 700; background: linear-gradient(135deg,#f093fb 0%,#f5576c 100%); color: #fff; padding: .6rem .9rem; border-radius: 999px; }

/* ========= MAPA ========= */
.mapa { background: linear-gradient(135deg, #edf2f7 0%, #e9d8fd 100%); padding: 6rem 0; }
.mapa-intro { text-align: center; max-width: 760px; margin: 0 auto 1.6rem; }
.mapa-wrap { border-radius: 24px; overflow: hidden; box-shadow: 0 20px 60px rgba(102,126,234,.18); border: 1px solid rgba(255,255,255,.7); backdrop-filter: blur(8px); }
.mapa-iframe { width: 100%; height: 450px; border: 0; display: block; }

/* ========= DEPOIMENTOS ========= */
.depoimentos { background: linear-gradient(45deg, #a8edea 0%, #fed6e3 100%); padding: 6rem 0; }
.depoimentos-intro { text-align: center; max-width: 700px; margin: 0 auto 2.2rem; }
.depoimentos-sub { font-size: 1.05rem; color: #4a5568; line-height: 1.7; }
.depoimentos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.8rem; }
.depoimento { background: rgba(255, 255, 255, 0.92); padding: 2rem; border-radius: 24px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); border: 1px solid rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px); position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease; display: flex; flex-direction: column; gap: 0.9rem; align-items: center; text-align: center; }
.depoimento:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(102, 126, 234, 0.18); }
.depoimento::before { content: "“"; font-size: 3.2rem; color: #cbd5e0; position: absolute; top: 0.2rem; left: 1rem; font-family: serif; line-height: 1; pointer-events: none; }
.depoimento-media { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); border: 3px solid rgba(255, 255, 255, 0.85); display: flex; align-items: center; justify-content: center; color: #a0aec0; font-size: 0.85rem; font-weight: 600; margin: 0 auto 1rem; }
.depoimento-text { font-size: 1rem; font-style: italic; color: #4a5568; line-height: 1.7; margin: 0.2rem 0 0.6rem; text-align: center; }
.depoimento-autor { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.autor-nome { font-weight: 800; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 0.98rem; }
.autor-info { font-size: 0.93rem; color: #718096; }
.depoimento-media {width: 80px; /* ajuste o tamanho conforme necessário */height: 80px;border-radius: 50%;object-fit: cover;}

/* ========= CTA FINAL ========= */
.cta-final { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 6rem 0; text-align: center; }
.cta-final h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.25; }
.cta-final p { font-size: 1.1rem; margin-bottom: 2rem; opacity: .95; max-width: 720px; margin-left: auto; margin-right: auto; line-height: 1.6; font-weight: 300; }
.cta-secondary { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); box-shadow: 0 8px 30px rgba(245,87,108,.3); }
.cta-secondary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(245,87,108,.4); }

/* ========= FOOTER ========= */
.footer{ background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%); color: #fff; padding: 32px 0 16px;}
.footer-wrap { display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer-block { text-align: center; }
.footer-title { font-size: clamp(18px, 4.5vw, 22px); font-weight: 800; margin-bottom: 8px; }
.footer-address { font-style: normal; font-size: .95rem; line-height: 1.6; color: #e2e8f0; }
.footer-contact { margin-top: 8px; font-size: .95rem; }
.footer-subtitle { font-size: clamp(16px, 4vw, 18px); font-weight: 700; margin-bottom: 8px; color: #f7fafc; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.footer-list a { display: inline-block; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); font-size: .95rem; color: #e2e8f0; }
.footer-list a:hover { color: #fff; background: linear-gradient(135deg, #f093fb55, #f5576c55); }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px; border-radius: 999px; font-weight: 700; font-size: .95rem; background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)); box-shadow: 0 6px 18px rgba(0,0,0,0.12); color: #e2e8f0; }
.social-btn:hover { background: linear-gradient(135deg, #f093fb55, #f5576c55); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); margin-top: 20px; text-align: center; padding-top: 12px; font-size: .88rem; color: #cbd5e0; }

/* ========= RESPONSIVO ========= */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-media { order: -1; max-width: 280px; margin: 0 auto; }
  .mapa-iframe { height: 360px; }
  .depoimentos { padding: 4.5rem 0; }
  .depoimento { padding: 1.6rem; border-radius: 20px; }
  .depoimento-media { width: 64px; height: 64px; }
}
@media (min-width: 768px) {
  .footer-wrap { grid-template-columns: 1.2fr .8fr 1fr; align-items: start; }
  .footer-block { text-align: left; }
  .footer-list { justify-content: flex-start; }
  .social-row { justify-content: flex-start; }
}
/* Ordenação específica do HERO no mobile:
   1) h1
   2) p.subheadline
   3) imagem
   4) CTA
*/
@media (max-width: 768px) {
  .hero-grid {grid-template-columns: 1fr;
    /* definimos “slots” nominais para controlar a ordem */
grid-template-areas:
      "title"
      "subhead"
      "image"
      "cta";
    text-align: center;
    gap: 2rem;
  }

  /* Faz o navegador “enxergar” os filhos do hero-content como se fossem filhos diretos do grid */
  .hero-content {
    display: contents;
  }

  .hero-content h1 { grid-area: title; }
  .hero-sub { grid-area: subhead; }
  .hero-media { grid-area: image; max-width: 320px; margin: 0 auto; }
  .hero-cta { grid-area: cta; }

  /* Ajustes visuais */
  .hero-media { border-radius: 24px; overflow: hidden; }
  .hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
}

/* Desktop permanece como estava (imagem ao lado) */
@media (min-width: 769px) {
  .hero-grid { grid-template-columns: 1fr 380px; }
}
/* Centralizar avatar (foto) nos depoimentos em telas pequenas */
@media (max-width: 768px) {
  .depoimento {
    align-items: center;   /* centraliza o conteúdo interno */
    text-align: center;    /* centraliza os textos também */
  }

  .depoimento-media {
    margin: 0 auto 1rem;   /* força centralização da bolinha/foto */
  }

  .depoimento-text {
    text-align: center;    /* garante alinhamento da citação */
  }

  .depoimento-autor {
    align-items: center;   /* nome e info ficam centralizados */
  }
}
.credibilidade-img {
  width: 100%;        /* ocupa toda a largura disponível do container */
  max-width: 120px;   /* tamanho máximo para não estourar o layout */
  height: auto;       /* mantém a proporção da imagem */
  border-radius: 12px; /* cantos arredondados */
  object-fit: cover;  /* preenche o espaço sem distorcer */
  display: block;
  margin: 8px auto;   /* centraliza a imagem */
}

/* CSS da dobra - Elias Marinho */
.diretor-musical {
  padding: 6rem 0; /* mesmo espaçamento das outras seções */
  background: #f5f5f5; /* pode trocar para gradiente se quiser harmonizar */
  color: #2d3748; /* cor do texto padrão do site */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.diretor-musical .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem; /* espaçamento igual às outras seções */
  padding: 0 2rem; /* segue o padrão da classe .container */
}

.diretor-musical .texto {
  flex: 1 1 500px;
}

.diretor-musical .texto h2 {
  font-size: 2.2rem;
  font-weight: 800; /* segue padrão .section-title */
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #2d3748;
}

.diretor-musical .texto h3 {
  font-size: 1.15rem;
  font-weight: 400; /* subtítulo mais leve */
  color: #4a5568; /* cinza padrão dos subtítulos */
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.diretor-musical .texto p {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300; /* texto mais leve, padrão do site */
  color: #4a5568;
  margin-bottom: 1rem;
}

.diretor-musical .btn-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 30px rgba(245,87,108,.3);
}

.diretor-musical .btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(245,87,108,.4);
}

.diretor-musical .imagem img {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Esconde ou mostra imagens conforme tela */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* Responsividade */
@media (max-width: 900px) {
  .diretor-musical .container {
    flex-direction: column;
  }
  .desktop-only { display: none; }
  .mobile-only { display: block; text-align: center; margin-bottom: 1.5rem; }
}
