@import url('https://fonts.bunny.net/css2?family=Montserrat:wght@400;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Syne:wght@400..800&family=Homemade+Apple&family=Cinzel:wght@400..900&family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --bg-color: #030303;
  --text-color: #eaeaea;
  --text-muted: #888;
  --accent: #d8b884; /* A cinematic gold/bronze accent */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Lora', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; /* Hide default cursor */
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  overscroll-behavior: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.hovered {
  width: 35px;
  height: 35px;
  background: #fff;
  backdrop-filter: none;
}
.cursor-follower.hovered {
  opacity: 0;
}

/* Nav */
nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2rem 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(3,3,3,0.9), transparent);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, padding 0.4s ease;
}

nav.nav-hidden {
  transform: translateY(-100%);
}

nav.scrolled {
  background: rgba(3, 3, 3, 0.95);
  backdrop-filter: blur(15px);
  padding: 1rem 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-socials {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  z-index: 2;
}

.nav-socials a {
  color: var(--text-color);
  height: 18px;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.nav-socials a:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.nav-socials svg {
  height: 100%;
  width: auto;
}

.imdb-icon {
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: -0.2px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  padding: 0 4px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

nav .logo {
  text-decoration: none;
  color: var(--text-color);
  z-index: 2;
  justify-self: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 4px;
  font-size: 1.4rem;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: all 0.3s ease;
}

.logo-img-4 {
  height: 60px;
  transform: none;
}

nav .logo:hover .logo-img {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  justify-self: flex-end;
  z-index: 2;
}

.hamburger-btn {
  width: 25px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-color);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Animazione Hamburger -> X */
.menu-open .hamburger-btn span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-open .hamburger-btn span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}
.menu-open .hamburger-btn span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(3, 3, 3, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.close-menu {
  position: absolute;
  top: 2rem;
  right: 5%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: var(--text-color);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-menu:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--accent);
}

/* Effetto sfocatura/dimming per il contenuto sottostante */
body.menu-open header,
body.menu-open section,
body.menu-open main,
body.menu-open footer {
  filter: blur(10px) brightness(0.4);
  transition: filter 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.overlay-nav {
  position: relative;
  top: auto;
  left: auto;
  width: 100%; /* Take full width to allow internal centering */
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  background: none !important; /* Rimuove il gradiente nero della nav principale */
}

.overlay-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 0;
  margin: 0;
  width: 100%;
}

.overlay-link {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-decoration: none;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 4px;
  text-align: center;
  display: block;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.menu-overlay.active .overlay-link {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay per i link */
.menu-overlay.active .overlay-link:nth-child(1) { transition-delay: 0.2s; }
.menu-overlay.active .overlay-link:nth-child(2) { transition-delay: 0.3s; }
.menu-overlay.active .overlay-link:nth-child(3) { transition-delay: 0.4s; }
.menu-overlay.active .overlay-link:nth-child(4) { transition-delay: 0.5s; }
.menu-overlay.active .overlay-link:nth-child(5) { transition-delay: 0.6s; }

.overlay-link:hover {
  color: var(--accent);
  letter-spacing: 8px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.4s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background-color: #000;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* Inizia invisibile per la dissolvenza */
  filter: brightness(1) contrast(1.1);
  transition: opacity 2s ease; /* Dissolvenza morbida di 2 secondi */
}

.hero-bg.video-loaded {
  opacity: 1; /* Massima luminosità e visibilità */
}

.is-home .hero-content {
  display: none !important;
}

.hero h1 {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
  position: relative;
}

.hero h1::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  color: #fff;
  -webkit-text-stroke: 0px transparent;
  overflow: hidden;
  white-space: nowrap;
}

.hero-content.show-text h1::before {
  animation: fillText 2s 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes fillText {
  to { width: 100%; }
}

.hero p {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--accent);
  opacity: 0;
}

.hero-content.show-text p {
  animation: fadeIn 2s 1.5s forwards;
}

/* Video Controls */
.video-control {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.video-control:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: scale(1.1);
}

.video-control svg {
  width: 22px;
  height: 22px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.scroll-text {
  font-family: var(--font-main);
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  animation: bounceScroll 2s infinite;
}

@keyframes bounceScroll {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}
  position: relative;
  height: 40px;
  overflow: hidden;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.hero-content.show-text .text-slider {
  animation: fadeIn 2s 1.5s forwards;
}

.sliding-text {
  position: absolute;
  font-family: var(--font-body);
  font-size: 1.2rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.sliding-text.active {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  color: #fff;
  opacity: 1;
  animation: bounce 2s infinite ease-in-out;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
  z-index: 10;
}

.scroll-indicator:hover {
  transform: translateX(-50%) scale(1.2);
}

.scroll-indicator svg {
  width: 100%;
  height: 100%;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 15px); }
}

/* Showcase Section (Sistemi Isolati) */
.showcase-section {
  padding: 10rem 5%;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin-top: 100vh; /* Crea l'effetto curtain per far scivolare la sezione sopra l'hero fisso */
  position: relative;
  z-index: 10;
  box-shadow: 0 -20px 50px rgba(0,0,0,0.8);
}

.showcase-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5%;
  padding: 0 5%;
}

.showcase-poster {
  flex: 1;
  max-width: 450px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.showcase-poster img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(10%) contrast(110%);
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), filter 1.5s ease;
}

.showcase-poster:hover img {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(100%);
}

.showcase-text {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.showcase-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.showcase-synopsis {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ccc;
  max-width: 100%;
  margin: 0;
  font-style: italic;
}

@media (max-width: 992px) {
  .showcase-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  .showcase-text {
    align-items: center;
    text-align: center;
  }
  .showcase-poster {
    max-width: 400px;
  }
}

.details-link {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.4s ease;
  position: relative;
}

.details-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.details-link:hover::after {
  width: 100%;
}

.discover-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  backdrop-filter: blur(5px);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.split-panel:hover .discover-btn {
  opacity: 1;
  transform: translateY(0);
  border-color: #fff;
}

@media (max-width: 768px) {
  .split-section {
    flex-direction: column;
    height: 150vh;
  }
  .split-panel {
    width: 100%;
    height: 50%;
  }
}

/* Grids & Cards */
.section {
  padding: 10rem 5%;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  margin-bottom: 6rem;
  opacity: 0.8;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  display: block;
  text-decoration: none;
  color: var(--text-color);
}

/* Asymmetrical Layouts */
.grid .card:nth-child(odd) {
  grid-column: 1 / 8;
  height: 70vh;
}
.grid .card:nth-child(even) {
  grid-column: 7 / 13;
  height: 60vh;
  margin-top: 20vh;
}
@media (max-width: 768px) {
  .grid .card:nth-child(odd), .grid .card:nth-child(even) {
    grid-column: 1 / 13;
    height: 50vh;
    margin-top: 0;
  }
}

.card-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.card img {
  width: 100%;
  height: 120%; /* For parallax */
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), filter 1s ease;
  filter: grayscale(80%) contrast(1.2);
  transform: translateY(-10%); /* Initial parallax offset */
}

.card:hover img {
  filter: grayscale(0%) contrast(1.1);
  transform: scale(1.05) translateY(-10%);
}

.card-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  padding: 2rem;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.card:hover .card-content {
  transform: translateY(0);
  opacity: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.card-desc {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

/* Footer */
footer {
  text-align: center;
  padding: 6rem 5% 4rem;
  background: #000;
  position: relative;
  overflow: hidden;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.social-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s;
  position: relative;
}

.social-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-links a:hover::after {
  width: 100%;
}

.social-links a:hover {
  color: var(--text-color);
}

.copyright-text {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-top: 1rem;
  text-transform: uppercase;
}


/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   FILM PAGE (SCHEDA CORTOMETRAGGIO)
   ========================================= */

.film-page {
  background-color: #050505;
}

.film-hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.film-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.film-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.8);
  transform: scale(1.05);
}

.film-logo-img {
  max-width: 800px;
  width: 90%;
  height: auto;
  margin: 0 auto;
  display: block;
  position: relative;
  left: 25px; /* Spostamento raffinato */
}

.film-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.film-hero-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -2px;
}

