/* =========================
   RESET BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BODY / FONT BASE
========================= */
body {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 300;
  color: #f2f2f2;
  background: black;
}

/* ==================================================
   SAFE AREA (iPhone notch etc.) +    ACCENT COLOR
================================================== */

:root {
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
  --safe-right: env(safe-area-inset-right);

  /* controllo luminosità background */
  --bg-brightness: 1;
  --bg-overlay: 0;


  --accent: #fd5bd4;

  /* colore testo home */
  --home-text: #ffffff;

  /* colore icone social home */
  --home-social: #ffffff;

  /* UNICO PER HOME + BIO + CONTACTS MOBILE */
  --h1-common-size: 2.5rem;
  
  /* SEPARATO PER SELECTED WORKS */
  --h1-works-size: 2.2rem;

  /* MENU MOBILE - CAMBIA SOLO QUESTO */
  --menu-mobile-size: 23px;

  /* SEZIONI WORKS MOBILE */
  --section-title-mobile: 19px;

  /* TITOLI VIDEO WORKS MOBILE */
  --video-title-mobile: 19px;

}

/* =========================
   GLOBAL LINKS
========================= */
a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--accent);
  }
}

@media (hover: hover) and (pointer: fine) {
  .menu-link:hover {
    color: var(--accent);
  }

  .home-link:hover span {
    color: var(--accent);
  }
}

.home-link span {
  transition: color 0.3s ease;
}

/* =========================
   FONT TITOLI
========================= */
h1, h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* =========================
   HOME TEXT COLOR
========================= */

.home {
  color: var(--home-text);
}

.home a {
  color: var(--home-text);
}

.home h1,
.home h2,
.home a {
  text-shadow: 0 0.5px 2px rgba(0,0,0,0.25);
}

.home .background video {
    filter: brightness(1.25);  /* più luminoso solo in home */
}

.home .page-overlay {
    background: rgba(0,0,0,0);  /* overlay trasparente solo in home */
}

/* =========================
   SFONDO FULLSCREEN
========================= */
.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.background video,
.background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(var(--bg-brightness));
}

.page-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,var(--bg-overlay));
  z-index: -1;
}

body.contacts-mobile-strong-overlay {
  --bg-overlay: 0.30;
}

/* =========================
   AUDIO NASCOSTO
========================= */
#bg-audio {
  display: none;
}

/* =========================
   AUDIO TOGGLE
========================= */
.audio-toggle {
  position: fixed;
  bottom: 40px;   /* allineato alle icone social */
  left: 40px;     /* allineato alla colonna dei titoli */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

.audio-toggle span {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* =========================
   AUDIO TOGGLE – IMMAGINE / ROTAZIONE
========================= */
.audio-toggle img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(158, 255, 195, 0.8);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
  transform-origin: center center;

  /* posizione iniziale (volume basso) */
  transform: rotate(-140deg);
}

.audio-toggle.active img {
  /* posizione finale (volume alto) */
  transform: rotate(140deg);
}


@media (hover: hover) and (pointer: fine) {
  .audio-toggle:hover img {
    transform: rotate(-134deg) scale(1.15);
    box-shadow: 0 0 28px rgba(253, 91, 212, 1);
  }

  .audio-toggle.active:hover img {
    transform: rotate(146deg) scale(1.15);
  }
}


/* =========================
   HOME BLOCK
========================= */
#home-content {
  position: relative;
  min-height: 100svh;
  transform: translateY(-100svh);
  transition: transform 3s ease-out;
  opacity: 0;
  visibility: hidden;
}

#home-content.animating * {
  pointer-events: none;
}

#home-content.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

#home-content.visible * {
  pointer-events: auto;
}

.home.no-animation #home-content {
  transform: translateY(0) !important;
  transition: none !important;
}

/* =========================
   HOME BACKGROUND CONTROL
========================= */

.desktop-video {
  display: block;
}

.mobile-fallback {
  display: none;
}

