@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: #ddd6d6;
}

/* CONTENITORE GENERALE */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* HEADER */
.header {
  width: 100%;
  margin-top: 20px;
}

.nav {
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

/* CONTENUTO */
.content, body {
  width: 100%;
  max-width: 1900px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-title {
  margin-bottom: 20px;
  text-align: center;
}

/* =========================
   CONTROLLI (p5 DOM)
   ========================= */
.controls {
  margin-top: 15px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.controls label {
  font-size: 0.9rem;
}

.controls input {
  width: 80px;
  padding: 6px;
  font-size: 0.9rem;
}

.controls button {
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background-color: #444;
  color: white;
  border-radius: 4px;
}

.controls button:hover {
  background-color: #222;
}

/* MOBILE */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.4rem;
  }

  .controls {
    flex-direction: column;
  }
}
