/* ═══════════════════════════════════════════════════
   SHARED NAV — R/STARS
   Includi questo file in ogni pagina del sito.
═══════════════════════════════════════════════════ */

/* ─── FLOATING WHATSAPP BUTTON ──────────────────── */
@keyframes waPulseRing {
  0%   { transform: scale(1);    opacity: .6; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes waEntrance {
  from { opacity: 0; transform: translateY(20px) scale(.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 8000;
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  animation: waEntrance .6s cubic-bezier(.16,1,.3,1) forwards 1.5s;
  opacity: 0;
}

.wa-float__btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  flex-shrink: 0;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}

.wa-float__btn svg {
  width: 30px;
  height: 30px;
  fill: #fff;
  position: relative;
  z-index: 1;
}

.wa-float__btn::before,
.wa-float__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,.4);
  animation: waPulseRing 2.2s ease-out infinite;
}
.wa-float__btn::after {
  animation-delay: .9s;
}

.wa-float__tooltip {
  background: #1a1a1a;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .45rem .9rem;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.08);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}

.wa-float:hover .wa-float__btn {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
}
.wa-float:hover .wa-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .wa-float { bottom: 1.2rem; right: 1.2rem; }
  .wa-float__btn { width: 52px; height: 52px; }
  .wa-float__btn svg { width: 26px; height: 26px; }
  .wa-float__tooltip { display: none; }
}

/* ─── IA & DIGITAL PULSE ─────────────────────────── */
@keyframes iaPulse {
  0%,
  100% {
    color: #bf2fff;
    text-shadow: none;
    letter-spacing: 2px;
  }
  50% {
    color: #e1a2fb;
    text-shadow:
      0 0 6px #bf2fff,
      0 0 18px rgba(191, 47, 255, 0.9),
      0 0 40px rgba(191, 47, 255, 0.5);
  }
}

/* Desktop nav — alta specificità per battere .nav-links a */
.nav-links a.ia-pulse {
  color: #bf2fff;
  animation: iaPulse 1.8s ease-in-out infinite;
}

.nav-links a.ia-pulse::after {
  display: none !important;
}

/* ─── FOOTER SOCIAL ──────────────────────────────── */
footer {
  flex-direction: column !important;
  padding: 0 !important;
  gap: 0 !important;
}

.foot-social {
  width: 100%;
  padding: 3.5rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.foot-social-tag {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.foot-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.soc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.25s, border-color 0.25s, box-shadow 0.35s;
}

.soc::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.soc svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
  fill: currentColor;
}

.soc:hover {
  transform: translateY(-6px) scale(1.08);
  color: #fff;
}

.soc:hover::before { opacity: 1; }

/* ── brand colors ── */
.soc.wa::before  { background: #25d366; }
.soc.wa:hover    { border-color: rgba(37,211,102,.5); box-shadow: 0 10px 32px rgba(37,211,102,.3); }

.soc.ig::before  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.soc.ig:hover    { border-color: rgba(225,48,108,.5); box-shadow: 0 10px 32px rgba(225,48,108,.3); }

.soc.fb::before  { background: #1877f2; }
.soc.fb:hover    { border-color: rgba(24,119,242,.5); box-shadow: 0 10px 32px rgba(24,119,242,.3); }

.soc.li::before  { background: #0a66c2; }
.soc.li:hover    { border-color: rgba(10,102,194,.5); box-shadow: 0 10px 32px rgba(10,102,194,.3); }

.soc.yt::before  { background: #ff0000; }
.soc.yt:hover    { border-color: rgba(255,0,0,.5); box-shadow: 0 10px 32px rgba(255,0,0,.3); }

.soc.tt::before  { background: linear-gradient(135deg, #69c9d0 0%, #010101 50%, #ee1d52 100%); }
.soc.tt:hover    { border-color: rgba(238,29,82,.5); box-shadow: 0 10px 32px rgba(238,29,82,.3); }

.foot-bottom {
  width: 100%;
  padding: 1.8rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.foot-policy {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.foot-policy a,
.foot-cookie-btn {
  font-family: "Barlow Condensed", sans-serif;
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color .25s;
}

.foot-policy a:hover,
.foot-cookie-btn:hover {
  color: rgba(191, 252, 3, 0.7);
}

.foot-cookie-btn::before {
  content: "// ";
  opacity: .5;
}

@media (max-width: 768px) {
  .foot-social { padding: 2.5rem 1.5rem 2rem; }
  .soc { width: 50px; height: 50px; }
  .soc svg { width: 20px; height: 20px; }
  .foot-bottom { padding: 1.5rem; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

/* Mobile menu */
.mob-menu ul li a.ia-pulse {
  color: #bf2fff;
  animation: iaPulse 1.8s ease-in-out infinite;
}

/* ─── PODCAST PULSE ──────────────────────────────── */
@keyframes podPulse {
  0%,
  100% {
    color: #ff6b00;
    text-shadow: none;
    letter-spacing: 2px;
  }
  50% {
    color: #ffb87a;
    text-shadow:
      0 0 6px #ff6b00,
      0 0 18px rgba(255, 107, 0, 0.9),
      0 0 40px rgba(255, 107, 0, 0.5);
  }
}

.nav-links a.pod-pulse {
  color: #ff6b00;
  animation: podPulse 1.8s ease-in-out infinite;
}

.nav-links a.pod-pulse::after {
  display: none !important;
}

.mob-menu ul li a.pod-pulse {
  color: #ff6b00;
  animation: podPulse 1.8s ease-in-out infinite;
}
