/* ─── COLORI
nero:   #191815
giallo: #ffc500
bianco: #f8f4ed
rosa:   #cca4a3
rosso:  #b32821
──────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  width: 100%;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Helvetica', 'sans-serif';
  color: #f8f4ed;
  font-size: 2.1vw;
  background: #191815;
  cursor: none;
}

/* forza cursore none su tutti gli elementi interattivi */
a, button, input, label, select, textarea,
.button, .grid-item-wrap, .grid-item, [role="button"] {
  cursor: none !important;
}

/* ─── CUSTOM CURSOR ────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: #cca4a3;
  border-radius: 0%;
  pointer-events: none;
  z-index: 10002;
  transform: translate(-50%, -50%);
  transition: background 0.2s, transform 0.1s;
  will-change: transform;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid #cca4a3;
  border-radius: 0%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease,
              border-color 0.3s ease, background 0.3s ease,
              opacity 0.3s ease;
  will-change: transform;
}

body.cursor-hover #cursor-ring {
  width: 52px; height: 52px;
  background: rgba(204, 164, 163, 0.10);
  border: 2.5px solid #cca4a3;
}
body.cursor-hover #cursor-dot {
  background: #cca4a3;
}

body.cursor-link #cursor-ring {
  width: 52px; height: 52px;
  background: rgba(204, 164, 163, 0.10);
  border: 2.5px solid #cca4a3;
}
body.cursor-link #cursor-dot {
  background: #cca4a3;
}

/* ─── NAV ──────────────────────────────────────────────── */
.logo-container {
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #191815;
  border-bottom: 1.5px solid #f8f4ed;
  padding: 1vw 6vw;
  width: 100%;
  height: auto;
}

.logo-container img {
  width: 6vw;
  min-width: 80px;
  height: auto;
  transition: opacity 0.3s ease;
  filter: invert(1);
}
.logo-container img:hover { opacity: 0.5; }

.button-container {
  display: flex;
  gap: 35px;
}

.button {
  color: #f8f4ed;
  text-decoration: none;
  padding: 5px 0;
  font-size: 1.1vw;
  font-weight: 200;
  letter-spacing: 3px;
  border: none;
  outline: none;
  background: none;
  position: relative;
  transition: letter-spacing 0.3s ease;
}

.button::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: #f8f4ed;
  transition: width 0.3s ease;
}
.button:hover { font-weight: 900; letter-spacing: 4px; }
.button:hover::after { width: 100%; }

/* ─── TITLE ────────────────────────────────────────────── */
.title-container {
  width: 100%;
  max-width: 100%;
  padding: 3vw 5vw;
  text-align: left;
  overflow: hidden;
}

h1 {
  font-family: 'Helvetica', sans-serif;
  font-size: 12vw;
  max-width: 90%;
  font-weight: 600;
  letter-spacing: 25px;
  text-align: left;
  color: #cca4a3;
  text-transform: uppercase;
  margin: 3vw 0;
}

h3 {
  font-family: 'Helvetica', sans-serif;
  font-size: 3vw;
  max-width: 90%;
  font-weight: 100;
  letter-spacing: 20px;
  text-align: left;
  color: #f8f4ed;
  margin: 0 0 3vw;
}

/* ─── SCROLL REVEAL ────────────────────────────────────── */
.reveal-title {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(.16,1,.3,1),
              transform 0.9s cubic-bezier(.16,1,.3,1);
}
.reveal-title.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-title:nth-child(2) { transition-delay: 0.15s; }
.reveal-title:nth-child(3) { transition-delay: 0.28s; }
.reveal-title:nth-child(4) { transition-delay: 0.38s; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── TESTO ────────────────────────────────────────────── */
.descrizione {
  font-family: 'Helvetica', sans-serif;
  letter-spacing: 2px;
  font-weight: 400;
  font-size: clamp(12px, 1.2vw, 30px);
  line-height: clamp(15px, 1.8vw, 32px);
  color: #f8f4ed;
}

.echo-descrizione, .frames-descrizione, .rebrand-descrizione {
  font-family: 'Helvetica', sans-serif;
  letter-spacing: 2px;
  font-weight: 200;
  font-size: clamp(12px, 1.2vw, 30px);
  line-height: clamp(15px, 1.8vw, 32px);
  margin-bottom: 4vw;
  color: #f8f4ed;
}

/* ─── SEZIONI ──────────────────────────────────────────── */
.echo-container, .posters-container, .frames-container, .rebrand-container {
  width: 100%;
  max-width: 100%;
  padding: 3vw 5vw;
  text-align: left;
}

.echo-title, .posters-title, .frames-title, .rebrand-title {
  font-family: 'Helvetica', sans-serif;
  font-size: clamp(18px, 2vw, 80px);
  max-width: 90%;
  font-weight: 800;
  letter-spacing: 2vw;
  text-align: left;
  color: #cca4a3;
  margin: 3vw 0;
  border-top: 1.5px solid #f8f4ed;
  padding-top: 2vw;
}

/* ─── GRID & IMMAGINI ──────────────────────────────────── */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  width: 100%;
}

