:root {
    --bg: #ffffff;
    --text: #111111;
    --light: #888888;
    --accent: #fafafa;
    /* Colore del pallino del mouse e linea progresso */
    --cursor-color: #d4af37;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- BARRA DI PROGRESSO SCROLL --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--cursor-color);
    z-index: 99999;
    pointer-events: none;
    transition: width 0.1s ease-out;
}

/* --- CUSTOM CURSOR --- */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--cursor-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

#custom-cursor.hovered {
    width: 40px;
    height: 40px;
    background-color: rgba(212, 175, 55, 0.3);
    border: 1px solid var(--cursor-color);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 40px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: padding 0.5s ease;
}

header.scrolled {
    padding: 20px 5vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-right: 30px;
    font-weight: 300;
    transition: color 0.4s ease, opacity 0.3s;
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat';
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.4s ease, border 0.4s ease;
}

.lang-switcher button.active {
    color: #ffffff;
    font-weight: 400;
    border-bottom: 1px solid #ffffff;
}

.nav-links a:hover,
.lang-switcher button:hover {
    opacity: 0.6;
}

header.scrolled .nav-links a {
    color: var(--text);
}

header.scrolled .lang-switcher button {
    color: var(--light);
}

header.scrolled .lang-switcher button.active {
    color: var(--text);
    border-bottom: 1px solid var(--text);
}

/* --- HERO --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    filter: contrast(1.05) brightness(0.72);
    transform: scale(1.1);
    will-change: transform;
    z-index: 1;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Alex Brush', cursive;
    font-size: clamp(4rem, 12vw, 12rem);
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    z-index: 2;
    user-select: none;
    pointer-events: none;
    will-change: transform;
    width: 100vw;
    text-align: center;
}

.hero-title-wrap {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    margin-top: 5vh;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 0.9;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 15px;
    font-weight: 200;
    opacity: 0.8;
}

/* --- SCROLL DOWN INDICATOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    animation: scrolldown 2s infinite cubic-bezier(0.6, 0.05, 0.4, 1);
}

@keyframes scrolldown {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    50% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

/* --- CONTENT SECTIONS --- */
section {
    padding: 120px 8vw;
    max-width: 1400px;
    margin: 0 auto;
}

.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.25s;
}

.section-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--light);
    margin-bottom: 40px;
    display: block;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 50px;
    line-height: 1.1;
}

.section-title-balanced {
    max-width: 920px;
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: 0.98;
    overflow-wrap: normal;
    word-break: normal;
}

.section-subtitle-balanced {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 300;
    margin-bottom: 36px;
    color: var(--text);
    line-height: 1.05;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 80px;
    align-items: start;
}

.about-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
    grid-template-areas:
        "main media"
        "outro outro";
    gap: 70px 90px;
    align-items: center;
}

.about-main {
    grid-area: main;
}

.about-outro {
    grid-area: outro;
    padding-top: 42px;
    border-top: 1px solid #eaeaea;
    margin-top: 8px;
}

#about-content-outro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 55px;
}

.about-lead p:first-child {
    font-size: clamp(1.22rem, 1.7vw, 1.5rem);
    line-height: 1.65;
    color: #252525;
}

.about-lead p:last-child,
#about-content-outro p {
    max-width: 620px;
}

.artist-socials {
    display: flex;
    gap: 30px;
    margin-top: 44px;
    align-items: center;
}

.bio-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 42px;
}

.bio-downloads a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #d8d1c3;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: #fff;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.bio-downloads a:hover {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
    transform: translateY(-1px);
}

.bio-downloads svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 3D TILT CONTAINER */
.tilt-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.about-media {
    grid-area: media;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4 / 5;
    width: min(100%, 520px);
    justify-self: end;
    position: relative;
}

.text-block p {
    font-size: 1.04rem;
    font-weight: 300;
    margin-bottom: 24px;
    color: #444;
    text-align: left;
    line-height: 1.78;
    letter-spacing: 0.3px;
}