/* MOBILE */
@media (max-width: 900px) {

  .desktop-video {
    display: none;
  }

  .mobile-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  /* TITOLO H1 AL CENTRO ORIZZONTALE MOBILE - FIX LINEBREAK */
  .top-left {
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
  }


    /* HOME + BIO + CONTACTS - UNICO CONTROLLO */
  .home h1,
  .content.bio h1,
  .content.contacts h1 {
    font-size: var(--h1-common-size) !important;
    white-space: nowrap !important;
    line-height: 0.95 !important;
  }
  
  /* WORKS - SEPARATO (NO WRAP) */
  #works-content h1 {
    font-size: var(--h1-works-size) !important;
    white-space: nowrap !important;     /* ← ORA ANCHE WORKS UNA RIGA */
  }

  /* LOGO + TESTO "HOME" SU TUTTE LE PAGINE MOBILE */
  .logo-home {
    top: calc(20px + var(--safe-top)) !important;
    right: auto !important;
    left: calc(20px + var(--safe-left)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .logo-home span {
    display: block !important;      /* ← MOSTRA TESTO */
    font-size: 10px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
  }

  .logo-home img {
    width: 44px !important;
    height: 44px !important;
  }

  /* MENU LINKS MOBILE - NO WRAP + DIMENSIONI */
  .index-list a {
    font-size: var(--menu-mobile-size, 26px) !important;
    white-space: nowrap !important;
    line-height: 0.95 !important;
    font-family: 'Space Grotesk', sans-serif;
  }

  /* SEZIONI WORKS MOBILE - NO WRAP + DIMENSIONI */
  #works-content .section-title {
    font-size: var(--section-title-mobile, 18px) !important;
    white-space: nowrap !important;
    line-height: 0.95 !important;
  }

  /* TITOLI VIDEO WORKS MOBILE - NO WRAP + DIMENSIONI */
  #works-content .work-item h2 {
    font-size: var(--video-title-mobile, 20px) !important;
    white-space: nowrap !important;
    line-height: 0.95 !important;
  }


  /* RUOLI PIÙ GRANDI - MAGGIORE SPAZATURA VERSO MENU */
  .bottom-right {
    bottom: clamp(80px, 12vh, 100px) !important;  /* +40px verso il basso */
    gap: 18px !important;
  }


  /* RUOLI DIMENSIONI FISSE MOBILE */
.bottom-right h2 {
  font-size: 18px !important;  /* TUO VALORE */
}


  /* ICONE SOCIAL PIÙ GRANDI */
  .social a,
  .works-social a {
    font-size: 30px !important;
  }

  
}


/* =========================
   TITLE TOP LEFT
========================= */
.top-left {
  position: absolute;
  top: calc(40px + var(--safe-top));
  left: calc(40px + var(--safe-left));
}

.top-left h1 {
  font-size: 72px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =========================
   HOME MENU
========================= */
.index-list {
  position: absolute;
  top: 50%;
  left: calc(40px + var(--safe-left));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.index-list a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  opacity: 0.85;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
              opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  #home-content.visible .index-list a:hover {
    transform: translateX(12px);
    opacity: 1;
  }
}


/* =========================
   LOGO HOME
========================= */
.logo-home {
  position: absolute;
  top: calc(55px + var(--safe-top));
  right: calc(40px + var(--safe-right));
  text-align: center;
  z-index: 10;
}

.logo-home img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  opacity: 0.9;
  box-shadow: 0 0 12px rgba(255,255,255,0.5);
  animation: pulse 2s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-home span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

.logo-home:hover img {
  transform: scale(1.15);
}

@media (max-width: 900px) {

  .logo-home {
    top: 18px;
    right: 18px;
  }

  .logo-home img {
    width: 42px;
    height: 42px;
  }

}


/* =========================
   ROLE + SOCIAL (HOME)
========================= */
.bottom-right {
  position: absolute;
  bottom: calc(40px + var(--safe-bottom));
  right: calc(40px + var(--safe-right));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;

  width: max-content;
}

