/* ==== Cookie banner ==== */
.cookie-banner {
  display: none; /* di default nascosto */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #222;
  color: #fff;
  padding: 20px;
  text-align: center;
  z-index: 10000;
  font-family: Arial, sans-serif;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
  box-sizing: border-box;
}

/* Quando il banner è visibile, aggiungi spazio in basso al body */
body.has-cookie-banner {
  padding-bottom: 80px; /* altezza stimata del banner + margine */
}

.cookie-banner p {
  margin: 0 0 10px;
  font-size: 16px;
}

.cookie-banner p a {
  color: #4da6ff;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-buttons .btn {
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.cookie-buttons .accept {
  background-color: #007BFF;
  color: white;
}
.cookie-buttons .accept:hover {
  background-color: #0056b3;
}

.cookie-buttons .essential {
  background-color: #6c757d;
  color: white;
}
.cookie-buttons .essential:hover {
  background-color: #545b62;
}

.cookie-buttons .reject {
  background-color: #dc3545;
  color: white;
}
.cookie-buttons .reject:hover {
  background-color: #a71d2a;
}

@media (max-width: 480px) {
  .cookie-buttons {
    flex-direction: column;
  }
  .cookie-buttons .btn {
    width: 100%;
  }
}