.text-block p:last-child {
    margin-bottom: 0;
}

.full-img {
    width: 100%;
    height: 110%;
    object-fit: cover;
    transform-origin: center;
    will-change: transform;
}

/* --- SOCIAL ICONS --- */
.artist-socials {
    display: flex;
    gap: 25px;
    margin-top: 40px;
    align-items: center;
}

.artist-socials a {
    color: var(--text);
    opacity: 0.6;
}

.artist-socials a:hover {
    opacity: 1;
}

.artist-socials svg {
    width: 22px;
    height: 22px;
}

/* --- REVIEWS --- */
.reviews-wrap {
    background: var(--accent);
    padding: 120px 8vw;
    margin: 80px 0;
    text-align: center;
}

.review-item {
    max-width: 900px;
    margin: 0 auto 60px;
}

.review-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text);
}

.review-author {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--light);
}

/* --- LISTS --- */
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    font-size: 1rem;
    font-weight: 300;
    line-height: 2;
}

.list-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.experience-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 36px;
    font-size: 0.98rem;
    line-height: 1.55;
}

.experience-list .list-item {
    min-height: 72px;
    padding: 18px 0;
    display: flex;
    align-items: center;
}

.experience-list .list-item span {
    overflow-wrap: anywhere;
}

.roles-block {
    margin-top: 90px;
}

.roles-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 32px;
}

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 450px;
    gap: 20px;
}

.gallery-cell {
    overflow: hidden;
    height: 100%;
}

.gallery-item {
    width: 100%;
    height: 110%;
    object-fit: cover;
    will-change: transform;
    cursor: pointer;
}

.gallery-video {
    grid-column: span 2;
    height: 100%;
    background: #000;
}

.video-card {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}

body.lightbox-open {
    overflow: hidden;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6vh 5vw;
    background: rgba(10, 10, 10, 0.88);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

.image-lightbox-img {
    display: block;
    max-width: min(1180px, 94vw);
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    transform: scale(0.97);
    transition: transform 0.25s ease;
}

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

.image-lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

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

/* --- NEWSLETTER --- */
.newsletter-section {
    background: var(--accent);
    padding: 100px 8vw;
    text-align: center;
    margin-top: 80px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.newsletter-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text);
    padding: 10px 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    width: 300px;
    outline: none;
}

.newsletter-btn {
    background: transparent;
    border: 1px solid var(--text);
    padding: 12px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-btn:hover {
    background: var(--text);
    color: var(--bg);
}

/* --- CONTACTS & FOOTER --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.contact-card h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--light);
}

.contact-card p {
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 5px;
}

footer {
    text-align: center;
    padding: 60px 20px;
    font-size: 0.75rem;
    color: var(--light);
    border-top: 1px solid #eee;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {

    .grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-grid {
        grid-template-areas: "main" "media" "outro";
        align-items: start;
    }

    #about-content-outro {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-media {
        width: min(100%, 520px);
        justify-self: start;
    }

    .about-lead p:last-child,
    #about-content-outro p {
        max-width: none;
    }

    .gallery-grid {
        grid-auto-rows: auto;
    }

    .section-title-balanced {
        font-size: clamp(2.6rem, 12vw, 4.2rem);
        max-width: 100%;
    }

    .experience-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .experience-list .list-item {
        min-height: auto;
        padding: 16px 0;
    }

    .gallery-video {
        grid-column: span 1;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .gallery-cell {
        height: 450px;
    }

    .gallery-cell.gallery-video {
        height: auto;
    }

    .nav-links {
        display: none;
    }

    header.scrolled {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* --- GALLERY CAPTIONS --- */
.gallery-cell {
    position: relative;
    /* Necessario per posizionare la didascalia */
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    /* Più spazio sopra per il gradiente */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    /* Impedisce che blocchi gli effetti tilt */
    z-index: 10;
}

/* Mostra la didascalia in hover */
.gallery-cell:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}
