```css
/* =========================
   RESET
========================= */

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

/* =========================
   ROOT COLORS
========================= */

:root {
  --bg: #0f1115;
  --surface: #171a21;

  --text: #f3f4f6;
  --muted: #a1a1aa;

  --accent: #7c3aed;
  --accent-2: #06b6d4;

  --line: rgba(255,255,255,0.1);

  --shadow:
    0 10px 40px rgba(0,0,0,0.35);
}

/* =========================
   GLOBAL
========================= */

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left,
      rgba(124,58,237,0.14),
      transparent 35%
    ),

    radial-gradient(circle at bottom right,
      rgba(6,182,212,0.10),
      transparent 35%
    ),

    var(--bg);

  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;

  background-image:
    url('https://www.transparenttextures.com/patterns/asfalt-dark.png');

  opacity: 0.05;

  pointer-events: none;
  z-index: 999;
}

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

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

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

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

.hero {
  padding: 70px 5vw 60px;
  border-bottom: 1px solid var(--line);
}

.hero small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.35em;

  color: #a78bfa;

  margin-bottom: 25px;
  font-size: 11px;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.05em;

  background: linear-gradient(
    90deg,
    #ffffff,
    #c4b5fd,
    #67e8f9
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 420px;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

/* =========================
   GALLERY
========================= */

.gallery {
  padding: 60px 0;
}

.photo-block {
  position: relative;
  margin-bottom: 90px;
  width: 108%;
  left: -4%;
}

.photo-inner {
  position: relative;
  overflow: hidden;

  border-radius: 28px;

  border: 1px solid rgba(255,255,255,0.08);

  height: 88vh;
  min-height: 500px;

  background: rgba(255,255,255,0.03);

  backdrop-filter: blur(10px);

  box-shadow: var(--shadow);
}

.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: scale(1.03);

  transition:
    transform 1s ease;
}

.photo-inner:hover img {
  transform: scale(1.06);
}

.photo-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.9),
      rgba(0,0,0,0.08)
    );
}

.photo-text {
  position: absolute;
  bottom: 0;
  left: 0;

  padding: 40px;

  max-width: 700px;

  z-index: 2;
}

.photo-text small {
  display: block;

  text-transform: uppercase;
  letter-spacing: 0.25em;

  color: #c4b5fd;

  margin-bottom: 12px;

  font-size: 11px;
}

.photo-text h2 {
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 0.95;
  font-weight: 800;
}

/* =========================
   MOTION
========================= */

@keyframes driftLeft {
  0% {
    transform: translateX(0px);
  }

  50% {
    transform: translateX(-30px);
  }

  100% {
    transform: translateX(0px);
  }
}

@keyframes driftRight {
  0% {
    transform: translateX(0px);
  }

  50% {
    transform: translateX(30px);
  }

  100% {
    transform: translateX(0px);
  }
}

.drift-left {
  animation: driftLeft 15s ease-in-out infinite;
}

.drift-right {
  animation: driftRight 17s ease-in-out infinite;
}

/* =========================
   EDITORIAL
========================= */

.editorial {
  padding: 120px 5vw;
  border-top: 1px solid var(--line);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.editorial-title small {
  display: block;

  text-transform: uppercase;
  letter-spacing: 0.35em;

  color: #a78bfa;

  margin-bottom: 25px;
  font-size: 11px;
}

.editorial-title h3 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
}

/* =========================
   ARTICLE CARD
========================= */

.article {
  padding-bottom: 45px;
  margin-bottom: 45px;

  border-bottom: 1px solid var(--line);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    opacity 0.35s ease;
}

.article:hover {
  transform: translateY(-4px);

  border-color:
    rgba(124,58,237,0.35);

  opacity: 1;
}

.article h4 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  margin-bottom: 20px;
}

.article p {
  color: rgba(255,255,255,0.72);

  font-size: 1.05rem;

  max-width: 900px;
}

/* =========================
   ARTICLE PAGE
========================= */

.article-page {
  max-width: 900px;
  margin: auto;
  padding: 80px 5vw;
}

.back {
  display: inline-block;

  margin-bottom: 40px;

  opacity: 0.6;

  text-transform: uppercase;
  letter-spacing: 0.2em;

  font-size: 12px;

  transition:
    opacity 0.3s ease,
    color 0.3s ease;
}

.back:hover {
  opacity: 1;
  color: #c4b5fd;
}

.article-page h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);

  line-height: 1;

  margin-bottom: 30px;
}

.hero-line {
  height: 1px;
  background: var(--line);
  margin: 30px 0;
}

.article-content p {
  margin-bottom: 25px;

  color: rgba(255,255,255,0.78);

  font-size: 1.1rem;
}

/* =========================
   RELATED
========================= */

.related {
  margin-top: 70px;

  padding-top: 50px;

  border-top: 1px solid var(--line);
}

.related h3 {
  text-transform: uppercase;
  letter-spacing: 0.25em;

  font-size: 12px;

  color: #a78bfa;

  margin-bottom: 30px;
}

.related-item {
  display: block;

  padding: 25px 0;

  border-bottom: 1px solid var(--line);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.related-item:hover {
  transform: translateX(4px);
  opacity: 1;
}

.related-item p {
  margin-top: 10px;

  color: rgba(255,255,255,0.55);
}

/* =========================
   PUZZLE GALLERY
========================= */

.puzzle-gallery {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  grid-auto-rows: 220px;

  gap: 14px;

  margin-top: 50px;
}

.puzzle-item {
  position: relative;

  overflow: hidden;

  border-radius: 18px;

  background: rgba(255,255,255,0.03);

  border: 1px solid rgba(255,255,255,0.06);

  backdrop-filter: blur(8px);

  box-shadow: var(--shadow);
}

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

.puzzle-item.tall {
  grid-row: span 2;
}

.puzzle-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;

  transition:
    transform 0.6s ease;
}

.puzzle-item:hover img {
  transform: scale(1.05);
}

/* =========================
   OVERLAY ANTI SAVE
========================= */

.puzzle-item::after {
  content: '';

  position: absolute;
  inset: 0;

  background: transparent;

  z-index: 2;
}

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

footer {
  padding: 40px 5vw;

  border-top: 1px solid var(--line);

  text-transform: uppercase;
  letter-spacing: 0.25em;

  font-size: 11px;

  color: rgba(255,255,255,0.35);
}


/* =========================
   MOBILE (700px)
========================= */

@media (max-width: 700px) {
  .puzzle-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .puzzle-item.large,
  .puzzle-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
} /* <--- Questa chiudeva correttamente la media query precedente! */


/* =========================
   LIGHTBOX (FULLSCREEN)
========================= */

.puzzle-item {
  cursor: pointer;
}

/* L'overlay fisso al centro dello schermo */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 17, 21, 0.97);
  z-index: 99999; /* Numero altissimo per stare sopra a tutto */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 20px;
}

/* Quando il lightbox è attivo */
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* L'immagine perfettamente centrata */
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

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

/* Pulsante di chiusura (X) */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: var(--text);
  font-size: 35px;
  font-weight: 300;
  cursor: pointer;
  z-index: 100000;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background 0.3s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.15);
}

/* Ottimizzazione Lightbox solo per Smartphone */
@media (max-width: 700px) {
  .lightbox {
    padding: 10px;
  }
  
  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 30px;
  }
}