/* ========================================
   idreamjazz — Dark & Mysterious Theme
   ======================================== */

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

:root {
  --bg: #050505;
  --bg-card: #0a0a0a;
  --bg-card-hover: #111111;
  --text: #e8e8e8;
  --text-dim: #777777;
  --text-muted: #444444;
  --accent: #c8a855;
  --accent-dim: rgba(200, 168, 85, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --font-body: 'Space Grotesk', -apple-system, sans-serif;
  --font-serif: 'PT Serif', Georgia, serif;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}


/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 40px;
  transition: all 0.5s var(--transition);
}

.nav--scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
}

.nav__spacer {
  flex: 1;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s var(--transition);
}

.nav__toggle.active span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav__toggle.active span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
  position: relative;
}

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

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

.nav__links a:hover::after {
  width: 100%;
}


/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero.loaded .hero__bg img {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.1) 40%, rgba(5,5,5,0.6) 80%, rgba(5,5,5,1) 100%),
    linear-gradient(to right, rgba(5,5,5,0.5) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero__title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(40px);
}

.hero__cta {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.4s var(--transition);
  opacity: 0;
  transform: translateY(40px);
}

.hero__cta:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}


/* --- SECTIONS --- */
.section {
  padding: 120px 0;
  position: relative;
}

.section__label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  padding-left: 36px;
}

.section__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section__title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.section__title--center {
  text-align: center;
}

.section__title--center + .music__year {
  text-align: center;
}


/* --- ABOUT --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  pointer-events: none;
}

.about__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.8s var(--transition);
}

.about__image:hover img {
  transform: scale(1.03);
}

.about__content p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.about__content strong {
  color: var(--text);
  font-weight: 500;
}


/* --- PARALLAX DIVIDER --- */
.parallax-divider {
  height: 50vh;
  overflow: hidden;
  position: relative;
}

.parallax-divider img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.4) contrast(1.1);
}


/* --- MUSIC --- */
.music {
  background: linear-gradient(180deg, var(--bg) 0%, #080808 50%, var(--bg) 100%);
}

.music__year {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 60px;
  text-align: center;
}

.music__player-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.music__player-wrap iframe {
  border-radius: 12px;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.music__player-wrap iframe:hover {
  opacity: 1;
}

.music__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.music__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: all 0.3s var(--transition);
}

.music__link:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--text);
  transform: translateY(-2px);
}

.music__link--primary {
  border-color: var(--accent);
  color: var(--text);
}

.music__link--primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.music__link svg {
  flex-shrink: 0;
}


/* --- PRESS --- */
.press {
  background: #070707;
}

.press__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.press__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  transition: all 0.5s var(--transition);
}

.press__card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.press__logo {
  height: 48px;
  opacity: 1;
  transition: opacity 0.3s;
}

.press__card:hover .press__logo {
  opacity: 1;
}

.press__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) brightness(1.3);
}

.press__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-dim);
  border: none;
}


/* --- GALLERY (Masonry) --- */
.gallery {
  padding-bottom: 80px;
}

.gallery__masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 0;
}

.gallery__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery__col--right {
  margin-top: 60px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.85);
  transition: all 0.6s var(--transition);
}

.gallery__item:hover img {
  filter: brightness(0.95) saturate(1);
  transform: scale(1.04);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
  transition: border-color 0.3s;
}

.gallery__item:hover::after {
  border-color: rgba(255,255,255,0.12);
}

/* Default items get a fixed height */
.gallery__item:not(.gallery__item--tall):not(.gallery__item--full) img {
  height: 280px;
}

/* Tall items are taller */
.gallery__item--tall img {
  height: 420px;
}

/* Full items show the entire image uncropped */
.gallery__item--full img {
  height: auto;
  object-fit: contain;
}


/* --- VIDEOS (YouTube) --- */
.servizi {
  background: linear-gradient(180deg, var(--bg) 0%, #070707 50%, var(--bg) 100%);
}

.servizi__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0 auto;
}

.servizi__video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.servizi__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 6px;
}

.servizi__link-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}


/* --- CONTACT --- */
.contact {
  text-align: center;
  padding: 160px 0;
}

.contact__inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact__inner .section__label {
  display: block;
  padding-left: 0;
}

.contact__inner .section__label::before {
  display: none;
}

.contact__text {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 40px;
}

.contact__links {
  margin-bottom: 48px;
}

.contact__link--primary {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--text-muted);
  transition: all 0.3s;
}

.contact__link--primary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact__socials {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.contact__socials a {
  color: var(--text-muted);
  transition: all 0.3s;
  padding: 8px;
}

.contact__socials a:hover {
  color: var(--text);
  transform: translateY(-3px);
}


/* --- FOOTER --- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer__copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}


/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  transform: scale(0.9);
  transition: transform 0.4s var(--transition);
}

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

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

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


/* --- ANIMATIONS --- */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate="fade-left"] {
  transform: translateX(40px);
}

[data-animate].visible {
  opacity: 1;
  transform: translate(0, 0);
}


/* --- RESPONSIVE --- */
@media (max-width: 968px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__image img {
    height: 360px;
  }

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

  .gallery__masonry {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .gallery__item:not(.gallery__item--tall) img {
    height: 220px;
  }

  .gallery__item--tall img {
    height: 340px;
  }

  .gallery__col--right {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 16px 24px;
  }

  .nav--scrolled {
    padding: 12px 24px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(5,5,5,0.97);
    backdrop-filter: blur(40px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--transition);
  }

  .nav__links.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }

  .section {
    padding: 80px 0;
  }

  .hero__cta {
    padding: 12px 32px;
  }

  .gallery__masonry {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery__col--right {
    margin-top: 0;
  }

  .gallery__item:not(.gallery__item--tall) img {
    height: 250px;
  }

  .gallery__item--tall img {
    height: 360px;
  }

  .press__card {
    padding: 32px 28px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .contact {
    padding: 100px 0;
  }

  .servizi__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}