/* SERVISO — Cookie consent, lightbox, opening banner. */
/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-consent {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: rgba(10,37,64,.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  transform: translateY(100%);
  transition: transform .4s var(--ease-smooth);
}
.cookie-consent.visible { transform: translateY(0); }
.cookie-consent .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-text { color: rgba(255,255,255,.8); font-size: .9rem; line-height: 1.5; flex: 1; min-width: 200px; }
.cookie-text a { color: var(--primary-light); text-decoration: underline; }
.cookie-buttons { display: flex; gap: .75rem; flex-shrink: 0; }
.cookie-accept {
  padding: .625rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .3s;
  font-family: 'Inter', sans-serif;
}
.cookie-accept:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.cookie-reject {
  padding: .625rem 1.25rem;
  background: transparent;
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  transition: all .3s;
  font-family: 'Inter', sans-serif;
}
.cookie-reject:hover { background: rgba(255,255,255,.08); color: white; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-image { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow-2xl); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s;
  backdrop-filter: blur(8px);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }

/* ============================================================
   OPENING BANNER
   ============================================================ */
.opening-banner {
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  padding: .625rem 1rem;
  font-size: .9rem;
  font-weight: 500;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
}
body.has-banner { --nav-height: calc(72px + 40px); }

/* ── Responsive ─────────────────────────────────────────────── */
/* Kept beside the component these rules modify, instead of in a single
 * block at the bottom of the stylesheet, separated from everything they
 * apply to. */

@media (max-width: 576px) {
  .cookie-consent .container { flex-direction: column; align-items: flex-start; }
  .cookie-buttons { width: 100%; }
  .cookie-accept, .cookie-reject { flex: 1; text-align: center; }
}
