/* ============================================
   MOVEELEVEN — Metamodernism Avant-Garde
   Minimal white site with characteristic typography
   ============================================ */

/* --- Local Fonts --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('fonts/inter_latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans HK';
  font-style: normal;
  font-weight: 100 300 400;
  font-display: swap;
  src: url('fonts/notosanshk_latin.woff2') format('woff2');
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --black: #111111;
  --text: #333333;
  --text-light: #888888;
  --accent: #FF0000;
  --bg-alt: #F7F7F7;
  --border: #E0E0E0;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; margin-bottom: 1rem; }

p {
  margin-bottom: 1rem;
  font-weight: 300;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

/* --- Logo typography --- */
.logo {
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.logo .e-accent {
  color: var(--accent);
}

.logo-large {
  font-size: 4.5rem;
  letter-spacing: 0.15em;
}

.logo-tagline {
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 100;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: lowercase;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  padding: 1rem 3rem;
  box-shadow: 0 1px 0 var(--border);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

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

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

.hamburger span {
  width: 24px;
  height: 1px;
  background: var(--black);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Hero --- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.72);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-quote {
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 100;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
  margin-top: 2rem;
  letter-spacing: 0.05em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: pulse 2s infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--text-light);
}

.scroll-indicator .line {
  width: 1px;
  height: 30px;
  background: var(--text-light);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Sections --- */
.section {
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
}

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

.section-full {
  padding: 6rem 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.section-header p {
  color: var(--text-light);
  margin-top: 1.5rem;
  font-size: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Opere Grid --- */
.opere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 3rem;
}

.opera-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}

.opera-card:hover {
  transform: translateY(-4px);
}

.opera-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.opera-card:hover img {
  transform: scale(1.03);
}

.opera-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition);
}

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

.opera-card-title {
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 300;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.opera-card-subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
  font-weight: 300;
}

.opera-card-info {
  padding: 1.5rem 0;
}

.opera-card-info h3 {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.opera-card-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- Opera Detail Page --- */
.opera-hero {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.opera-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
}

.opera-hero-content {
  position: relative;
  z-index: 1;
}

.opera-hero-content h1 {
  font-size: 3.5rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.opera-hero-content .subtitle {
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 100;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.opera-duality {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
}

.opera-duality .separator {
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.opera-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.opera-body p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.opera-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.opera-gallery img {
  width: 100%;
  cursor: pointer;
  transition: transform var(--transition);
}

.opera-gallery img:hover {
  transform: scale(1.02);
}

.opera-gallery .full-width {
  grid-column: 1 / -1;
}

.opera-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.opera-details h3 {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  margin-bottom: 1rem;
}

.opera-details ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 2;
}

.opera-cta {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.opera-cta a {
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 300;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  border: 1px solid var(--black);
  padding: 0.8rem 2.5rem;
  transition: all var(--transition);
}

.opera-cta a:hover {
  background: var(--black);
  color: var(--white);
}

/* --- Manifesto --- */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.manifesto-grid.reverse {
  direction: rtl;
}

.manifesto-grid.reverse > * {
  direction: ltr;
}

.manifesto-text h3 {
  letter-spacing: 0.1em;
}

.manifesto-text p {
  color: var(--text);
  font-size: 0.95rem;
}

.manifesto-image img {
  width: 100%;
  display: block;
}

.dualities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.duality-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.duality-item:hover,
.duality-item.active {
  border-color: var(--accent);
}

.duality-phrase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: var(--white);
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-align: center;
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.duality-item:hover .duality-phrase,
.duality-item.active .duality-phrase {
  opacity: 1;
}

.duality-item .pole-a {
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.8rem;
}

.duality-item .vs {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 0.8rem;
}

.duality-item .pole-b {
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  display: block;
}

/* --- Contatti --- */
.contatti-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contatti-email {
  font-family: 'Noto Sans HK', sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin: 2rem 0;
  display: inline-block;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

.contatti-sedi {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

.contatti-social {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.contatti-social a {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

/* --- Footer --- */
.footer {
  padding: 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer .logo {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

.footer-privacy {
  margin-top: 0.8rem;
  font-size: 0.65rem;
  color: var(--border);
  letter-spacing: 0.06em;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .logo-large {
    font-size: 2.5rem;
  }

  .hero-quote {
    font-size: 0.9rem;
    padding: 0 1.5rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .section, .section-full, .opera-body {
    padding: 4rem 1.5rem;
  }

  .nav {
    padding: 1rem 1.5rem;
  }

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

  .manifesto-grid,
  .manifesto-grid.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

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

  .opera-gallery {
    grid-template-columns: 1fr;
  }

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

  .opera-hero-content h1 {
    font-size: 2.2rem;
  }

  .contatti-email {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .logo-large {
    font-size: 1.8rem;
  }

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