/* ==========================================
   VISIONARIUM 3D - Stili Globali
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400&family=Manrope:wght@300;400;500;700&display=swap');

:root {
  --bg: #1C1712;
  --surface: #241E17;
  --surface-2: #2E2620;
  --primary: #F0C040;
  --primary-hover: #E0A820;
  --primary-glow: rgba(240, 192, 64, 0.35);
  --primary-shimmer: linear-gradient(90deg, #C8860A 0%, #FFE066 30%, #F0C040 50%, #FFE066 70%, #C8860A 100%);
  --secondary: #0284C7;
  --text-primary: #FAF6EE;
  --text-secondary: #B0A898;
  --text-muted: #6B6460;
  --border: rgba(240, 192, 64, 0.12);
  --border-strong: rgba(240, 192, 64, 0.28);
  --glass: rgba(28, 23, 18, 0.78);
  --gold-particle: rgba(240, 192, 64, 0.8);

  /* Oro ricco — toni più profondi per aggiungere preziosità e profondità */
  --gold-rich: #D4AF37;
  --gold-deep: #9C6B0C;
  --gold-deep-glow: rgba(156, 107, 12, 0.45);
  --gold-gradient-rich: linear-gradient(135deg, #8A5A08 0%, #D4AF37 28%, #FFE9A8 50%, #D4AF37 72%, #8A5A08 100%);
  --gold-border-rich: linear-gradient(135deg, rgba(156,107,12,0.5), rgba(212,175,55,0.9), rgba(156,107,12,0.5));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================================
   ANIMAZIONI GOLD — Disney Style
   ========================================== */

@keyframes gold-shimmer {
  0%   { background-position: -300% center; }
  100% { background-position: 300% center; }
}

@keyframes gold-glow-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(240,192,64,0.3), 0 0 20px rgba(240,192,64,0.1); }
  50%       { text-shadow: 0 0 18px rgba(240,192,64,0.7), 0 0 40px rgba(240,192,64,0.3), 0 0 80px rgba(240,192,64,0.1); }
}

@keyframes gold-border-spin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sparkle-float {
  0%   { transform: translateY(0) rotate(0deg) scale(0.4); opacity: 0; }
  15%  { opacity: 0.9; transform: translateY(-15px) rotate(60deg) scale(1); }
  85%  { opacity: 0.4; }
  100% { transform: translateY(-80px) rotate(360deg) scale(0.2); opacity: 0; }
}

@keyframes gold-particle {
  0%   { transform: translate(0,0) scale(1); opacity: 0.9; }
  100% { transform: translate(var(--tx,20px), var(--ty,-60px)) scale(0); opacity: 0; }
}

@keyframes shimmer-slide {
  0%   { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}

@keyframes gold-line-expand {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  50%       { opacity: 1;   transform: scale(1); }
}

@keyframes orb-float {
  0%,100% { transform: translateY(0px) translateX(0px); }
  33%     { transform: translateY(-18px) translateX(8px); }
  66%     { transform: translateY(10px) translateX(-12px); }
}


html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================
   NAVIGAZIONE
   ========================================== */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: linear-gradient(to bottom, rgba(28,23,18,0.96) 0%, rgba(28,23,18,0.82) 100%);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

/* Linea oro animata in fondo alla navbar */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 30%, #FFE066 50%, var(--primary) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: gold-border-spin 4s linear infinite;
  opacity: 0.6;
}

.navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: var(--primary-shimmer);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-shimmer 5s linear infinite;
  position: relative;
}

.navbar-brand span {
  font-style: italic;
  -webkit-text-fill-color: transparent;
}


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand span {
  color: var(--text-primary);
  font-weight: 300;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  padding: 0.25rem 0;
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--primary);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-cta {
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--primary) 45%, #FFE066 60%, var(--gold-deep) 100%);
  background-size: 220% auto;
  color: #000 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 2px;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  transition: background-position 0.4s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 2px 12px var(--gold-deep-glow);
}

.navbar-cta:hover {
  background-position: right center;
  box-shadow: 0 4px 20px var(--gold-deep-glow);
  color: #000 !important;
}

.navbar-cta::after {
  display: none !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s ease;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--primary);
}

.mobile-menu.open {
  display: flex;
}

/* ==========================================
   HERO
   ========================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Gold Orbs luminosi */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

