/* ============= BASE STYLES ============= */

:root {
  --navbar-height: 72px;
}

@media (max-width: 767px) {
  :root {
    --navbar-height: 64px;
  }
}

/* Griglia stile Instagram (3x2) */
.instagram-client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}
.grid-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}
.grid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.grid-photo:hover img {
  opacity: 0.8;
}
.grid-photo::after {
  content: "\f004";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  background: rgba(10, 15, 29, 0.35);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.grid-photo:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Countdown flip digits (Prossimo incontro) */
.digit-box {
  background-color: #0f1c2e;
  color: #ffffff;
  font-weight: 800;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}
.digit-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.flip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-card {
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.team-card:hover {
  transform: translateY(-2px);
}

/* La navbar è fixed e sovrapposta: la prima sezione passa sotto la navbar,
   quindi aggiungiamo spazio interno (con lo sfondo della sezione stessa,
   nessuno spazio bianco) per non coprire i contenuti */
#main-content > section:first-child {
  padding-top: calc(var(--navbar-height) + 3.5rem);
}

@media (min-width: 1024px) {
  #main-content > section:first-child {
    padding-top: calc(var(--navbar-height) + 5rem);
  }
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ============= MARQUEE & ANIMATIONS ============= */

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-track.no-pause,
.marquee-track.no-pause:hover {
    animation-play-state: running;
}
.marquee-track.is-empty {
    width: 100%;
    animation: none;
    justify-content: center;
}

/* Carosello staff: contenitore + pista animata via JS (loop continuo senza salti) */
.staff-marquee {
    overflow: hidden;
}
.staff-marquee-inner {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============= GRID PATTERN ============= */

.grid-pattern {
    background-image: radial-gradient(rgba(0, 102, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ============= GLASSMORPHISM ============= */

.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

/* ============= SCROLLBAR STYLES ============= */

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040d1e;
}
::-webkit-scrollbar-thumb {
    background: #0e2752;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0066FF;
}

/* ============= WATERMARK TEXT ============= */

.watermark-text {
    font-size: clamp(5rem, 18vw, 16rem);
    user-select: none;
    pointer-events: none;
    line-height: 0.8;
    letter-spacing: -0.04em;
}

/* ============= TYPOGRAPHY & PAGE SPECIFIC ============= */

.font-display {
    font-family: 'Outfit', sans-serif;
}

.backdrop-blur-nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.watermark-text {
    letter-spacing: -0.05em;
    line-height: 0.8;
}

/* ============= CATEGORY CARD STATES ============= */

.category-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
}
.category-card:hover {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 10px 25px -5px rgba(0, 123, 255, 0.1);
}
.category-card.selected {
    border-color: #007BFF;
    background-color: #F0F7FF;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
}
.category-card.selected .card-icon {
    background-color: #007BFF;
    color: #ffffff;
}

/* ============= BUTTON GLOW ============= */

.btn-glow {
    box-shadow: 0 4px 14px 0 rgba(0, 123, 255, 0.39);
}
.btn-glow:hover {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.55);
}

/* ============= WIZARD STEPS ============= */

.wizard-step {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.wizard-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ============= FORM INPUT STYLING ============= */

.form-input-field {
    transition: all 0.2s ease;
    border: 1.5px solid #cbd5e1;
}
.form-input-field:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    outline: none;
}