.film-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  left: 25px; /* Allineato col logo */
}

.film-hero .scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #fff !important;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-decoration: none;
  z-index: 100 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.scroll-indicator:hover {
  color: var(--text-color);
}

.scroll-indicator .line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.film-tech-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 4rem 5%;
  background: rgba(10, 10, 10, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tech-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.tech-item .value {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-color);
}

.film-intro-section, .film-credits-section, .film-gallery-section, .film-director-projections {
  padding: 10rem 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
}

.synopsis-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.film-body-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 2rem;
}

.film-body-text.italic {
  font-style: italic;
  color: var(--text-muted);
}

.pressbook-link-minimal {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(216, 184, 132, 0.3);
  transition: all 0.3s ease;
}

.pressbook-link-minimal svg {
  width: 16px;
  height: 16px;
}

.pressbook-link-minimal:hover {
  border-bottom-color: var(--accent);
  padding-left: 10px;
}

.film-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: flex-start;
}

.film-poster {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  margin-left: auto;
  display: block;
}

.credits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.section-subtitle, .section-subtitle.small, .credit-category h3 {
  font-family: var(--font-heading);
  color: var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
}

.film-info-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
}

.credit-category p {
  font-size: 1rem;
  line-height: 2;
  color: #aaa;
}

.cast-list {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1.5;
  color: #fff;
  letter-spacing: 1px;
}

