/* ====  GLOBAL  ==== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;               /* sidebar + main in one flex row   */
  min-height: 100vh;
  font-family: "Times New Roman";
}

/* ====  SIDEBAR  ==== */
.sidebar {
  width: 200px;
  background: #111;            /* near‑black */
  color: #fff;
  padding: 1rem;
  overflow-y: auto;            /* its own scrollbar, like screenshot */
}

.sidebar h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.1;
  text-align: center;
}

.sidebar nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.75rem;
}

.sidebar nav li {
  margin: 0.25rem 0;
}

.sidebar a {
  color: #00ff00;              /* bright green links */
  text-decoration: none;
  font-size: 1rem;
}

.sidebar a:hover {
  text-decoration: underline;
}

.section‑title {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-weight: bold;
}

.sidebar hr {
  border: none;
  border-top: 1px solid #555;
  margin: 0.75rem 0;
}

/* ====  MAIN CONTENT  ==== */
.content {
  flex: 1;                     /* take remaining width */
  background: cyan;
  padding: 0 1.5rem 2rem;
}

.content h2 {
  text-align: center;
  margin-top: 0.6rem;
  font-size: 2.5rem;
}


/* Default: no break on desktop */
.mobile-break {
  display: inline;
}

/* On mobile: force a line break */
@media (max-width: 768px) {
  .mobile-break {
    display: block;
  }
}



.content h3 {
  text-align: center;
  font-size: 1.7rem;
  margin: 0.5rem 0;
}

.content hr {
  border: none;
  border-top: 3px solid #b8ffff;  /* thin light line, like screenshot */
  margin: 1rem 0;
}

.content p,
.content li {
  font-size: 1.1rem;
  line-height: 1.45;
}

.content ul {
  margin-left: 2rem;
}

/* ====  TOP‑OF‑PAGE QUICK LINKS  ======================================= */
.toc          { margin: .3rem 0 0 1rem; }
.toc li       { font-size: 1rem; }
.toc a        { color: #0000cc; }

/* ====  INFO TABLE (“Scheda di presentazione”) ========================= */
.info‑table {
  border-collapse: collapse;
  margin: .5rem auto;
  font-size: .95rem;
}
.info‑table th,
.info‑table td {
  border: 1px solid #008b8b;
  padding: .3rem .5rem;
  text-align: left;
}
.info‑table th { background: rgba(0, 0, 0, .07); }

/* ====  BOXED LINKS (“Burocrazia”, “Book”)  ============================ */
.boxed‑link‑group        { text-align: center; }
.boxed‑link {
  display: inline-block;
  margin: .25rem;
  padding: .25rem .55rem;
  border: 1px solid #006666;
  background: rgba(255,255,255,.25);
  font-size: .9rem;
  text-decoration: none;
  color: #000;
}
.boxed‑link:hover { background: rgba(255,255,255,.5); }

/* ====  LEZIONI TABLE  (NEW) =========================================== */
.table‑wrapper          { overflow-x: auto; }
.lezioni‑table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.lezioni‑table th,
.lezioni‑table td  {
  border: 1px solid #008b8b;
  padding: .35rem .4rem;
  vertical-align: top;
}
.lezioni‑table thead th {
  background: rgba(0,0,0,.07);
}
.lezioni‑table td.dl           { text-align: center; white-space: nowrap; }
.lezioni‑table td.dl a         { color: #0000cc; }
.lezioni‑table td.missing      { color: #aa0000; font-weight: bold; }


/* Hamburger button */
.hamburger {
  display: none; /* hidden on desktop */
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 30px;
  background: none;
  border: none;
  color: #333;
  z-index: 1001;
  cursor: pointer;
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
  body {
    flex-direction: column; /* stack sidebar and content */
  }

  .hamburger {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* hidden by default */
    height: 100%;
  }

  .sidebar.open {
    left: 0; /* slide in */
  }

  .content {
    padding-top: 60px; /* avoid overlap with hamburger */
  }
}

/* Ensure html and body cover the full screen on smaller devices */
@media only screen and (max-width: 768px) {
  html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
  }
}