/* ============================================
   YUME TRAVEL CASE STUDY · prefix: yu-
   palette rosso giapponese su dark soul
   sakura petals + kanji decorativi + emoji volanti
   ============================================ */

:root {
  --yu-bg: #0a0a0a;
  --yu-text: #f5f0e8;
  --yu-text-muted: #c9c4ba;
  --yu-text-soft: rgba(245, 240, 232, 0.65);
  --yu-red: #C8102E;
  --yu-red-dark: #8B0000;
  --yu-red-light: #E8475A;
  --yu-washi: #F5F0E8;
  --yu-glow-warm: rgba(200, 16, 46, 0.55);
  --yu-glow-soft: rgba(232, 71, 90, 0.25);
  --yu-glow-hot: rgba(200, 16, 46, 0.5);
  --yu-bg-soft: rgba(200, 16, 46, 0.12);
  --yu-bg-red: rgba(200, 16, 46, 0.1);
  --yu-border: rgba(200, 16, 46, 0.4);
  --yu-divider: rgba(200, 16, 46, 0.25);
}

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

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

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

/* KANJI decorativi giganti (sfondo) */
.yu-kanji {
  position: absolute;
  font-size: clamp(160px, 22vw, 280px);
  font-family: serif;
  color: rgba(200, 16, 46, 0.06);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

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

@keyframes yu-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 yu-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 yu-fly-c {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  50% { transform: translate(25px, 25px) rotate(15deg); }
}
@keyframes yu-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); }
}

/* SAKURA - signature petali che cadono */
.yu-sakura {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  font-size: 18px;
  opacity: 0.7;
  will-change: transform, opacity;
}
.yu-sakura--1 { animation: yu-sakura-fall 9s linear infinite; left: 8%; top: -30px; }
.yu-sakura--2 { animation: yu-sakura-fall 11s linear infinite 1.5s; left: 22%; top: -30px; }
.yu-sakura--3 { animation: yu-sakura-fall 10s linear infinite 0.8s; left: 45%; top: -30px; }
.yu-sakura--4 { animation: yu-sakura-fall 12s linear infinite 2.4s; left: 65%; top: -30px; }
.yu-sakura--5 { animation: yu-sakura-fall 9.5s linear infinite 0.3s; left: 82%; top: -30px; }
.yu-sakura--6 { animation: yu-sakura-fall 10.5s linear infinite 3.1s; left: 92%; top: -30px; }

@keyframes yu-sakura-fall {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.7; }
  50% { transform: translateY(50%) translateX(30px) rotate(180deg); }
  90% { opacity: 0.7; }
  100% { transform: translateY(150vh) translateX(-50px) rotate(360deg); opacity: 0; }
}

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

/* KICKER */
.yu-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(--yu-red-light);
  margin-bottom: 20px;
}
.yu-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yu-red);
  box-shadow: 0 0 14px var(--yu-red);
}

/* TITLE */
.yu-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--yu-text);
  margin: 0 0 20px;
}
.yu-title__red {
  background: linear-gradient(135deg, var(--yu-red-dark), var(--yu-red), var(--yu-red-light), var(--yu-washi));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.yu-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 */
.yu-copy {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--yu-text-muted);
  max-width: 640px;
  margin: 0;
}
.yu-copy--lead {
  font-size: 19px;
  margin-bottom: 32px;
}

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

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

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

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

/* MEDIA + HOVER GLOW */
.yu-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, #2a0808, #1a0404);
}
.yu-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;
}
.yu-media:hover {
  transform: translateY(-6px) scale(1.03);
}
.yu-media:hover::after {
  box-shadow:
    0 0 60px 8px var(--yu-glow-warm),
    0 0 140px 24px var(--yu-glow-soft);
}
.yu-media img,
.yu-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* FONDATORI - Alessio + Romina */
.yu-fondatori-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 480px;
  margin: 0 auto;
}
.yu-fondatore-card {
  text-align: center;
}
.yu-fondatore-photo {
  aspect-ratio: 3/4;
  margin-bottom: 14px;
}
.yu-fondatore-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--yu-text);
  text-transform: lowercase;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.yu-fondatore-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yu-text-muted);
}

/* LOGO SHOWCASE */
.yu-logo-showcase {
  max-width: 640px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--yu-border);
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(200, 16, 46, 0.15),
    0 0 120px var(--yu-glow-warm),
    0 30px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}
.yu-logo-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yu-caption {
  text-align: center;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yu-text-soft);
  margin: 16px 0 0;
}

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

/* GIAPPONE GRID 4x2 (8 foto) */
.yu-giappone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.yu-giappone-card { aspect-ratio: 1/1; }

/* GRAFICHE GRID 3x2 (6 grafiche) */
.yu-grafiche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.yu-grafica-card { aspect-ratio: 1/1; }

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

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

  .yu-kpi-row { gap: 6px; }
  .yu-kpi { padding: 12px 4px; }
  .yu-kpi__num { font-size: 22px; }
  .yu-kpi__label { font-size: 9px; }
  .yu-giappone-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .yu-grafiche-grid { grid-template-columns: repeat(2, 1fr); }

  .yu-fly { opacity: 0.22; font-size: 18px !important; }
  .yu-kanji { font-size: 140px; }
}

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

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

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

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

  .yu-logo-showcase { max-width: 100%; }
  .yu-fondatori-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .yu-kanji { font-size: 100px !important; }
}


/* YU MOBILE REEL CAROUSEL — reel scroll orizzontale col dito (<=768px) */
@media (max-width: 768px){
  .yu-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;
  }
  .yu-reel-grid::-webkit-scrollbar{ height:4px; }
  .yu-reel-grid::-webkit-scrollbar-thumb{ background:rgba(200,16,46,.6); border-radius:4px; }
  .yu-reel-card{ flex:0 0 60vw; max-width:225px; scroll-snap-align:start; }
}
/* ============================================================ */