.bottom-right .social {
  display: flex;
  justify-content: space-between;
  width: 100%;
}


.bottom-right h2 {
  font-size: 30px;
  text-align: right;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* =========================
   SOCIAL ICONS GLOBAL
========================= */
.social a,
.works-social a {
  font-size: 44px;
  color: white;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
              color 0.3s ease;
}

/* icone social più scure nella home */
.home .social a {
  color: var(--home-social);
}

@media (hover: hover) and (pointer: fine) {
  .social a:hover,
  .works-social a:hover {
    transform: scale(1.25);
    color: var(--accent);
  }
}

/* =========================
   PULSE LOGO
========================= */
@keyframes pulse {
  0% { box-shadow: 0 0 12px rgba(255,255,255,0.5); }
  50% { box-shadow: 0 0 28px rgba(255,255,255,1); }
  100% { box-shadow: 0 0 12px rgba(255,255,255,0.5); }
}

/* =========================
   CONTENT PAGES - RESPONSIVE
========================= */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 6vh, 48px);
  padding: 40px;
  text-align: center;
  width: 100%;
  min-height: 100vh;
}


/* =========================
   YOUTUBE PLAYER
========================= */

.youtube-player {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
}

.youtube-player iframe {
  width: 100%;
  height: 100%;
}

/* overlay scuro sopra thumbnail */
.youtube-player::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  transition: background 0.4s ease;
}

/* play icon */
.youtube-player::after {
  content: "▶";
  position: absolute;
  font-size: 60px;
  color: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}

/* stato quando il video è partito */
.youtube-player.playing::before,
.youtube-player.playing::after {
  display: none;
}


@media (hover: hover) and (pointer: fine) {
  .youtube-player:hover::before {
    background: rgba(0,0,0,0.1);
  }
}

/* =========================
   TITOLI ALLINEATI AL LOGO
========================= */
.page-not-home h1,
#works-content h1 {
  text-transform: uppercase;
  position: absolute; 
  top: 55px;         
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  text-align: center;
  margin: 0;
  z-index: 1;
}

/* =========================
   BIO E CONTACTS
========================= */
.content.bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
}


/* =========================
   BIO - PARAGRAFI A DESTRA (DESKTOP + MOBILE)
========================= */
.content.bio .center-block {
  position: relative !important;
  align-items: flex-end !important;
  top: 180px; /* ← DESKTOP: cambia qui */
}

@media (max-width: 900px) {
  .content.bio .center-block {
    top: 80px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  
  /* WRAPPER LARGHEZZA REGOLABILE */
  .bio-column-mobile {
    width: 100vw !important;       /* ← CAMBIA QUI!!! */
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  
  .bio-column-mobile .bio-text,
  .bio-column-mobile .bio-text p {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 1.5rem 0 !important;
    text-align: justify !important;
    line-height: 1.55 !important;
    hyphens: auto !important;
  }
}
  
  .content.bio .bio-text p {
    margin-bottom: 1.5rem !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: justify !important;
    line-height: 1.55 !important;
    hyphens: auto !important;
  }
}
  
  .content.bio .bio-text p {
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    text-align: justify !important;
    line-height: 1.55 !important;
    hyphens: auto !important;
  }
}

/* DESKTOP - Solo se schermo >900px */
@media (min-width: 901px) {
  .content.bio .bio-text p {
    width: clamp(320px, 45vw, 750px) !important;
    max-width: 90vw !important;
    margin: 0 0 1rem auto !important;
    text-align: justify !important;
    line-height: 1.6 !important;
    hyphens: auto !important;
  }
}


.content.contacts {
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra verticalmente */
  align-items: center;     /* centra orizzontalmente */
  min-height: 100vh;       /* tutta altezza viewport */
  padding: 0 40px;         /* margini laterali */
  text-align: center;      /* centra il testo */
  gap: 20px;               /* distanza tra eventuali elementi */
}

.content.bio .bio-text {
  width: 640px;
  max-width: 90vw;
  text-align: justify;
}