.frames-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: 1.5rem;
  margin-top: 3rem; /* Spazio dal titolo */
  margin-bottom: 8rem;
}

.frame-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  background: #111;
}

.frame-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.frame-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.frame-item:hover img {
  transform: scale(1.08);
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8rem;
  align-items: stretch;
}

.projections-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.projections-list li {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.projections-list li:last-child {
  border-bottom: none;
}

.proj-date {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 2px;
  font-weight: 600;
}

.proj-event {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-color);
}

.proj-event strong {
  letter-spacing: 1.5px;
  font-weight: 700;
}

.proj-loc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .intro-grid, .credits-grid, .bottom-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .film-poster {
    margin: 0 auto;
  }
  
  .film-tech-bar {
    justify-content: flex-start;
    gap: 2rem;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 3, 3, 0.95);
  backdrop-filter: blur(15px);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  width: 100%;
  height: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 3001;
  transition: transform 0.3s ease;
}

.lightbox-close svg {
  width: 100%;
  height: 100%;
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.2);
  color: var(--accent);
}

/* Dual Section Split Screen */
.dual-section {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #000;
}

.split-side {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: flex 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}

.split-side:hover {
  flex: 1.6;
}

.split-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.split-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.3);
  transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  transform: scale(1);
}

.split-side:hover .split-bg img {
  filter: grayscale(0) brightness(0.5);
  transform: scale(1);
}

.split-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.split-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 10px;
  margin-bottom: 2rem;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.split-side:hover .split-content h2 {
  transform: translateY(-30px);
  color: var(--accent);
}

.split-btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.split-side:hover .split-btn {
  opacity: 1;
  transform: translateY(0);
  border-color: #fff;
}

.split-btn:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 992px) {
  .dual-section {
    flex-direction: column;
    height: 140vh;
  }
  .split-side:hover {
    flex: 1;
  }
  .split-btn {
    opacity: 1;
    transform: translateY(0);
    padding: 0.8rem 2rem;
  }
  .split-content h2 {
    font-size: 3.5rem;
  }
}

/* Projects Flex Layout */
.projects-flex-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 5% 10rem;
  max-width: 1800px;
  margin: 0 auto;
}

.projects-row {
  display: flex;
  gap: 1rem;
  height: 380px;
}

.project-card {
  flex: 1;
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #050505;
  transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s ease;
  text-decoration: none;
}

.project-card:hover {
  flex: 2.2; /* L'effetto "si allarga" */
}

.project-card img, .project-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease, filter 0.8s ease, opacity 0.6s ease;
  filter: brightness(0.8) grayscale(0.1);
}

.project-card video {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 1;
}

.project-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.2) blur(3px);
}

.project-card img.bright-preview {
  filter: brightness(1.3) grayscale(0.1);
}

.project-card:hover img.bright-preview {
  filter: brightness(0.2) blur(3px);
}

