.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .header-nav a {
    padding: 10px 0;
    text-align: center;
    width: 100%;
  }

  .header-inner.active .header-nav {
    display: flex;
  }
} 

.anime-footer {
  background: #ffffff;
  margin: 40px auto 20px auto;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); /* uguale all'header */
  max-width: 1000px;
  font-size: 14px;
  color: #333; /* stesso colore base */
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #333;
}

.footer-logo img {
  height: 40px; /* come l'header */
  border-radius: 8px;
  margin-right: 10px; /* come l'header-logo */
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.footer-links a:hover {
  background-color: #000;
  color: white;
}

.footer-credits {
  text-align: right;
  font-size: 14px;
  color: #333;
  flex: 1;
}

.footer-credits p {
  margin: 0;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
}

#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top-color: #007BFF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.anime-main {
  max-width: 1100px;
  margin: auto;
  padding: 30px 20px;
}

.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 10px;
  text-align: center;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.card h3 {
  font-size: 14px;
  margin-top: 8px;
  color: #333;
}

#searchInput {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid #bbb;
  font-size: 16px;
  font-family: inherit;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

#searchInput:focus {
  border-color: #007BFF;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

#pagination {
  text-align: center;
  margin-top: 30px;
}

#pagination button {
  margin: 0 4px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #eee;
  cursor: pointer;
}

#pagination button.active {
  background-color: #007BFF;
  color: #fff;
}

/* 🔹 Rimuove sottolineatura dai link nelle card */
.card a {
  text-decoration: none;
  color: inherit;
}

.card a:hover {
  text-decoration: none;
}

.card a:visited {
  color: inherit;
}
