/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #000000;
    --fg: #FFFFFF;
    --accent: #897AE1;
    --border: rgba(255, 255, 255, 0.25);
    --font: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--fg);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
}

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

a {
    color: var(--fg);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--accent);
}

/* ===== NAVIGATION ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.2em 8%;
    transition: padding 0.3s ease;
}

.nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
    text-align: center;
}

.logo-top {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2em;
    font-size: 1em;
    font-weight: 300;
}

.nav-links a {
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--fg);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 8vh 8% 20vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-logo {
    font-size: 3em;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.3em;
}

.hero-sub {
    font-size: 1em;
    font-weight: 300;
}

/* ===== CAROUSEL ===== */
.carousel-section {
    padding: 8vh 8%;
}

.carousel {
    position: relative;
    height: 90vh;
    max-width: 100%;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.carousel-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2em;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.cap-title {
    font-size: 1.2em;
    font-weight: 700;
}

.cap-sub {
    font-size: 1em;
    font-weight: 300;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--fg);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 2em;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.25s ease;
    line-height: 1;
    padding-bottom: 4px;
}

.carousel-arrow:hover {
    background: var(--accent);
}

.carousel-arrow.left { left: 2vw; }
.carousel-arrow.right { right: 2vw; }

.carousel-dots {
    position: absolute;
    bottom: -2.5em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6em;
    z-index: 10;
}

.carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease;
}

.carousel-dots button.active {
    background: var(--accent);
}

/* ===== ABOUT ===== */
.about-section {
    display: flex;
    min-height: 90vh;
    padding: 0;
    align-items: stretch;
}

.about-text {
    flex: 1;
    padding: 8vh 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 60vh;
}

.section-pre {
    font-size: 1.3em;
    font-weight: 400;
    margin-bottom: 0.8em;
    letter-spacing: 0.15em;
}

.section-title {
    font-size: 2.6em;
    font-weight: 700;
    margin-bottom: 1em;
    line-height: 1.2;
    max-width: 900px;
}

.section-title.left {
    text-align: left;
    align-self: flex-start;
}

.long-text {
    max-width: 750px;
    font-weight: 300;
    line-height: 1.8;
}

.long-text.left {
    text-align: left;
}

.long-text p {
    margin-bottom: 1.2em;
}

.long-text a {
    color: var(--accent);
}

.long-text a:hover {
    text-decoration: underline;
}

/* ===== GALLERY (FOTOGRAFIA) ===== */
.gallery-section {
    padding: 8vh 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4em;
    max-width: 800px;
}

.gallery-vertical {
    width: 70%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 8vw;
}

.gallery-vertical figure {
    overflow: hidden;
}

.gallery-vertical figure img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.6s ease;
}

.gallery-vertical figure img:hover {
    opacity: 0.85;
}

/* ===== SPLIT SECTION (SERIGRAFIA) ===== */
.split-section {
    display: flex;
    min-height: 90vh;
    padding: 0;
    align-items: stretch;
}

.split-text {
    width: 25%;
    padding: 8vh 3vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: var(--bg);
}

.split-gallery {
    width: 75%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.split-gallery figure {
    overflow: hidden;
}

.split-gallery figure img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.split-gallery figure img:hover {
    opacity: 0.85;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 6vw;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    background: transparent;
    color: var(--fg);
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.25s ease;
}

.lightbox-close {
    top: 2vh;
    right: 3vw;
    font-size: 3em;
    line-height: 1;
}

.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    font-size: 4em;
    padding: 0 0.3em;
    line-height: 1;
}

.lightbox-arrow.left { left: 2vw; }
.lightbox-arrow.right { right: 2vw; }

.lightbox-close:hover,
.lightbox-arrow:hover {
    color: var(--accent);
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 2vh 8%;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid var(--border);
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo-top {
        font-size: 1.4em;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 1.5em;
        gap: 1.2em;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }

    .nav-links.open {
        max-height: 300px;
        padding: 1.5em;
    }

    .hero {
        padding: 8vh 6% 12vh;
        min-height: 80vh;
    }

    .hero-bg {
        background-attachment: scroll;
    }

    .hero-logo {
        font-size: 2.2em;
    }

    .carousel {
        height: 60vh;
    }

    .carousel-section {
        padding: 6vh 4%;
    }

    .carousel-item figcaption {
        padding: 1.2em;
    }

    .cap-title {
        font-size: 1em;
    }

    .cap-sub {
        font-size: 0.85em;
    }

    .about-section,
    .split-section {
        flex-direction: column;
    }

    .about-image {
        order: -1;
        min-height: 50vh;
        width: 100%;
    }

    .about-text {
        padding: 6vh 6%;
    }

    .split-text,
    .split-gallery {
        width: 100%;
    }

    .split-text {
        padding: 6vh 6% 2vh;
    }

    .section-title {
        font-size: 1.8em;
    }

    .gallery-vertical {
        width: 100%;
    }

    .gallery-section {
        padding: 6vh 6%;
    }

    .lightbox-arrow {
        font-size: 2.5em;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .carousel {
        height: 50vh;
    }
}