.project-card:hover video {
  opacity: 1;
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  pointer-events: none;
  opacity: 1; /* Sempre visibile */
  transition: background 0.5s ease;
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.project-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  color: #fff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap; /* Impedisce al testo di allungarsi o andare a capo */
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-year {
  font-family: var(--font-main);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 0.5rem;
}



@media (max-width: 992px) {
  .projects-row {
    flex-direction: column;
    height: auto;
  }
  .project-card {
    height: 300px;
  }
  .project-card:hover {
    flex: 1;
  }
  .project-year { opacity: 1; transform: none; }
  .project-title { transform: none; }
}

/* Regia Page Header */
.section-header {
  padding: 10rem 5% 2rem;
  text-align: center;
}

.main-page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0;
  line-height: 1.2;
  font-weight: 400;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.header-line {
  width: 300px;
  height: 1px;
  background: var(--accent);
  margin: 2rem auto 0;
  opacity: 0.3;
}

/* Section Dividers */
.section-divider {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 6rem;
  padding-top: 6rem;
}

.film-info-section, .film-credits-section, .film-notes-section, .film-gallery-section {
  position: relative;
}

/* Essential Links Section */
.essential-links {
  padding: 8rem 0;
  background: var(--bg-color);
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.info-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

/* Hero CTA Button Style */
.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.7rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 2px;
}

.hero-cta:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.hero-cta.large {
  padding: 1.2rem 3rem;
  font-size: 0.85rem;
  letter-spacing: 4px;
}

/* CTA Group for multiple buttons */
.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3.5rem;
  flex-wrap: wrap;
  position: relative;
}

.hero-cta-group .hero-cta {
  margin-top: 0;
}

/* Nascondi l'indicatore di scroll nelle schede dei film solo su mobile */
@media (max-width: 768px) {
  .film-hero .scroll-indicator {
    display: none !important;
  }
}

.film-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}


/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .projects-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Navigation */
  nav .nav-links ul {
    display: none; /* Hide desktop links, use hamburger menu */
  }

  .nav-links {
    gap: 1.5rem;
  }

  /* Home Page Split */
  .dual-section {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .split-side {
    height: 50vh;
    flex: none;
    width: 100%;
  }

  .split-side:hover {
    flex: none; /* Disable expand on mobile */
  }

  .split-content h2 {
    font-size: 2.5rem;
  }

  /* Typography */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .section-title { font-size: 3rem; }

  /* Project Grid */
  .projects-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Film Pages */
  .film-hero {
    height: 60vh;
  }

  .film-hero-content .film-logo-img {
    max-width: 80%;
  }

  .film-info-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .poster-side {
    order: -1; /* Poster first on mobile */
    max-width: 300px;
    margin: 0 auto;
  }

  .frames-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .credits-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .info-card {
    padding: 2rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .section-title { font-size: 2.2rem; }
  
  .frames-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    padding: 0 2rem;
  }

  .hero-cta {
    width: 100%;
    text-align: center;
  }

  .film-hero-content .film-logo-img {
    transform: scale(1) !important; /* Reset specific scales for mobile */
  }
  
  .logo-img {
    height: 28px;
  }
  
  .logo-img-4 {
    transform: scale(1.4);
  }
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

.contact-page {
  padding-top: 8rem;
  padding-bottom: 5rem;
  min-height: 80vh;
}

.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-content {
  max-width: 800px !important;
  margin: 0 auto;
}

.contact-block {
  padding: 2rem 0;
}

.contact-line-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left;
}

.contact-line-divider.visible {
  transform: scaleX(1);
}

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent); /* Usiamo il colore oro/bronzo se definito, altrimenti bianco */
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0.8;
}

