/* ============================================
   ACADEMIA ARSENAL DO ALFEITE — Estilos Globais
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=IBM+Plex+Mono:wght@400;500;700&family=Inter:wght@400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --adaptive-strong-text: #0f172a;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-dark: #1d4ed8;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;
  --nav-bg: rgba(255,255,255,0.85);
  --nav-border: #e2e8f0;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --footer-bg: #09090b;
  --footer-text: #a1a1aa;
  --footer-border: #18181b;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

.dark {
  --bg: #020617;
  --bg-alt: #0f172a;
  --surface: #0f172a;
  --border: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #475569;
  --adaptive-strong-text: #f8fafc;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-dark: #2563eb;
  --blue-bg: #172554;
  --blue-border: #1e3a8a;
  --nav-bg: rgba(2,6,23,0.85);
  --nav-border: #1e293b;
  --card-bg: rgba(15,23,42,0.6);
  --card-border: #1e293b;
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
}


.theme-adaptive-text {
  color: var(--adaptive-strong-text);
  transition: color 0.3s ease;
}

.theme-adaptive-badge {
  font-family:'IBM Plex Mono', monospace;
  font-size:0.72rem;
  background:var(--bg-alt);
  border:1px solid var(--border);
  padding:1px 6px;
  border-radius:4px;
  margin-left:6px;
  color: var(--text);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Navbar ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: background 0.3s, border-color 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}
.nav-logo:hover img { transform: scale(1.08); }

.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-logo-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.25s;
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
#theme-toggle:hover {
  background: var(--bg-alt);
  color: var(--text);
}
#theme-toggle svg { width: 20px; height: 20px; }

#mobile-menu-btn {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
#mobile-menu-btn:hover { background: var(--bg-alt); color: var(--text); }
#mobile-menu-btn svg { width: 22px; height: 22px; }

#mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem;
  border-top: 1px solid var(--nav-border);
  background: var(--surface);
  gap: 4px;
}
#mobile-nav.open { display: flex; }

.mobile-nav-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  display: block;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--bg-alt);
  color: var(--blue);
}

/* ---- Page Wrapper ---- */
.page { display: none; padding-top: 72px; min-height: 100vh; }
.page.active { display: block; }

/* ---- Footer ---- */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}
.footer-col-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #52525b;
  margin-bottom: 1rem;
}
.footer-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #71717a;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.82rem;
  color: #71717a;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue-light); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #71717a;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: #52525b; }
