:root {
  --green: #00653B;
  --orange: #FF8E0D;
  --dark: #0e1b14;
  --light: #ffffff;
  --hero-overlay-strength: 0.9; /* intensità a sinistra (0 = trasparente, 1 = molto scuro) */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Mulish', sans-serif;
  background: var(--dark);
  color: var(--light);
  padding-bottom: env(safe-area-inset-bottom);
}

/* HEADER */
.top-header {
  height: 130px;
  padding: 0 clamp(16px, 8vw, 120px);
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-header { height: 70px; }

/* HERO */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(14, 27, 20, var(--hero-overlay-strength)) 0%,   /* sinistra più scura */
    rgba(14, 27, 20, calc(var(--hero-overlay-strength) / 2)) 10%, /* centro */
    rgba(14, 27, 20, 0) 70%                              /* destra quasi trasparente */
  );
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
  padding: clamp(32px, 6vw, 80px) clamp(16px, 8vw, 120px);
}

/* TESTO */
.hero-content { max-width: 900px; }

.badge {
  background: var(--green);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 24px;
}

.badge-link {
  text-decoration: none; /* niente sottolineatura */
  display: inline-block; /* mantiene il layout del badge */
}

.badge-link .badge {
  color: #fff;
  /* mantieni tutte le proprietà già esistenti della badge */
}

.hero h1 {
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.1;
}

.highlight { font-weight: 800; }
.accent { color: var(--orange); font-weight: 800; }

.sub-text {
  display: block;
  font-size: clamp(20px, 2.2vw, 30px);
  margin-top: 12px;
  font-weight: 400;
}

.hero p {
  margin-top: 24px;
  font-size: 18px;
}

/* CTA */
.cta-group { margin-top: 48px; }

.cta {
  display: inline-block;
  padding: 18px 44px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

/* PHONE */
.hero-phone {
  display: flex;
  justify-content: center;
}

.phone-body {
  width: clamp(180px, 22vw, 280px);
  height: clamp(360px, 44vw, 560px);
  background: #0b0b0b;
  border-radius: 40px;
  padding: 14px;
  transform: rotate(-4deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: url('../img/bg_calcio.webp') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-overlay {
  text-align: center;
}

.play-symbol,
.live-text {
  color: var(--orange);
  font-weight: 800;
  font-size: 28px;
}

/* FASCIA LEGALE SOPRA STRISCIA */
.legal-banner {
  position: relative;       /* sopra la striscia */
  z-index: 5;               /* sopra tutto */
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 16px;
}

.legal-banner a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  margin-left: 6px;
}

/* FASCIA GRIGIA DI SFONDO */
.legal-bg {
  background: rgba(0, 155, 58, 0.1);  /* verde semi-trasparente */
  height: 60px;                        /* altezza della fascia */
  border-top: 1px solid rgba(255,255,255,0.4);
  position: relative;
  z-index: 1;                          /* sotto il testo */
}



/* FOOTER */
.footer {
  position: relative;  /* necessario per z-index */
  z-index: 10;         /* più alto di qualsiasi overlay sotto */
  background: var(--green);
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
}

.footer p {
  font-size: 11px;   /* più piccolo */
  line-height: 1.4;  /* più compatto */
  color: #fff;
  margin:  0 0 16px 0;     /* rimuove eventuali margini extra */
}

/* Link testuali */
.footer p a {
  color: #fff;       /* bianco */
  text-decoration: underline; /* sottolineati */
  margin: 0 8px;     /* spazio tra i link */
}

/* Immagini (loghi ADM, AAMS, 18+) */
.footer a img {
  margin: 0 8px;     /* spazio orizzontale tra le immagini */
  vertical-align: middle;
}

.popup-box {
  background: #fff;
  width: 95%;
  max-width: 640px;
  max-height: 80vh;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* HEADER + FOOTER GRIGI */
.popup-header,
.popup-footer {
  background: #e6e6e6;
  padding: 14px 16px;
  display: flex;
}

.popup-header {
  justify-content: flex-end;
}

.popup-footer {
  justify-content: center;
}

/* CONTENUTO SCROLL */
.popup-content {
  padding: 24px;
  overflow-y: auto;
  color: #111;
  font-size: 13px;
  line-height: 1.5;
}

.legal-wrapper {
  position: relative;
  width: 100%;
}

/* TESTO OVERLAY */
.legal-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;

  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 0 16px;
  pointer-events: auto;
}

/* LINK SEMPRE BIANCO */
.legal-text a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
}

/* FASCIA */
.legal-strip {
  position: relative;
  z-index: 1;

  background: rgba(120, 120, 120, 0.35); /* tuo grigio trasparente */
  height: 48px; /* o quella che avevi */
}

/* BOTTONI */
.close-x {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.close-text {
  background: none;
  border: none;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

/* POPUP */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* molto alto */
}

.popup.active { display: flex; }

/* MOBILE */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0; /* occupa tutta la hero */
    z-index: 2; /* sopra l'immagine ma sotto il testo */
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0));
    pointer-events: none; /* non blocca clic o interazioni */
  }

  .hero-grid {
    position: relative;
    z-index: 3; /* sopra la sfumatura */
  }

  .badge-link {
    pointer-events: auto; /* rendiamo cliccabile il badge */
  }

  .badge-link .badge {
    color: #fff; /* bianco sempre */
  }

  .hero-phone {
    margin-top: 40px;
    }

  .legal-text {
    white-space: nowrap;
    font-size: 12px;      /* leggermente più piccolo per farla stare */
    line-height: 1;
  }

  .sub-text {
  font-size: 18px;
  line-height: 1.3;
  text-shadow:
        0 0 1px var(--green),   /* traccia verde */
        0 1px 3px rgba(0,0,0,0.4); /* leggera ombra per leggibilità */
    }
