/* ============================================================
   ONE95 MX SCHOOL – JUNIOR — shared.css
   Layout v1 (dark modern minimal) · Palette v2 senza giallo
   (solo accenti: blu, verde, rosa · rosso primario)
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Primario */
  --red:        #E8211A;
  --red-light:  #FF4A42;
  --red-dark:   #B01912;

  /* Accenti (palette v2 senza giallo) */
  --blue:       #1A6BFF;
  --blue-dark:  #0050DD;
  --green:      #00C853;
  --green-dark: #009B3E;
  --pink:       #FF4FA3;
  --pink-dark:  #DA2B85;

  /* Base */
  --black:      #111111;
  --ink:        #1A1A1A;
  --black3:     #242424;
  --white:      #FFFFFF;
  --paper:      #F7F5EF;
  --gray:       #8C8C8C;
  --gray-light: #D4D4D4;
  --gray-soft:  #F3F1EC;
  --gray-section: #E7E7E7;
  --green-wa:   #25D366;

  /* Ombre morbide (v1 style) */
  --shadow-sm: 0 2px 10px rgba(0,0,0,.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,.07);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.08);
  --shadow-red-glow: 0 16px 40px rgba(232,33,26,.14);

  /* Font */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   NAVBAR  (stile v1)
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: box-shadow .3s, border-color .3s;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-logo a { display: flex; align-items: center; }
.nav-logo .logo-one95  { height: 42px; width: auto; }
.nav-logo .logo-cumari { height: 50px; width: auto; transition: transform .2s; }
.nav-logo .logo-cumari:hover { transform: translateY(-1px); }
.nav-logo .logo-sep {
  width: 1px;
  height: 30px;
  background: rgba(0,0,0,.12);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .1em;
  color: #3D3D3D;
  transition: color .2s;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .1em;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--red-light); transform: translateY(-1px); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: #fff;
  border-bottom: 2px solid var(--red);
  z-index: 99;
  padding: 20px 5vw 28px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .12em;
  color: #3D3D3D;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: color .2s;
}
.nav-mobile a:last-child { border-bottom: none; color: var(--red); margin-top: 8px; }
.nav-mobile a:hover { color: var(--red); }

/* ============================================================
   SECTION COMMONS  (stile v1)
============================================================ */
.section-wrap { max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--red);
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.5vw, 74px);
  letter-spacing: .03em;
  line-height: .95;
  color: var(--ink);
  transform: skewX(-2deg);
  display: inline-block;
}
.section-title .red   { color: var(--red); }
.section-title .blue  { color: var(--blue); }
.section-title .green { color: var(--green); }
.section-title .pink  { color: var(--pink); }
.section-title .outline {
  -webkit-text-stroke: 2px rgba(0,0,0,.22);
  color: transparent;
}
.section-title.on-dark { color: var(--white); }
.section-title.on-dark .outline {
  -webkit-text-stroke: 2px rgba(255,255,255,.3);
  color: transparent;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   BUTTONS  (stile v1: flat, hover lift)
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .1em;
  padding: 13px 26px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .18s, filter .18s, background .2s, border-color .2s, color .2s;
  border: none;
  line-height: 1;
  text-align: center;
}
.btn:hover  { transform: translateY(-2px); filter: brightness(1.07); }
.btn:active { transform: scale(.98); }

.btn-red    { background: var(--red);      color: var(--white); }
.btn-blue   { background: var(--blue);     color: var(--white); }
.btn-green  { background: var(--green);    color: var(--white); }
.btn-pink   { background: var(--pink);     color: var(--white); }
.btn-wa     { background: var(--green-wa); color: var(--white); }
.btn-black  { background: var(--ink);      color: var(--white); }
.btn-white  { background: var(--white);    color: var(--ink); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid rgba(0,0,0,.15);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); filter: none; }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.28);
}
.btn-outline-light:hover { border-color: var(--white); color: var(--white); filter: none; }

/* Neutralizzato: era un booster "comic" (bordo spesso + ombra offset).
   Ora è un no-op per non riscrivere tutto l'HTML. */
