/* =====================================
   BASE / RESET
===================================== */

:root {
    --nav-width: 260px;
    --rail-width: 110px;
    --header-height: 90px;
    --page-padding: 35px;
    --menu-active-color: #c6a15b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #fff;
    color: #111;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}


/* =====================================
   MAIN LAYOUT - DESKTOP
===================================== */

.site-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--nav-width) minmax(0, 1fr) var(--rail-width);
    grid-template-rows: var(--header-height) auto auto;
    width: 100%;
    min-width: 0;
}


/* =====================================
   HEADER
===================================== */

.site-header {
    grid-column: 1 / 4;
    height: var(--header-height);
    padding-top: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 300;
}

.artist-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.artist-name a {
    color: inherit;
    text-decoration: none;
}


/* =====================================
   DESKTOP NAVIGATION
===================================== */

.navbar-side {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    padding: 35px 25px;
    background: transparent;
    z-index: 200;
    display: flex;
    align-items: center;
}

.navbar-side nav {
    width: 100%;
}

.menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.menu li a {
    font-size: 0.92rem;
    font-weight: 400;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.menu li a:not(.active):hover {
    opacity: 0.45;
}

.menu li a.active,
.mobile-menu-list a.active {
    color: var(--menu-active-color) !important;
    opacity: 1;
}

.menu-divider {
    width: 100%;
    height: 2px;
    background: #000;
    margin: 12px 0;
}


/* =====================================
   MOBILE NAVIGATION - BASE
   Attivata dal responsive.css
===================================== */

.mobile-menu-toggle,
.mobile-menu-overlay {
    display: none;
}


/* =====================================
   MAIN CONTENT
===================================== */

.main-content {
    grid-column: 2;
    grid-row: 2;
    padding: var(--page-padding);
    min-height: calc(100vh - var(--header-height));
    min-width: 0;
}


/* =====================================
   RIGHT SIDEBAR / SOCIAL
===================================== */

.sidebar-right {
    grid-column: 3;
    grid-row: 2;
    min-width: 0;
    background: #fff;
    position: relative;
}

.social-container {
    position: sticky;
    top: 40px;
    height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    padding-bottom: 35px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-4px);
}


/* =====================================
   STANDARD CONTACT SIDEBAR
===================================== */

.contact-title {
    position: absolute;
    left: 50%;
    bottom: 50px;
    writing-mode: vertical-rl;
    transform: translateX(-50%) rotate(0deg);
    font-family: "Cormorant Garamond", serif;
    font-size: 3rem;
    letter-spacing: 0.15em;
}


/* =====================================
   CONTACT PAGE
===================================== */

.contact-page-main {
    min-width: 0;
}