/* testo principale contacts */
.content.contacts h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
}

/* scritta EMAIL */
.content.contacts .contact-item span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* indirizzo email */
.content.contacts .contact-item a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
}


.content.contacts .social {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 72px;
}

/* =========================
   WORKS PAGE
========================= */
#works-content h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 120px;
}


#works-content .section-title {
  width: 100%;
  max-width: 1600px;
  margin: 18px auto 10px auto;
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  color: #c0c0c0;
  letter-spacing: 1px;
}

#works-content .section-title::after {
  content: "";
  display: block;
  width: 100vw;           /* ← TUTTA la larghezza viewport */
  height: 1px;
  background: #c0c0c0;
  margin-top: 6px;
  position: relative;     /* ← Per centrare rispetto al titolo */
  left: 50%;
  transform: translateX(-50%);
}

#works-content .work-item {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 30px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;

  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

#works-content .work-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

#works-content .work-item h2 {
  text-align: center;
  font-size: 2rem;
  text-transform: uppercase;
}

#works-content .media-wrapper {
  width: 90%;
  max-width: 1400px;
  height: 490px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
}

#works-content .media-wrapper iframe,
#works-content .media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

/* Spotify embed */
#works-content .media-wrapper.album-embed {
  height: 420px;
}

#works-content .media-wrapper.album-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: initial;
}

#works-content .work-item p {
  text-align: justify;
  text-justify: inter-word;
  text-align-last: center;
  hyphens: auto;
}

#works-content .work-item p a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.3s ease;
}

#works-content .work-item p a:hover {
  border-color: var(--accent);
}

.works-social {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 60px 0;
}



/* =========================
   WORKS PAGE – TITOLI RIPRISTINATI
========================= */

/* Spazio corretto per la content container */
.content.works-page {
  padding-top: 126px;           /* sufficiente per il titolo */
  gap: 30px;
}


/* =========================
   DISTANZA CONTENUTI CONTACTS
========================= */
.content.contacts .contact-item {
  margin-top: 30px;
}


/* =========================
   CENTER BLOCK (BIO + CONTACTS)
========================= */

.center-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  width: 100%;
}

/* =========================
   MOBILE LAYOUT
========================= */

@media (max-width: 900px) {

  /* titolo */
  .top-left {
    top: calc(60px + var(--safe-top));
    margin-bottom: 8px; /* riduce distanza dal menu */
  }

  .top-left h1 {
    font-size: clamp(34px, 7vw, 48px);
  }


/* menu */
  .index-list {
    left: calc(24px + var(--safe-left));
  }

  .index-list a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px !important;
  }

  /* MENU POSIZIONE VERTICALE MOBILE PORTRAIT */
  .index-list {
    top: 40% !important;  /* SPOSTA VERSO BASSO */
  }


  /* HOME MOBILE PORTRAIT - MENU + RUOLI GRANDI */
  .home .index-list a {
    font-size: 30px !important;
  }

  .home .bottom-right h2 {
    font-size: 20px !important;
  }

  .home .social a {
    font-size: 32px !important;
  }


  /* LANDSCAPE: MENU CENTRO VERTICALE CON RUOLI */
  @media (max-width: 900px) and (orientation: landscape) {
    .index-list {
      left: calc(24px + var(--safe-left)) !important;  /* STESSA X DI PORTRAIT */
      top: 55% !important;                            /* CENTRO Y ESATTO */
      transform: translateY(-50%) !important;         /* CENTRO PERFETTO */
    }
  }


  /* ruoli */
