/* ============================================================
   MOOD SPORT — Landing Page
   style.css — Mobile-first
   ============================================================ */

/* ---- RESET & VARIABLES ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #3d7eaa;
  --primary-d: #2a6390;
  --accent:    #6dcff0;
  --dark:      #0d1822;
  --dark-soft: #1a2a38;
  --snow:      #f4f7fb;
  --snow-alt:  #eaf1f8;
  --white:     #ffffff;
  --text:      #2c3140;
  --muted:     #6b7a8d;
  --border:    #d6e4f0;

  --ff-display: 'Barlow Condensed', sans-serif;
  --ff-body:    'Inter', sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --max-w: 1140px;
  --sp: clamp(48px, 7vw, 88px) 20px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body); font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: all .22s ease; white-space: nowrap;
  text-decoration: none;
}
.btn-primary  { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(61,126,170,.35); }
.btn-outline  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-white    { background: var(--white); color: var(--primary); border-color: var(--white); font-weight: 700; }
.btn-white:hover { background: var(--snow); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn-whatsapp { background: #25D366; color: var(--white); border-color: #25D366; font-weight: 600; }
.btn-whatsapp:hover { background: #1ebe59; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 20px; height: 64px;
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.nav__inner {
  width: 100%; max-width: var(--max-w); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
/* Logo PNG reale — nessuna ricreazione SVG */
.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity .3s ease;
  /* Leggera ombra per leggibilità su qualsiasi sfondo video */
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}
.nav.scrolled .nav__logo-img {
  /* Logo scuro su nav bianca: nessun filtro/alterazione colore */
  filter: none;
}

.cs-modal__logo-img {
  height: 52px;
  width: auto;
  display: block;
  /* Logo white su sfondo scuro: nessun filtro */
  filter: none;
  margin-bottom: 4px;
}

.footer__logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .85;
  margin-bottom: 8px;
}

.nav__links { display: none; gap: 32px; }
.nav__links a { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; transition: color .2s; }
.nav:not(.scrolled) .nav__links a       { color: rgba(255,255,255,.8); }
.nav:not(.scrolled) .nav__links a:hover { color: var(--white); }
.nav.scrolled       .nav__links a       { color: var(--text); }
.nav.scrolled       .nav__links a:hover { color: var(--primary); }

.nav__cta { display: none; }

.nav__burger {
  background: none; border: none; cursor: pointer; padding: 8px;
  display: flex; flex-direction: column; gap: 5px;
}
.nav__burger span {
  display: block; width: 24px; height: 2px; border-radius: 2px; transition: background .3s;
}
.nav:not(.scrolled) .nav__burger span { background: var(--white); }
.nav.scrolled       .nav__burger span { background: var(--dark); }

/* Mobile menu */
.nav__mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--dark);
  z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu a {
  font-family: var(--ff-display); font-size: 30px; font-weight: 600;
  color: var(--white); letter-spacing: .04em; text-transform: uppercase; transition: color .2s;
}
.nav__mobile-menu a:hover { color: var(--accent); }
.nav__mobile-menu-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; cursor: pointer; color: var(--white); font-size: 30px; line-height: 1;
}

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  /* Fallback cinematic quando il video non è ancora presente */
  background: linear-gradient(
    160deg,
    #071320 0%, #0e2236 20%,
    #1a3d5c 40%, #2a5f85 58%,
    #4a8ab5 72%, #7ab2d4 84%,
    #c8e4f4 95%, #deeef9 100%
  );
  overflow: hidden;
}

/* Video background */
.hero__video-wrap {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero__video-wrap video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: .7;
}
/* Cinematic overlays */
.hero__video-wrap::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(8,18,28,.55) 0%,
      rgba(8,18,28,.20) 35%,
      rgba(8,18,28,.25) 65%,
      rgba(8,18,28,.75) 100%
    );
}
.hero__video-wrap::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, rgba(4,10,18,.5) 100%);
}

/* Snow canvas */
#snow-canvas {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .5;
}

/* Diagonal cut */
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 100px; background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 0);
  z-index: 5;
}

/* Hero content */
.hero__content {
  position: relative; z-index: 4;
  width: 100%; padding: 100px 20px 120px;
  text-align: center;
}
.hero__content > * { text-shadow: 0 2px 14px rgba(4,10,18,.6); }
.hero__content .btn { text-shadow: none; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(180,220,245,.85); margin-bottom: 20px;
  animation: fadeUp .8s ease both;
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content: ''; display: block; width: 28px; height: 1px;
  background: var(--accent); opacity: .5;
}

.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(52px, 13vw, 108px);
  font-weight: 800; line-height: .95;
  letter-spacing: -.025em; text-transform: uppercase;
  color: var(--white); margin-bottom: 14px;
  animation: fadeUp .85s .1s ease both;
  /* max 2 righe — nessun wrap indesiderato */
  white-space: nowrap;
}
/* Su schermi molto piccoli lascia wrappare */
@media (max-width: 400px) {
  .hero__title { white-space: normal; font-size: clamp(40px, 14vw, 64px); }
}
.hero__title em { font-style: normal; color: var(--accent); display: inline; }

