/* habitat-dash-v2 Layout - Shell Grid System */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0px !important;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

#app-root {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  height: 100dvh !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.amiga-top-screen-bar {
  flex: 0 0 auto !important;
  width: 100% !important;
}

.shell-header {
  flex: 0 0 auto !important;
  height: var(--header-height) !important;
  width: 100% !important;
}

.shell-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
}

.shell-footer {
  flex: 0 0 auto !important;
  height: var(--footer-height) !important;
  width: 100% !important;
}

.app-shell {
  min-height: 100vh !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Header */
.shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--space-5);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
  gap: var(--space-4);
}

.shell-header__left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
}

.shell-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-lg);
  white-space: nowrap;
}

.shell-header__logo svg {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  flex-shrink: 0 !important;
  color: var(--accent-blue, #58a6ff);
}

.shell-header__center {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.shell-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--bg-tertiary);
  padding: var(--space-1);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-tab.active {
  color: var(--text-on-accent);
  background: var(--accent-blue);
}

.nav-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.shell-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.shell-header__user {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-btn:hover {
  border-color: var(--border-focus);
  background: var(--bg-hover);
}

.user-btn svg {
  width: 18px;
  height: 18px;
}

.user-menu {
  position: absolute !important;
  top: calc(100% + var(--space-2, 8px)) !important;
  right: 0 !important;
  min-width: 200px !important;
  background: var(--bg-secondary, #161b22) !important;
  border: 1px solid var(--border-primary, #30363d) !important;
  border-radius: var(--radius-md, 8px) !important;
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.5)) !important;
  padding: var(--space-2, 8px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px) !important;
  transition: all var(--transition-fast, 120ms ease) !important;
  z-index: 1000 !important;
}

.user-menu.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.user-menu__header {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: var(--space-2);
}

.user-menu__name {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.user-menu__role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: capitalize;
}

.user-menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-menu__item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.user-menu__item.danger {
  color: var(--accent-red);
}

.user-menu__item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Main Grid */
.shell-main {
  display: grid;
  grid-template-columns: var(--tools-width) 1fr var(--options-width);
  grid-template-rows: 1fr;
  height: 100%;
  overflow: hidden;
  min-height: 0;
}

.shell-tools,
.shell-options {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-primary);
  overflow-y: auto;
  padding: var(--space-4);
}

.shell-options {
  border-right: none;
  border-left: 1px solid var(--border-primary);
}

.shell-body {
  background: var(--bg-primary);
  overflow-y: auto;
  padding: var(--space-6);
  min-height: 0;
}

/* Footer */
.shell-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--footer-height);
  padding: 0 var(--space-5);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.shell-footer__left,
.shell-footer__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.shell-footer__link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.shell-footer__link:hover {
  color: var(--accent-blue);
}

.shell-footer__version {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  :root {
    --tools-width: 240px;
    --options-width: 280px;
  }
}

@media (max-width: 1024px) {
  .shell-main {
    grid-template-columns: 1fr;
  }
  
  .shell-body {
    padding: var(--space-4);
  }
  
  .shell-header__center {
    display: none;
  }
  
  .shell-header__nav {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: inline-flex !important;
  }
}


/* Scrollbar styling */
.shell-tools::-webkit-scrollbar,
.shell-options::-webkit-scrollbar,
.shell-body::-webkit-scrollbar {
  width: 8px;
}

.shell-tools::-webkit-scrollbar-track,
.shell-options::-webkit-scrollbar-track,
.shell-body::-webkit-scrollbar-track {
  background: transparent;
}

.shell-tools::-webkit-scrollbar-thumb,
.shell-options::-webkit-scrollbar-thumb,
.shell-body::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: content-box;
}

.shell-tools::-webkit-scrollbar-thumb:hover,
.shell-options::-webkit-scrollbar-thumb:hover,
.shell-body::-webkit-scrollbar-thumb:hover {
  background: var(--border-focus);
}

/* ==========================================================================
   COMMODORE AMIGA 1.3 16-BIT SQUARE MOBILE BOTTOM DOCK (UNIVERSAL)
   Zero border-radius, pure 16-bit 3D beveled buttons, full width dock bar.
   Active button: Amiga Bright Orange (#ff8800) with black text.
   Inactive buttons: Amiga Blue (#0055aa) with white text.
   ========================================================================== */