.grid-item-wrap {
  position: relative;
  overflow: hidden;
  border: 1.5px solid #f8f4ed;
  display: block;
  height: clamp(140px, 26vw, 1000px);
}

.grid-item {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.5;    
  transition: transform 0.5s cubic-bezier(.16,1,.3,1), opacity 0.5s ease;
  object-fit: cover;
}

.grid-item-wrap:hover .grid-item {
  transform: scale(1.04);
  opacity: 0.8;
}

.grid-item-wrap .img-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;    
  font-family: 'Helvetica', sans-serif;
  font-size: clamp(12px, 1.5vw, 140px);
  font-weight: 700;
  letter-spacing: 15px;
  padding: 3px 7px 3px 22px; /* top right bottom left — 7px + 15px di letter-spacing */
  color: #cca4a3;
  border: 1px solid #cca4a3;
  text-transform: uppercase;
  background: #191815;
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
  text-decoration: none;
  white-space: nowrap;
}

.grid-item-wrap:hover .img-label {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* ─── LINKS ────────────────────────────────────────────── */
a {
  color: #f8f4ed;
  font-family: 'Helvetica', sans-serif;
  text-decoration: underline;
}
a:hover { font-weight: 500; }

/* ─── DIVIDER & FOOTER ─────────────────────────────────── */
.divider {
  max-width: 100%;
  height: 1px;
  background-color: #f8f4ed;
}

.footer-container {
  text-align: left;
  padding-top: 50px;
  margin: 2vw 5vw;
}

.footer-container img {
  width: 10vw;
  filter: invert(1);
}

.footer {
  width: 100%;
  text-align: left;
  font-family: 'Courier New', sans-serif;
  font-size: clamp(12px, 0.7vw, 30px);
  font-weight: 600;
  padding-bottom: 50px;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #f8f4ed;
}

.link {
  color: #cca4a3;
  font-family: 'Courier New', sans-serif;
  font-size: clamp(12px, 0.7vw, 30px);
  font-weight: 300;
}
.link:hover { font-weight: 700; }

/* ─── MEDIA 768px ──────────────────────────────────────── */
@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
  a, button, input, label, select, textarea,
  .button, .grid-item-wrap, .grid-item, [role="button"] {
    cursor: auto !important;
  }
  .logo-container {
    display: flex;
    margin-bottom: 20px;
    flex-direction: row;
    align-items: flex-start;
  }
  .button-container {
    margin-top: 15px;
    justify-content: center;
    flex-direction: row;
    width: auto;
  }
  .button { padding: 5px 0; letter-spacing: 1px; font-size: 12px; }
  .title-container { margin-top: 10vw; width: 100%; }
  h1 { font-size: 50px; margin-top: 0; max-width: 90%; letter-spacing: 20px; }
  h3 { font-size: 26px; letter-spacing: 10px; }
  echo-title, .posters-title, .frames-title, .rebrand-title { font-size: 15px; }
  .grid-container { grid-template-columns: repeat(1, 1fr); grid-gap: 15px; width: 100%; margin: 0; }
  .grid-item-wrap { max-width: 90%; }
  .grid-item-wrap .img-label {
  opacity: 1;
  font-size: 10px;
  letter-spacing: 3px;
  padding: 3px 6px 3px 9px; /* 6px + 3px di letter-spacing */
  white-space: normal;
  text-align: center;
    }
}

/* ─── MEDIA 480px ──────────────────────────────────────── */
@media (max-width: 480px) {
  .logo-container {
    position: relative;
    top: auto; left: auto;
    width: 100%;
    padding: 4vw;
    margin-bottom: 4vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3vw;
  }
  .button-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4vw;
    width: 100%;
    margin-top: 0;
    justify-content: flex-start;
  }
  .button { padding: 5px 5px; letter-spacing: 1px; font-size: 12px; white-space: nowrap; }
  .title-container { margin-top: 5vw; }
  h1 { font-size: 48px; max-width: 90%; letter-spacing: 4px; }
  h3 { font-size: 26px; letter-spacing: 10px; }
  .echo-title, .posters-title, .frames-title, .rebrand-title { font-size: 15px; }
  .grid-container { grid-template-columns: repeat(1, 1fr); grid-gap: 15px; width: 100%; margin: 0; }       
}



/* ─── LIGHTBOX ─────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
#lightbox.active { display: flex; }

#lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(25, 24, 21, 0.95);
  animation: fadeIn 0.3s ease;
}

#lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 1.5px solid #f8f4ed;
  animation: zoomIn 0.35s cubic-bezier(.16,1,.3,1);
}

#lightbox-close {
  position: fixed;
  top: 24px; right: 32px;
  background: #191815;
  border: 1.5px solid #f8f4ed;
  color: #cca4a3;
  font-size: 18px;
  font-family: 'Helvetica', sans-serif;
  font-weight: 200;
  z-index: 10001;
  width: 36px; height: 36px;
  padding: 0;
  line-height: 36px;
  text-align: center;
  transition: opacity 0.2s ease;
}
#lightbox-close:hover { opacity: 0.5; }

body.lightbox-open #cursor-dot  { background: #cca4a3; }
body.lightbox-open #cursor-ring { border-color: #cca4a3; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