.footer-contact-item a { color: #71717a; transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--blue-light); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #71717a;
  transition: all 0.2s;
}
.footer-social a:hover { background: #27272a; border-color: #3f3f46; color: #fff; }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #52525b;
}
.footer-legal {
  display: flex;
  gap: 1.25rem;
}
.footer-legal a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #52525b;
  transition: color 0.2s;
}
.footer-legal a:hover { color: #a1a1aa; }

/* ============================================
   HOME PAGE
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.62);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(37,99,235,0.75);
  border: 1px solid rgba(147,197,253,0.3);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(226,232,240,0.9);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.7;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--blue);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.45);
}
.btn-primary svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.55); }

.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.4);
  animation: bounce 2s infinite;
}
.scroll-indicator svg { width: 24px; height: 24px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Objetivos */
.section-objectives {
  padding: 5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.section-header { margin-bottom: 3rem; }
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}
.section-line {
  width: 60px; height: 4px;
  background: var(--blue);
  border-radius: 4px;
}
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.obj-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}
.obj-card:hover { border-color: rgba(59,130,246,0.5); box-shadow: var(--shadow-md); }
.obj-icon {
  width: 48px; height: 48px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  margin-bottom: 1rem;
}
.obj-icon svg { width: 22px; height: 22px; }
.obj-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}
.obj-desc { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

/* Noticias Banner */
.section-news-banner {
  padding: 4rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.news-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  border-radius: 24px;
  padding: 3.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  border: 1px solid rgba(59,130,246,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(59,130,246,0.07);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 1.25rem;
}
.news-badge svg { width: 14px; height: 14px; }
.news-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.news-title span { color: #60a5fa; }
.news-text { font-size: 0.95rem; color: #94a3b8; line-height: 1.7; max-width: 560px; }
.news-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: #fff;
  color: #1e3a8a;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 14px;
  transition: all 0.3s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.news-btn:hover { background: #eff6ff; transform: translateY(-2px); }
.news-btn svg { width: 20px; height: 20px; transition: transform 0.2s; }
.news-btn:hover svg { transform: translateX(4px); }

/* Quote Section */
.section-quote {
  padding: 3rem 0 4rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.quote-card {
  border-left: 4px solid var(--blue);
  padding: 1.5rem 2rem;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 760px;
}
.quote-org {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}
.quote-text { font-size: 1rem; color: var(--text-muted); line-height: 1.7; font-weight: 500; }

/* ============================================
   ACADEMIA PAGE
   ============================================ */
.page-header {
  padding: 4rem 0 3rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-header-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.page-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.page-header-tag svg { width: 18px; height: 18px; }
.page-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.page-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
}

.academia-section {
  padding: 4rem 0;
  background: var(--bg);
}
.academia-grid {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  gap: 0;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}
.pillar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.pillar-label-left { display: flex; align-items: center; padding-right: 1rem; }
.pillar-label-right { display: flex; align-items: center; padding-left: 1rem; }
.pillar-label-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.pillar-label-left .pillar-label-text { transform: rotate(180deg); }
.pillar-body {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.pillar-cap {
  width: 100%;
  display: flex; flex-direction: column; gap: 3px;
}
.pillar-cap-top {
  height: 10px;
  background: linear-gradient(90deg, #cbd5e1, #f1f5f9, #cbd5e1);
  border-radius: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.dark .pillar-cap-top { background: linear-gradient(90deg, #334155, #64748b, #334155); }
.pillar-cap-mid {
  height: 12px;
  width: 85%;
  margin: 0 auto;
  background: linear-gradient(90deg, #e2e8f0, #fff, #e2e8f0);
  border: 1px solid #cbd5e1;
  border-radius: 2px;
}
.dark .pillar-cap-mid { background: linear-gradient(90deg, #475569, #94a3b8, #475569); border-color: #64748b; }
.pillar-shaft {
  width: 60%;
  flex: 1;
  min-height: 400px;
  background: linear-gradient(90deg, #e2e8f0, #f8fafc, #e2e8f0);
  border-left: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  display: flex;
  justify-content: space-around;
  position: relative;
  overflow: hidden;
}
.dark .pillar-shaft { background: linear-gradient(90deg, #334155, #475569, #334155); border-color: #475569; }
.pillar-stria { width: 2px; height: 100%; background: rgba(148,163,184,0.5); }
.dark .pillar-stria { background: rgba(51,65,85,0.7); }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 0 2rem;
  align-items: center;
}
.item-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  min-height: 130px;
}
.item-card:hover { border-color: rgba(100,116,139,0.5); box-shadow: var(--shadow-md); }
.item-card-icon {
  width: 52px; height: 52px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  transition: all 0.3s;
}
.item-card:hover .item-card-icon { background: var(--blue); color: #fff; }
.item-card-icon svg { width: 22px; height: 22px; }
.item-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.item-card-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }

.academia-footer-quote {
  max-width: 860px;
  margin: 2rem auto 0;
}
.academia-quote-inner {
  background: linear-gradient(135deg, var(--bg-alt), var(--surface));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.academia-quote-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.academia-quote-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
}

/* ============================================
   FORMAÇÃO PAGE
   ============================================ */
.formacao-section {
  padding: 4rem 0;
  background: var(--bg);
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}
.cert-dot {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}
.formacao-list { display: flex; flex-direction: column; gap: 2rem; }
.formacao-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.formacao-label {
  background: linear-gradient(135deg, var(--bg-alt), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70px;
  box-shadow: var(--shadow);
}
.formacao-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  transition: border-color 0.3s;
}
.formacao-content:hover { border-color: rgba(100,116,139,0.4); }
.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}
.cert-code {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  padding: 2px 8px;
  border-radius: 4px;
}
.prog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 2rem;
}
.prog-item {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.prog-section {
  margin-bottom: 32px;
}

.prog-subtitle {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--title-color);
}

.prog-letter {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}
.parceria-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.parceria-text { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}
.bullet-list { display: flex; flex-direction: column; gap: 8px; }
.bullet-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
}
.bullet-icon { color: var(--blue); font-weight: 900; flex-shrink: 0; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }

/* ============================================
   CONTACTO PAGE
   ============================================ */
.contacto-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #eff6ff, #fff, #f8fafc);
  border-bottom: 1px solid var(--border);
}
.dark .contacto-hero {
  background: linear-gradient(135deg, rgba(37,99,235,0.08), var(--bg), var(--bg-alt));
}
.contacto-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.contacto-hero-sub { font-size: 1rem; color: var(--text-muted); font-weight: 500; max-width: 500px; line-height: 1.65; }

.contact-cards-row {
  padding: 3rem 0;
  background: var(--bg);
}
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: var(--blue); }
.contact-card-icon {
  width: 44px; height: 44px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  margin-bottom: 1rem;
}
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}
.contact-card-value { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.contact-card-desc { font-size: 0.8rem; color: var(--text-muted); }

.contacto-main { padding: 1rem 0 5rem; background: var(--bg); }
.contacto-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contacto-map-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.map-embed {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.social-card, .horario-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.horario-card {
  background: #ffffff;
  border-color: #dbe3ec;
  color: #0f172a;
}

.dark .horario-card {
  background: #0f172a;
  border-color: #1e293b;
  color: #f1f5f9;
}
.card-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.horario-card .card-title { color: #60a5fa; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s;
  margin-bottom: 10px;
}
.social-link:hover { border-color: rgba(59,130,246,0.3); background: var(--blue-bg); }
.social-link-left { display: flex; align-items: center; gap: 12px; }
.social-icon-wrap {
  width: 36px; height: 36px;
  background: var(--surface);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.social-icon-wrap svg { width: 20px; height: 20px; }
.social-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.social-name-sub { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.social-link svg.ext { width: 18px; height: 18px; color: var(--text-light); transition: color 0.2s; }
.social-link:hover svg.ext { color: var(--blue); }
.horario-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.88rem;
}
.dark .horario-row { border-color: rgba(37,99,235,0.15); }
.horario-row:last-child { border-bottom: none; }
.horario-day { color: #94a3b8; }
.horario-time { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-style: italic; }
.horario-closed { color: #ef4444; font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ============================================
   VISITA VIRTUAL PAGE
   ============================================ */
.visita-page {
  height: calc(100vh - 72px);
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.visita-hud {
  position: absolute;
  top: 2rem; left: 2rem;
  z-index: 20;
  pointer-events: none;
}
.visita-hud-inner {
  background: rgba(15,23,42,0.92);
  border-left: 4px solid #3b82f6;
  padding: 1.25rem 1.75rem;
  border-radius: 0 10px 10px 0;
  backdrop-filter: blur(8px);
}
.visita-hud-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #60a5fa;
  display: block;
  margin-bottom: 6px;
}
.visita-hud-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.visita-menu-btn {
  position: absolute;
  top: 2rem; right: 2rem;
  z-index: 50;
  background: #2563eb;
  color: #fff;
  border-radius: 12px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 10px;
  transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(37,99,235,0.6), 0 0 0 3px rgba(37,99,235,0.3);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: pulse-btn 2.5s ease-in-out infinite;
}
@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,99,235,0.6), 0 0 0 3px rgba(37,99,235,0.3); }
  50% { box-shadow: 0 4px 32px rgba(37,99,235,0.8), 0 0 0 6px rgba(37,99,235,0.15); }
}
.visita-menu-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  animation: none;
  box-shadow: 0 8px 30px rgba(37,99,235,0.7);
}
.visita-menu-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.visita-menu-btn-label { white-space: nowrap; }
.visita-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 60;
}
.visita-sidebar-overlay.open { display: block; }
.visita-sidebar {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 320px;
  background: #0b1120;
  border-left: 1px solid rgba(59,130,246,0.15);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.6);
}
.visita-sidebar.open { transform: translateX(0); }
.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(59,130,246,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #060d1a;
}
.sidebar-header-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}
.sidebar-close {
  color: #64748b;
  transition: color 0.2s;
}
.sidebar-close:hover { color: #fff; }
.sidebar-close svg { width: 22px; height: 22px; }
.sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0b1120;
}
.sidebar-list::-webkit-scrollbar { width: 4px; }
.sidebar-list::-webkit-scrollbar-track { background: transparent; }
.sidebar-list::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }
.sidebar-list::-webkit-scrollbar-thumb:hover { background: #3b82f6; }

/* Sala buttons — thumbnail style */
.sala-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  text-align: left;
  cursor: pointer;
}
.sala-btn:hover {
  background: rgba(37,99,235,0.18);
  border-color: rgba(59,130,246,0.5);
  color: #fff;
  transform: translateX(-2px);
}
.sala-btn-active {
  background: rgba(37,99,235,0.25) !important;
  border-color: #3b82f6 !important;
  color: #fff !important;
}
.sala-thumb {
  width: 56px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #1e293b;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.sala-num {
  position: absolute;
  bottom: 2px; right: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.65);
  padding: 0 3px;
  border-radius: 3px;
  line-height: 1.4;
}
.sala-title-text {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.3;
}
#panorama-container { width: 100%; flex: 1; }
.visita-compass {
  position: absolute;
  bottom: 2.5rem; right: 2.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.3);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.visita-compass-line { width: 40px; height: 1px; background: rgba(255,255,255,0.15); }
.visita-compass svg { width: 18px; height: 18px; animation: spin-slow 8s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .objectives-grid { grid-template-columns: repeat(2, 1fr); }
  .academia-grid { grid-template-columns: 1fr; }
  .pillar { display: none; }
  .cards-grid { padding: 0; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  #mobile-menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .objectives-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .formacao-item { grid-template-columns: 1fr; }
  .contacto-two-col { grid-template-columns: 1fr; }
  .contact-cards-grid { grid-template-columns: 1fr; }
  .news-card { flex-direction: column; padding: 2rem; text-align: center; }
  .news-text { margin: 0 auto; }
  .prog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .news-card { padding: 1.5rem; }
}

/* ============================================
   ESPAÇOS PAGE — Galeria + Auditório
   ============================================ */

/* --- Section spacing --- */
.espacos-section {
  padding: 4rem 0 2rem;
}

.auditorio-section {
  padding: 4rem 0 5rem;
  background: var(--bg-alt);
}

/* --- Group heading --- */
.espacos-group {
  margin-bottom: 3rem;
}

.espacos-group-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* --- Photo grid --- */
.espacos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}

.espacos-grid-single {
  grid-template-columns: minmax(180px, 340px);
}

.espaco-item {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--border);
}

.espaco-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.espaco-item:hover img {
  transform: scale(1.05);
}

.espaco-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.espaco-item:hover .espaco-overlay {
  opacity: 1;
}

.espaco-overlay span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 0.4rem 1rem;
  border-radius: 4px;
}


/* --- Lightbox --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.lightbox-overlay.open {
  display: flex;
}

#lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.lightbox-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

/* --- Auditório layout --- */
.auditorio-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1100px) {
  .auditorio-layout {
    grid-template-columns: 3fr 2fr;
  }
}

@media (max-width: 900px) {
  .auditorio-layout {
    grid-template-columns: 1fr;
  }
}

/* Video embed / placeholder */
.auditorio-video {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.auditorio-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  padding: 2rem;
  text-align: center;
}

.video-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--blue);
  opacity: 0.7;
}

