/* ============================================================
   css/loud-lab.css — Sistema condiviso "Loud Lab"
   Tokens · Nav · Ticker · Footer · helper di sezione
   Usato da includes/header.php e includes/footer.php
   ============================================================ */

:root {
  /* ── Palette Loud Lab ── */
  --cream:     #f3ead4;
  --cream-hi:  #fbf6e2;
  --cream-dk:  #ebe0c4;
  --sage:      #71a894;
  --sage-deep: #244238;
  --sal:       #ec676c;
  --salmone:   #ec676c;
  --sal-deep:  #b83f44;
  --must:      #f4c063;
  --mustard:   #f4c063;
  --ink:       #2a1d10;
  --ink-55:    rgba(42,29,16,0.55);
  --ink-12:    rgba(42,29,16,0.12);

  /* ── Font ── */
  --f-big:    "Big Shoulders Display", Impact, sans-serif;
  --f-chunky: "Big Shoulders Display", Impact, sans-serif;
  --f-body:   "Space Grotesk", system-ui, sans-serif;
  --f-hand:   "Caveat", cursive;
  --f-mono:   "DM Mono", monospace;

  /* ── Alias legacy (retro-compatibilità pagine ancora salvia) ── */
  --salvia:        #5f8e7d;
  --salvia-light:  #eaf3f0;
  --salvia-dark:   #4a7a69;
  --ocra:          #f4c063;
  --text-dark:     #2a1d10;
  --bg-light:      #fbf6e2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  font-family: var(--f-body);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ════════ TICKER ════════ */
.ll-ticker {
  background: var(--ink); color: var(--cream);
  padding: 9px 0; overflow: hidden;
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; white-space: nowrap;
  border-bottom: 3px solid var(--sal);
}
.ll-ticker-inner { display: inline-flex; animation: llTicker 32s linear infinite; }
.ll-ticker-item { display: inline-flex; align-items: center; gap: 26px; padding: 0 13px; }
.ll-ticker-item .sep { color: var(--sal); }
@keyframes llTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ════════ NAV ════════ */
.ll-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 48px;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  position: sticky; top: 0; z-index: 100;
}
.ll-nav-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; flex-shrink: 0; }
.ll-nav-chip {
  font-family: var(--f-big); font-size: 14px; font-weight: 900;
  letter-spacing: -0.01em; padding: 5px 10px;
  border: 2.5px solid var(--ink);
}
.ll-nav-chip.pf { background: var(--must); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.ll-nav-chip.bl { background: var(--ink); color: var(--cream); box-shadow: 3px 3px 0 var(--must); }
.ll-nav-x { font-family: var(--f-big); font-size: 18px; font-weight: 900; color: var(--ink-55); margin: 0 2px; }

.ll-nav-links {
  display: flex; align-items: center; gap: 22px;
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ll-nav-links a { text-decoration: none; color: var(--ink); transition: color 0.15s; white-space: nowrap; }
.ll-nav-links a:hover { color: var(--sal); }
.ll-nav-cta {
  background: var(--ink); color: var(--cream) !important;
  padding: 8px 16px; text-decoration: none;
  font-family: var(--f-big); font-size: 18px; font-weight: 900;
  letter-spacing: 0.02em; box-shadow: 3px 3px 0 var(--sage);
  transition: transform 0.12s, box-shadow 0.12s;
}
.ll-nav-cta:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--sage); color: var(--cream) !important; }

.ll-nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.ll-nav-burger span { display: block; width: 26px; height: 2.5px; background: var(--ink); }

/* mobile dropdown */
.ll-nav-mobile { display: none; }

/* ════════ FOOTER ════════ */
.ll-foot {
  background: var(--ink); color: var(--cream);
  border-top: 3px solid var(--must);
  padding: 36px 48px 26px;
  position: relative; overflow: hidden;
}
.ll-foot-bg {
  position: absolute; top: 24px; right: -28px;
  font-family: var(--f-big); font-size: 150px; font-weight: 900; font-style: italic;
  color: rgba(236,103,108,0.12); line-height: 0.85; letter-spacing: -0.05em;
  pointer-events: none; user-select: none;
}
.ll-foot-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.ll-foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px;
}
.ll-foot-brand {
  font-family: var(--f-big); font-size: 30px; font-weight: 900;
  letter-spacing: -0.02em; line-height: 0.9; text-transform: uppercase;
}
.ll-foot-brand span { color: var(--sal); }
.ll-foot-tag {
  margin-top: 12px; font-size: 13.5px; line-height: 1.55;
  color: rgba(243,234,212,0.72); max-width: 320px;
}
.ll-foot-social { display: flex; gap: 10px; margin-top: 16px; }
.ll-foot-social a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream); color: var(--cream);
  transition: transform 0.12s, background 0.12s, color 0.12s;
}
.ll-foot-social a:hover { transform: translate(-1px,-1px); background: var(--must); color: var(--ink); border-color: var(--must); }
.ll-foot-col h4 {
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--must);
  margin: 0 0 12px;
}
.ll-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ll-foot-col a { color: rgba(243,234,212,0.82); text-decoration: none; font-size: 14px; }
.ll-foot-col a:hover { color: var(--must); }
.ll-foot-col p { font-size: 13.5px; line-height: 1.6; color: rgba(243,234,212,0.82); margin: 0 0 6px; }
.ll-foot-col p a { color: rgba(243,234,212,0.82); text-decoration: none; border-bottom: 1px solid rgba(244,192,99,0.4); }
.ll-foot-col p a:hover { color: var(--must); }

.ll-foot-bottom {
  position: relative; z-index: 2; max-width: 1100px; margin: 28px auto 0;
  padding-top: 18px; border-top: 1px solid rgba(243,234,212,0.16);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.ll-foot-legal { display: flex; flex-wrap: wrap; gap: 14px; }
.ll-foot-legal a, .ll-foot-legal span {
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(243,234,212,0.55); text-decoration: none; cursor: pointer;
}
.ll-foot-legal a:hover, .ll-foot-legal span:hover { color: var(--must); }
.ll-foot-copy {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
  color: rgba(243,234,212,0.4);
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 900px) {
  .ll-nav { padding: 14px 20px; }
  .ll-nav-links { display: none; }
  .ll-nav-burger { display: flex; }
  .ll-nav-mobile {
    display: block; background: var(--cream-hi);
    border-bottom: 3px solid var(--ink);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    position: sticky; top: 57px; z-index: 99;
  }
  .ll-nav-mobile.open { max-height: 460px; padding: 12px 20px 18px; }
  .ll-nav-mobile a {
    display: block; padding: 12px 0;
    font-family: var(--f-body); font-size: 16px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    text-decoration: none; color: var(--ink);
    border-bottom: 1px solid var(--ink-12);
  }
  .ll-nav-mobile a:last-child { border-bottom: none; }
  .ll-nav-mobile a.cta { color: var(--sal); font-family: var(--f-big); font-size: 22px; font-weight: 900; }

  .ll-foot { padding: 30px 20px 24px; }
  .ll-foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .ll-foot-bg { font-size: 110px; }
  .ll-foot-bottom { flex-direction: column; align-items: flex-start; }
}
