/* ============================================
   TUORING CASE STUDY · prefix: tu-
   palette giallo officina + nero asfalto su dark soul
   emoji automotive volanti + scie di velocità (signature)
   ============================================ */

:root {
  --tu-bg: #0a0a0a;
  --tu-text: #f5f5f5;
  --tu-text-muted: #c4c4c4;
  --tu-text-soft: rgba(245, 245, 245, 0.65);
  --tu-yellow: #FFD700;
  --tu-yellow-warm: #F5C518;
  --tu-yellow-dark: #B8860B;
  --tu-steel: #A8A8A8;
  --tu-glow-warm: rgba(255, 215, 0, 0.5);
  --tu-glow-soft: rgba(245, 197, 24, 0.25);
  --tu-glow-hot: rgba(255, 215, 0, 0.5);
  --tu-bg-soft: rgba(255, 215, 0, 0.1);
  --tu-bg-yellow: rgba(255, 215, 0, 0.08);
  --tu-border: rgba(255, 215, 0, 0.4);
  --tu-divider: rgba(255, 215, 0, 0.22);
}

.tu-main {
  background: var(--tu-bg);
  color: var(--tu-text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}
.tu-main * { box-sizing: border-box; }

/* SECTIONS */
.tu-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.tu-section + .tu-section {
  border-top: 1px solid var(--tu-divider);
}

/* GLOW */
.tu-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 65%;
  background: radial-gradient(ellipse, var(--tu-glow-warm) 0%, var(--tu-glow-soft) 35%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}
.tu-glow--center { width: 85%; height: 80%; }
.tu-glow--hot {
  background: radial-gradient(ellipse, rgba(255, 215, 0, 0.55) 0%, var(--tu-glow-soft) 40%, transparent 70%);
}

/* EMOJI VOLANTI */
.tu-fly {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0.32;
  will-change: transform;
}
.tu-fly--a { animation: tu-fly-a 12s ease-in-out infinite; }
.tu-fly--b { animation: tu-fly-b 14s ease-in-out infinite; }
.tu-fly--c { animation: tu-fly-c 10s ease-in-out infinite; }
.tu-fly--d { animation: tu-fly-d 16s ease-in-out infinite; }

@keyframes tu-fly-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(15deg); }
  50% { transform: translate(-10px, -50px) rotate(-10deg); }
  75% { transform: translate(-25px, -20px) rotate(8deg); }
}
@keyframes tu-fly-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-30px, -20px) rotate(-15deg); }
  66% { transform: translate(15px, -40px) rotate(20deg); }
}
@keyframes tu-fly-c {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  50% { transform: translate(25px, 25px) rotate(15deg); }
}
@keyframes tu-fly-d {
  0%, 100% { transform: translate(0, 0) rotate(8deg); }
  20% { transform: translate(-15px, 20px) rotate(-10deg); }
  40% { transform: translate(20px, 10px) rotate(15deg); }
  60% { transform: translate(-10px, -25px) rotate(-8deg); }
  80% { transform: translate(15px, -15px) rotate(12deg); }
}

/* SCIE DI VELOCITÀ - signature di Tuoring */
.tu-streak {
  position: absolute;
  pointer-events: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.7), rgba(245, 197, 24, 0.5), transparent);
  border-radius: 2px;
  z-index: 1;
  opacity: 0.6;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  will-change: transform, opacity;
}
.tu-streak--1 { width: 140px; top: 30%; left: -150px; animation: tu-streak-fly 4s linear infinite; }
.tu-streak--2 { width: 100px; top: 60%; left: -150px; animation: tu-streak-fly 5s linear infinite 1.5s; }
.tu-streak--3 { width: 160px; top: 80%; left: -180px; animation: tu-streak-fly 4.5s linear infinite 0.8s; }

@keyframes tu-streak-fly {
  0% { left: -180px; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { left: calc(100% + 50px); opacity: 0; }
}

/* CONTENT */
.tu-content { position: relative; z-index: 2; }

/* KICKER */
.tu-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tu-yellow-warm);
  margin-bottom: 20px;
}
.tu-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tu-yellow);
  box-shadow: 0 0 14px var(--tu-yellow);
}

/* TITLE */
.tu-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--tu-text);
  margin: 0 0 20px;
}
.tu-title__yellow {
  background: linear-gradient(135deg, var(--tu-yellow-dark), var(--tu-yellow-warm), var(--tu-yellow), var(--tu-text));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tu-title__emoji {
  display: inline-block;
  font-size: 0.85em;
  transform: rotate(-12deg);
  margin-left: 6px;
  -webkit-text-fill-color: initial;
  background: none;
  -webkit-background-clip: initial;
  color: initial;
}

/* COPY */
.tu-copy {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--tu-text-muted);
  max-width: 640px;
  margin: 0;
}
.tu-copy--lead {
  font-size: 19px;
  margin-bottom: 32px;
}

/* SECTION HEAD */
.tu-section-head {
  text-align: center;
  margin-bottom: 50px;
}
.tu-section-head .tu-copy {
  margin: 20px auto 0;
}