.hero-orb-1 {
  width: 500px; height: 500px;
  top: -100px; left: -150px;
  background: radial-gradient(circle, rgba(240,192,64,0.12) 0%, transparent 70%);
  animation: orb-float 10s ease-in-out infinite;
}

.hero-orb-2 {
  width: 350px; height: 350px;
  top: 30%; right: 10%;
  background: radial-gradient(circle, rgba(240,192,64,0.08) 0%, transparent 70%);
  animation: orb-float 14s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 250px; height: 250px;
  bottom: 10%; left: 35%;
  background: radial-gradient(circle, rgba(255,224,102,0.1) 0%, transparent 70%);
  animation: orb-float 8s ease-in-out infinite 2s;
}

/* Canvas particelle gold (dentro hero/page-hero) */
#gold-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Canvas cielo stellato full-page (fisso, dietro tutto il contenuto) */
#page-stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 3rem;
  box-sizing: border-box;
}.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/copertina-visionarium.jpg');
  background-size: cover;
  background-position: center 15%;
  filter: brightness(0.6);
  transform: scale(1.05);
  animation: hero-pan-down 14s ease-in-out forwards;
}

@keyframes hero-pan-down {
  0%   { background-position: center 15%; }
  100% { background-position: center 82%; }
}

.hero:hover .hero-bg {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 20%, rgba(10,10,10,0.1) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  max-width: 680px;
  animation: fadeUp 1.2s ease forwards;
}

.hero-overline {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-overline::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--primary);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero h1 em {
  font-style: italic;
  color: var(--primary);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-deep) 0%, #C8860A 22%, #F0C040 45%, #FFE9A8 58%, #F0C040 72%, var(--gold-deep) 100%);
  background-size: 250% auto;
  color: #1C1712;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-position 0.5s ease, box-shadow 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 16px var(--gold-deep-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
  transform: skewX(-20deg);
  animation: shimmer-slide 3s ease-in-out infinite;
}

.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 4px 28px var(--gold-deep-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(240,192,64,0.18);
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: right;
  padding-bottom: 4rem;
  flex-shrink: 0;
  margin-left: 2rem;
}

.hero-stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  background: var(--primary-shimmer);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-shimmer 4s linear infinite, gold-glow-pulse 3s ease-in-out infinite;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(240,192,64,0.4));
}

.hero-stat-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,192,64,0.55);
  margin-top: 0.25rem;
}

/* ==========================================
   SEZIONI COMUNI
   ========================================== */

.section {
  padding: 5rem 3rem;
}