.video-placeholder span {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.video-placeholder small {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* Auditório text */
.auditorio-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.auditorio-features {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.auditorio-features-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 1rem;
}

.auditorio-feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auditorio-feat-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

.auditorio-feat-list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--blue);
}

.auditorio-cta p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ============================================
   VIEWER 360 OVERLAY
   ============================================ */

.viewer360-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #0a0f1a;
  flex-direction: column;
}

.viewer360-overlay.open {
  display: flex;
}

.viewer360-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 52px;
  background: rgba(10,15,26,0.95);
  border-bottom: 1px solid rgba(59,130,246,0.2);
  flex-shrink: 0;
  z-index: 10;
}

.viewer360-caption-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.7);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.viewer360-caption-wrap svg {
  color: #3b82f6;
}

.viewer360-close {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.viewer360-close:hover {
  background: rgba(59,130,246,0.25);
  border-color: rgba(59,130,246,0.5);
}

.viewer360-close svg {
  width: 18px;
  height: 18px;
}

#viewer360-container {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.viewer360-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10,15,26,0.75);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
  animation: fadeout-hint 4s ease 3s forwards;
}

.viewer360-hint svg {
  width: 14px;
  height: 14px;
  color: #3b82f6;
  animation: spin-slow 6s linear infinite;
}

