:root{
  --nav-h: 72px;
  --footer-h: 52px;
}

@media (max-width: 576px){
  :root{ --nav-h: 64px; }
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  background: #fff;      /* resto del sito bianco */
  color: #111;
}

/* =========================
   AREA BOLLE
========================= */

/* area tra navbar e footer: SOLO bolle, niente bianco in mezzo */
.bubble-area{
  height: calc(100vh - var(--nav-h) - var(--footer-h));
  position: relative;
  overflow: hidden;

  /* sfondo bolle */
  background: linear-gradient(135deg, #34d399, #10b981, #0ea5e9);
}

/* layer assoluto */
.bubble-layer{
  position: absolute;
  inset: 0;
}

/* =========================
   BOLLE
========================= */

.bubble{
  position: absolute;
  transform: translate(-50%, -50%);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  padding: 12px;

  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

  animation: floaty var(--dur) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

.bubble:hover{
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
}

.bubble:focus-visible{
  outline: 3px solid rgba(255,255,255,0.65);
  outline-offset: 3px;
}

.bubble-inner{
  display: grid;
  gap: 6px;
  place-items: center;
  line-height: 1.1;
}

.bubble-icon{
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.bubble-title{
  font-weight: 800;
  color: #fff;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  text-shadow: 0 1px 10px rgba(0,0,0,0.25);
}

@keyframes floaty{
  0%   { transform: translate(-50%, -50%) translate(0, 0) scale(1); }
  50%  { transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(1.03); }
  100% { transform: translate(-50%, -50%) translate(0, 0) scale(1); }
}

/* =========================
   FOOTER
========================= */

.site-footer{
  height: var(--footer-h);
  display: flex;
  align-items: center;
  color: #666;
}