.section-sm {
  padding: 3rem 3rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-overline {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-overline::before {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), #FFE066);
  box-shadow: 0 0 8px rgba(240,192,64,0.5);
  animation: gold-border-spin 3s linear infinite;
  background-size: 200%;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title em {
  font-style: italic;
  background: var(--primary-shimmer);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-shimmer 5s linear infinite;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* ==========================================
   BENTO GRID (About Section)
   ========================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1.5rem;
  margin-top: 3rem;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.bento-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.bento-card-1 {
  grid-column: span 8;
  grid-row: span 2;
  position: relative;
  min-height: 380px;
}

.bento-card-2 {
  grid-column: span 4;
  padding: 2rem;
}

.bento-card-3 {
  grid-column: span 4;
  padding: 2rem;
}

.bento-card-4 {
  grid-column: span 4;
  padding: 2rem;
}

.bento-card-5 {
  grid-column: span 4;
  padding: 2rem;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 30%, transparent 70%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.bento-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.bento-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.bento-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.bento-desc {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ==========================================
   IN PROGRAMMAZIONE
   ========================================== */

.current-film {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
}

/* ==========================================
   LISTA DOCUMENTARI (Editorial Ribbon)
   ========================================== */

.doc-header {
  display: grid;
  grid-template-columns: 60px 1fr 120px 110px;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  align-items: center;
}

.doc-row {
  display: grid;
  grid-template-columns: 60px 1fr 120px 110px;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.doc-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  box-shadow: 0 0 8px rgba(240,192,64,0.5);
}

.doc-row:hover {
  background: rgba(240, 192, 64, 0.04);
  border-bottom-color: rgba(240, 192, 64, 0.22);
  box-shadow: inset 0 0 30px rgba(240,192,64,0.03), inset 0 1px 0 var(--gold-deep-glow);
}

.doc-row:hover::before {
  transform: scaleY(1);
}

.doc-row:last-child {
  border-bottom: none;
}

.doc-year {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.doc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.doc-row:hover .doc-title {
  color: var(--primary);
}

.doc-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.doc-duration {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.doc-badge {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

.badge-3d {
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-2d {
  background: rgba(2, 132, 199, 0.1);
  color: var(--secondary);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.badge-sospeso {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-nuovo {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================
   ORARIO E PREZZI (Grid Borders)
   ========================================== */

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 0 1px var(--gold-deep-glow) inset;
  transition: box-shadow 0.4s ease;
}

.schedule-grid:hover {
  box-shadow: 0 12px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(156,107,12,0.6) inset;
}

.schedule-card {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
}

.schedule-card:last-child {
  border-right: none;
}

.schedule-card-title {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.schedule-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
}

.schedule-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.price-row:last-child {
  border-bottom: none;
}

.price-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
}

.price-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--primary);
}

.price-currency {
  font-size: 1rem;
}

/* ==========================================
   CORTI - SHORT FILMS
   ========================================== */

/* ── Filtri corti ── */
.corti-filtri {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filtri-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filtri-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 50px;
}

.filtri-btns {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filtro-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-secondary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filtro-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filtro-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
  font-weight: 700;
}

.corti-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
}

.corto-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.3s ease;
  cursor: pointer;
}

.corto-item:nth-child(even) {
  border-right: none;
}

.corto-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.corto-item:hover {
  background: var(--surface-2);
}

.corto-item:hover .corto-title {
  color: var(--primary);
  transition: color 0.25s ease;
}

.corto-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
}

.corto-duration {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  margin-left: 1rem;
}

/* ==========================================
   ISTRUZIONI 3D
   ========================================== */

.instruction-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s ease;
}

.step-card:hover {
  border-color: var(--primary);
}

.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--primary);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.step-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================
   CONTATTI
   ========================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.contact-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-value a:hover {
  color: var(--primary);
}

.contact-map {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  height: 380px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(80%) invert(85%);
}

/* ==========================================
   DIVIDER E DECORAZIONI
   ========================================== */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-divider span {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================
   PROGRAMMAZIONE CORRENTE (Banner)
   ========================================== */

.now-playing-banner {
  background: linear-gradient(135deg, var(--surface) 0%, #1a1200 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 4px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.now-playing-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.now-playing-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.now-playing-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================
   PAGE HERO (pagine interne)
   ========================================== */

.page-hero {
  position: relative;
  height: 45vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 20%, rgba(10,10,10,0.3) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 3rem 2rem;
  margin-top: 5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.footer-col-title {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-credit {
  max-width: 1200px;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-credit a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.footer-credit a:hover {
  opacity: 0.75;
}

/* ── Layout responsive: Proiezione immersiva ── */
.tech-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .tech-feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Hero background position tablet/mobile ── */
@media (max-width: 1024px) {
  .hero-bg {
    background-position: center 80%;
    animation: none;
  }

  /* Full black mask at top to hide background image text, fade to transparent toward middle */
  .hero-overlay {
    background: linear-gradient(to bottom,
      rgba(10,10,10,1.0) 0%,
      rgba(10,10,10,0.92) 12%,
      rgba(10,10,10,0.4) 30%,
      transparent 45%,
      rgba(10,10,10,0.95) 82%
    );
  }
}

/* ── Hero background position mobile ── */
@media (max-width: 768px) {
  .hero-bg {
    background-position: center 82%;
    animation: none;
  }

  .hero-overlay {
    background: linear-gradient(to bottom,
      rgba(10,10,10,1.0) 0%,
      rgba(10,10,10,0.95) 15%,
      rgba(10,10,10,0.5) 30%,
      transparent 42%,
      rgba(10,10,10,0.95) 78%
    );
  }
}


#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  background: #fbbf24;
  transform: translateY(-2px);
}

/* ==========================================
   ANIMAZIONI
   ========================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.fade-up:nth-child(2), .fade-left:nth-child(2), .fade-right:nth-child(2), .fade-scale:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3), .fade-left:nth-child(3), .fade-right:nth-child(3), .fade-scale:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4), .fade-left:nth-child(4), .fade-right:nth-child(4), .fade-scale:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5), .fade-left:nth-child(5), .fade-right:nth-child(5), .fade-scale:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6), .fade-left:nth-child(6), .fade-right:nth-child(6), .fade-scale:nth-child(6) { transition-delay: 0.5s; }
.fade-up:nth-child(7), .fade-left:nth-child(7), .fade-right:nth-child(7), .fade-scale:nth-child(7) { transition-delay: 0.6s; }
.fade-up:nth-child(8), .fade-left:nth-child(8), .fade-right:nth-child(8), .fade-scale:nth-child(8) { transition-delay: 0.7s; }

/* Parallax: elementi che si muovono via JS su scroll (impostati con will-change per fluidità) */
.parallax-slow, .parallax-mid, .parallax-fast {
  will-change: transform;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* ══════════════════════════════════════════════════════════
   NEWS / NOTIZIE
══════════════════════════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.news-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.news-card-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-card-body { padding: 1.25rem; }
.news-badge {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.news-card-date { color: var(--text-muted); font-size: 0.78rem; margin-bottom: 0.5rem; }
.news-card-title { color: var(--text-primary); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.4; }
.news-card-content { color: var(--text-secondary); font-size: 0.82rem; line-height: 1.6; }

@media (max-width: 768px) { .news-grid { grid-template-columns: 1fr; } }
@media (max-width: 1200px) {
  .navbar-links {
    gap: 1.25rem;
  }
}

@media (max-width: 1024px) {
  .bento-card-1 { grid-column: span 12; min-height: 300px; }
  .bento-card-2, .bento-card-3, .bento-card-4, .bento-card-5 { grid-column: span 6; }

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

  /* Navbar: hide links and show hamburger on tablet */
  .navbar-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero stats: hide on tablet to avoid overlap */
  .hero-stats {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    padding: 2.5rem 0;
  }

  .hero-inner {
    padding: 0 2rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }
}

@media (max-width: 768px) {
  .section, .section-sm {
    padding: 3.5rem 1.5rem;
  }

  .navbar {
    padding: 0 1.5rem;
  }

  .navbar-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    padding: 2.5rem 0;
    max-width: 100%;
  }

  .hero-inner {
    padding: 0 1.5rem;
  }

  /* Hide floating stats on mobile */
  .hero-stats {
    display: none;
  }

  /* Hero overline: avoid wrap */
  .hero-overline {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero-description {
    font-size: 0.95rem;
  }

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

  .bento-card-1,
  .bento-card-2,
  .bento-card-3,
  .bento-card-4,
  .bento-card-5 {
    grid-column: span 1;
  }

  .bento-card-1 {
    min-height: 280px;
  }

  .doc-header {
    display: none;
  }

  .doc-row {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
  }

  .doc-year { display: none; }
  .doc-duration { display: none; }

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

  .schedule-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .schedule-card:last-child {
    border-bottom: none;
  }

  .corti-list {
    grid-template-columns: 1fr;
  }

  .corto-item:nth-child(even) {
    border-right: none;
  }

  .corto-item {
    border-right: none;
  }

  .instruction-steps {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .now-playing-banner {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .section, .section-sm {
    padding: 3rem 1rem;
  }

  .page-hero-content {
    padding: 2rem 1rem;
  }

  .footer {
    padding: 3rem 1rem 2rem;
  }

  .hero-content {
    padding: 2rem 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    margin-bottom: 1rem;
  }

  .hero-overline {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }

  .hero-description {
    font-size: 0.88rem;
    margin-bottom: 1.75rem;
  }

  .btn-primary, .btn-outline {
    font-size: 0.75rem;
    padding: 0.75rem 1.5rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }
}


/* ─── Staff Login Button ──────────────────────────────────────────────── */
.navbar-staff {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: rgba(255,255,255,0.3) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 4px;
  transition: color 0.25s ease, border-color 0.25s ease !important;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}
.navbar-staff::after { display: none !important; }
.navbar-staff:hover {
  color: var(--primary) !important;
  border-color: rgba(245,158,11,0.5) !important;
}
.mobile-staff-link {
  display: block;
  color: rgba(255,255,255,0.35) !important;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
}
.mobile-staff-link:hover { color: var(--primary) !important; }
