/* Dark mode automatico */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1c1c1c;
    color: #e0e0e0;
  }

  a {
    color: #80d8ff;
  }

  h1, h2, h3 {
    color: #f2f2f2;
  }

  .site-footer {
    background-color: #111;
    color: #ccc;
  }
}

/* Font migliorato */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.7;
}

/* ✨ Glow effect on hover for social icons */
p a img {
  transition: all 0.3s ease-in-out;
  margin: 5px;
  border-radius: 8px;
}

p a img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

/* 🎯 Ridimensiona davvero il logo caricato da _config.yml */
img[alt="Logo"] {
  width: 120px !important;
  height: auto !important;
  display: block;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
}


/* Ridimensiona immagine del logo */
.site-header img {
  max-width: 100px !important; /* circa 1/4 della grandezza attuale */
  height: auto;
  border-radius: 8px;
}


/* 📌 Sticky bar for top icons */
.sticky-icons {
  position: sticky;
  top: 0;
  background-color: #fff;
  padding: 10px;
  text-align: center;
  z-index: 10;
  border-bottom: 1px solid #e0e0e0;
}

@media (prefers-color-scheme: dark) {
  .sticky-icons {
    background-color: #1c1c1c;
    border-bottom: 1px solid #444;
  }
}
