/* ==========================================================
   nicobike_011 — base sito web
   Personalizza i colori qui sotto in :root per cambiare tema
   ========================================================== */

:root {
  --bg: #0a0c0f;
  --bg-alt: #101318;
  --surface: #15181e;
  --border: #23272f;
  --text: #f4f5f7;
  --text-dim: #9aa1ac;

  --accent: #c6ff3f;      /* verde lime elettrico */
  --accent-2: #2ee6ff;    /* ciano */
  --accent-contrast: #0a0c0f;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* curve a "molla": leggero rimbalzo oltre il punto di arrivo, poi assestamento */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* curva morbida senza rimbalzo, per dissolvenze e cose grandi */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--bg);
  transition: opacity .5s var(--ease-smooth), visibility .5s var(--ease-smooth);
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-wheel {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--bg) 0 27%, transparent 28%),
    repeating-conic-gradient(var(--text-dim) 0deg 4deg, transparent 4deg 45deg);
  box-shadow: inset 0 0 0 3px var(--accent);
  animation: preloaderSpin 1s linear infinite;
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
  .preloader-wheel { animation: none; }
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .03;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 3px 3px;
}

/* barra di avanzamento lettura */
/* pulsante torna su */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  cursor: pointer;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.85);
  transition: opacity .3s ease, transform .5s var(--ease-spring), visibility .3s ease, background .25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: var(--accent-2);
  transform: translateY(-3px) scale(1.1);
}
.back-to-top:active { transform: translateY(0) scale(.9); transition-duration: .12s; }

/* ---------- Typography helpers ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: .5px;
  line-height: 1.05;
  text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h3 { font-size: 1.4rem; }

.text-accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

h1 small {
  font-family: var(--font-body);
  font-size: .3em;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-left: 4px;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 12px; }
.section-sub { color: var(--text-dim); max-width: 560px; margin: 0 auto 40px; }
.center { text-align: center; margin-left: auto; margin-right: auto; display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease-spring), background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.95); transition-duration: .12s; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 10px 28px rgba(46, 230, 255, .28);
}
.btn-primary:hover::after { left: 130%; }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  padding: 10px;
  border-radius: 50%;
  color: var(--text);
}
.btn-ghost:hover { color: var(--accent); background: var(--surface); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(10, 12, 15, .55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled {
  background: rgba(10, 12, 15, .9);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.logo span { color: var(--accent); }
.logo small {
  font-family: var(--font-body);
  font-size: .6rem;
  color: var(--text-dim);
  margin-left: 4px;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s ease;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-icon { display: flex; }

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  margin-right: 4px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: var(--accent); color: var(--accent-contrast); }
.nav-cta { padding: 10px 22px; margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .4s var(--ease-spring), opacity .2s ease;
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 120%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(1.05);
  will-change: transform;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,15,.5) 0%, rgba(10,12,15,.75) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,12,15,.85) 0%, rgba(10,12,15,.25) 55%, rgba(10,12,15,.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 100px;
}

.hero-sub {
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 20px 0 32px;
}
.hero-sub strong { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ---------- Story timeline ---------- */

.story { padding: 120px 0 140px; }

.timeline {
  position: relative;
  margin: 72px auto 0;
  padding-left: 72px;
  max-width: 580px;
}

/* linea verticale */
.timeline-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 27px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.timeline-progress {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(198, 255, 63, .45);
  transition: height .15s linear;
}

.timeline-item {
  position: relative;
  margin-bottom: 56px;
}
.timeline-item:last-child { margin-bottom: 0; }

/* pallino sulla linea */
.timeline-dot {
  position: absolute;
  left: -53px;
  top: 40px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: border-color .35s ease, box-shadow .35s ease, transform .5s var(--ease-spring);
  z-index: 2;
}
.timeline-item.is-active .timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(198, 255, 63, .12), 0 0 20px rgba(198, 255, 63, .5);
}

/* card compatta: solo foto + etichetta, cliccabile per i dettagli */
.timeline-card {
  display: block;
  width: 100%;
  max-width: 460px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.timeline-card--tall { max-width: 220px; }

.timeline-item.is-active .timeline-media { border-color: rgba(198, 255, 63, .35); }
.timeline-card:hover .timeline-media,
.timeline-card:focus-visible .timeline-media {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.timeline-card:focus-visible .timeline-media { outline: 2px solid var(--accent); outline-offset: 3px; }

.timeline-media {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: border-color .3s ease, transform .45s var(--ease-spring), box-shadow .3s ease;
}
.timeline-media--tall { aspect-ratio: 9/16; }

.timeline-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.timeline-card:hover .timeline-media img { transform: scale(1.08); }

.timeline-step {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 1px;
  padding: 6px 10px 4px;
  border-radius: 999px;
  background: rgba(10, 12, 15, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--accent);
}

/* badge "info": sempre visibile, cosi' si capisce che la foto e' cliccabile anche senza passare il mouse (mobile) */
.timeline-info {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: rgba(10, 12, 15, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.timeline-card:hover .timeline-info,
.timeline-card:focus-visible .timeline-info {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
  transform: scale(1.06);
}

.timeline-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 36px 14px 12px;
  background: linear-gradient(180deg, rgba(10,12,15,0), rgba(10,12,15,.9) 65%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.timeline-kicker {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}


/* ---------- Lightbox storia ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 15, .82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transform: translateY(24px) scale(.92);
  transition: transform .45s var(--ease-spring);
}
.lightbox.is-open .lightbox-panel { transform: translateY(0) scale(1); }

.lightbox-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 12, 15, .6);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.lightbox-close:hover { background: var(--accent); color: var(--accent-contrast); }

.lightbox-img {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  display: block;
  background: var(--bg-alt);
}

.lightbox-body { padding: 24px; }
.lightbox-kicker {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.lightbox-body h3 { font-size: 1.6rem; margin-bottom: 12px; }
.lightbox-body p:not(.lightbox-kicker) { color: var(--text-dim); font-size: .95rem; }

/* ---------- Content pillars ---------- */

.content-pillars {
  padding: 120px 0;
  background: var(--bg-alt);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .25s ease, transform .45s var(--ease-spring);
}
.pillar-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px) scale(1.015);
}
.pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.pillar-card h3 { margin-bottom: 10px; font-size: 1.15rem; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 700; }
.pillar-card p { color: var(--text-dim); font-size: .92rem; }

/* ---------- Video ---------- */

.video-section { padding: 120px 0; }

.video-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
.video-grid--tiktok { grid-template-columns: repeat(3, 1fr); }
.video-grid--youtube {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 48px;
}

.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  background: var(--surface);
}
.video-grid--tiktok .video-card { aspect-ratio: 9/16; }
.video-grid--youtube .video-card { aspect-ratio: 16/9; }
.video-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-spring);
}
.video-card:hover img { transform: scale(1.08); }

