/* ==========================================================================
   Countdown Celebrativo · Il Grande Arrivo (Marina Piccola · 26 Settembre 2026)
   ========================================================================== */

.countdown-arrival-section {
  position: relative;
  padding: 2.5rem 1rem 3.5rem;
  background: transparent;
  z-index: 5;
}

.countdown-card {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(9, 32, 54, 0.92) 0%, rgba(3, 13, 30, 0.96) 100%);
  border: 1px solid rgba(72, 216, 199, 0.3);
  box-shadow: 0 24px 70px rgba(0, 4, 15, 0.6), 0 0 50px rgba(72, 216, 199, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.countdown-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(72, 216, 199, 0.18) 0%, rgba(255, 216, 101, 0.08) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.countdown-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  background: rgba(72, 216, 199, 0.12);
  border: 1px solid rgba(72, 216, 199, 0.35);
  color: #48d8c7;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.countdown-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48d8c7;
  box-shadow: 0 0 10px #48d8c7;
  animation: pulseTeal 2s infinite ease-in-out;
}

@keyframes pulseTeal {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.countdown-title {
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.countdown-title .gradient-text {
  background: linear-gradient(115deg, #48d8c7 0%, #ffd865 70%, #ffbe42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.countdown-subtitle {
  max-width: 720px;
  margin: 0 0 2.25rem;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.6;
  color: rgba(220, 235, 245, 0.85);
}

/* Griglia Timer */
.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  margin-bottom: 2.25rem;
  width: 100%;
  max-width: 680px;
}

.timer-unit {
  flex: 1;
  min-width: 75px;
  max-width: 135px;
  padding: 1.25rem 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.timer-unit:hover {
  transform: translateY(-3px);
  border-color: rgba(72, 216, 199, 0.4);
}

.timer-val {
  font-family: 'Manrope', monospace;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.timer-lbl {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a0c2d6;
  text-transform: uppercase;
}

.timer-sep {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: rgba(72, 216, 199, 0.5);
  margin-top: -1.2rem;
  user-select: none;
}

/* Pulsanti di Azione */
.countdown-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.countdown-donate-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd865 0%, #f3a84a 100%);
  color: #072a31 !important;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(243, 168, 74, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.countdown-donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(243, 168, 74, 0.5);
}

.countdown-stage-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.countdown-stage-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(72, 216, 199, 0.5);
  transform: translateY(-2px);
}

/* Banner Arrivo Concluso */
.countdown-completed-banner {
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(72, 216, 199, 0.2), rgba(255, 216, 101, 0.2));
  border: 1px solid rgba(255, 216, 101, 0.5);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.countdown-completed-banner.is-hidden {
  display: none !important;
}

.celebrate-emoji {
  font-size: 2.2rem;
}

/* Header Pill Indicator */
.header-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 216, 101, 0.12);
  border: 1px solid rgba(255, 216, 101, 0.35);
  color: #ffd865 !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-countdown-pill:hover {
  background: rgba(255, 216, 101, 0.22);
  transform: translateY(-1px);
}

.header-countdown-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd865;
  box-shadow: 0 0 8px #ffd865;
  animation: pulseGold 2s infinite ease-in-out;
}

@keyframes pulseGold {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

@media (max-width: 768px) {
  .countdown-arrival-section {
    padding: 1.5rem 0.75rem 2.5rem;
  }
  .countdown-card {
    padding: 2rem 1.25rem;
    border-radius: 22px;
  }
  .countdown-timer {
    gap: 0.35rem;
  }
  .timer-unit {
    min-width: 60px;
    padding: 0.9rem 0.25rem 0.75rem;
    border-radius: 14px;
  }
  .timer-val {
    font-size: 1.9rem;
  }
  .timer-lbl {
    font-size: 0.65rem;
    margin-top: 0.35rem;
  }
  .timer-sep {
    font-size: 1.4rem;
    margin-top: -0.7rem;
  }
  .countdown-actions {
    flex-direction: column;
    width: 100%;
  }
  .countdown-donate-btn, .countdown-stage-btn {
    width: 100%;
    justify-content: center;
  }
  .header-countdown-pill {
    display: none; /* compattezza su mobile per preservare live button */
  }
}
