/* ============================================================
   Artsupp — Pagina Mission (Dark Redesign)
   Stile fedele al mockup: https://jazzy-meerkat-f85c0e.netlify.app/pagina-mission
   ============================================================ */

:root {
  --nero: #011218;
  --blu_notte: #011019;
  --blu_dark: #031F30;
  --blu: #052C43;
  --celeste: #2677A7;
  --azzuro: #479FD3;
  --verde: #32D583;
  --rosso: #DC3545;
  --viola: #AF8FFA;
  --as-teal: #01D8C0;
  --as-teal-hover: #008576;
  --as-maize: #FEC84B;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.45);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --font-display: 'Fira Sans', system-ui, -apple-system, sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --page-max: 1180px;
  --page-pad: 24px;
}

.mission-page {
  background: var(--nero);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

.mission-page a {
  text-decoration: none;
}

.mission-page .k {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
}

.center {
  text-align: center;
}

/* Bottoni Pill */
.btn-lg {
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-lg:hover {
  text-decoration: none;
}

.btn-lg.primary {
  background: var(--as-teal);
  color: #00201d;
  border: none;
}

.btn-lg.primary:hover {
  background: var(--as-teal-hover);
  color: #fff;
}

.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.mkt-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ---------- COVER HERO (immagine a tutto schermo con Ken Burns) ---------- */
.cover-mission {
  position: relative;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b1420;
  border-bottom: 1px solid var(--border);
}

.cover-mission .cbg {
  position: absolute;
  inset: 0;
  background-image: image-set(
    url('/img/hero-mission.webp') type('image/webp'),
    url('/img/hero-mission.jpg') type('image/jpeg')
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
  transform-origin: center center;
  animation: kenBurnsHero 42s ease-in-out infinite;
  pointer-events: none;
}

@keyframes kenBurnsHero {
  0% {
    transform: scale(1.10) translate3d(0%, 0%, 0);
  }
  33% {
    transform: scale(1.16) translate3d(-2%, -1.5%, 0);
  }
  66% {
    transform: scale(1.20) translate3d(1.8%, -2%, 0);
  }
  100% {
    transform: scale(1.10) translate3d(0%, 0%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cover-mission .cbg {
    animation: none;
    transform: scale(1.10);
  }
}

.cover-mission .cov {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(66.72deg, rgba(5, 8, 11, 0.6) 48.1%, rgba(50, 82, 113, 0) 279.6%);
}

.cover-mission .cin {
  position: relative;
  z-index: 2;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  width: 100%;
}

.cover-mission .cin .k {
  font-size: 12.48px;
  line-height: 22.19px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--as-teal, #01baa5);
  letter-spacing: -0.06em;
  margin-bottom: 9px;
}

.cover-mission h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: #fff;
  margin: 0 0 20px;
  max-width: 1000px;
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.45);
}

.cover-mission .sub {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  line-height: 1.55;
  letter-spacing: -0.06em;
  margin: 0;
}

@media(max-width: 768px) {
  .cover-mission {
    min-height: calc(100vh - 122px);
    min-height: calc(100dvh - 60px - 62px - env(safe-area-inset-bottom, 0px));
    padding-top: 59.6px;
    padding-bottom: 32px;
  }
  .cover-mission h1 {
    font-size: 33.28px;
    line-height: 1.15;
    letter-spacing: -0.06em;
    font-weight: 800;
    max-width: 348px;
    margin-bottom: 19.7px;
  }
  .cover-mission .sub {
    font-size: 16.64px;
    line-height: 22.19px;
    font-weight: 400; /* Inter Regular per Mission */
    letter-spacing: -0.06em;
    max-width: 325.2px;
  }
}

/* ---------- SEZIONI GENERICE ---------- */
.sec {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.sec.center {
  text-align: center;
}

.sec h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #fff;
}

.sec .lead, .sec p.lead {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 680px;
}

.sec.center .lead {
  margin: 0 auto;
}

@media(max-width: 820px) {
  .sec h2 {
    font-size: 30px;
  }
}

/* Split due colonne */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.split.narrow-txt {
  grid-template-columns: 1.1fr 0.9fr;
}

@media(max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Cards grid */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cards2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media(max-width: 820px) {
  .cards3, .cards2 {
    grid-template-columns: 1fr;
  }
}

.mcard {
  background: var(--blu_dark);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: all 0.15s ease;
}

.mcard:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.mcard h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  margin: 0 0 8px;
}

.mcard p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* ---------- I NUMERI (STATBAND) ---------- */
.statband {
  background: var(--blu_dark);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 56px 40px;
  text-align: center;
}

.statband h2 {
  font-size: 26px !important;
  margin-bottom: 32px !important;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media(max-width: 820px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .statband {
    padding: 36px 20px;
  }
}

@media(max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.stat .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  color: var(--as-teal);
  line-height: 1;
  margin-bottom: 8px;
}

.stat .l {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ---------- PARLANO DI NOI (PRESS) ---------- */
.press {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}

.pcard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--blu_dark);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 20px 22px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pcard:hover {
  border-color: var(--as-teal);
  transform: translateY(-2px);
}

.pcard .plogo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: #0b1420;
  text-align: center;
}

.pcard .tt {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

.pcard:hover .tt {
  color: #fff;
}

.pcard::after {
  content: "Leggi l'articolo →";
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--as-teal);
  margin-top: auto;
}

@media(max-width: 900px) {
  .press {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 560px) {
  .press {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA FINALE ---------- */
.endcta {
  text-align: center;
  padding: 160px 0;
}

@media(max-width: 820px) {
  .endcta {
    padding: 80px 0;
  }
}

.endcta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 26px;
}

.searchband {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.searchband .box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.searchband .box svg {
  position: absolute;
  left: 16px;
  color: var(--text-faint);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.searchband input {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: #fff;
  padding: 0 16px 0 42px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.searchband input:focus {
  border-color: var(--as-teal);
  background: rgba(255, 255, 255, 0.05);
}

.searchband input::placeholder {
  color: var(--text-faint);
}

@media(max-width: 640px) {
  .searchband {
    flex-direction: column;
  }
  .searchband .btn-lg {
    width: 100%;
  }
}
