/* ═══════════════════════════════════════════════════════════
   Easy Italia Hub — Welcome overlay
   Mostra l'immagine di benvenuto; click su "Entra" la chiude.
   ═══════════════════════════════════════════════════════════ */

html.eih-wlc-on { overflow: hidden; }

/* ── Overlay ────────────────────────────────────────────── */
.eih-welcome {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: wlcIn .4s ease forwards;
  transition: opacity .55s ease;
}

@keyframes wlcIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.eih-welcome.is-leaving {
  opacity: 0 !important;
  pointer-events: none;
}

/* ── Image container ────────────────────────────────────── */
.wlc-img-wrap {
  position: relative;
  /* Max size: fill viewport minus padding, keep 3:2 ratio */
  width:  min(92vw, calc(92vh * 3 / 2));
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 4px 16px rgba(0,0,0,.3);
  animation: wlcSlideUp .45s cubic-bezier(.22,1,.36,1) .05s both;
}

@keyframes wlcSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.wlc-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Clickable "Entra" button area ──────────────────────── */
/* The image already shows the button visually; we overlay an
   invisible hot-spot exactly where the button appears (roughly
   bottom-centre, ~78-88% down, 28-72% wide). */
.wlc-btn-hit {
  position: absolute;
  left: 25%; right: 25%;
  top: 74%; bottom: 14%;
  cursor: pointer;
  border-radius: 50px;
  /* Uncomment to debug: background: rgba(255,0,0,.3); */
}