.contact-section {
    min-height: calc(100vh - var(--header-height) - 170px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0 70px;
}

.center-contact {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

.contact-email {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-bottom: none;
    padding-bottom: 0;
    transition: opacity 0.3s ease;
}

.contact-email:hover {
    opacity: 0.5;
}

.contact-icons {
    display: flex;
    gap: 22px;
}

.contact-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.contact-icons a:hover {
    transform: translateY(-4px);
}


/* =====================================
   CONTACT / VIEW RAIL
===================================== */

.contact-view-rail {
    grid-column: 3;
    grid-row: 2;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    width: var(--rail-width);
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 0 35px;
    z-index: 200;
    pointer-events: none;
}

.contact-view-label {
    position: absolute;
    left: 50%;
    color: #000;
    writing-mode: vertical-rl;
    transform: translateX(-50%) rotate(0deg);
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.35s ease, top 0.45s ease;
}

.contact-label {
    top: 25px;
    opacity: 1;
}

.view-label {
    top: calc(95% - 25px);
    transform: translateX(-50%) translateY(-100%) rotate(0deg);
    opacity: 1;
}

.contact-view-rail.view-active .contact-label {
    top: -60px;
    opacity: 0;
}

.contact-view-rail.view-active .view-label {
    top: 25px;
    transform: translateX(-50%) rotate(0deg);
    opacity: 1;
}


/* =====================================
   VIEW GALLERY
===================================== */

.contact-view-section {
    padding: 0 0 80px;
}

.contact-view-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.contact-view-item {
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-view-item img,
.contact-view-item video {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    object-fit: cover;
    object-position: center;
}

/* Visualizzazione completa delle opere */

.contact-view-item img.work-card {
    object-fit: contain;
    object-position: center;
}


/* =====================================
   FOOTER
===================================== */

.site-footer {
    grid-column: 1 / 4;
    background: #000;
    color: #fff;
    padding: 45px 35px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-social a:hover {
    opacity: 0.5;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-right {
    max-width: none;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.5rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    opacity: 1;
}


/* =====================================
   HOME GALLERY / MOSAICO
   Masonry compatto con colonne fisse
   e forme differenziate.
===================================== */

.home-gallery {
    width: 100%;
    min-width: 0;
    padding: 0 4px 0;
}

.gallery-grid {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    background: #f2f2f2;
    min-width: 0;
    min-height: 0;
}

.gallery-item--landscape {
    aspect-ratio: 4 / 3;
}

.gallery-item--portrait {
    aspect-ratio: 3 / 4;
}

.gallery-item--square {
    aspect-ratio: 1 / 1;
}

.gallery-item--wide {
    aspect-ratio: 2 / 1;
}

.gallery-item img,
.gallery-item video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =====================================
   INTERNAL PAGES
===================================== */

.section-page {
    padding: 10px 6px 60px;
}

.section-page h1 {
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-page h2 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.section-page p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1rem;
}


/* =====================================
   BIO / ARTWORK
===================================== */

.bio-layout img {
    width: 100%;
    display: block;
    object-fit: cover;
}


/* =====================================
   CONCEPT
===================================== */

.concept-section {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.concept-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.concept-row.reverse {
    flex-direction: row-reverse;
}

.concept-media {
    flex: 1 1 55%;
    min-width: 0;
}

.concept-media img,
.concept-media video {
    width: 100%;
    display: block;
    object-fit: cover;
}

.concept-text {
    flex: 1 1 45%;
    min-width: 0;
}

.concept-text h2 {
    margin: 0 0 1rem;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.concept-info {
    margin-bottom: 1rem;
}

.concept-info p {
    margin: 0 0 0.25rem;
}

.concept-info strong {
    font-weight: 700;
}


/* -------------------------------------
   DESCRIZIONE
------------------------------------- */

.concept-description {
    margin: 0;
}

.concept-description p {
    margin: 0 0 0.8rem;
    line-height: 1.7;
}

.concept-description p:last-child {
    margin-bottom: 0;
}

.concept-description.is-long::before {
    content: "Descrizione:";
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.concept-description-content {
    max-height: none;
    overflow: hidden;
}

.concept-more-button {
    display: inline-block;
    margin: 0.8rem 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: "Inter", sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.concept-more-button:hover {
    opacity: 0.55;
}


/* -------------------------------------
   SCHERMI GRANDI
   >= 1920px: descrizioni complete
------------------------------------- */

@media (min-width: 1920px) {
    .concept-description-content {
        max-height: none !important;
        overflow: visible;
    }

    .concept-more-button {
        display: none;
    }
}


/* =====================================
   WORKS / VIDEO LIBRARY
===================================== */

.simple-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
}

.media-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #f2f2f2;
    color: #fff;
}

.media-card img,
.media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.media-card:hover img,
.media-card:hover video {
    transform: scale(1.04);
}

/* Nella Video Library lo zoom è disattivato */

.video-library .media-card:hover img,
.video-library .media-card:hover video {
    transform: none;
}

.media-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
    pointer-events: none;
}

/* Titoli in alto nella Video Library */

.video-library .media-overlay {
    top: 0;
    bottom: auto;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0)
    );
}

.media-overlay h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.media-overlay p {
    font-size: 0.8rem;
    opacity: 0.85;
    margin: 0;
}

/* Mostra l'opera completa senza tagli */

.simple-grid img.work-card {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Video a schermo intero */

.video-library video:fullscreen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}


/* =====================================
   HOME OVERLAY
===================================== */

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 25px;
    text-align: left;
    background: rgba(255, 255, 255, 0.82);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 0.4;
}

.gallery-overlay-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.gallery-overlay-description {
    max-width: 320px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #333;
}


/* =====================================
   BIO - ARTIST STATEMENT
===================================== */

/* Contenitore principale della pagina Bio */

.bio-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 12px 24px;
    color: #171717;
}

/* Contenitore centrale della pagina Bio */

.main-content.bio-page-main {
    min-width: 0;
}

.bio-page .bio-layout {
    display: flex;
    flex-direction: column;
    gap: 58px;
    min-width: 0;
}

.bio-page .bio-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    margin-bottom: 8px;
}

.bio-page .bio-portrait {
    min-width: 0;
    overflow: hidden;
    background: #f0eee9;
}

.bio-page .bio-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
}

