@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,700&display=swap');

:root {
  --bg: #000000;
  --fg: #ffffff;
  --accent: #b3b3b3;
  --max-width: 1100px;
  --transition: 0.3s ease;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Satoshi', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 999;
  border-bottom: 1px solid #111;
}

.nav-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
  transition: color var(--transition);
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--accent);
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

.section {
  margin: 3rem 0;
}

/* TIPOGRAFIA */
h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

p {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: left;
}

/* IMMAGINI FLUIDE */
img,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 12px;
}

/* LISTE A TABELLA */
.table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cell-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}

.cell-text {
  font-size: 0.95rem;
  color: var(--accent);
  max-width: 100%;
}

.cell-text a {
  color: var(--fg);
  text-decoration: none;
  transition: color var(--transition);
}

.cell-text a:hover {
  color: var(--accent);
}

/* TOGGLE BOX */
.toggle,
details {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  cursor: pointer;
}

.toggle summary,
details summary {
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  outline: none;
  cursor: pointer;
}

.toggle p,
details p {
  margin-top: 0.5rem;
  color: var(--accent);
}

/* FORM */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem auto;
  width: 100%;
}

/* FOOTER */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent);
  padding: 2rem 1rem;
  border-top: 1px solid #111;
}

/* --- MEDIA QUERIES --- */
@media (min-width: 768px) {
  .navbar {
    gap: 2rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.2rem;
    align-items: start;
  }

  .cell-title {
    text-align: right;
  }

  p {
    text-align: justify;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .container {
    padding: 2rem;
  }
}