:root {
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --blue: #2563EB;
  --navy: #0F172A;
  --bg-subtle: #FAFAFA;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   CABEÇALHO CLEAN
   -------------------------------------------------------------------------- */
.home-header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.home-brand img {
  height: 28px;
  width: auto;
  display: block;
}

.home-header nav,
.home-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
}

.home-header nav {
  margin-left: auto;
}

.home-header nav a:hover,
.home-header-actions a:hover {
  color: var(--blue);
}

.home-header-actions {
  gap: 16px;
  margin-left: 28px;
  position: relative;
}

.header-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #334155;
  background: #FFFFFF;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-menu-toggle:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.hamburger-lines {
  display: grid;
  gap: 3px;
  width: 15px;
}

.hamburger-lines i {
  display: block;
  width: 15px;
  height: 1.5px;
  background: currentColor;
}

.header-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.04);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

[hidden],
.header-menu[hidden],
.dots-menu-item[hidden],
.dots-user-profile-row[hidden],
.dots-menu-divider[hidden] {
  display: none !important;
}

.dots-user-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 2px 10px 2px;
}

.dots-user-avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.dots-user-profile-details {
  overflow: hidden;
  min-width: 0;
}

.dots-user-profile-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.dots-user-profile-email {
  display: block;
  font-size: 12px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Azul Escuro de Segurança e Dados (Idêntico à Imagem do Usuário) */
.dots-security-card {
  background: #002B49;
  border-radius: 10px;
  padding: 12px 14px 14px;
  margin: 4px 0 10px;
  color: #FFFFFF;
}

.dots-security-card-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.dots-security-card-icon {
  width: 16px;
  height: 16px;
  color: #38BDF8;
  flex-shrink: 0;
  margin-top: 2px;
}

.dots-security-card-text {
  font-size: 12px;
  line-height: 1.35;
  color: #F8FAFC;
  margin: 0;
}

.dots-security-card-text strong {
  color: #FFFFFF;
  font-weight: 600;
}

.dots-security-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dots-security-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.dots-security-progress-fill {
  height: 100%;
  background: #38BDF8;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.dots-security-progress-label {
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
}

.btn-dots-complete-data {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: #0073E6;
  border: none;
  border-radius: 6px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-dots-complete-data:hover {
  background: #005FBF;
}

/* Menu de navegação */
.dots-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dots-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: all 0.12s ease;
}

.dots-menu-item svg {
  width: 17px;
  height: 17px;
  color: #0073E6;
  flex-shrink: 0;
}

.dots-menu-item:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.dots-menu-item.is-highlight {
  background: #F1F5F9;
  color: #0F172A;
  font-weight: 600;
}

.dots-menu-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 6px 0;
}

.dots-item-logout {
  color: #475569;
}

.dots-item-logout svg {
  color: #0073E6;
}

.dots-item-logout:hover {
  background: #FEF2F2;
  color: #DC2626;
}

.dots-item-logout:hover svg {
  color: #DC2626;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* --------------------------------------------------------------------------
   HERO TILTED 3D CURVED CYLINDER
   -------------------------------------------------------------------------- */
.home-tilted-hero-section {
  margin: 16px 0 44px;
}

.tilted-hero-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 0 16px;
}

.tilted-hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 14px;
}

.tilted-hero-title {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #0F172A;
  margin: 0 0 12px;
}

.tilted-hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 400;
  color: #64748B;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 600px;
}

.tilted-hero-container {
  position: relative;
  overflow: hidden;
  container-type: size;
  height: 330px;
  width: 100%;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.tgh-band {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.tgh-tile {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transition: filter 0.2s ease;
  text-decoration: none;
}

.tgh-tile:hover {
  filter: brightness(1.06);
}

.tgh-slice {
  position: absolute;
  top: 0;
  overflow: hidden;
  background: #E2E8F0;
}

.tgh-slice.is-first {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.tgh-slice.is-last {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.tgh-slice img {
  position: absolute;
  top: 0;
  max-width: none;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   GRADE COMPACTA DE EVENTOS (PADRÃO SYMPLA)
   -------------------------------------------------------------------------- */
.home-events {
  margin-top: 40px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

h2#events-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0F172A;
}

.section-count {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.compact-events-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}

.compact-event-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease;
}

.compact-event-card:hover {
  transform: translateY(-2px);
}

.compact-event-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #F1F5F9;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.compact-event-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.compact-event-card:hover .compact-event-cover img {
  transform: scale(1.02);
}

.compact-event-body {
  padding: 10px 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.compact-event-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.35;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-event-location {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-event-date {
  margin: 1px 0 0;
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 400;
}

.no-other-events {
  margin: 0;
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
  grid-column: 1 / -1;
  text-align: center;
}

/* --------------------------------------------------------------------------
   SOBRE & RODAPÉ
   -------------------------------------------------------------------------- */
.home-about {
  max-width: 640px;
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.home-about h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #0F172A;
}

.home-about p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.home-footer {
  padding: 48px max(24px, calc((100% - 1240px) / 2));
  color: #94A3B8;
  background: var(--navy);
  border-top: 1px solid #1E293B;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.5fr;
  gap: 40px;
}

.footer-logo {
  height: 26px;
  width: auto;
  margin-bottom: 12px;
}

.home-footer p,
.home-footer a,
.home-footer span {
  display: block;
  color: #94A3B8;
  font-size: 0.82rem;
  line-height: 1.7;
}

.home-footer h3 {
  margin: 0 0 12px;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
}

.home-footer a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #1E293B;
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVIDADE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .compact-events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .home-header {
    height: 60px;
    padding: 0 16px;
  }
  .home-header nav {
    display: none;
  }
  main {
    padding: 16px 16px 64px;
  }
  .tilted-hero-header {
    margin-bottom: 16px;
  }
  .tilted-hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }
  .tilted-hero-container {
    height: 230px;
    border-radius: 0;
  }
  .compact-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .compact-events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
