/* ─────────────────────────────────────────────────
   PAGINA ABOUT ME — hero: immagine grande che si rimpicciolisce allo scroll
   (e si abbassa col mouse) rivelando il testo sotto
───────────────────────────────────────────────── */

/* Header: nascosto come su Home/Concerts → si usa l'hamburger hs-nav */
.site-header { display: none !important; }
.site-main   { margin-top: 0 !important; }

/* Burger + wordmark: auto-adattano il colore al fondo (come Concerts).
   !important per battere la regola is-over-hero impostata da main.js,
   che altrimenti forzerebbe blend "normal" e bloccherebbe l'adattamento.
   Scoped con body:not(.home): about.css è caricato anche in homepage (per il
   modulo "About me"), ma lì il burger deve restare bianco sopra la hero. */

body:not(.home) .hs-nav  { mix-blend-mode: difference !important; }
body:not(.home) .hs-home { mix-blend-mode: difference !important; }
/* Menu aperto: torna a normal così resta leggibile sull'overlay scuro */
body:not(.home) .hs-nav:has([aria-expanded="true"]) { mix-blend-mode: normal !important; }

/* ── Hero About me: immagine a schermo intero, titolo e testo sopra.
   L'immagine ha un leggero effetto parallasse allo scroll (vedi about.js). ── */
.about-hero {
    position: relative;
    height: 100vh;
    height: var(--screen-h, 100vh);
    min-height: 40rem;
    overflow: hidden;
    background: var(--black);
}

/* Cornice immagine: copre tutto il visore, ritaglia l'immagine interna */
.about-hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #1a1a1a;
}

/* Velo scuro: titolo e testo bianchi restano leggibili sull'immagine */
.about-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to right, rgba(0,0,0,.05), rgba(0,0,0,.5) 75%),
        linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,0) 35%, rgba(0,0,0,.3));
}

/* Immagine interna: più alta della cornice (120%) per avere margine di movimento */
.about-hero__img {
    position: absolute;
    left: 0;
    right: 0;
    top: -10%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.about-hero--noimg .about-hero__img {
    background-image: repeating-linear-gradient(
        45deg, #1a1a1a 0 12px, #222 12px 24px
    );
}

/* Titolo "About me": bianco, direttamente sulla foto */
.about-hero__title {
    position: absolute;
    z-index: 3;
    top: clamp(5.5rem, 12vh, 9rem);
    left: clamp(1.5rem, 4vw, 4rem);
    margin: 0;
    font-size: clamp(3.5rem, 9.5vw, 10rem);
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--white);
    white-space: nowrap;
}

/* Testo a destra, sotto il titolo, allineato a sinistra */
.about-hero__text {
    position: absolute;
    z-index: 3;
    top: clamp(15rem, 34vh, 22rem);
    right: 0;
    bottom: 0;
    width: 56vw;
    display: flex;
    align-items: center;
    padding: 0 clamp(1.5rem, 4vw, 4rem) 0 clamp(2rem, 6vw, 7rem);
}

.about-hero__statement {
    margin: 0;
    max-width: 36rem;
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    line-height: 1.5;
    text-align: left;
    color: var(--white);
}

.about-hero__statement + .about-hero__statement { margin-top: 1.2em; }

/* ── Mobile: testo in basso, a tutta larghezza ── */
@media (max-width: 860px) {
    .about-hero__title { font-size: clamp(3rem, 15vw, 5rem); }
    .about-hero__text {
        top: auto;
        width: 100%;
        padding: 0 clamp(1.5rem, 4vw, 4rem) 2.5rem;
    }
}

/* ─────────────────────────────────────────────────
   SEZIONE ABOUT — sticky scroll track
───────────────────────────────────────────────── */

/* Il track è alto N volte il viewport:
   dà spazio di scroll mentre la sezione rimane fissa.
   Il valore viene sovrascritto da JS in base alla lunghezza del testo. */
.about-track {
    height: 280vh; /* fallback, JS lo aggiusta */
}

.about-block {
    background: var(--black);
    height: 100vh;
    height: var(--vh, 100vh);
    display: flex;
    align-items: center;
    padding: 0 var(--gap);
    position: sticky;
    top: 0;
}

.about-block__inner {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3.5rem);
}

/* Etichetta "About me" */
.about-block__label {
    font-size: .75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.38);
    max-width: none;
}

/* Testo grande con parole reveal */
.about-block__text {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -.01em;
    max-width: none;
}

/* Variante più grande (pagina About me) */
.about-block--lg .about-block__text {
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    line-height: 1.28;
}

/* Ogni parola parte grigia */
.about-word {
    display: inline;
    color: rgba(255,255,255,.18);
    transition: color .12s ease;
    will-change: color;
}

/* Stato "rivelato" aggiunto via JS */
.about-word.is-lit {
    color: rgba(255,255,255,1);
}

/* CTA */
.about-block__cta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--white);
    align-self: flex-start;
    transition: gap .25s;
    opacity: 0;
    transform: translateY(10px);
}

.about-block__cta.is-visible {
    animation: ctaIn .5s cubic-bezier(.22,1,.36,1) forwards;
}

.about-block__cta:hover {
    gap: 1rem;
}

.about-block__cta-arrow {
    transition: transform .25s;
}

.about-block__cta:hover .about-block__cta-arrow {
    transform: translateX(4px);
}

@keyframes ctaIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* Marquee (testo che scorre) sulla pagina About me: stesso modulo della
   homepage, in versione nera con testo bianco. Il CV che segue è su bianco. */
.is-about-page .mq-block { background: var(--black); }
.is-about-page .mq-text  { color: var(--white); }

/* Variante su sfondo bianco (pagina Manager culturale): parole grigie → nere */
.about-block--light { background: var(--white); color: var(--black); }
.about-block--light .about-word { color: rgba(19,13,12,.18); }
.about-block--light .about-word.is-lit { color: var(--black); }
