/*
  /$$$$$$  /$$   /$$ /$$      /$$  /$$$$$$  /$$$$$$$$ /$$$$$$$$ /$$   /$$
 /$$__  $$| $$  | $$| $$$    /$$$ /$$__  $$|__  $$__/| $$_____/| $$  / $$
| $$  \ $$| $$  | $$| $$$$  /$$$$| $$  \ $$   | $$   | $$      |  $$/ $$/
| $$$$$$$$| $$  | $$| $$ $$/$$ $$| $$$$$$$$   | $$   | $$$$$    \  $$$$/ 
| $$__  $$| $$  | $$| $$  $$$| $$| $$__  $$   | $$   | $$__/     >$$  $$ 
| $$  | $$| $$  | $$| $$\  $ | $$| $$  | $$   | $$   | $$       /$$/\  $$
| $$  | $$|  $$$$$$/| $$ \/  | $$| $$  | $$   | $$   | $$$$$$$$| $$  \ $$
|__/  |__/ \______/ |__/     |__/|__/  |__/   |__/   |________/|__/  |__/

                                  a u m a t e x
   ===========================================================

   Project: Uncovered Rome
   File: banner.css
   Created: 2025-10-23
   -----------------------------------------------------------
   PURPOSE:
   Controlla lo stile del banner cookie e dei relativi controlli,
   assicurando visibilità, leggibilità e coerenza estetica.

   ===========================================================
*/

@import url('variables.css');

/* Contenitore principale del banner cookie */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  display: none;
  padding: 18px clamp(1rem, 4vw, 2.5rem);
  background: var(--colore-2);
  color: var(--colore-3);
  border-top: 1px solid rgba(0,0,0,0.08);
  z-index: var(--z-toast);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(18px);
  opacity: 0;
  transition:
    transform var(--fx-duration-m) var(--fx-ease-standard),
    opacity var(--fx-duration-m) var(--fx-ease-standard);
}

.cookie-banner.is-visible {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--colore-1);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--fx-duration-s) var(--fx-ease-standard);
}

.cookie-banner a:hover,
.cookie-banner a:focus-visible {
  color: var(--colore-4);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions button {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--border-radius-m);
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--colore-2);
  color: var(--colore-3);
  transition: var(--fx-transition-base);
}

.cookie-actions button:hover {
  transform: translateY(-1px);
}

.cookie-actions button:active {
  transform: translateY(0);
}

.cookie-actions button:focus-visible {
  outline: 2px solid var(--colore-1);
  outline-offset: 2px;
}

#acceptCookies {
  background: var(--colore-1);
  color: var(--colore-2);
  border-color: var(--colore-1);
}

#declineCookies {
  background: transparent;
  border-color: rgba(0,0,0,0.12);
}

#declineCookies:hover {
  border-color: rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cookie-actions {
    justify-content: flex-end;
  }

  .cookie-actions button {
    width: 100%;
  }
}
