/* =======================
   COOKIE BANNER – AlpA Consulting (sticky bottom)
======================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #101a33;
  color: #e6edff;
  border-top: 2px solid #223055;
  padding: 18px 20px;
  text-align: center;
  z-index: 10000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
  display: none; /* di default nascosto, viene mostrato da JS */
}

.cookie-banner p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: #e6edff;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Bottoni */
.cookie-banner .ap-button {
  border: 1px solid #e9c46a;
  background: transparent;
  color: #e9c46a;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-banner .ap-button:hover {
  background: #e9c46a;
  color: #101a33;
}

.cookie-banner .ap-button.primary {
  background: #e9c46a;
  color: #101a33;
}

.cookie-banner .ap-button.primary:hover {
  background: #f2d78d;
}

/* =======================
   MODAL PREFERENZE COOKIE
======================== */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10001;
}

.cookie-modal-content {
  background: #ffffff;
  color: #223055;
  border-radius: 10px;
  padding: 24px 28px;
  max-width: 420px;
  width: 90%;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cookie-modal-content h3 {
  margin-bottom: 10px;
  color: #101a33;
}

.cookie-modal-content label {
  display: block;
  margin: 8px 0;
  font-size: 15px;
  cursor: pointer;
}

.cookie-modal-actions {
  margin-top: 18px;
  text-align: center;
}

.cookie-banner {
  animation: fadeUpBanner 0.5s ease forwards;
}


@keyframes fadeUpBanner {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================
   RESPONSIVE
======================== */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 16px;
    font-size: 14px;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-banner .ap-button {
    width: 100%;
    max-width: 300px;
  }

  .cookie-modal-content {
    padding: 20px;
  }
}
