/* Home Portal Clã Michetti - Estética mística, linguagem clara, responsivo */

.home * {
  box-sizing: border-box;
}

.home {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #2d1b4e 0%, #1a0d2e 35%, #0d0618 70%, #050308 100%);
  color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

/* ----- Header ----- */
.home-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 6, 24, 0.92);
  border-bottom: 1px solid rgba(160, 120, 255, 0.3);
  backdrop-filter: blur(10px);
}

.home-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.home-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.home-logo-text h1 {
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #f3e8ff;
}

.home-logo-text span {
  font-size: 0.75rem;
  opacity: 0.8;
  color: #c4b5fd;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.home-nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #e4dcff;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.home-nav a:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(212, 175, 55, 0.4);
}

.home-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
}

.home-btn-ghost {
  padding: 8px 14px;
  font-size: 0.88rem;
  text-decoration: none;
  color: #c4b5fd;
  border: 1px solid rgba(148, 163, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s;
}

.home-btn-ghost:hover {
  background: rgba(67, 56, 202, 0.3);
}

.home-user-menu-wrap {
  position: relative;
}

.home-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(67, 56, 202, 0.25);
  border: 1px solid rgba(148, 163, 255, 0.35);
  border-radius: 999px;
  color: #e4dcff;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.home-user-trigger:hover {
  background: rgba(67, 56, 202, 0.4);
}

.home-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6d28d9, #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.home-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  min-width: 180px;
  background: rgba(30, 27, 75, 0.98);
  border: 1px solid rgba(148, 163, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 8px 0;
  display: none;
}

.home-user-menu-wrap.is-open .home-user-dropdown {
  display: block;
}

.home-user-dropdown a {
  display: block;
  padding: 10px 16px;
  color: #e4dcff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.home-user-dropdown a:hover {
  background: rgba(124, 58, 237, 0.3);
}

/* ----- Hero ----- */
.home-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px 56px;
  text-align: center;
}

.home-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.25;
  margin-bottom: 16px;
  color: #f3e8ff;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.home-hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: #ddd6fe;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.home-hero-actions .home-btn-primary { padding: 10px 22px; }
.home-hero-actions .home-btn-ghost { padding: 10px 20px; }

/* ----- Atalhos (logado) ----- */
.home-atalhos {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.home-atalhos-title {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: #e4dcff;
}

.home-atalhos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.home-atalho-card {
  display: block;
  padding: 18px 16px;
  background: rgba(30, 27, 75, 0.5);
  border: 1px solid rgba(148, 163, 255, 0.3);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.home-atalho-card:hover {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(67, 56, 202, 0.2);
}

.home-atalho-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #f3e8ff;
}

.home-atalho-card p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 10px;
}

.home-atalho-card .home-link-small {
  font-size: 0.85rem;
  color: #a78bfa;
}

.home-atalho-card .home-btn-small {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  background: rgba(124, 58, 237, 0.4);
  border-radius: 999px;
  color: #e4dcff;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 255, 0.3);
}

.home-atalho-card .home-btn-small:hover {
  background: rgba(124, 58, 237, 0.6);
}

/* ----- O que você encontra ----- */
.home-oque {
  max-width: 1200px;
  margin: 0 auto 56px;
  padding: 0 16px;
}

.home-oque-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 28px;
  color: #f3e8ff;
}

.home-oque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.home-oque-card {
  padding: 24px 20px;
  background: rgba(30, 27, 75, 0.4);
  border: 1px solid rgba(148, 163, 255, 0.35);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-oque-card:hover {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.home-oque-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #f3e8ff;
}

.home-oque-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 16px;
  line-height: 1.5;
  color: #ddd6fe;
}

/* ----- Destaques ----- */
.home-destaques {
  max-width: 1200px;
  margin: 0 auto 56px;
  padding: 0 16px;
}

.home-destaques-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 28px;
  color: #f3e8ff;
}

.home-destaques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.home-destaque-card {
  padding: 22px 20px;
  background: rgba(30, 27, 75, 0.45);
  border: 1px solid rgba(148, 163, 255, 0.3);
  border-radius: 14px;
  transition: border-color 0.2s;
}

.home-destaque-card:hover {
  border-color: rgba(251, 191, 36, 0.4);
}

.home-destaque-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #f3e8ff;
}

.home-destaque-card p {
  font-size: 0.9rem;
  opacity: 0.88;
  margin-bottom: 14px;
  color: #ddd6fe;
}

/* ----- Iniciação ----- */
.home-iniciacao {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 16px;
  text-align: center;
}

.home-iniciacao h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #f3e8ff;
}

.home-iniciacao p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.6;
  color: #ddd6fe;
}

/* ----- Depoimentos ----- */
.home-depoimentos {
  max-width: 1200px;
  margin: 0 auto 56px;
  padding: 0 16px;
}

.home-depoimentos-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 28px;
  color: #f3e8ff;
}

.home-depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.home-depoimento-card {
  padding: 22px 20px;
  background: rgba(30, 27, 75, 0.35);
  border: 1px solid rgba(148, 163, 255, 0.25);
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #ddd6fe;
}

.home-depoimento-card cite {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  opacity: 0.85;
  font-style: normal;
}

/* ----- CTA Final ----- */
.home-cta {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 16px;
  text-align: center;
}

.home-cta h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: #f3e8ff;
}

.home-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ----- Footer ----- */
.home-footer {
  margin-top: auto;
  border-top: 1px solid rgba(148, 163, 255, 0.25);
  background: rgba(5, 3, 12, 0.9);
  padding: 20px 16px;
}

.home-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.85;
  color: #c4b5fd;
}

/* Utilitários */
.home-link-small {
  text-decoration: none;
  color: #a78bfa;
}

.home-link-small:hover {
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 768px) {
  .home-header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .home-nav {
    justify-content: center;
  }

  .home-header-actions {
    justify-content: center;
  }

  .home-hero {
    padding: 36px 16px 44px;
  }

  .home-atalhos-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-oque-grid {
    grid-template-columns: 1fr;
  }

  .home-destaques-grid {
    grid-template-columns: 1fr;
  }

  .home-cta-buttons {
    flex-direction: column;
  }

  .home-cta-buttons a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .home-atalhos-grid {
    grid-template-columns: 1fr;
  }
}
