body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f5f5f5;
}

.layout {
  display: flex;
}

/* SIDEBAR FISSA A SINISTRA */
.sidebar {
  width: 230px;
  background: #1f1f1f;
  color: white;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-size: 20px;
  font-weight: bold;
  padding: 0 20px 20px;
}

.sidebar-nav a {
  display: block;
  padding: 12px 20px;
  color: #ddd;
  text-decoration: none;
  font-size: 15px;
}

.sidebar-nav a:hover {
  background: #333;
  color: white;
}

/* CONTENUTO A DESTRA */
.content {
  margin-left: 230px;
  padding: 20px;
  width: calc(100% - 230px);
}

/* CARDS */
.card {
  background: white;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* PINBOARD */
.pinboard {
  background: #fff8c4;
  border-left: 4px solid #ffcc00;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  white-space: pre-wrap;
}

/* FORM */
input, textarea {
  width: 100%;
  padding: 10px;
  margin: 6px 0 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

button {
  padding: 10px 16px;
  background: #0078ff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
}

/* MOBILE: sidebar diventa topbar */
@media (max-width: 700px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
  }

  .sidebar-nav a {
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }

  .content {
    margin-left: 0;
    width: 100%;
  }
}
