@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Wrappa solo il dropdown */
.dropdown {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0b0b0b;
  border: 1px solid #222;
  padding: 0.5rem 0;
  z-index: 10;
  min-width: 150px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.submenu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #66ccff;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.submenu a:hover {
  background-color: #222;
  color: #99ddff;
}

/* Mostra il menu al passaggio */
.dropdown:hover .submenu {
  display: block;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #111;
  color: #eee;
  font-family: 'IBM Plex Mono', monospace;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  background-color: #0b0b0b;
  border-bottom: 1px solid #222;
  box-sizing: border-box;
}

.site-title {
  font-size: 1rem;
  font-weight: bold;
  color: #66ccff;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.menu a {
  font-size: 0.9rem;
  color: #66ccff;
  text-decoration: none;
}

.menu a,
.menu a:visited {
  color: #66ccff;
  text-decoration: none;
}

a:visited {
  color: #66ccff;
}

.menu a:hover {
  color: #99ddff;
  text-decoration: underline;
}

/* Quote Section */
.quote-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  text-align: center;
  box-sizing: border-box;
}

.quote-block {
  max-width: 800px;
  width: 100%;
}

.quote {
  font-size: 2rem;
  line-height: 1.4;
}

.author {
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #888;
}

/* Articolo */
.article-container {
  max-width: 960px;
  width: 100%;
  margin: 4rem auto;
  padding: 0 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ddd;
  box-sizing: border-box;
}

.article-container h1 {
  font-size: 2.0rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
}

.article-container p {
  margin-bottom: 1.5rem;
}

/* Code blocks */
pre {
  background-color: #1a1a1a;
  color: #66ccff;
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 5px;
  font-size: 0.95rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

code {
  background-color: #1a1a1a;
  color: #66ccff;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.95rem;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  color: #ccc;
  background-color: #0b0b0b;
  border-top: 1px solid #222;
}

/* Responsive */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .site-title {
    font-size: 1.1rem;
  }

  .quote {
    font-size: 1.6rem;
  }

  .author {
    font-size: 1rem;
  }

  .article-container {
    padding: 0 1rem;
    font-size: 1rem;
  }

  .article-container h1 {
    font-size: 2rem;
  }
}

.book {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.book-text {
  flex: 1;
  min-width: 250px;
}

.book-cover {
  width: 200px;
  max-width: 100%;
  height: auto;
  border: 1px solid #333;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.book-separator {
  border: none;
  height: 1px;
  background: linear-gradient(to right, #222, #444, #222);
  margin: 2rem 0;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .book {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-text {
    width: 100%;
  }

  .book-cover {
    margin-top: 1rem;
  }
}