/* ── Design tokens (also declared inline in index.html for guaranteed availability) ── */
:root {
  --bg: #FBF4EB;
  --burgundy: #703030;
  --burgundy-dark: #5a2424;
  --gold: #C8964A;
  --text: #3a1a1a;
  --text-muted: #7a5a5a;
  --border: rgba(112,48,48,0.15);
  --font-display: 'Open Sans', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --max-width: 100%

}

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

/* ══════════════════════════════════════════
   APP HEADER
══════════════════════════════════════════ */
.app-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 6;
  background-color: #C8964A;
  background-color: var(--gold);
}

/* ══════════════════════════════════════════
   HAMBURGER
══════════════════════════════════════════ */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.hamburger-btn span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger-btn span:nth-child(1) { width: 22px; }
.hamburger-btn span:nth-child(2) { width: 16px; }
.hamburger-btn span:nth-child(3) { width: 22px; }

.hamburger-btn.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ══════════════════════════════════════════
   DRAWER OVERLAY
══════════════════════════════════════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  pointer-events: none;
  z-index: 100;
  transition: background 0.3s ease;
}
.drawer-overlay.open {
  background: rgba(0,0,0,0.45);
  pointer-events: all;
}

/* ══════════════════════════════════════════
   DRAWER PANEL
══════════════════════════════════════════ */
.drawer {
  position: fixed;
  /* 116px = 32px (gold) + 20px (dark) + 64px (cream) from your header */
  top: 116px; 
  left: 0;
  height: calc(100vh - 116px); /* Full height minus the header */
  width: 280px;
  background-color: var(--burgundy);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 101;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 4px 0 15px rgba(0,0,0,0.3);
}
.drawer.open { transform: translateX(0); }

/* ── Drawer internals ── */
.lang-toggle { display: flex; gap: 8px; padding: 20px 20px 14px; }

.lang-btn {
  border: 1px solid white;
  background: transparent;
  color: white;
  padding: 6px 18px;
  border-radius: 8px; /* Slightly more rounded pill shape */
  font-weight: 600;
}
.lang-btn.active {
  background: #FBF4EB; /* Matches page background */
  color: #703030;
  border-color: #FBF4EB;
}
.menu-item {
  display: block;
  padding: 50px 24px; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem; /* Slightly larger for the bigger spacing */
  text-decoration: none;
  transition: background 0.15s ease;
}
.menu-item:hover { background: rgba(255,255,255,0.1); }
.menu-item.active {
  background: rgba(0, 0, 0, 0.15); /* Darker overlay for active state */
}

/* ══════════════════════════════════════════
   ROUTE LIST
══════════════════════════════════════════ */
.route-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(112,48,48,0.15);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.route-item:first-of-type { border-top: 1px solid rgba(112,48,48,0.15); border-top: 1px solid var(--border); }
.route-item:hover { background: rgba(112,48,48,0.04); }

/* ══════════════════════════════════════════
   CHARACTER ELEMENTS
══════════════════════════════════════════ */
.char-circle {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(200,150,74,0.1);
  border: 1px solid rgba(200,150,74,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.char-thumb {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(200,150,74,0.1);
  border: 1px solid rgba(200,150,74,0.25);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════
   BUTTON
══════════════════════════════════════════ */
.btn-avanti {
  border: 2px solid #703030;
  border: 2px solid var(--burgundy);
  background: white;
  color: #703030;
  color: var(--burgundy);
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 10px 40px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-avanti:hover { background: #703030; background: var(--burgundy); color: white; }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up         { animation: fadeUp 0.4s ease both; }
.fade-up-delay-1 { animation-delay: 0.08s; }
.fade-up-delay-2 { animation-delay: 0.16s; }
.fade-up-delay-3 { animation-delay: 0.24s; }
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px; /* Reduced padding for tighter centering */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px; /* Space between lines */
  width: 44px;
  height: 44px;
}

.hamburger-btn span {
  display: block;
  height: 2px; /* Thinner lines look more elegant */
  background-color: #522020; /* Your specific dark burgundy */
  border-radius: 1px;
  transition: all 0.3s ease;
}
.drawer-footer {
  margin-top: auto;
  height: 200px;
  background-color: #D9B382; /* Tan color from bottom of reference */
}