/* HERO */
.tu-hero {
  text-align: center;
  padding: 140px 0 100px;
}
.tu-hero .tu-title { max-width: 900px; margin: 0 auto 24px; }
.tu-hero .tu-copy { margin: 0 auto 32px; }
.tu-hero .tu-pills { justify-content: center; display: flex; }

/* HERO KPI ROW */
.tu-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 700px;
  margin: 0 auto 28px;
}
.tu-kpi {
  padding: 18px 12px;
  border: 1px solid var(--tu-border);
  border-radius: 12px;
  background: var(--tu-bg-yellow);
  text-align: center;
}
.tu-kpi__num {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--tu-yellow-dark), var(--tu-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.tu-kpi__label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tu-text-muted);
  margin-top: 6px;
}

/* PILLS */
.tu-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tu-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--tu-bg-soft);
  border: 1px solid var(--tu-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--tu-yellow-warm);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

/* MEDIA + HOVER GLOW */
.tu-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
  background: linear-gradient(160deg, #1a1a14, #0a0a08);
}
.tu-media::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow 0.4s ease;
  pointer-events: none;
  z-index: -1;
}
.tu-media:hover {
  transform: translateY(-6px) scale(1.03);
}
.tu-media:hover::after {
  box-shadow:
    0 0 60px 8px var(--tu-glow-warm),
    0 0 140px 24px var(--tu-glow-soft);
}
.tu-media img,
.tu-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* CONCESSIONARIA PHOTO (chi-è) */
.tu-concessionaria-photo {
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--tu-border);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.15),
    0 0 100px var(--tu-glow-warm),
    0 30px 60px rgba(0, 0, 0, 0.6);
}
.tu-concessionaria-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tu-caption {
  text-align: center;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tu-text-soft);
  margin: 16px 0 0;
}

/* AUTO GRID 4x2 (8 foto, formato 4:3 orizzontale per le auto) */
.tu-auto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tu-auto-card { aspect-ratio: 4/3; }

/* REEL GRID 5 colonne */
.tu-reel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}
.tu-reel-card { aspect-ratio: 9/16; }

/* GRAFICHE GRID 4 colonne (4 grafiche perfettamente in linea) */
.tu-grafiche-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}
.tu-grafica-card { aspect-ratio: 1/1; }

/* MOCKUP SITO */
.tu-sito-mockup {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--tu-border);
  background: linear-gradient(160deg, #1a1a14, #0a0a08);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.15),
    0 0 100px var(--tu-glow-warm),
    0 30px 60px rgba(0, 0, 0, 0.6);
}
.tu-sito-mockup img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* CTA */
.tu-cta {
  text-align: center;
  padding: 120px 0;
}
.tu-cta .tu-title { max-width: 720px; margin: 0 auto 32px; }
.tu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--tu-yellow-dark), var(--tu-yellow));
  color: #0a0a0a !important;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  box-shadow:
    0 0 60px var(--tu-glow-warm),
    0 0 0 1px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}
.tu-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 0 80px var(--tu-glow-warm),
    0 0 0 1px var(--tu-yellow);
}
.tu-btn__arrow { transition: transform 0.3s ease; }
.tu-btn:hover .tu-btn__arrow { transform: translateX(4px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .tu-section { padding: 70px 0; }
  .tu-hero { padding: 100px 0 70px; }
  .tu-cta { padding: 90px 0; }

  .tu-kpi-row { gap: 6px; }
  .tu-kpi { padding: 12px 4px; }
  .tu-kpi__num { font-size: 22px; }
  .tu-kpi__label { font-size: 9px; }

  .tu-auto-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tu-grafiche-grid { grid-template-columns: repeat(2, 1fr); }

  .tu-fly { opacity: 0.22; font-size: 18px !important; }
}

@media (max-width: 540px) {
  .tu-section { padding: 60px 0; }
  .tu-hero { padding: 80px 0 60px; }
  .tu-cta { padding: 70px 0; }

  .tu-title { font-size: 32px; }
  .tu-copy { font-size: 15px; }
  .tu-copy--lead { font-size: 16px; }

  .tu-kpi-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tu-kpi { padding: 14px 8px; }

  .tu-auto-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tu-grafiche-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .tu-pills { justify-content: center; }
  .tu-section-head { margin-bottom: 32px; }
  .tu-btn { padding: 16px 28px; font-size: 14px; }
}


/* TU MOBILE REEL CAROUSEL — reel scroll orizzontale col dito (<=768px) */
@media (max-width: 768px){
  .tu-reel-grid{
    display:flex; grid-template-columns:none;
    overflow-x:auto; gap:12px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    padding:4px 16px 14px; margin:0 -16px;
    max-width:none;
  }
  .tu-reel-grid::-webkit-scrollbar{ height:4px; }
  .tu-reel-grid::-webkit-scrollbar-thumb{ background:rgba(255,215,0,.6); border-radius:4px; }
  .tu-reel-card{ flex:0 0 60vw; max-width:230px; scroll-snap-align:start; }
}
/* ============================================================ */