.contact-link {
  font-family: var(--font-heading);
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-link.large {
  font-size: 3rem;
  letter-spacing: -1px;
  word-break: break-word;
}

.contact-link:hover {
  opacity: 0.5;
  padding-left: 10px; /* Piccolo shift al passaggio del mouse */
}

.contact-flex-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.social-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-contact-list .contact-link {
  font-size: 1rem;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .contact-link.large {
    font-size: 1.6rem;
  }
  
  .contact-flex-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-block {
    padding: 2.5rem 0;
  }

  .contact-page {
    padding-top: 7rem;
  }
}

/* ==========================================================================
   BIOGRAPHY PAGE (SPLIT-SCREEN STYLE)
   ========================================================================== */

.is-bio {
    background: #000;
    overflow-x: hidden;
}

.bio-split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Left Panel: Image */
.bio-left-panel {
    width: 50%;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    background: #111;
}

.bio-left-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.bio-left-panel:hover img {
    transform: scale(1.05);
}

.bio-vertical-label {
    position: absolute;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--accent);
    z-index: 2;
    opacity: 0.6;
}

.label-left {
    bottom: 40px;
    left: 20px;
}

.label-right {
    top: 40px;
    right: 20px;
    writing-mode: vertical-rl;
    transform: rotate(0);
}

.bio-frame-text {
    display: none; /* Nascosto su desktop */
}

/* Right Panel: Content */
.bio-right-panel {
    width: 50%;
    padding: 10vh 8% 8vh 8%;
    background: #000;
    z-index: 1;
    display: flex;
    align-items: center;
}

.bio-content-wrapper {
    max-width: 600px;
}

.bio-header-minimal {
    margin-bottom: 5rem;
}

.bio-header-minimal h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.bio-header-line {
    width: 300px;
    height: 1px;
    background: var(--accent);
    margin-bottom: 3rem;
    opacity: 0.4;
}

.bio-text-column {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.bio-text-column p {
    margin-bottom: 2rem;
}

.bio-links-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(216, 184, 132, 0.2);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.bio-link-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    width: fit-content;
    position: relative;
}

.bio-link-item:hover {
    color: var(--accent);
}

.bio-link-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.bio-link-item:hover::after {
    width: 100%;
}

.bio-link-item:hover {
    opacity: 0.7;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .bio-split-container {
        flex-direction: column;
    }
    .bio-left-panel {
        width: 100%;
        height: 60vh;
        position: relative;
    }
    .bio-right-panel {
        width: 100%;
        padding: 4rem 2rem;
    }
}

.bio-side-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* Set Life Gallery */
.set-life {
  background: #050505;
  padding: 10rem 0;
}

.set-scroller {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  padding: 4rem 5%;
}

.set-item {
  position: relative;
  transition: transform 0.3s ease;
}

.set-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: grayscale(1);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.set-item:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

.set-item:nth-child(even) {
  transform: translateY(100px);
}

.set-item:nth-child(3n+1) {
  transform: translateY(-50px);
}

/* Vision Section */
.bio-vision {
  padding: 10rem 0;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10rem;
  align-items: flex-end;
}

.vision-content h3 {
  font-family: var(--font-heading);
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--accent);
}

.vision-content p {
  font-size: 1.5rem;
  line-height: 1.6;
  max-width: 600px;
}

.vision-signature {
  font-family: var(--font-heading);
  font-size: 8rem;
  opacity: 0.1;
  line-height: 1;
}

@media (max-width: 1024px) {
  .bio-title-large {
    font-size: 20vw;
  }
  
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .set-scroller {
    grid-template-columns: 1fr 1fr;
  }
  
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

/* ==========================================================================
   ACTOR PAGE (INTERACTIVE CREDITS)
   ========================================================================== */

.actor-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actor-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.actor-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

/* Fix fullscreen video cropping */
video:fullscreen {
    object-fit: contain !important;
}

video:-webkit-full-screen {
    object-fit: contain !important;
}


.actor-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.play-showreel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.play-showreel-btn:hover {
    transform: scale(1.1);
}

.play-circle {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.play-showreel-btn:hover .play-circle {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.play-circle svg {
    width: 30px;
    height: 30px;
    margin-left: 5px;
}

.play-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
}

/* Interactive List Section */
.actor-credits-section {
    position: relative;
    padding: 10rem 0;
    background: #000;
    overflow: hidden;
}

.credits-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.credit-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.2) grayscale(1);
    opacity: 0;
    transition: opacity 0.8s ease, transform 1.2s ease;
    transform: scale(1.1);
}

.credit-bg-image.active {
    opacity: 1;
    transform: scale(1);
}