@media (min-width: 901px) {
  .mobile-bottom-bar,
  .amiga-mobile-dock,
  #mobile-bottom-bar {
    display: none !important;
  }
}



/* ==================== LINGUETTA MOBILE PIATTA A DESTRA ==================== */
.floating-edge-btn,
.snd-opt-tab {
  display: none !important;
}

@media (max-width: 900px) {
  /* Itinerari e Dash: NESSUNA linguetta (rimossa totalmente) */
  body#hab-itinerari .floating-edge-btn,
  body[data-module="itinerari"] .floating-edge-btn,
  body:has(#it-main-body) .floating-edge-btn,
  body.mod-itinerari .floating-edge-btn,
  body.mod-dash .floating-edge-btn,
  .floating-edge-btn.left {
    display: none !important;
  }

  /* Sandra, Giornale, Foto: linguetta piatta a destra, lunghezza x 3 (90px), SENZA SVG */
  .floating-edge-btn.right,
  .snd-opt-tab {
    display: flex !important;
    position: fixed !important;
    right: 0 !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 12px !important;
    height: 90px !important; /* Lunghezza x 3 */
    background: #ff8800 !important;
    border: 2px solid #ffffff !important;
    border-right: none !important;
    border-radius: 0px !important; /* Piatta, zero curvature */
    box-shadow: -2px 0 0 #000000 !important;
    z-index: 99990 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }

  .floating-edge-btn.right::after,
  .snd-opt-tab::after {
    content: '' !important;
    display: block !important;
    width: 2px !important;
    height: 50px !important;
    background: #000000 !important;
  }

  .floating-edge-btn.right svg,
  .floating-edge-btn.right .tab-icon,
  .floating-edge-btn.right .tab-chevron,
  .snd-opt-tab svg {
    display: none !important;
  }

  body:has(#shell-options.open) .floating-edge-btn.right,
  body.drawer-open .floating-edge-btn.right,
  #shell-options.open ~ .floating-edge-btn.right {
    transform: translateY(-50%) translateX(120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
  .floating-edge-btn.right:active {
    transform: translateY(-50%) translateX(1px) scale(0.92) !important;
    opacity: 1 !important;
  }
  /* Slide out when drawer is open */
  body:has(#shell-options.open) .floating-edge-btn.right,
  body.drawer-open .floating-edge-btn.right,
  #shell-options.open ~ .floating-edge-btn.right {
    transform: translateY(-50%) translateX(120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .floating-edge-btn.left {
    left: 0 !important;
    right: auto !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 24px !important;
    padding: 0 3px 0 2px !important;
    border-radius: 0 6px 6px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-left: none !important;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.5), 0 0 6px rgba(223, 166, 52, 0.3) !important;
    gap: 1px;
  }
  .floating-edge-btn.left .tab-chevron {
    font-size: 6px !important;
    opacity: 0.85;
    font-weight: 800;
  }
  .floating-edge-btn.left .tab-icon {
    font-size: 9px !important;
    line-height: 1;
  }
  .floating-edge-btn.left:hover {
    transform: translateY(-50%) translateX(3px) !important;
    opacity: 1 !important;
  }
  .floating-edge-btn.left:active {
    transform: translateY(-50%) translateX(-1px) scale(0.92) !important;
    opacity: 1 !important;
  }
  /* Slide out when left drawer is open */
  body:has(#shell-tools.open) .floating-edge-btn.left,
  body.drawer-open .floating-edge-btn.left,
  #shell-tools.open ~ .floating-edge-btn.left {
    transform: translateY(-50%) translateX(-120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Drawer Backdrop */
  .shell-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 12, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .shell-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .drawer-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #8c98a7;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    transition: all 0.15s ease;
    margin-left: auto;
  }
  .drawer-close-btn:hover, .drawer-close-btn:active {
    background: rgba(223, 166, 52, 0.2);
    color: #dfa634;
    border-color: #dfa634;
  }

  /* Enhanced Drawer Styling - Perfectly Isolated Off-Screen When Closed */
  .shell-tools {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: min(320px, 84vw) !important;
    z-index: 1200 !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.85) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px 14px calc(80px + env(safe-area-inset-bottom, 0px)) 14px !important;
    border-radius: 0 !important;
    border-right: 1px solid rgba(223, 166, 52, 0.25) !important;
    border-left: none !important;
    background: #0e131d !important;
    display: none !important;
  }

  .shell-tools.open {
    display: block !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .shell-options {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: min(320px, 84vw) !important;
    z-index: 1200 !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.85) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px 14px calc(80px + env(safe-area-inset-bottom, 0px)) 14px !important;
    border-radius: 0 !important;
    border-left: 1px solid rgba(223, 166, 52, 0.25) !important;
    border-right: none !important;
    background: #0e131d !important;
    display: none !important;
  }

  .shell-options.open {
    display: block !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* ==================== SMARTPHONE GEOMETRY & ALIGNMENT (<= 768px) ==================== */
@media (max-width: 768px) {
  *, *:before, *:after {
    box-sizing: border-box !important;
  }
  .shell-header {
    height: 52px !important;
    padding-left: max(12px, env(safe-area-inset-left, 12px)) !important;
    padding-right: max(12px, env(safe-area-inset-right, 12px)) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .shell-header__left {
    gap: 8px !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
  }
  .shell-header__center {
    display: none !important;
    width: 0 !important;
    flex: 0 !important;
  }
  .shell-header__logo {
    font-size: 15px !important;
    gap: 6px !important;
    letter-spacing: 0.04em !important;
  }
  .shell-header__logo svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
  }
  .shell-header__right {
    gap: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  .mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-primary) !important;
    background: var(--bg-tertiary) !important;
    color: var(--text-secondary) !important;
  }
  .mobile-nav-toggle svg {
    width: 16px !important;
    height: 16px !important;
  }
  .shell-header__user {
    position: relative !important;
    flex-shrink: 0 !important;
  }
  .user-btn {
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--border-primary) !important;
    background: var(--bg-tertiary) !important;
  }
  .user-btn #user-name,
  .user-btn svg,
  .shell-header__user #user-name {
    display: none !important;
  }
  .user-avatar, #user-avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--accent-blue, #58a6ff) !important;
    color: #0c0f14 !important;
    line-height: 1 !important;
  }
  .user-menu:not(.open) {
    display: none !important;
  }

  .shell-body {
    padding: 12px max(12px, env(safe-area-inset-right, 12px)) calc(140px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 12px)) !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .shell-main {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* SINGLE-PAGE FULL-WIDTH CENTERING (ITINERARI & GIORNALE) */
.mod-itinerari .shell-main,
.mod-giornale .shell-main {
  display: block !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.mod-itinerari .shell-tools,
.mod-itinerari .shell-options,
.mod-giornale .shell-tools,
.mod-giornale .shell-options:not(.grn-cat-drawer),
.mod-itinerari #shell-tools,
.mod-itinerari #shell-options,
.mod-giornale #shell-tools,
.mod-giornale #shell-options:not(.grn-cat-drawer),
.mod-itinerari .floating-edge-btn,
.mod-itinerari .snd-opt-tab,
.mod-giornale .snd-opt-tab {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mod-itinerari .shell-body,
.mod-giornale .shell-body {
  display: block !important;
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  padding: 20px 24px calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

/* GIORNALE: LINGUETTA PIATTA AMIGA & CASSETTO SLIDE CATEGORIE (SOLO CATEGORIE) */
.grn-edge-tab,
.mod-giornale .grn-edge-tab {
  position: fixed !important;
  right: 0 !important;
  top: 42% !important;
  transform: translateY(-50%) !important;
  width: 26px !important;
  height: 110px !important;
  background: var(--amiga-orange, #ff8800) !important;
  border: 2px solid #ffffff !important;
  border-right: none !important;
  border-bottom-color: #000000 !important;
  box-shadow: -2px 2px 0 #000000 !important;
  cursor: pointer !important;
  z-index: 998 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  font-family: 'Silkscreen', monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  letter-spacing: 0.12em !important;
  user-select: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease !important;
}

.grn-edge-tab:hover,
.mod-giornale .grn-edge-tab:hover {
  background: var(--amiga-orange-bright, #ffaa00) !important;
  transform: translateY(-50%) translateX(-4px) !important;
}

.mod-giornale aside.shell-options.grn-cat-drawer,
aside.shell-options.grn-cat-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 320px !important;
  max-width: 85vw !important;
  height: 100vh !important;
  background: var(--amiga-blue-dark, #002244) !important;
  border-left: 2px solid #ffffff !important;
  box-shadow: -6px 0 20px rgba(0,0,0,0.7) !important;
  z-index: 1000 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  padding: 16px !important;
  overflow: hidden !important;
  transform: translateX(100%) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.mod-giornale aside.shell-options.grn-cat-drawer.open,
aside.shell-options.grn-cat-drawer.open {
  transform: translateX(0) !important;
}

.shell-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(2px) !important;
  z-index: 999 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease !important;
}

.shell-backdrop.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ITINERARI: AMIGA 16-BIT RETRO GAME GRAPHICS & PIXELATION */
.it-poi-img,
.amiga-pixelated,
.it-poi-card img,
.it-poi-card canvas {
  image-rendering: pixelated !important;
  image-rendering: -moz-crisp-edges !important;
  image-rendering: crisp-edges !important;
  border: 2px solid #000000 !important;
  border-right-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
  box-shadow: inset 1px 1px 0 #000000 !important;
  background: #001428 !important;
}

/* ==========================================================================
   COMMODORE AMIGA 1.3 16-BIT SQUARE BOTTOM NAVIGATION DOCK (UNIVERSAL)
   Zero border-radius (STRICTLY SQUARE), Commodore Amiga 1.3 3D Bevel,
   Workbench Blue chassis (#002244),
   Square 3D bevel buttons:
     - Inactive: Amiga Classic Blue (#0055aa), White text (#ffffff)
     - Active: Amiga Workbench Orange (#ff8800), Pure Black text (#000000)
     - Active press: 3D Inset bevel (inverted borders), 1px translation
   Hard 16-bit pixel drop shadow (3px 3px 0 #000000), ZERO blur, ZERO oval.
   ========================================================================== */
.mobile-bottom-bar,
.amiga-mobile-dock,
#mobile-bottom-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: space-around !important;
  position: fixed !important;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 24px) !important;
  max-width: 420px !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 4px !important;
  border-radius: 0px !important;
  background: #002244 !important;
  border: 2px solid #ffffff !important;
  border-right-color: #000000 !important;
  border-bottom-color: #000000 !important;
  box-shadow: 3px 3px 0px #000000 !important;
  z-index: 99999 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.bottom-bar__item,
.amiga-dock-item {
  flex: 1 1 0% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  margin: 0 2px !important;
  padding: 3px 2px !important;
  background: #0055aa !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  border-right-color: #000000 !important;
  border-bottom-color: #000000 !important;
  box-shadow: 1px 1px 0px #000000 !important;
  border-radius: 0px !important;
  text-decoration: none !important;
  font-family: 'Silkscreen', 'Share Tech Mono', 'Courier New', monospace !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  box-sizing: border-box !important;
  transition: none !important;
}

.bottom-bar__item:hover,
.amiga-dock-item:hover {
  filter: brightness(1.12) !important;
}

.bottom-bar__item:active,
.amiga-dock-item:active {
  transform: translate(1px, 1px) !important;
  border-color: #000000 #ffffff #ffffff #000000 !important;
  box-shadow: none !important;
}

/* Solo pagina attiva in ARANCIO AMIGA (#ff8800) con testo e icone nere */
.bottom-bar__item.active,
.amiga-dock-item.active {
  background: #ff8800 !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
  border-right-color: #000000 !important;
  border-bottom-color: #000000 !important;
  box-shadow: 1px 1px 0px #000000 !important;
}

.bottom-bar__item.active .bottom-bar__icon,
.bottom-bar__item.active .bottom-bar__label,
.amiga-dock-item.active .amiga-dock-icon,
.amiga-dock-item.active .amiga-dock-label {
  color: #000000 !important;
  font-weight: 700 !important;
}

.bottom-bar__icon,
.amiga-dock-icon {
  font-size: 18px !important;
  line-height: 1 !important;
  display: block !important;
  margin-bottom: 2px !important;
}

.bottom-bar__label,
.amiga-dock-label {
  font-family: 'Silkscreen', 'Share Tech Mono', 'Courier New', monospace !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
  color: inherit !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
}

body,
main.shell-main,
.main,
#it-main-body,
.it-body-wrap,
#it-content-area,
.grn-page-body,
.snd-main,
.ap-main-wrap,
#shell-body {
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
}

