/* ============ Pankina — stile globale ============ */
:root {
  /* Palette ufficiale Pankina: lime primario, oliva secondario, nero, bianco */
  --acc: #CCEC00;
  --acc-hover: #DBFA2E;
  --acc-dark: #9AB403;
  --ink: #000002;
  --card: #0E1310;
  --paper: #F6F6F3;
  --line: #E0E0DA;
  --muted-dark: #8B968B;
  --muted-light: #4A5147;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }
img { display: block; max-width: 100%; }

.pk-wide-only { display: none; }
@media (min-width: 1200px) {
  .pk-wide-only { display: block; }
}

.page { width: 100%; overflow-x: hidden; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) clamp(20px, 4vw, 64px) 0;
}

/* ============ Testata ============ */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px clamp(20px, 4vw, 64px);
}

.logo {
  font-weight: 900;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  color: #fff;
}
.logo span { color: var(--acc); }

/* — logo SVG animato: ciclo continuo, cadenza regolata da --cycle — */
.pk-logo {
  --cycle: 10s;
  height: clamp(34px, 4vw, 44px);
  width: auto;
  display: block;
  animation: pk-logofade var(--cycle) infinite;
}
.pk-logo .panG {
  transform: translateX(285px);
  animation: pk-slideL var(--cycle) infinite;
}
.pk-logo .inaG {
  transform: translateX(-250px);
  animation: pk-slideR var(--cycle) infinite;
}
.pk-logo .kG {
  animation: pk-kpop var(--cycle) infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.pk-logo .bench { fill: #FFFFFF; animation: pk-bench var(--cycle) infinite; }
.pk-logo .kglow { animation: pk-glow var(--cycle) infinite; }

/* variante statica (piè di pagina e pagine interne): direttamente lo stato finale */
.pk-logo.static,
.pk-logo.static .panG,
.pk-logo.static .inaG,
.pk-logo.static .kG,
.pk-logo.static .bench,
.pk-logo.static .kglow { animation: none; }
.pk-logo.static .panG,
.pk-logo.static .inaG { transform: none; }
.pk-logo.static .bench { fill: var(--acc); }
.pk-logo.static .kglow { filter: drop-shadow(0 0 6px var(--acc)); }

@keyframes pk-glow {
  0%, 10% { filter: none; }
  16% { filter: drop-shadow(0 0 18px var(--acc)); }
  30%, 100% { filter: drop-shadow(0 0 6px var(--acc)); }
}
@keyframes pk-bench {
  0%, 10% { fill: #FFFFFF; }
  16%, 100% { fill: var(--acc); }
}
@keyframes pk-kpop {
  0%, 11%, 22%, 100% { transform: scale(1); }
  16% { transform: scale(1.06); }
}
@keyframes pk-slideL {
  0%, 28% { transform: translateX(285px); }
  46%, 100% { transform: translateX(0); }
}
@keyframes pk-slideR {
  0%, 28% { transform: translateX(-250px); }
  46%, 100% { transform: translateX(0); }
}
@keyframes pk-logofade {
  0%, 90% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pk-logo,
  .pk-logo .panG, .pk-logo .inaG, .pk-logo .kG,
  .pk-logo .bench, .pk-logo .kglow { animation: none; }
  .pk-logo .panG, .pk-logo .inaG { transform: none; }
  .pk-logo .bench { fill: var(--acc); }
  .pk-logo .kglow { filter: drop-shadow(0 0 6px var(--acc)); }
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 36px);
  font-size: 15px;
  color: #EAEFE8;
}

.btn-pill {
  background: var(--acc);
  color: var(--ink);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
}
.btn-pill:hover { background: var(--acc-hover); color: var(--ink); }

/* ============ Eroe ============ */
.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 64px) clamp(56px, 7vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,0,2,1) 0%, rgba(0,0,2,0.95) 42%, rgba(0,0,2,0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 3.5vw, 44px);
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.98;
  font-size: clamp(38px, 6.4vw, 68px);
  color: #fff;
  text-transform: uppercase;
}
.hero h1 span { color: var(--acc); }

.hero-sub {
  margin: clamp(18px, 3vw, 28px) 0 0;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  color: #CFD8CC;
  max-width: 26ch;
}

.btn-cta {
  margin-top: clamp(24px, 4vw, 36px);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--acc);
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  padding: 16px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-cta:hover { background: var(--acc-hover); color: var(--ink); }
.btn-cta .arrow { font-size: 20px; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(4px, 1.5vw, 18px);
  min-width: 0;
}