.credits-interactive-list {
    position: relative;
    z-index: 2;
    list-style: none;
    padding: 0;
    margin: 4rem 0;
}

.credit-row {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.4s ease;
}

.credit-row:hover {
    border-color: var(--accent);
}

.credit-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    text-decoration: none;
    color: #fff;
    transition: all 0.4s ease;
}

.credit-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.credit-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.3em;
}

.credit-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 400;
    transition: transform 0.4s ease;
}

.credit-role-info {
    text-align: right;
    font-family: 'Lora', serif;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.4s ease;
}

.credit-row:hover .credit-name {
    transform: translateX(20px);
    color: var(--accent);
}

.credit-row:hover .credit-role-info {
    color: #fff;
}

.category-title-bio {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 3rem;
    display: block;
}

@media (max-width: 768px) {
    .credit-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .credit-role-info {
        text-align: left;
    }
}

/* Video Controls Overlay */
.video-controls-overlay {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 15px;
}

.video-control-btn {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.video-control-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: scale(1.15);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}


.video-control-btn svg {
    width: 20px;
    height: 20px;
}

/* Video Preloader Styles */
.video-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), visibility 1.2s;
}

.video-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3) blur(15px);
    transform: scale(1.1);
}

.preloader-content {
    position: relative;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.loader-line-container {
    width: 120px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.loader-line-active {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: loadingLine 2s infinite cubic-bezier(0.19, 1, 0.22, 1);
}

.loader-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.6;
}

@keyframes loadingLine {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #fff;
}

.arrow-bounce {
    animation: bounce 2s infinite;
}

.arrow-bounce svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
  .bio-title-large {
    font-size: 25vw;
  }
  
  .set-scroller {
    grid-template-columns: 1fr;
  }
  
  .vision-content h3 {
    font-size: 2rem;
  }
  
  .vision-content p {
    font-size: 1.2rem;
  }
}

/* Footer icons mobile: nascoste su desktop */
.footer-icons-mobile {
  display: none;
}

