/* ============================================================
   PROFILO.CSS — stili specifici della pagina profilo attore
   Layout orizzontale con scroll canvas.
   NON ridefinire nav/hamburger/nav-links — gestiti da base.css
   ============================================================ */

/* ── OVERFLOW — necessario per lo scroll canvas orizzontale ── */
html, body {
  height: 100%;
  overflow: hidden;
}

/* ── HAMBURGER — leggermente più in alto sulla pagina profilo ── */
@media (max-width: 900px) {
  .hamburger {
    position: relative;
    top: -6px; /* regola questo valore */
  }
}



/* ── VIEWPORT & CANVAS ── */
.viewport { position: fixed; inset: 0; overflow: hidden; }
.canvas {
  display: flex; align-items: flex-start;
  height: 100vh; width: max-content;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

/* ── BIO PANEL ── */
.bio-panel {
  width: 100vw; flex-shrink: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0; background: var(--black); position: relative; z-index: 2;
  overflow: hidden;
}
.bio-panel::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 80px;
  background: linear-gradient(to right, transparent, rgba(10,10,10,0.6));
  pointer-events: none; z-index: 3;
}
.bio-fixed { padding: 0 10vw; }

/* ── TIPOGRAFIA ── */
.actor-name {
  font-weight: 300; line-height: 1.05; color: var(--white);
  font-size: clamp(22px, 5vw, 68px);
  opacity: 0; animation: fadeUpProfilo 0.8s ease 0.25s forwards;
}
.actor-name em { font-style: italic; color: var(--gold); }

.divider {
  width: clamp(36px, 3vw, 56px); height: 1px; background: var(--gold);
  margin: clamp(10px, 1vh, 18px) 0;
  opacity: 0; animation: fadeUpProfilo 0.8s ease 0.35s forwards;
}

.actor-stats {
  display: flex; gap: clamp(14px, 2vw, 32px);
  margin-bottom: clamp(12px, 1.2vh, 22px);
  opacity: 0; animation: fadeUpProfilo 0.8s ease 0.5s forwards;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: 'Montserrat', sans-serif; font-weight: 300; color: var(--gold);
  font-size: clamp(14px, 2vw, 32px);
}
.stat-label {
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--white);
  font-size: clamp(6px, 0.7vw, 11px);
}

/* ── DOWNLOAD BTN ── */
.download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: clamp(9px, 0.8vh, 13px) clamp(16px, 1.5vw, 28px);
  border: 1px solid rgba(201,168,76,0.4); background: rgba(201,168,76,0.08);
  color: var(--gold); letter-spacing: 0.3em; text-transform: uppercase;
  cursor: pointer; transition: background 0.3s, border-color 0.3s;
  margin-bottom: clamp(8px, 0.8vh, 14px);
  font-size: clamp(7px, 0.75vw, 12px);
  opacity: 0; animation: fadeUpProfilo 0.8s ease 0.55s forwards;
  font-family: 'Montserrat', sans-serif;
}
.download-btn:hover { background: rgba(201,168,76,0.18); border-color: var(--gold); }

/* ── IMAGE STRIP ── */
.image-strip { display: flex; align-items: flex-start; height: 100vh; flex-shrink: 0; }
.img-slide {
  flex-shrink: 0; height: 100vh; width: auto;
  position: relative; background: var(--black);
}
.img-slide img {
  display: block; height: 100vh; width: auto;
  max-width: none; vertical-align: top;
  filter: brightness(0.88) contrast(1.05); pointer-events: none;
}
.image-strip .img-slide:first-child::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 80px;
  background: linear-gradient(to right, var(--black), transparent);
  z-index: 2; pointer-events: none;
}
.img-caption {
  position: absolute; bottom: 24px; left: 20px; z-index: 10;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(245,240,232,0.3);
}

/* ── FRECCE ── */
.arrow-left-wrap  { position: fixed; left: 12px;  top: 50%; transform: translateY(-50%); z-index: 300; }
.arrow-right-wrap { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 300; }
.arrow {
  width: 54px; height: 54px;
  border: 1px solid rgba(201,168,76,0.35); background: rgba(10,10,10,0.8);
  backdrop-filter: blur(6px); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, background 0.3s, opacity 0.35s, transform 0.35s;
  -webkit-tap-highlight-color: transparent;
}
.arrow svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { border-color: var(--gold); background: rgba(201,168,76,0.12); }
.arrow.hidden { opacity: 0; pointer-events: none; transform: scale(0.82); }

/* ── PROGRESS BAR ── */
.progress-bar { position: fixed; bottom: 0; left: 0; right: 0; height: 2px; background: rgba(201,168,76,0.08); z-index: 300; }
.progress-fill { height: 100%; background: var(--gold); transition: width 0.45s cubic-bezier(0.77,0,0.175,1); }

/* ── KEYFRAMES (rinominati per evitare conflitti con base.css) ── */
@keyframes fadeUpProfilo {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── VERTICAL MODE (mobile) ── */
body.vertical { overflow: auto; }
body.vertical html { overflow: auto; }
body.vertical .viewport { overflow-y: auto; overflow-x: hidden; position: static; inset: auto; }
body.vertical .canvas { flex-direction: column; width: 100%; height: auto; transform: none !important; transition: none; }
body.vertical .bio-panel { width: 100%; max-width: 700px; margin: 0 auto; height: auto; overflow: visible; justify-content: flex-start; }
body.vertical .bio-fixed { padding: 120px 48px 60px; }
body.vertical .bio-panel::after { display: none; }
body.vertical .image-strip { flex-direction: column; height: auto; width: 100%; align-items: center; gap: 0; }
body.vertical .img-slide { width: 100%; height: auto; display: flex; justify-content: center; align-items: flex-start; }
body.vertical .img-slide img { height: auto; width: 100%; max-width: 900px; object-fit: cover; }
body.vertical .image-strip .img-slide:first-child::before { display: none; }
body.vertical .arrow-left-wrap,
body.vertical .arrow-right-wrap,
body.vertical .progress-bar { display: none; }

/* ── DESKTOP ── */
@media (min-width: 768px) {
  .bio-panel { width: 50vw; }
  .bio-fixed { padding: 0 72px; }
  .arrow { width: 60px; height: 60px; }
  .arrow svg { width: 22px; height: 22px; }
  .arrow-left-wrap  { left: 20px; }
  .arrow-right-wrap { right: 20px; }
}

/* ── MOBILE ── */
@media (max-width: 767px) {
  .bio-fixed { padding: 0 20px; }
  .actor-name { font-size: clamp(32px, 9vw, 52px); }
  .image-strip { align-items: center; }
  .img-slide { height: 100vh; display: flex; align-items: center; justify-content: center; }
  .img-slide img { height: 80vh; width: auto; max-width: 100vw; object-fit: contain; }
  .arrow { width: 42px; height: 42px; }
  .arrow svg { width: 16px; height: 16px; }
  .arrow-left-wrap  { left: 6px; }
  .arrow-right-wrap { right: 6px; }
  .divider     { margin: 6px 0; }
  .actor-stats { gap: 12px; margin-bottom: 10px; }
  .download-btn { margin-bottom: 8px; padding: 8px 14px; }
}

@media (max-width: 380px) {
  .img-slide img { height: 70vh; }
}