.bottom-right {
  right: calc(24px + var(--safe-right));
  bottom: clamp(120px, 18vh, 160px);
  gap: 10px;
}

  .bottom-right h2 {
    font-size: clamp(14px, 2.8vw, 18px);
  }

  /* social */
  .social a,
  .works-social a {
    font-size: 26px;
  }

  /* logo */
  .logo-home {
    top: 18px;
    right: 18px;
  }

  .logo-home img {
    width: 44px;
    height: 44px;
  }

  .logo-home span {
    font-size: 11px;
  }

  /* works video */
  #works-content .media-wrapper {
    height: auto;
    aspect-ratio: 16 / 9;
    width: 100%;
  }

  /* works line */
  #works-content .section-title::after {
    width: 100%;
  }

  /* disabilita audio */
  .audio-toggle {
    display: none;
  }

}

/* MOBILE PORTRAIT – CONTATTI */
@media (max-width: 900px) and (orientation: portrait) {

  .content.contacts h3,
  .content.contacts .contact-item {
    max-width: 320px;      /* riduce il contenitore orizzontale */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
  }

  /* cambia la dimensione delle scritte solo su mobile portrait */
  .content.contacts h3 {
    font-size: 20px;
  }

  .content.contacts .contact-item span,
  .content.contacts .contact-item a {
    font-size: 22px;
  }

/* SOLO per la pagina Contacts, SOLO mobile */
  body.contacts-mobile-strong-overlay .page-overlay {
    background: rgba(0, 0, 0, 0.30); /* regola qui l’intensità */
  }

}

/* MOBILE LANDSCAPE – CONTATTI */
@media (max-width: 900px) and (orientation: landscape) {

  .content.contacts h3 {
    font-size: 24px;           /* regola la dimensione del testo */
    margin-bottom: 4px;        /* riduce lo spazio tra h3 e email */
    line-height: 1.3;
  }

  .content.contacts .contact-item {
    margin-top: 2px;           /* riduce lo spazio sopra l'email */
  }

  .content.contacts .contact-item span {
    font-size: 16px;
  }

  .content.contacts .contact-item a {
    font-size: 22px;
  }

  .content.contacts h1 {
    margin-bottom: 32px;    /* opzionale: se vuoi anche il H1 un po’ più distanziato dal contenuto */
  }

  .content.contacts h3 {
    margin-top: 90px;       /* ↑ aumenta lo spazio solo su mobile landscape */
  }

/* SOLO per la pagina Contacts, SOLO mobile */
  body.contacts-mobile-strong-overlay .page-overlay {
    background: rgba(0, 0, 0, 0.30); /* regola qui l’intensità */
  }

}


/* =========================
   MOBILE LANDSCAPE FIX
========================= */

@media (max-width: 900px) and (orientation: landscape) {

  /* riduce titolo */
  .top-left h1 {
    font-size: 34px;
  }

  /* menu più compatto */
  .index-list {
    gap: 8px;
  }

  .index-list a {
  font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
  }

  /* riduce ruoli */
  .bottom-right h2 {
    font-size: 12px;
  }

  /* social più piccoli */
  .social a {
    font-size: 22px;
  }

}


/* 2. FALLBACK/WEBP HOME MOBILE PORTRAIT */
@media (max-width: 900px) and (orientation: portrait) {
  .home .mobile-fallback {
    object-position: 40% 40%;
  }
  
  /* 3. PLAY BUTTON WORKS PIÙ PICCOLO */
  #works-content .youtube-player::after {
    font-size: 40px;
  }
}

/* 4. VIDEO LANDSCAPE WORKS */
@media (max-width: 900px) and (orientation: landscape) {
  #works-content .media-wrapper {
    width: 95%;
    max-width: 700px;
    height: 300px;
  }
}

/* =========================
   WORKS SECTION TITLES - MOBILE CENTERED
========================= */
@media (max-width: 900px) {
  #works-content .section-title {
    text-align: center !important;  /* Centra i titoli su mobile */
    margin-left: auto !important;
    margin-right: auto !important;
  }
  

/* ================
   SOCIAL MOBILE PULSE - SOLO MOBILE
=============== */
@media (max-width: 900px) {
  .social a,
  .works-social a {
    animation: socialPulseMobile 3s ease-in-out infinite;
  }
}

@keyframes socialPulseMobile {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}