.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,15,0) 40%, rgba(10,12,15,.9) 100%);
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(10,12,15,.55);
  border: 1px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  z-index: 2;
  transition: background .25s ease, border-color .25s ease;
}
.video-card:hover .play-btn { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

.video-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 5px 10px;
  border-radius: 999px;
}

.video-title {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 2;
  font-weight: 600;
  font-size: .95rem;
}

.video-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Sponsor ---------- */

.sponsor { padding: 100px 0; background: var(--bg-alt); }

.sponsor-inner {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 56px;
  align-items: center;
}

.sponsor-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--surface);
  border: 1px solid var(--border);
}
.sponsor-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.sponsor-text h2 { margin-bottom: 24px; }
.sponsor-text .btn { margin-bottom: 20px; }

.sponsor-code {
  color: var(--text-dim);
  font-size: .95rem;
  line-height: 1.7;
}
.sponsor-code strong { color: var(--accent); }

/* ---------- Contact ---------- */

.contact { padding: 140px 0; text-align: center; }

.contact-inner { max-width: 640px; margin: 0 auto; }
.contact h2 { margin-bottom: 20px; }
.contact-sub { color: var(--text-dim); margin-bottom: 40px; }

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.support-block {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.support-text {
  color: var(--text-dim);
  font-size: .95rem;
  margin-bottom: 16px;
}
.btn-paypal {
  background: #0070ba;
  color: #fff;
}
.btn-paypal:hover { background: #003087; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner p { color: var(--text-dim); font-size: .85rem; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { font-size: .85rem; color: var(--text-dim); }
.footer-social a:hover { color: var(--accent); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(.96);
  transition: opacity .6s var(--ease-smooth), transform .7s var(--ease-spring);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition-duration: .01ms !important;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsor-inner { grid-template-columns: 1fr; gap: 32px; }
  .sponsor-media { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .nav-inner { padding: 14px 16px; gap: 8px; }
  .logo { font-size: 1.25rem; }
  .logo small { font-size: .52rem; margin-left: 2px; }
  .nav-actions { gap: 2px; }
  .lang-switch { margin-right: 0; padding: 2px; }
  .lang-btn { padding: 4px 7px; font-size: .65rem; }
  .social-icon { padding: 6px; }
  .nav-toggle { padding: 6px 4px 6px 8px; }

  .main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav a { padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .pillar-grid { grid-template-columns: 1fr; }

  /* le griglie video restano in linea: 3 TikTok sopra, 2 YouTube sotto */
  .video-grid { gap: 10px; }
  .video-title {
    font-size: .7rem;
    line-height: 1.25;
    bottom: 10px; left: 10px; right: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .video-tag { font-size: .55rem; padding: 4px 7px; top: 8px; left: 8px; }
  .play-btn { width: 34px; height: 34px; font-size: .7rem; }

  .timeline { padding-left: 44px; }
  .timeline-line { left: 15px; }
  .timeline-dot { left: -37px; top: 28px; }
  .timeline-card { max-width: 260px; }
  .timeline-card--tall { max-width: 170px; }

  .back-to-top { right: 16px; bottom: 16px; }
}

/* ---------- Tocco su mobile: dato che l'hover non esiste, diamo
   un riscontro visivo immediato al tap e rendiamo evidente cosa si
   puo' cliccare ---------- */
@media (hover: none) {
  /* leggero "schiacciamento" al tocco per ogni elemento cliccabile */
  .timeline-card:active .timeline-media,
  .video-card:active,
  .pillar-card:active,
  .btn:active,
  .social-icon:active {
    transform: scale(.96);
  }

  /* il badge "info" pulsa piano per farsi notare senza bisogno del passaggio del mouse */
  .timeline-info {
    animation: timelineInfoPulse 2.2s ease-in-out infinite;
  }
  .timeline-card:active .timeline-info {
    animation: none;
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent);
  }

  /* la freccina "play" dei video resta sempre leggermente visibile */
  .play-btn { opacity: .85; }
}

@keyframes timelineInfoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(198, 255, 63, 0); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 4px rgba(198, 255, 63, .12); }
}