@keyframes fadeout-hint {
  to { opacity: 0; }
}

/* ============================================
   VIEWER 360 — Fullscreen overlay (novo)
   ============================================ */

.viewer360-fullscreen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #0a0f1a;
}

.viewer360-fullscreen.open {
  display: block;
}

/* Reutiliza .visita-page mas dentro do overlay */
.viewer360-fullscreen .visita-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* Close button — canto superior direito, ao lado do "Ver Salas" */
.visita-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 110;
  background: rgba(15,23,42,0.82);
  border: 1px solid rgba(59,130,246,0.35);
  color: #fff;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}

.visita-close-btn:hover {
  background: rgba(239,68,68,0.25);
  border-color: rgba(239,68,68,0.5);
}

.visita-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Shift menu button left to make room for close button */
.viewer360-fullscreen .visita-menu-btn {
  right: 68px;
}

/* panorama fills remaining space */
.viewer360-fullscreen #viewer360-container {
  flex: 1;
  width: 100%;
  position: relative;
}

/* ---- Sidebar: group heading ---- */
.sala-group-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #3b82f6;
  padding: 1rem 1rem 0.4rem;
  margin-top: 0.25rem;
}

.sala-group-heading:first-child {
  margin-top: 0;
}

/* ---- Sidebar: photo button with thumbnail ---- */
.sala-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: #cbd5e1;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.sala-btn:hover {
  background: rgba(59,130,246,0.1);
  border-left-color: rgba(59,130,246,0.4);
  color: #fff;
}