/* Titolo testo film: nascosto su desktop, visibile solo su mobile via media query */
.film-title-mobile {
  display: none;
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS — aggiunta in blocco unico, sicura per il desktop
   ========================================================================== */

@media (max-width: 768px) {

  /* --- CURSORE: disabilitato su mobile (touch screen) --- */
  * {
    cursor: auto !important;
  }

  .cursor,
  .cursor-follower {
    display: none !important;
  }

  /* --- NAVBAR --- */
  nav {
    padding: 1rem 5%;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: none !important;
  }

  .nav-socials {
    display: none !important;
  }

  nav .nav-links ul {
    display: none;
  }

  /* Logo: dimensioni ragionevoli su mobile */
  .logo-img {
    height: 26px;
  }

  .logo-img-4 {
    height: 40px;
    transform: none;
  }

  /* --- HAMBURGER MENU OVERLAY: rimuove le icone social --- */
  .overlay-socials-mobile {
    display: none !important;
  }

  /* --- HERO HOME MOBILE --- */
  .hero {
    height: 100svh;
    width: 100%;
    background: #000;
    display: flex !important;
  }

  .hero-bg {
    opacity: 1 !important; /* Massima visibilità su mobile */
    filter: brightness(1) contrast(1.1) !important;
    visibility: visible !important;
  }

  .hero-content {
    text-align: center;
    padding: 0 10%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 4rem) !important;
    line-height: 1;
    margin-bottom: 0.5rem;
  }

  .hero p {
    font-size: 0.75rem !important;
    letter-spacing: 3px;
  }

  .video-controls-overlay.home-controls {
    bottom: 90px; /* Alzato per non sovrapporsi alla scritta scorri */
    right: 15px;
    gap: 8px;
    z-index: 9999 !important;
    pointer-events: auto !important;
  }

  .video-control-btn {
    width: 44px;
    height: 44px;
  }

  .scroll-indicator {
    display: flex !important;
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    z-index: 2000 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .scroll-indicator span:not(.scroll-text) {
    display: none !important;
  }

  .scroll-text {
    display: block !important;
    font-size: 0.55rem;
    letter-spacing: 2px;
    opacity: 0.9 !important;
    color: #fff !important;
  }

  /* --- DUAL SECTION (Regista / Attore) --- */
  .dual-section {
    height: auto;
    min-height: 100svh;
  }

  .split-side {
    height: 50svh;
  }

  .split-content h2 {
    font-size: 2rem;
    letter-spacing: 5px;
  }

  .split-btn {
    opacity: 1;
    transform: none;
    padding: 0.7rem 1.5rem;
    font-size: 0.7rem;
  }

  /* --- CARD FILMOGRAFIA --- */
  .projects-row {
    flex-direction: column;
    height: auto;
    gap: 1rem;
  }

  .project-card {
    height: 260px;
    flex: none !important;
    width: 100% !important;
  }

  .project-card:hover {
    flex: none !important;
  }

  /* Disabilita trailer ed effetti hover al tocco su mobile */
  .project-card video {
    display: none !important;
  }

  .project-card:hover img, .project-card:hover img.bright-preview {
    transform: none !important;
    filter: brightness(0.8) grayscale(0.1) !important;
  }

  .project-title {
    font-size: 1rem;
    white-space: normal;
    letter-spacing: 1px;
  }

  /* --- INTESTAZIONE PAGINE (Regia / Attore) --- */
  .section-header {
    padding: 10rem 5% 3rem;
  }

  .main-page-title {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  /* =====================================================
     SCHEDE FILM — LAYOUT LETTERBOXD (mobile only)
     ===================================================== */

  /* 1. Hero: banner corto, solo immagine di sfondo */
  .film-hero {
    display: block;
    height: 36svh;
    min-height: 210px;
  }

  /* Nasconde logo/testo/scroll nell'hero su mobile */
  .film-hero-content,
  .scroll-indicator {
    display: none;
  }

  /* 2. Sezione intro: padding generoso dai bordi */
  .film-intro-section {
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
    padding-left: 8% !important;
    padding-right: 8% !important;
  }

  /* 3. Grid: block per permettere il float del poster */
  .intro-grid {
    display: block;
    gap: 0;
    text-align: left;
  }

  /* 4. Poster: spostato dentro l'hero via JS, posizionato in basso a destra */
  .film-hero .poster-side {
    position: absolute;
    bottom: 1rem;
    right: 5%;
    width: 28%;
    max-width: 100px;
    float: none;
    margin: 0;
    z-index: 20;
    order: unset;
  }

  .film-poster {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.8);
    transition: transform 0.2s ease;
  }

  .film-poster:active {
    transform: scale(0.97);
  }

  /* 5. Titolo film: usa il font Lora (elegante, letterario) */
  .film-title-mobile {
    display: block;
    font-family: var(--font-heading); /* Lora */
    font-size: 2.1rem;
    font-weight: 400; /* Niente grassetto */
    color: var(--accent); /* Colore oro */
    line-height: 1.2;
    margin-bottom: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
  }

  /* Nasconde "Sinossi" label su mobile */
  .synopsis-side > .section-subtitle {
    display: none;
  }

  /* 6. Info film: riga compatta tipo Letterboxd */
  .film-info-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
    width: auto;
  }

  .info-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.3rem;
    text-align: left;
  }

  /* Label piccola (Anno, Durata, Genere) — solo nei metadati info */
  .film-info-list .section-subtitle.small {
    font-size: 0.65rem;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 0;
    font-family: var(--font-heading);
  }

  /* Valore info (2024, 23 min, Commedia) */
  .info-value {
    font-size: 0.85rem;
    color: #ddd;
  }

  /* 7. Sinossi */
  .synopsis-side {
    align-items: flex-start;
    text-align: left;
    padding: 0;
  }

  .film-body-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #bbb;
    text-align: left;
    margin-bottom: 1rem;
  }

  /* Clearfix */
  .intro-grid::after {
    content: '';
    display: table;
    clear: both;
  }

  /* 8. Intestazioni sezione: stile identico a "Guarda il Trailer" */
  .section-subtitle,
  .section-subtitle.small,
  .credit-category h3 {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
    opacity: 1;
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(216, 184, 132, 0.35);
  }

  /* Cast: grande e leggibile */
  .cast-list {
    font-size: 1.4rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
  }

  /* Crew: testo corpo */
  .credit-category p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #aaa;
  }

  /* 8. Sezione credits */
  .film-credits-section {
    padding: 2.5rem 8% !important;
    margin-top: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .credits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
  }

  /* 9. Sezione galleria */
  .film-gallery-section {
    padding: 2.5rem 8% 2rem !important;
    margin-top: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .frames-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  /* Section divider: rimuove la linea superiore e il padding (Note di Regia) */
  .section-divider {
    margin-top: 0;
    padding-top: 2rem;
    border-top: none !important;
  }

  /* Bottoni azione: centrati e allineati per mobile */
  .film-actions {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    width: 100% !important;
    gap: 1.2rem;
  }

  .pressbook-link-minimal:hover {
    padding-left: 0; /* Su mobile l'hover finto del tap sfalsa l'allineamento */
  }

  /* --- BIOGRAFIA --- */
  .bio-split-container {
    flex-direction: column;
  }

  .bio-left-panel {
    width: 100%;
    height: 55svh;
    position: relative;
  }

  .bio-right-panel {
    width: 100%;
    padding: 4rem 6%;
    align-items: flex-start;
  }

  /* --- BIOGRAFIA MOBILE OPTIMIZATION --- */
  .bio-left-panel {
    width: 100%;
    height: 50svh;
    position: relative;
  }

  .bio-left-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, #000, transparent);
    pointer-events: none;
    z-index: 2;
  }

  .bio-right-panel {
    width: 100%;
    padding: 3.5rem 8% 5rem 8%;
    align-items: flex-start;
  }

  .bio-header-minimal {
    display: none !important;
  }

  .bio-text-column {
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
  }

  .bio-text-column p {
    margin-bottom: 1.8rem;
  }

  /* --- FOOTER --- */
  footer .social-links {
    display: none; /* Nasconde i testi su mobile */
  }

  footer {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .footer-icons-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    padding: 1.5rem 0 1.8rem; /* più spazio sotto le icone, prima del copyright */
  }

  .footer-icons-mobile a {
    color: var(--text-muted);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
  }

  .footer-icons-mobile a:hover {
    color: var(--accent);
  }

  .footer-icons-mobile .imdb-icon {
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 10px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    padding: 1px 3px;
    line-height: 1;
  }

  /* --- SCROLL INDICATOR --- */
  .scroll-indicator {
    width: 30px;
    height: 30px;
  }
}

