/* =====================================================
   DR PUNTO G — Cookie Consent Banner
   Conforme alle Linee guida del Garante (2022)
   ===================================================== */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1784A0;
  color: #fff;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 -4px 40px rgba(15,76,129,0.3);
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
}

#cookie-banner.cb-visible {
  transform: translateY(0);
}

.cb-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cb-text {
  flex: 1;
  min-width: 260px;
}

.cb-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.cb-title i {
  color: #0F93AA;
  font-size: 1rem;
}

.cb-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin: 0;
}

.cb-desc a {
  color: #0F93AA;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.cb-desc a:hover {
  color: #fff;
}

.cb-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cb-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.58rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: all 0.22s;
  white-space: nowrap;
  line-height: 1;
}

.cb-accept {
  background: #0F93AA;
  color: #0F4C81;
}

.cb-accept:hover {
  background: #0F4C81;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(169,212,231, 0.4);
}

.cb-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.cb-reject:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.cb-policy {
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  border: none;
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-weight: 400;
}

.cb-policy:hover {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 700px) {
  #cookie-banner {
    padding: 1rem 1.1rem 1.2rem;
  }

  .cb-inner {
    gap: 1rem;
  }

  .cb-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 400px) {
  .cb-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cb-btn {
    text-align: center;
  }
}
