/* ════════════════════════════════════════
    FONTS & VARIABLES (Il Design System)
    ════════════════════════════════════════ */
@font-face { font-family: 'Oswald'; src: url('../fonts/Oswald-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('../fonts/Oswald-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('../fonts/Oswald-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('../fonts/Oswald-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'BioRhyme'; src: url('../fonts/BioRhyme-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'BioRhyme'; src: url('../fonts/BioRhyme-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'BioRhyme'; src: url('../fonts/BioRhyme-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('../fonts/CourierPrime-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --black: #0a0a0a;
  --dark-bg: #131113;
  --dark-card: #1a181a;
  --pink: #e84c8a;
  --cream: #faf8f4;
  --white: #f0ece6;
  --grey: #888;
  --grey-dark: #555;
  --grey-faint: #333;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'BioRhyme', serif;
  --font-mono: 'Courier Prime', monospace;

  --fs-hero:       clamp(3rem, 7.5vw, 5.5rem);
  --fs-titolo:     clamp(2rem, 5.5vw, 3.8rem);
  --fs-sottotitolo: clamp(1.3rem, 3vw, 1.8rem);
  --fs-elemento:   clamp(1.1rem, 3vw, 1.6rem);
  --fs-testo:      clamp(1rem, 2vw, 1.15rem);
  --fs-dettaglio:  clamp(0.85rem, 2vw, 0.95rem);
  --fs-etichetta:  clamp(0.8rem, 1.05vw, 0.92rem);
  --fs-bottone:    clamp(0.75rem, 1.1vw, 0.9rem);
  --fs-mini:       clamp(0.65rem, 0.9vw, 0.78rem);
  --fs-micro:      clamp(0.55rem, 0.8vw, 0.72rem);

  --col-1: clamp(3rem, 5vw, 4rem);
}

/* ════════════════════════════════════════
    RESET & BASE
    ════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent;}
html { scroll-behavior: smooth; background: var(--black); }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ════════════════════════════════════════
    ANIMATIONS & HELPERS
    ════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(25px); }
body.anim-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-divider { display: none; } /* Nascosta di base su PC */

/* ════════════════════════════════════════
    COMMON LAYOUT (WRAPPER & TITLES)
    ════════════════════════════════════════ */
.page-wrapper {
  background-color: var(--pink);
  background-image: url('../img/texture_rosa.webp');
  background-repeat: repeat;
  background-size: auto;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper > * { position: relative; z-index: 1; }

.page-title-section {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(3.5rem, 7vh, 5.5rem) clamp(1.5rem, 5vw, 4rem) 0;
}

.page-label {
  font-family: var(--font-mono); font-size: var(--fs-etichetta); 
  text-transform: uppercase; letter-spacing: 4px; color: var(--cream);
  opacity: 0.6; margin-bottom: 0.3rem; line-height: normal;
}

.page-title {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-titolo); 
  text-transform: uppercase; letter-spacing: 3px; color: var(--cream);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3); line-height: normal; 
  margin-top: 0; margin-bottom: clamp(1.2rem, 3vh, 2.5rem);
}

/* ════════════════════════════════════════
    FOOTER
    ════════════════════════════════════════ */
footer {
  position: relative; z-index: 1; background: var(--cream); color: var(--black);
  padding: clamp(1.5rem, 3vh, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  display: flex; flex-direction: column; align-items: center; gap: clamp(0.8rem, 1.5vh, 1.5rem);
  margin-top: auto;
}

.back-to-top {
  font-family: var(--font-mono); font-size: var(--fs-mini);
  text-transform: uppercase; letter-spacing: 2px; color: var(--grey);
  text-decoration: none; transition: color 0.2s, transform 0.1s; display: inline-block;
}

@media (hover: hover) { .back-to-top:hover { color: var(--pink); } }
.back-to-top:active { color: var(--pink); transform: scale(0.95); }

.footer-logo { height: clamp(32px, 5vw, 55px); }
.footer-logo img { height: 100%; width: auto; display: block; }

.footer-social { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.5rem); }
.footer-social a img { width: 24px; height: 24px; filter: brightness(0); transition: all 0.2s; }

@media (hover: hover) {
  .footer-social a:hover img { 
    filter: invert(42%) sepia(63%) saturate(1500%) hue-rotate(312deg) brightness(95%) contrast(92%); 
    transform: scale(1.1); 
  }
}

.footer-copy { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--grey); text-align: center; }

/* ════════════════════════════════════════
    INTERACTIONS (BOTTONI & LINK)
    ════════════════════════════════════════ */
.btn { transition: transform 0.2s ease; } 
.btn:active { transform: scale(0.96) translateY(2px) !important; transition: none !important; }

.c-link { transition: color 0.2s ease; }
@media (hover: hover) { .c-link:hover { color: var(--pink); } }
.c-link:active { color: var(--pink); transition: none !important; }

/* ════════════════════════════════════════
   TEXT SELECTION (Cross-browser & Mobile Fix)
   ════════════════════════════════════════ */
::-moz-selection { background-color: var(--pink); color: var(--black); }
::selection { background-color: var(--pink); color: var(--black); }

.page-wrapper ::-moz-selection { background-color: var(--black); color: var(--pink); }
.page-wrapper ::selection { background-color: var(--black); color: var(--pink); }

/* Forza la selezione del testo sui paragrafi per evitare blocchi da touch */
p, h1, h2, h3, span {
  -webkit-user-select: auto;
  user-select: auto;
}

/* ════════════════════════════════════════
    MASTER RESPONSIVE CASCATA
    ════════════════════════════════════════ */

/* --- 1. TABLET (max 1024px) --- */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; align-items: center !important; text-align: center; gap: 2.5rem; }
  .hero-album { width: clamp(180px, 45vw, 350px); margin: 0 auto !important; transform: rotate(-1.5deg); }
  .hero-text { align-items: center; }
  .hero-streaming { justify-content: center; }

  .contact-grid, .music-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- 2. MOBILE (max 768px) --- */
  @media (max-width: 768px) {
  /* Mobile: Il velo rosa ora sta sotto i contenuti */
  .page-wrapper, .strip-pink, .tour-filters { 
    background-size: 150px !important; 
    position: relative; 
  }

  .page-wrapper::before, .strip-pink::before, .tour-filters::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: var(--pink) !important; 
    opacity: 0.6 !important; 
    z-index: 0 !important; /* Lo teniamo dietro */
    pointer-events: none; 
  }

  /* Forza i figli diretti a stare sopra il velo */
  .page-wrapper > *, .strip-pink > *, .tour-filters > * { 
    position: relative; 
    z-index: 1; 
  }

  /* TOUR HOME: Tira su il bottone All Dates nascondendo il fantasma della sfumatura */
  #tour .strip-cta { 
    margin-top: -3.5rem; 
  }

  .bio-wrapper { flex-direction: column; align-items: center; text-align: center; gap: 2rem; }
  .bio-photo-container { width: 100%; max-width: 450px; }
  
  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; text-align: center; }
  .contact-group a, .contact-social { justify-content: center; }

  /* Music & Videos */
  .music-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
  .video-grid { grid-template-columns: 1fr; max-width: 550px; gap: 3.5rem; }
  .video-divider { display: block; }

  /* Tour */
  .tour-filters { flex-direction: column; flex-wrap: nowrap; padding: 0.8rem 1rem; gap: 0; overflow: hidden; }
  .tour-filters .btn-filter.desktop-filter { display: none; }
  .filter-slider { display: block; width: 100%; overflow: hidden; position: relative; }
  .filter-track { display: flex; transition: transform 0.3s ease; }
  .filter-track .btn-filter { flex: 0 0 100%; text-align: center; border: none; padding: 0.5rem 1rem; }
  .filter-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }
  .filter-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--black); opacity: 0.3; border: none; }
  .filter-dot.active { opacity: 1; }
  .tour-content { padding: 0 0.5rem 3rem; }

  .lineup-list { gap: 1.2rem; }
}