@media (max-width: 900px) {
  .index-list a {
    display: inline-block;
    animation: mobileMenuPulse 3s ease-in-out infinite;
    transform-origin: center;
  }

  .index-list a:nth-child(1) {
    animation-delay: 0s;
  }

  .index-list a:nth-child(2) {
    animation-delay: 0.2s;
  }

  .index-list a:nth-child(3) {
    animation-delay: 0.4s;
  }
}

@keyframes mobileMenuPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@media (max-width: 900px) {
  .content.contacts .contact-item a {
    display: inline-block;
    animation: mobileEmailPulse 3s ease-in-out infinite;
    transform-origin: center;
  }
}

@keyframes mobileEmailPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .bio-bg-desktop {
    display: none;
  }

  .bio-bg-mobile-portrait {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .content.bio .center-block {
    width: 100%;
    justify-content: center;
    top: 140px !important;  /* ← ABBASSA QUI (100px, 140px, etc.) */
  }

  .content.bio .bio-text {
    width: min(72vw, 340px);
    max-width: 72vw;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }
}


@media (max-width: 900px) and (orientation: landscape) {
  .content.bio .center-block {
    margin-top: 60px;
  }

  .content.contacts .center-block {
    margin-top: 30px;
  }

  .content.contacts h3 {
    font-size: 18px;
    line-height: 1.3;
    max-width: 320px;
    margin-bottom: 10px;
  }
}


  .logo-home {
    top: 14px;
    right: 14px;
  }

  .logo-home img {
    width: 36px;
    height: 36px;
  }

  .logo-home span {
    font-size: 9px;
    margin-top: 4px;
  }

  .logo-home {
    padding: 8px;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .home h1,
  .content.bio h1,
  .content.contacts h1,
  #works-content h1,
  .content.events-page h1 {
    font-size: clamp(30px, 6vw, 42px) !important;
    line-height: 0.95 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .content.events-page h1 {
    font-size: clamp(30px, 6vw, 42px) !important;
    line-height: 0.95 !important;
    white-space: nowrap !important;
  }
}


/* =========================
   LOGO MOBILE PORTRAIT – PIÙ PICCOLO
========================= */
@media (max-width: 900px) and (orientation: portrait) {

  .logo-home img {
    width: 34px !important;
    height: 34px !important;
  }

  .logo-home span {
    font-size: 8px !important;
    margin-top: 2px !important;
  }

}


/* =========================
LANDSCAPE MOBILE BIO - LARGHEZZA AUMENTATA
========================= */
@media (max-width: 900px) and (orientation: landscape) {
  .content.bio .bio-text {
    width: min(65vw, 750px) !important;
    max-width: 75vw !important;
  }
  
  .content.bio .center-block {
    top: 100px !important;
  }
}

/* =========================
   FIX YOUTUBE MOBILE - ICONA MIA GRANDE
========================= */
@media (max-width: 900px) {
  #works-content .youtube-player::after {
    font-size: 76px !important;     /* ← GRANDE su mobile */
    opacity: 1 !important;
    text-shadow: 0 6px 20px rgba(0,0,0,1) !important;
    z-index: 5 !important;
  }
  
  #works-content .youtube-player::before {
    background: rgba(0,0,0,0.45) !important;  /* ← thumbnail più scura */
  }
}

/* =========================
   WORKS MOBILE - TESTO PICCOLO + CENTRATO
========================= */
@media (max-width: 900px) {
  #works-content .work-item > p {  /* ← SOLO paragrafi DIRETTI */
    text-align: center !important;
    text-justify: none !important;
    hyphens: none !important;
    line-height: 1.6 !important;
    font-size: 13px !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }
}

/* EMAIL ICON CONTACTS */
.content.contacts .contact-item a i {
  font-size: 48px !important;   /* ← uguale social desktop */
}

@media (max-width: 900px) {
  .content.contacts .contact-item a i {
    font-size: 36px !important; /* ← mobile */
  }
}


/* =========================
   EVENTS PAGE
========================= */