.bio-page .bio-identity {
    min-width: 0;
}

.bio-page .bio-eyebrow {
    margin: 0 0 12px;
    color: #8a6b42;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.bio-page .bio-identity h1 {
    margin: 0 0 8px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.2rem, 3.6vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-transform: none;
}

.bio-page .bio-subtitle {
    margin: 0 0 24px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bio-page .bio-contact {
    padding-top: 18px;
    border-top: 1px solid #c8b89f;
}

.bio-page .bio-contact p {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 8px;
    font-size: 0.88rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.bio-page .bio-contact a {
    color: inherit;
    text-decoration: none;
}

.bio-page .bio-contact a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bio-page .bio-intro-note {
    margin-top: 26px;
    padding-left: 16px;
    border-left: 2px solid #b28a54;
    color: #666;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.5;
}

.bio-page .bio-section {
    min-width: 0;
    scroll-margin-top: 120px;
}

.bio-page .bio-section h2 {
    margin: 0 0 22px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.7rem, 2.4vw, 2.45rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-transform: none;
}

.bio-page .bio-section h2::after {
    content: "";
    display: block;
    width: 46px;
    height: 2px;
    margin-top: 13px;
    background: #b28a54;
}

/* Regola parte colore titolo 2 */
.bio-page .bio-title-highlight {
    color: #8a2020;
}

.bio-page .bio-section p {
    max-width: 100%;
    margin: 0 0 16px;
    color: #383838;
    font-size: 0.98rem;
    line-height: 1.85;
}

.bio-page .bio-section p:last-child {
    margin-bottom: 0;
}

.bio-page .bio-awards {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 28px;
    padding: 30px 34px;
    background: #f4f1eb;
}

.bio-page .bio-awards h2 {
    margin-bottom: 0;
}

.bio-page .bio-awards ul {
    margin: 0;
    padding-left: 22px;
}

.bio-page .bio-research-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding-left: 22px;
}

.bio-page .bio-awards li,
.bio-page .bio-research-list li {
    padding-left: 4px;
    color: #383838;
    font-size: 0.96rem;
    line-height: 1.8;
}

.bio-page .bio-awards li::marker,
.bio-page .bio-research-list li::marker {
    color: #9b7440;
}

.bio-page .bio-quote {
    max-width: 1000px;
    margin: 32px 0 0;
    padding: 8px 0 8px 26px;
    border-left: 3px solid #b28a54;
    color: #292929;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-style: italic;
    line-height: 1.5;
}

.bio-page .bio-atelier {
    padding-bottom: 12px;
}

.bio-page .bio-interview {
    margin-top: 38px;
    padding: 30px;
    background: #f4f1eb;
}

.bio-page .bio-interview-heading {
    margin-bottom: 22px;
}

.bio-page .bio-interview-heading h3 {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
}

.bio-page .bio-interview-heading > p:last-child {
    margin: 0;
}

.bio-page .bio-video-preview {
    position: relative;
    display: block;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #171717;
    cursor: pointer;
    isolation: isolate;
}

.bio-page .bio-video-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.bio-page .bio-video-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.25s ease;
}

.bio-page .bio-youtube-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.35));
    transition: transform 0.25s ease;
}

.bio-page .bio-youtube-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

.bio-page .bio-video-caption {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: left;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.bio-page .bio-video-preview:hover img {
    transform: scale(1.025);
}

.bio-page .bio-video-preview:hover .bio-video-shade {
    background: rgba(0, 0, 0, 0.34);
}

.bio-page .bio-video-preview:hover .bio-youtube-logo {
    transform: translate(-50%, -50%) scale(1.1);
}

.bio-page .bio-video-preview:focus-visible,
.bio-page .bio-youtube-link:focus-visible,
.bio-video-modal button:focus-visible,
.bio-video-modal a:focus-visible {
    outline: 3px solid #b28a54;
    outline-offset: 4px;
}

.bio-page .bio-youtube-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 18px auto 0;
    color: #292929;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bio-page .bio-youtube-link:hover {
    color: #8a2020;
}


/* Finestra modale del video */

.bio-video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
}

.bio-video-modal.is-open {
    display: flex;
}

.bio-video-dialog {
    position: relative;
    width: min(100%, 1000px);
    max-height: 100%;
    padding-top: 42px;
}

.bio-video-close {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.bio-video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.bio-video-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.bio-modal-youtube-link {
    display: inline-block;
    margin-top: 14px;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.bio-video-open {
    overflow: hidden;
}