/* supplement.css — generic legibility styles for the older Joomla (JA T3) generation.
   Scoped to body#bd so the primary (sitoweb) pages are never affected.
   The commercial JA T3 / "bvgtrail" template CSS was not archived; this restores
   a clean, readable centered layout + horizontal menu without chasing the original. */

body#bd {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

body#bd #ja-wrapper,
body#bd #ja-container,
body#bd #ja-mainbody {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

body#bd #ja-header { padding: 14px 0; border-bottom: 3px solid #658b29; }
body#bd #logo_header img, body#bd .logo img { max-width: 100%; height: auto; }

/* main horizontal menu — the real top nav is <ul id="ja-cssmenu" class="clearfix">,
   NOT ul.menu, so it must be targeted directly (this was the "unstyled bullet menu" bug). */
body#bd ul#ja-cssmenu,
body#bd ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  background: #658b29;
}
body#bd ul#ja-cssmenu > li,
body#bd ul.menu li { margin: 0; padding: 0; position: relative; }
body#bd ul#ja-cssmenu li a,
body#bd ul.menu li a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}
body#bd ul#ja-cssmenu li a:hover,
body#bd ul#ja-cssmenu li.active > a,
body#bd ul.menu li a:hover,
body#bd ul.menu li.active a { background: #4d6b1f; }
/* keep menu-title white inside the green bar (global .menu-title is green) */
body#bd ul#ja-cssmenu .menu-title { color: inherit; margin: 0; font-weight: 700; }

/* dropdown submenus (Percorso ▸ ROAD BOOK, Iscrizioni ▸ Ospitalità, Immagini ▸ BVG 2014) */
body#bd ul#ja-cssmenu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 170px;
  background: #4d6b1f;
  z-index: 1000;
}
body#bd ul#ja-cssmenu li:hover > ul { display: block; }
body#bd ul#ja-cssmenu li ul li a { text-transform: none; font-weight: 600; }

/* language switcher — compact chips, not stacked bullets merged with the menu */
body#bd ul.lang-inline {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
}
body#bd ul.lang-inline li { margin: 0; }
body#bd ul.lang-inline li a {
  display: block;
  padding: 4px 10px;
  background: #eee;
  color: #658b29;
  text-decoration: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}
body#bd ul.lang-inline li.lang-active a,
body#bd ul.lang-inline li a:hover { background: #658b29; color: #fff; }

/* header logo — clean, no underline */
body#bd #logo_header .logo,
body#bd h2.logo { margin: 0 0 10px; }
body#bd .logo a { text-decoration: none; color: #658b29; }

/* content column */
body#bd #ja-content, body#bd #ja-content-main, body#bd #ja-main {
  padding: 20px 0;
}
body#bd h1, body#bd h2, body#bd h3 { color: #2b2b2b; line-height: 1.25; }
body#bd a { color: #658b29; }
body#bd img { max-width: 100%; height: auto; }

/* results / listing tables (classifiche) */
body#bd table { border-collapse: collapse; width: 100%; margin: 12px 0; }
body#bd table td, body#bd table th {
  border: 1px solid #ddd;
  padding: 6px 10px;
  text-align: left;
}
body#bd table th { background: #f2f2f2; }

/* sidebar / module blocks */
body#bd .moduletable, body#bd .ja-moduletable { margin-bottom: 20px; }
body#bd .menu-title { font-weight: 700; margin: 0 0 6px; color: #658b29; }

/* footer */
body#bd #ja-footer {
  margin-top: 24px;
  padding: 18px 16px;
  border-top: 1px solid #ddd;
  font-size: 12px;
  color: #777;
  text-align: center;
}