.sala-btn-active {
  background: rgba(59,130,246,0.15);
  border-left-color: #3b82f6;
  color: #fff;
}

.sala-btn-thumb {
  width: 52px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #1e293b;
}

.sala-btn-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sala-btn-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sala-btn-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sala-btn-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sala-btn-active .sala-btn-label {
  color: #93c5fd;
}

/* ============================================
   GALERIA REPRESENTATIVA — 1 imagem por espaço
   ============================================ */

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 900px) {
  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.galeria-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}

.galeria-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.galeria-card:hover img {
  transform: scale(1.04);
}

.galeria-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.6rem 0.45rem;
  background: linear-gradient(to top, rgba(10,15,26,0.85) 0%, transparent 100%);
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

/* ---- Botão "Ver tour 360°" ---- */
.galeria-tour-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.btn-tour360 {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  color: var(--blue);
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: gap 0.2s, opacity 0.2s;
}

.btn-tour360:hover {
  gap: 0.85rem;
  opacity: 0.8;
}

.btn-tour360-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-tour360-icon svg {
  width: 22px;
  height: 22px;
}

.btn-tour360-badge {
  position: absolute;
  bottom: -2px;
  right: -6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.5rem;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
  padding: 1px 4px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.btn-tour360-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.btn-tour360:hover .btn-tour360-arrow {
  transform: translateX(3px);
}

/* ============================================
   GALERIA ASSIMÉTRICA — grande esq. + 2×2 dir.
   ============================================ */

.galeria-asym {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

@media (max-width: 700px) {
  .galeria-asym {
    grid-template-columns: 1fr;
  }
}

.galeria-card-large {
  /* Ocupa toda a altura da grid à direita */
  aspect-ratio: unset;
  height: 100%;
  min-height: 240px;
}

.galeria-small-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.65rem;
}

.galeria-small-grid .galeria-card {
  aspect-ratio: 4/3;
}
