/* Degano Costruzioni — Cookie Consent Banner styles */
/* Palette del sito: --primary #5D0016, --secondary #C5A059, --white #fff, --dark #1a1a1a */

.cc-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 30px);
  width: calc(100% - 24px);
  max-width: 720px;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(93, 0, 22, 0.15);
  border-top: 4px solid #5D0016;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cc-banner.cc-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cc-inner {
  padding: 22px 24px;
}

.cc-title {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #5D0016;
  line-height: 1.3;
}

.cc-desc {
  margin: 0 0 16px 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #2a2a2a;
}

.cc-link {
  color: #5D0016;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-link:hover,
.cc-link:focus {
  color: #C5A059;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.cc-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px 20px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  min-width: 140px;
  text-transform: uppercase;
}

.cc-btn:focus-visible {
  outline: 3px solid #C5A059;
  outline-offset: 2px;
}

.cc-btn-primary {
  background: #5D0016;
  color: #ffffff;
  border-color: #5D0016;
}
.cc-btn-primary:hover {
  background: #7a001d;
  border-color: #7a001d;
}

.cc-btn-secondary {
  background: transparent;
  color: #5D0016;
  border-color: rgba(93, 0, 22, 0.35);
}
.cc-btn-secondary:hover {
  background: rgba(93, 0, 22, 0.06);
  border-color: #5D0016;
}

/* Floating reopen button */
.cc-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #5D0016;
  color: #ffffff;
  border: 1.5px solid #5D0016;
  border-radius: 999px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.cc-reopen:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: #7a001d;
}
.cc-reopen:focus-visible {
  outline: 3px solid #C5A059;
  outline-offset: 2px;
}

.cc-reopen-label {
  display: inline-block;
}

/* Mobile */
@media (max-width: 640px) {
  .cc-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    transform: translate(0, 30px);
    border-radius: 10px 10px 0 0;
    border-left: none;
    border-right: none;
  }
  .cc-banner.cc-visible {
    transform: translate(0, 0);
  }
  .cc-inner {
    padding: 18px 18px 20px 18px;
  }
  .cc-actions {
    justify-content: stretch;
  }
  .cc-btn {
    flex: 1 1 auto;
    min-width: 0;
  }
  .cc-reopen .cc-reopen-label {
    display: none;
  }
  .cc-reopen {
    padding: 10px 12px;
    font-size: 1rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cc-banner,
  .cc-reopen {
    transition: none;
  }
}
