@charset "utf-8";
/* Stato iniziale: nascosta sotto */
#pwaInstallBanner {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  background: #ffffff !important;
  border-top: 1px solid #ddd !important;
  padding: 10px 16px !important;
  z-index: 9999 !important;

  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 1), 
              opacity 0.3s ease-out;
}

/* Quando diventa visibile */
#pwaInstallBanner.show {
  transform: translateY(0);
  opacity: 1;
}

/* Contenuto */
#pwaInstallBanner .pwa-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Testo */
#pwaInstallBanner .pwa-text {
  font-size: 14px;
  color: #333;
  flex-grow: 1;
}

/* Bottone */
#pwaInstallBanner .pwa-install {
  padding: 6px 20px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}



  #splash{
    position: fixed; inset: 0; z-index: 2147483647;
    display: grid; place-items: center;
    background: linear-gradient(to bottom, #48665a, #2A5343);
    transition: opacity .5s ease;
  }
  .splash-box{ display:flex; flex-direction:column; align-items:center; gap:.75rem; padding:24px; text-align:center; color:#fff; }
  .splash-logo{
    width:100px; height:100px; border-radius:18px;
    border:2px solid rgba(255,255,255,.5); object-fit:cover;
    box-shadow:0 4px 12px rgba(0,0,0,.3);
    animation:breathe 1.6s ease-in-out infinite;
    will-change:transform,filter;
  }
  .splash-title{ margin:0; font-size:18px; font-weight:600; }
  .splash-sub{ margin:0; font-size:14px; color:rgba(255,255,255,.85); }

  .loader-track{
    width:220px; height:6px; border-radius:999px;
    background:rgba(255,255,255,.25); overflow:hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.3);
  }
  .loader-bar{
    width:40%; height:100%; border-radius:999px;
    background:linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 50%, rgba(255,255,255,0) 100%);
    animation:loader-move 1.2s linear infinite;
    transform:translateX(-100%); will-change:transform;
  }

  @keyframes loader-move{
    0% { transform: translateX(-100%); }
    100%{ transform: translateX(220%); }
  }
  @keyframes breathe{
    0%   { transform: scale(1);   filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
    50%  { transform: scale(1.04); filter: drop-shadow(0 0 6px rgba(255,255,255,.35)); }
    100% { transform: scale(1);   filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  }
  @media (prefers-reduced-motion: reduce){
    .splash-logo, .loader-bar{ animation:none !important; }
  }

/* Bottone "Installa" */
.pwa-install {
  padding: 6px 18px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  font-size: 13px;
  text-transform: uppercase;
}

/* Barra contenitore (gestisce animazione dal basso) */
.pwa-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 12px 12px;      /* spazio ai lati e dal fondo */
  z-index: 9999;

  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 1),
              opacity 0.3s ease-out;
}

.pwa-bar.show {
  transform: translateY(0);
  opacity: 1;
}

/* Card flottante */
.pwa-bar-content {
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;                   /* arrotondata sopra e sotto */
  box-shadow: 0 8px 20px rgba(0,0,0,0.18); /* effetto floating */
  padding: 10px 14px;

  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icona app */
.pwa-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Testo */
.pwa-text {
  flex: 1;
  font-size: 14px;
  color: #222;
  line-height: 1.3;
}

/* Contenitore bottoni a destra */
.pwa-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Bottone "Installa" */
.pwa-install {
  padding: 6px 16px;
  font-weight: 600;
  border-radius: 999px;
  font-size: 13px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Bottone chiudi (X) */
.pwa-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.pwa-close:hover {
  border-color: #999;
  color: #000;
}