.events-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 12rem 5rem 5rem;
}
.events-page .event-item {
  margin-bottom: 1.4rem !important;
}

.content.events-page h1 {
  margin-bottom: 10rem !important;
}

.events-h2 {
  font-size: 1.8rem !important;
  font-weight: 500;
  margin: 2rem 0 1.5rem;
  letter-spacing: 1px;
  text-align: center;
  opacity: 1 !important;
}

.event-item {
  margin-bottom: 0.4rem !important;
  padding-bottom: 0.2rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.event-title {
  font-size: 1.15rem !important;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.event-desc {
  font-size: 0.92rem !important;
  line-height: 1.5;
  opacity: 0.8;
  margin-bottom: 0;
}

.project-powernap { color: #FF0800; font-weight: 500; }
.project-pistacchi { color: #2ECC71; font-weight: 500; }
.project-rigo { color: #4A90E2; font-weight: 500; }
.project-soundtracks { color: #F1C40F; font-weight: 500; }
.project-hellequin { color: #FF00FF; font-weight: 500; }
.project-lunar { color: #E8E8E8; font-weight: 500; }
.project-caravanserai { color: #E97451; font-weight: 500; }

.separator-line {
  height: 4px;
  background: linear-gradient(to right, #ffffff, transparent);
  margin: 0.8rem 0 1.2rem;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .events-page {
    padding: 5rem 1rem 1rem;
  }

  .content.events-page h1 {
    margin-bottom: 7rem !important;
  }

  .events-h2 {
    font-size: 1.5rem !important;
  }

  .event-title {
    font-size: 1.05rem !important;
  }

  .event-desc {
    font-size: 0.88rem !important;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .events-page {
    padding-top: 9rem;
  }

  .content.events-page h1 {
    margin-bottom: 9rem !important;
  }
}

/* =========================
   SCROLL HINT PER SCROLLARE PAGINA 
========================= */

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 60px;
  height: 74px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.95;
}

.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 40px;
  height: 40px;
  border-right: 3px solid rgba(255,255,255,0.95);
  border-bottom: 3px solid rgba(255,255,255,0.95);
  transform: translateX(-50%) rotate(45deg);
  animation: scrollHintMove 1.8s ease-in-out infinite, scrollHintPulse 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.22));
}

.scroll-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@keyframes scrollHintMove {
  0%, 100% { top: 0; }
  50% { top: 10px; }
}

@keyframes scrollHintPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (max-width: 900px) {
  /* nasconde il nostro pseudo-elemento play sui video YouTube */
  #works-content .youtube-player::after {
    display: none;
  }

  /* nasconde anche l’overlay scuro sulla thumbnail */
  #works-content .youtube-player::before {
    display: none;
  }
}

@media (max-width: 900px) and (orientation: portrait) {

  /* CENTRA il blocco testo sulla pagina */
  .content.bio .center-block {
    top: 140px !important;
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* CENTRA la colonna BIO su mobile */
  .bio-column-mobile {
    width: 100% !important;
    max-width: min(90vw, 340px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* CENTRA il testo dei paragrafi solo su mobile portrait */
  .content.bio .bio-text p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 90vw !important;
  }
}

@media (max-width: 900px) {

  /* Disabilita scroll VERTICALE solo sulla homepage mobile */
  .home body {
    overflow: hidden !important;
    height: 100vh;
    position: fixed;
    width: 100vw;
  }

  /* Assicura che il contenuto home occupi l’intera altezza e non crei scroll */
  .home #home-content {
    min-height: 100vh;
  }

}

/* Easter egg: parola "Rigo" cliccabile ma invisibile come link */
.easter-egg {
  cursor: pointer;
  position: relative;
}

/* Rimuovi qualsiasi stile di link e rendilo “normale” */
.home .easter-egg,
.home .easter-egg a {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: none !important;
  outline: none !important;
}

/* Nascondi il fatto che sia interattivo */
.home .easter-egg:hover {
  color: inherit;
  text-decoration: none;
}