/* --- 3. SMALL MOBILE (max 500px) --- */
@media (max-width: 500px) {
  .strip { padding: clamp(2.5rem, 5vh, 3.5rem) clamp(1rem, 4vw, 1.5rem); }
}

/* --- 4. MICRO (max 380px) --- */
@media (max-width: 380px) {
  .hero-title, .hero-inner h1 { font-size: clamp(1.6rem, 8vw, 2rem); }
  .hero-subtitle, .hero-inner p { font-size: 0.85rem; padding: 0 10px; }
  .hero-streaming { gap: 1.2rem; }
}

/* --- 5. NANO (max 320px) --- */
@media (max-width: 320px) {
  .hero-subtitle, .hero-inner p { font-size: 0.75rem !important; }
  .hero-streaming, .contact-social { gap: 0.6rem !important; }
  .hero-streaming a, .contact-social a img { width: 18px !important; height: 18px !important; }
  .credits-name { white-space: normal; }
}

/* --- LANDSCAPE FIX --- */
@media (max-height: 600px) {
  .hero-subtitle, .hero-divider { display: none; }
  .hero-album { width: clamp(120px, 25vh, 200px); }
}

/* ═══════════════════════════
   SCROLL INDICATOR (La Freccina)
   ═══════════════════════════ */
.menu-scroll-indicator {
  position: fixed;
  bottom: clamp(1rem, 4vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  color: var(--pink);
  opacity: 0; /* Nascosta di base */
  pointer-events: none; /* I clic le passano attraverso */
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.menu-scroll-indicator svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
  animation: bounceArrow 2s infinite;
}

/* Quando JS aggiunge la classe 'can-scroll' al menu, la freccia appare */
.mobile-menu.can-scroll .menu-scroll-indicator {
  opacity: 1;
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ═══════════════════════════
   SFUMATURA SCROLL (Fade-out in basso)
   ═══════════════════════════ */
.mobile-menu::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(80px, 15vh, 120px); /* Si adatta all'altezza dello schermo */
  /* Sfumatura da trasparente al colore del tuo dark-bg (#131113) */
  background: linear-gradient(to bottom, #13111300 0%, #131113 85%);
  pointer-events: none; /* Il dito ci passa attraverso per cliccare o scrollare */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 990; /* Sta SOPRA i testi ma SOTTO la freccia (che ha 1000) */
}

/* La sfumatura appare e scompare in perfetta sincronia con la freccia */
.mobile-menu.can-scroll::after {
  opacity: 1;
}