.hero-ink {
  flex: 0 1 auto;
  min-width: 0;
  width: min(26vw, 500px);
  height: auto;
  margin-bottom: -10%;
  opacity: 0.95;
}

/* — mockup telefono — */
.phone {
  flex: 0 0 auto;
  width: min(320px, 88vw);
  border-radius: 40px;
  background: #050807;
  border: 8px solid #1A211C;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  padding: 10px 10px 0;
  position: relative;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9AA69A;
  padding: 6px 14px 10px;
}

.phone-live { padding: 0 14px 14px; text-align: center; }
.phone-live-label { font-size: 12px; color: var(--acc); font-weight: 600; }
.phone-live-sub { font-size: 11px; color: #8B968B; margin-top: 3px; }

.phone-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.phone-team { text-align: center; width: 64px; }
.phone-crest {
  width: 34px;
  height: 38px;
  margin: 0 auto;
  background: #1A211C;
  border-radius: 6px 6px 16px 16px;
  border: 1px solid #2C3630;
}
.phone-team-name { font-size: 10px; color: #A7B2A6; margin-top: 6px; }
.phone-result { font-weight: 900; font-size: 30px; color: #fff; letter-spacing: 0.04em; }
.phone-clock { margin-top: 12px; font-weight: 800; font-size: 22px; color: var(--acc); }
.phone-half { font-size: 10px; color: #8B968B; }

.phone-tabs {
  display: flex;
  gap: 4px;
  padding: 0 10px 10px;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.phone-tab { flex: 1; text-align: center; padding: 7px 0; color: #7C877C; }
.phone-tab.is-active { color: var(--acc); border-bottom: 2px solid var(--acc); }

.phone-stats {
  padding: 4px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #C6D0C5;
}
.stat-row strong { font-weight: 700; color: #fff; }

.phone-nav {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #1A211C;
  padding: 10px 6px 14px;
  font-size: 9px;
  color: #778277;
}
.phone-nav .is-active { color: var(--acc); }

/* ============ Titoli di sezione ============ */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: clamp(20px, 3vw, 30px);
}
.section-num {
  font-weight: 800;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--acc-dark);
}
.section-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section-rule { border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 48px); }

/* ============ 01 In sintesi ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
}

.card-col { display: flex; flex-direction: column; }
.card-caption { margin: 14px 0 0; font-size: 15px; color: #31382F; }

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  min-height: 170px;
  flex: 1;
}

.card-match {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.pitch {
  flex: 1 1 150px;
  min-width: 140px;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background: linear-gradient(#12331B, #0D2415);
  border: 1px solid #21402A;
  position: relative;
  overflow: hidden;
}
.pitch-frame { position: absolute; inset: 8px; border: 1px solid rgba(204,236,0,0.28); border-radius: 3px; }
.pitch-half { position: absolute; left: 50%; top: 8px; bottom: 8px; width: 1px; background: rgba(204,236,0,0.28); }
.pitch-circle {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  border: 1px solid rgba(204,236,0,0.28);
  border-radius: 50%;
}
.dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.dot.faded { background: rgba(204,236,0,0.5); }
.dot.ball { background: #fff; }

.card-match-stats {
  flex: 1 1 110px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-match-stats .stat-row { font-size: 13px; }

/* — scheda giocatore — */
.player-head { display: flex; align-items: center; gap: 16px; }
.player-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 1px solid #2C3630;
  background: #1A211C;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-num { font-weight: 900; font-size: 30px; color: var(--acc); line-height: 1; }
.player-name { font-weight: 600; font-size: 17px; color: #fff; }
.player-role { font-size: 13px; color: var(--muted-dark); }

.player-stats-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  text-align: center;
}
.player-stats-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: center;
}
.mini-stat-label { font-size: 12px; color: var(--muted-dark); }
.mini-stat-value { font-weight: 700; font-size: 19px; color: #fff; margin-top: 4px; }
.card-divider { height: 1px; background: #222C25; margin: 16px 0; }

/* — scheda risultato — */
.result-title { font-size: 15px; color: #fff; font-weight: 500; }
.result-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.result-team { display: flex; align-items: center; gap: 9px; flex: 1; }
.result-team.right { justify-content: flex-end; }
.result-crest {
  width: 26px; height: 30px;
  background: #1A211C;
  border-radius: 5px 5px 13px 13px;
  border: 1px solid #2C3630;
  flex: none;
}
.result-team span { font-size: 13px; color: #C6D0C5; }
.result-points { font-weight: 900; font-size: 24px; color: #fff; white-space: nowrap; }
.result-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted-dark);
  margin: 16px 0 12px;
}
.result-rows { display: flex; flex-direction: column; }
.result-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid #1E2721;
  font-size: 13px;
  color: #C6D0C5;
}
.result-row .home { font-weight: 700; color: #fff; width: 44px; text-align: right; }
.result-row .away { width: 44px; text-align: right; }

/* ============ 02 Lavoro strutturato ============ */
.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.split-title {
  margin: 14px 0 0;
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.split-text {
  margin: 20px 0 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5;
  color: var(--muted-light);
}
.accent-bar { width: 64px; height: 2px; background: var(--acc); margin-top: 26px; }
.split-ink { width: clamp(240px, 30vw, 430px); height: auto; margin-top: 30px; opacity: 0.92; }

.coach-photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 220px;
}
.coach-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ 03 Il nostro processo ============ */
.process-wrap {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  align-items: flex-end;
}
.process-grid {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(20px, 3vw, 34px);
  align-items: end;
}
.process-step { display: flex; gap: 16px; align-items: flex-start; }
.process-icon {
  width: 62px; height: 62px;
  flex: none;
  border-radius: 12px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-num { font-weight: 800; font-size: 22px; color: var(--acc-dark); }
.process-name { font-weight: 700; font-size: 15px; margin-top: 4px; }
.process-desc { font-size: 14px; color: #6A716A; margin-top: 4px; }
.process-ink {
  flex: 0 1 auto;
  min-width: 0;
  width: min(26vw, 460px);
  height: auto;
  margin-bottom: -7%;
  opacity: 0.94;
}

/* ============ 04 Vantaggi + 05 dati protetti ============ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
}
.benefit-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  text-align: center;
}
.benefit-items svg { margin: 0 auto; }
.benefit-label { font-size: 14px; margin-top: 12px; }

.privacy-card {
  background: var(--card);
  border-radius: 16px;
  padding: clamp(26px, 3vw, 38px);
  position: relative;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.privacy-ring {
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(204,236,0,0.22);
}
.privacy-shield {
  position: absolute;
  right: 36px; top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
}
.privacy-content { position: relative; }
.privacy-num { font-weight: 800; font-size: clamp(18px, 2vw, 22px); color: var(--acc); }
.privacy-title {
  margin: 12px 0 0;
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
}
.privacy-text { margin: 16px 0 0; font-size: 16px; line-height: 1.5; color: #C6D0C5; }

/* ============ 06 Insieme si cresce ============ */
.together-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}
.together-text {
  margin: 16px 0 0 44px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted-light);
}
.crests-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 14px;
  place-items: center;
  background: #fff;
}

/* ============ 07 Form iscrizioni ============ */
.signup-section { padding-bottom: clamp(44px, 6vw, 72px); }

.signup-card {
  background: var(--ink);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.signup-ink {
  position: absolute;
  right: -8%; top: -42%;
  height: 250%;
  width: auto;
  max-width: none;
  opacity: 0.34;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 8%, #000 55%);
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 55%);
}
.signup-head { position: relative; }
.signup-head .section-num { color: var(--acc); }
.signup-head .section-title { color: #fff; font-size: clamp(20px, 2.6vw, 28px); }
.signup-intro { margin: 12px 0 0 40px; font-size: 17px; color: #C6D0C5; }

.signup-form {
  position: relative;
  margin-top: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .signup-form { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #C6D0C5;
  letter-spacing: 0.02em;
}
.field label .req { color: var(--acc); }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: #fff;
  background: #141A16;
  border: 1px solid #2C3630;
  border-radius: 8px;
  padding: 13px 14px;
  width: 100%;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B968B' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field textarea { min-height: 110px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #6A716A; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(200, 242, 78, 0.15);
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: #A7B2A6;
  line-height: 1.5;
}
.consent input {
  margin-top: 3px;
  width: 18px; height: 18px;
  accent-color: var(--acc);
  flex: none;
}
.consent a { color: var(--acc); text-decoration: underline; }

.signup-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.signup-actions .btn-cta { margin-top: 0; }

.form-msg { font-size: 15px; display: none; }
.form-msg.ok { display: block; color: var(--acc); }
.form-msg.err { display: block; color: #FF8A7A; }

/* ============ Piè di pagina ============ */
.site-footer {
  background: var(--ink);
  padding: clamp(26px, 3vw, 34px) clamp(20px, 4vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .logo { font-size: 26px; }
.footer-tag { font-size: 14px; color: #9AA69A; line-height: 1.5; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.6vw, 36px);
  font-size: 14px;
  color: #EAEFE8;
}
.footer-legal {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #778277;
}
.footer-legal a { color: #9AA69A; }
.footer-legal a:hover { color: var(--acc); }