/* Extra piccoli: sotto 480px */
@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2.5rem, 18vw, 5rem);
  }

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

  .hero-cta-group {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    padding: 0 1rem;
  }

  .hero-cta {
    width: 100%;
    text-align: center;
  }

  .film-hero {
    height: 38svh;
    min-height: 220px;
  }

  .film-hero-content .film-logo-img {
    max-width: 75%;
    max-height: 100px;
  }
}

/* Extra piccoli: sotto 480px */
@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2.5rem, 18vw, 5rem);
  }

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

  .hero-cta-group {
    flex-direction: column;
    padding: 0 1rem;
  }

  .hero-cta {
    width: 100%;
    text-align: center;
  }

  .film-hero {
    height: 38svh;
    min-height: 220px;
  }

  .film-hero-content .film-logo-img {
    max-width: 75%;
    max-height: 100px;
  }
}

/* --- GLOBAL MOBILE ALIGNMENT FIX (Mega-Fix) --- */
@media (max-width: 768px) {
  .synopsis-side {
    align-items: flex-start !important;
    text-align: left !important;
    width: 100% !important;
  }

  .film-body-text {
    text-align: left !important;
  }

  .film-info-list {
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .film-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 2rem !important;
    gap: 1.5rem !important;
  }

  .hero-cta-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 1rem 0 2rem 0 !important;
    padding: 0 !important;
  }

  .hero-cta {
    width: 100% !important;
    max-width: 300px !important;
    text-align: center !important;
    margin: 0 auto !important;
    display: inline-block !important;
  }

  .pressbook-link-minimal {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-color);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-btn {
  align-self: flex-end;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 8px 24px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.cookie-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-btn {
    align-self: center;
    flex-shrink: 0;
  }
}