.hero__subtitle {
  font-family: var(--ff-display);
  font-size: clamp(14px, 3vw, 24px); font-weight: 300;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(200,230,250,.55); margin-bottom: 24px;
  animation: fadeUp .85s .2s ease both;
}

.hero__desc {
  font-size: clamp(14px, 2.5vw, 17px); color: rgba(210,235,255,.78);
  max-width: 480px; margin-inline: auto; margin-bottom: 40px; line-height: 1.75;
  animation: fadeUp .85s .3s ease both;
}

.hero__actions {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: fadeUp .85s .4s ease both;
}

.hero__trust {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; flex-wrap: wrap;
  margin-top: 48px;
  animation: fadeUp .85s .55s ease both;
}
.hero__trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(180,215,245,.55); text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.hero__trust-item .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: .8; flex-shrink: 0;
}
.hero__trust-sep { width: 1px; height: 12px; background: rgba(180,215,245,.18); }

/* Scroll indicator */
.hero__scroll {
  position: absolute; bottom: 112px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; animation: fadeIn 1s 1.2s ease forwards;
}
.hero__scroll span {
  font-size: 8px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(180,215,245,.35); text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.hero__scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, rgba(109,207,240,.5) 0%, transparent 100%);
  animation: scrollPulse 2s 1.5s ease-in-out infinite;
}

@keyframes fadeUp  { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes scrollPulse {
  0%   { transform:scaleY(0); transform-origin:top; opacity:1; }
  50%  { transform:scaleY(1); transform-origin:top; opacity:1; }
  100% { transform:scaleY(1); transform-origin:bottom; opacity:0; }
}
@keyframes pulse {
  0%,100% { transform:scale(1); opacity:1; }
  50%     { transform:scale(1.4); opacity:.55; }
}

/* ---- COMING SOON POPUP ---- */
.cs-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,10,18,.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .4s ease;
}
.cs-overlay.hidden { display: none; }

.cs-modal {
  background: var(--dark-soft);
  border: 1px solid rgba(109,207,240,.15);
  border-radius: var(--r-xl);
  max-width: 480px; width: 100%;
  padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 44px);
  position: relative;
  animation: modalIn .4s .1s ease both;
}
@keyframes modalIn {
  from { opacity:0; transform:translateY(28px) scale(.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.cs-modal__close {
  position: absolute; top: 16px; right: 18px;
  background: rgba(255,255,255,.07); border: none; border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 18px; line-height: 1;
  transition: background .2s, color .2s;
}
.cs-modal__close:hover { background: rgba(255,255,255,.14); color: var(--white); }

/* Logo mark inside modal */
.cs-modal__logo {
  margin-bottom: 24px;
}
.cs-modal__logo svg { width: 36px; height: auto; }
.cs-modal__logo-text {
  font-family: var(--ff-display); font-size: 18px; font-weight: 700; letter-spacing: .04em;
}
.cs-modal__logo-text .mood  { color: var(--accent); }
.cs-modal__logo-text .sport { color: var(--white); }

.cs-modal__pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(109,207,240,.08); border: 1px solid rgba(109,207,240,.18);
  border-radius: 50px; padding: 5px 14px; margin-bottom: 20px;
}
.cs-modal__pill .live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite; flex-shrink: 0;
}



.cs-modal__title {
  font-family: var(--ff-display);
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.1;
  color: var(--white); margin-bottom: 14px;
}

.cs-modal__sub_title {
  font-family: var(--ff-display);
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  letter-spacing: .15em;
  margin-bottom: 12px;
  color: var(--white);
}

.cs-modal__title span { color: var(--accent); }

.cs-modal__text {
  font-size: 14px; color: rgba(190,220,240,.65);
  line-height: 1.7; margin-bottom: 28px;
}
.cs-modal__text strong { color: rgba(190,220,240,.9); font-weight: 600; }

.cs-modal__actions {
  display: flex; flex-direction: column; gap: 10px;
}

.cs-modal__dismiss {
  text-align: center; margin-top: 14px;
  font-size: 12px; color: rgba(255,255,255,.3);
  cursor: pointer; transition: color .2s; background: none; border: none;
  font-family: var(--ff-body); width: 100%;
}
.cs-modal__dismiss:hover { color: rgba(255,255,255,.6); }

/* ---- SECTION SHARED ---- */
.section-header { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.section-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(30px, 6vw, 50px); font-weight: 700;
  color: var(--dark); line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase;
}
.section-desc {
  font-size: 15px; color: var(--muted); max-width: 500px;
  margin-inline: auto; margin-top: 12px;
}

/* ---- SERVICES ---- */
.services { padding: var(--sp); background: var(--white); }

.services__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.service-card {
  background: var(--snow); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(61,126,170,.16); border-color: var(--primary); }

.service-card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md); flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
}
.service-card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.service-card__tag { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.service-card__title { font-family: var(--ff-display); font-size: 22px; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: .01em; line-height: 1.15; }
.service-card__desc  { font-size: 14px; color: var(--muted); line-height: 1.65; }

.service-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--primary); margin-top: auto;
  transition: gap .2s;
}
.service-card:hover .service-card__link { gap: 10px; }
.service-card__link svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }

/* ---- WHY US ---- */
.why-us { padding: var(--sp); background: var(--dark); position: relative; overflow: hidden; }
.why-us::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(61,126,170,.14) 0%, transparent 60%);
}
.why-us .section-title   { color: var(--white); }
.why-us .section-desc    { color: rgba(255,255,255,.5); }
.why-us .section-eyebrow { color: var(--accent); }

.why-us__grid { display: grid; grid-template-columns: 1fr; gap: 16px; position: relative; z-index: 1; }

.why-card {
  padding: 32px 24px;
  border: 1px solid rgba(255,255,255,.07); border-radius: var(--r-lg);
  background: rgba(255,255,255,.03);
  transition: background .25s, border-color .25s;
}
.why-card:hover { background: rgba(255,255,255,.06); border-color: rgba(61,126,170,.3); }

.why-card__num  { font-family: var(--ff-display); font-size: 56px; font-weight: 800; color: var(--primary); opacity: .25; line-height: 1; margin-bottom: 12px; }
.why-card__title { font-family: var(--ff-display); font-size: 20px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.why-card__desc  { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; }

.why-us__stats {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 1px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-lg); overflow: hidden; margin-top: 40px; position: relative; z-index: 1;
}
.stat-item { background: rgba(255,255,255,.03); padding: 24px 20px; text-align: center; transition: background .2s; }
.stat-item:hover { background: rgba(255,255,255,.07); }
.stat-item__value { font-family: var(--ff-display); font-size: 38px; font-weight: 800; color: var(--white); line-height: 1; letter-spacing: -.02em; }
.stat-item__value span { color: var(--accent); }
.stat-item__label { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }

/* ---- CTA BAND ---- */
.cta-band {
  padding: var(--sp);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 440px; height: 440px; background: rgba(255,255,255,.07);
  border-radius: 50%; pointer-events: none;
}
.cta-band__title { font-family: var(--ff-display); font-size: clamp(28px, 6vw, 50px); font-weight: 800; color: var(--white); text-transform: uppercase; line-height: 1.1; margin-bottom: 14px; position: relative; z-index: 1; }
.cta-band__desc  { font-size: 15px; color: rgba(255,255,255,.82); max-width: 420px; margin-inline: auto; margin-bottom: 32px; position: relative; z-index: 1; }
.cta-band__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; z-index: 1; }

/* ---- FOOTER ---- */
.footer { background: var(--dark); color: rgba(255,255,255,.45); padding: 48px 20px 28px; }
.footer__inner { max-width: var(--max-w); margin-inline: auto; display: flex; flex-direction: column; gap: 32px; }
.footer__top { display: flex; flex-direction: column; gap: 24px; }
.footer__brand-name { font-family: var(--ff-display); font-size: 20px; font-weight: 700; letter-spacing: .05em; }
.footer__brand-name .mood  { color: var(--accent); }
.footer__brand-name .sport { color: var(--white); }
.footer__brand-tag  { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 5px; letter-spacing: .04em; }
.footer__cert { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-top: 12px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: 14px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer__nav a:hover { color: var(--white); }
.footer__contact p { font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 5px; }
.footer__contact a { color: var(--accent); transition: color .2s; }
.footer__contact a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }

/* ---- FAB WHATSAPP ---- */
.fab-wa {
  position: fixed; bottom: 22px; right: 18px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  transition: transform .22s, box-shadow .22s; text-decoration: none;
}
.fab-wa:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.fab-wa svg   { width: 27px; height: 27px; fill: var(--white); }

/* ---- RESPONSIVE: TABLET ---- */
@media (min-width: 600px) {
  .hero__actions, .cta-band__actions { flex-direction: row; justify-content: center; }
  .services__grid  { grid-template-columns: repeat(2,1fr); }
  .why-us__grid    { grid-template-columns: repeat(2,1fr); }
  .why-us__stats   { grid-template-columns: repeat(4,1fr); }
  .footer__top     { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
  .cs-modal__actions { flex-direction: row; }
}

/* ---- RESPONSIVE: DESKTOP ---- */
@media (min-width: 900px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__burger { display: none; }
  .services__grid { grid-template-columns: repeat(4,1fr); }
  .why-us__grid   { grid-template-columns: repeat(3,1fr); }
}

/* ---- A11Y ---- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