.btn-comic { /* stile v1 baseline: nessun override necessario */ }

.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   MANIFESTO  (strip rossa condivisa — stile v1)
============================================================ */
.manifesto {
  background: var(--red);
  padding: 80px 5vw;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,.15) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}
.manifesto-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.manifesto-text .big {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 100px);
  line-height: .88;
  color: var(--white);
  letter-spacing: .03em;
  transform: skewX(-2deg);
  display: inline-block;
}
.manifesto-text .big .black-txt { color: var(--ink); }
.manifesto-desc {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255,255,255,.85);
  margin-top: 16px;
  max-width: 380px;
  line-height: 1.6;
}
.manifesto-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   FOOTER  (stile v1: scuro con accent rosso)
============================================================ */
.site-footer,
footer {
  background: var(--ink);
  color: var(--white);
  padding: 56px 5vw 28px;
  border-top: 3px solid var(--red);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.footer-brand .logo img { height: 38px; width: auto; }
.footer-brand .logo .logo-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}
.footer-brand p {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .18em;
  color: var(--red);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.55); }
.footer-col ul li a {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--red); }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.soc-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.soc-btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.soc-btn img { width: 18px; height: 18px; opacity: .8; filter: invert(1); transition: opacity .2s; }
.soc-btn:hover img { opacity: 1; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.3); }
.footer-bottom .never,
.footer-never {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--red);
  border: 1px solid rgba(232,33,26,.45);
  padding: 4px 12px;
  border-radius: 4px;
}

/* ============================================================
   WHATSAPP FLOAT
============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  animation: waPulse 2.5s ease-in-out infinite 2s;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
  animation: none;
}
.wa-float svg { width: 28px; height: 28px; }

/* ============================================================
   SPONSOR STRIP  (subtle · stile v1)
============================================================ */
.sponsors-strip {
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}
.sponsors-strip-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .28em;
  color: rgba(0,0,0,.4);
  margin-bottom: 14px;
}
.sponsors-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: sponsorScroll 40s linear infinite;
}
.sponsors-strip:hover .sponsors-track { animation-play-state: paused; }
.sponsor-logo {
  flex-shrink: 0;
  height: 56px;
  min-width: 150px;
  background: var(--gray-soft);
  border: 1px dashed rgba(0,0,0,.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .15em;
  color: rgba(0,0,0,.35);
  padding: 0 22px;
  transition: all .2s;
}
.sponsor-logo:hover {
  background: var(--white);
  border-color: var(--red);
  color: var(--red);
}

/* ============================================================
   FMI BADGE  (su sfondo scuro, stile v1)
============================================================ */
.fmi-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  padding: 8px 18px 8px 10px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.92);
}
.fmi-badge img { width: 36px; height: 36px; }
.fmi-badge.on-light {
  background: var(--paper);
  border-color: rgba(0,0,0,.1);
  color: var(--ink);
}

/* ============================================================
   KEYFRAMES
============================================================ */
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.35); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.6), 0 0 0 10px rgba(37,211,102,.08); }
}
@keyframes sponsorScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ============================================================
   PAGE HERO (pagine interne — v1 clean)
============================================================ */
.page-hero {
  padding: 140px 5vw 60px;
  background: var(--paper);
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,.04) 1.3px, transparent 1.3px);
  background-size: 14px 14px;
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .15em;
  color: rgba(0,0,0,.4);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--red); }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   FLOATING IG — fixed bottom-left, always visible
============================================================ */
.ig-floating {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ig-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  filter: brightness(1.05);
}
.ig-floating svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .ig-floating {
    left: 28px;
    bottom: 28px;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .ig-floating span { display: none; }
  .ig-floating svg { width: 28px; height: 28px; }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 14px; }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-logo .logo-one95,
  .nav-logo .logo-cumari { height: 30px; }
  .nav-logo .logo-sep { height: 22px; }
  .nav-logo { gap: 10px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .manifesto-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .btn { justify-content: center; }
  .nav { padding: 0 4vw; height: 64px; }
  .nav-mobile { top: 64px; }
}
