/**
 * Documentary v2 Styles — Mécena Design
 * Estratti da: mecena-documentary-template.html
 */

:root {
    --bg:   #000000;           /* nero assoluto */
    --bg2:  #0f0f0f;           /* grigio molto scuro per sezioni metodo/editorial */
    --ct:   #ffffff;           /* testo principale titoli – bianco puro */
    --cm:   rgba(234, 228, 219, 0.80);   /* testo principale – più chiaro */
    --cm2:  rgba(234, 228, 219, 0.70);   /* testo secondario – più chiaro */
    --sep:  rgba(234, 228, 219, 0.14);   /* increased from 0.08 for visibility */
    --sep2: rgba(234, 228, 219, 0.20);   /* increased from 0.13 for visibility */
    --xs:   0.66rem; /* legacy — usare --testo-xs per nuovi stili */
    --testo-xs:  clamp(0.78rem, 0.9vw, 0.92rem);
    --testo-sm:  clamp(0.88rem, 1vw, 1.05rem);
    --testo-base: clamp(1rem, 1.12vw, 1.18rem);
    --tr:   0.28s ease;
}

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

body {
    background: #000000;
    color: var(--ct);
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    line-height: 1.7;
}

/* UTILITÀ */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 2.5rem; }

.sec-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--cm2);
    font-weight: 400;
}

.sec-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5rem 1.4rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.sec-header--compact {
    padding-bottom: 0;
}


/* ════════════════════════════════════════════════════════════
   MEDIA POPUP MODAL (NEW)
   ════════════════════════════════════════════════════════════ */
.mecena-media-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.mecena-media-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mecena-media-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 1;
}

.mecena-media-modal__container {
    position: fixed;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90vw;
    max-width: 1000px;
    height: 70vh;
    max-height: 600px;
    background: #000;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mecena-media-modal.is-open .mecena-media-modal__container {
    transform: translate(-50%, -50%) scale(1);
}

.mecena-media-modal__player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.mecena-media-modal__player > iframe,
.mecena-media-modal__player > video {
    width: 100%;
    height: 100%;
    display: block;
}

.mecena-media-modal__close {
    position: fixed;
    top: calc(50% - 35vh - 45px);
    right: calc((100vw - 90vw) / 2 - 15px);
    z-index: 100;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8) rotate(-90deg);
}

.mecena-media-modal.is-open .mecena-media-modal__close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.mecena-media-modal__close:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1) rotate(0deg);
}

.mecena-media-modal__close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .mecena-media-modal__container {
        width: 95vw;
        height: 60vh;
        max-height: 500px;
    }

    .mecena-media-modal__close {
        width: 36px;
        height: 36px;
        top: 0.5rem;
        right: 0.5rem;
    }

    .mecena-media-modal__close svg {
        width: 18px;
        height: 18px;
    }
}


/* TAGS & BUTTONS */
.doc-tag {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    font-weight: 400;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--cm2);
    border: 0.5px solid var(--sep);
    padding: 0.16em 0.55em;
}

.doc-tag--sm {
    font-size: calc(var(--testo-xs) - 0.03rem);
    padding: 0.12em 0.45em;
}

.doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    font-weight: 400;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ct);
    background: transparent;
    border: 0.5px solid var(--sep2);
    padding: 0.45em 0.9em;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--tr);
}

.doc-btn:hover {
    border-color: rgba(234, 228, 219, 0.35);
}

.doc-btn--sm {
    font-size: calc(var(--testo-xs) - 0.03rem);
    padding: 0.38em 0.75em;
}

.doc-btn--xs {
    font-size: calc(var(--testo-xs) - 0.06rem);
    padding: 0.32em 0.62em;
}

.doc-btn__icon {
    font-size: 0.6em;
}

.doc-btn__arrow {
    font-size: 0.7em;
}


/* ════════════════════════════════════════════════════════════
   ① HEADER — titolo grande sx + testo editoriale dx
   ════════════════════════════════════════════════════════════ */
.page-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5.1rem 2.5rem 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: flex-start;
}

.header-left {}

.page-cat {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--cm2);
    margin-bottom: 0.15rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.page-cat::before {
    content: '';
    display: block;
    width: 1.4rem;
    height: 0.5px;
    background: var(--cm2);
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5.5vw, 4.8rem);
    font-weight: 400;
    line-height: 1;
    color: var(--ct);
    white-space: nowrap;
}

.page-title .dim {
    color: rgba(234, 228, 219, 0.28);
    font-style: italic;
}

.header-right {
    padding-left: 3rem;
    border-left: 0.5px solid var(--sep2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 2.9rem;
}

.page-intro {
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    line-height: 1.95;
    color: var(--cm);
    font-weight: 300;
}

.page-count {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cm2);
    margin-top: 1.5rem;
    font-weight: 400;
}


/* ════════════════════════════════════════════════════════════
   ② HERO POSTER 21:9
   ════════════════════════════════════════════════════════════ */
.hero-media {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5rem;
    border-top: 0.5px solid var(--sep);
}

.hero-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #161616;
    cursor: pointer;
}

.hero-poster__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-poster:hover .hero-poster__img {
    transform: scale(1.02);
}

.hero-poster__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.hero-poster__video.is-playing {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(1.4rem, 3vw, 2.4rem);
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.42) 52%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-overlay__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 0.45rem;
}

.hero-overlay__desc {
    font-size: var(--testo-sm);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.52);
    max-width: 440px;
    line-height: 1.65;
}


/* ════════════════════════════════════════════════════════════
   ③ FEATURED INFO CARD
   ════════════════════════════════════════════════════════════ */
.featured-info {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.6rem 2.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
    border-bottom: 0.5px solid var(--sep);
}

.fi-main {}

.fi-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.55rem;
}

.fi-desc {
    font-size: var(--testo-sm);
    line-height: 1.9;
    color: var(--cm);
    max-width: 490px;
}

.fi-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.9rem;
    padding-top: 0.1rem;
    flex-shrink: 0;
}

.fi-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 0.2rem;
}

.fi-meta-item {
    display: contents;
}

.fi-meta-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cm2);
    padding-right: 1rem;
    white-space: nowrap;
    align-self: baseline;
    font-weight: 400;
}

.fi-meta-value {
    font-size: var(--testo-sm);
    color: var(--ct);
    align-self: baseline;
    font-weight: 300;
}

.fi-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.fi-actions {
    display: flex;
    gap: 0.65rem;
}


/* ════════════════════════════════════════════════════════════
   ③bis FEATURED WRAP — Layout 2-col: immagine 3:2 (50%) | scheda + descrizione (50%)
   ════════════════════════════════════════════════════════════ */
.featured-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 960px;
    margin: 3.5rem auto 6.5rem;
    padding: 0 2rem;
}

/* Top row: immagine (50%) + scheda (50%) — default flex-direction row */
.featured-wrap__top {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: stretch;
}

/* Reverse variant: scheda a sinistra — flex-direction row-reverse */
.featured-wrap--reverse .featured-wrap__top {
    flex-direction: row-reverse;
}

/* Bottom row: descrizione centralizzata e giustificata */
.featured-wrap__bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.featured-wrap__bottom .fi-desc {
    max-width: 800px;
    text-align: justify;
    hyphens: auto;
}

/* Hero immagine: 50% width, proporzioni naturali dell'immagine */
.featured-wrap .hero-media {
    flex: 0 0 50%;
    width: 50%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
}

/* Rimuove aspect-ratio fisso: l'immagine determina l'altezza */
.featured-wrap .hero-poster {
    aspect-ratio: unset;
    height: auto;
}

/* Img a proporzioni naturali (non più ritagliata con cover) */
.featured-wrap .hero-poster__img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
}

/* Il video resta absolute sopra l'immagine, che ora ha altezza naturale */
.featured-wrap .hero-poster__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info: 50% width, si allunga all'altezza dell'immagine e distribuisce il contenuto */
.featured-wrap .featured-info {
    flex: 0 0 50%;
    width: 50%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

/* Header dentro scheda: titolo + sottotitolo */
.featured-info .fi-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.featured-info .hero-overlay__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--ct);
}

.featured-info .hero-overlay__desc {
    font-size: var(--testo-sm);
    line-height: 1.9;
    color: var(--cm);
}

/* Titolo immagine PNG (custom title) nella card grande */
.fi-title-img-link {
    display: block;
    line-height: 0;
}

.fi-title-img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    object-position: left center;
    filter: var(--title-img-filter, none); /* per invertire su dark mode se serve */
}


.featured-wrap .fi-side {
    flex: 1;
    align-items: flex-start;
    padding: 0;
    flex-direction: column;
    gap: 1rem;
    border-left: none;
    border-bottom: none;
    padding-bottom: 0;
}

/* Responsive: stack verticale su mobile */
@media (max-width: 767px) {
    .featured-wrap {
        gap: 1.8rem;
        margin: 2.5rem auto 0;
    }

    .featured-wrap__top {
        flex-direction: column;
        gap: 1.8rem;
    }

    .featured-wrap--reverse .featured-wrap__top {
        flex-direction: column;
    }

    .featured-wrap .hero-media {
        flex: none;
        width: 100%;
    }

    .featured-wrap .featured-info {
        flex: none;
        width: 100%;
        gap: 1.5rem;
    }

    .featured-wrap .fi-side {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Override: fix cards-grid max-width a 960px */
.cards-grid {
    max-width: 960px;
}

/* Override: fix list-items max-width a 960px */
.list-items {
    max-width: 960px;
}

/* Override: fix page-header max-width a 960px */
.page-header {
    max-width: 960px;
}

/* Override: fix sec-header max-width a 960px */
.sec-header {
    max-width: 960px;
}

/* Override: fix metodo-inner max-width a 960px */
.metodo-inner {
    max-width: 960px;
}

/* Override: fix editorial-inner max-width a 960px */
.editorial-inner {
    max-width: 960px;
}

/* Override: fix archive-row max-width a 960px */
.archive-row {
    max-width: 960px;
}


/* ════════════════════════════════════════════════════════════
   ④ METODO — blocco separatore
   ════════════════════════════════════════════════════════════ */
.metodo-section {
    background: var(--bg2);
    border-top: 0.5px solid var(--sep);
    border-bottom: 0.5px solid var(--sep);
    padding: 3rem 0;
}

.metodo-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 4rem;
    align-items: start;
}

.metodo-label {
    padding-top: 0.4rem;
}

.metodo-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.metodo-body p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: var(--testo-base);
    line-height: 1.8;
    color: rgba(234, 228, 219, 0.65);
    margin: 0;
}

.metodo-firma {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cm2);
    font-weight: 400;
    margin: 0;
}

/* Statement variant (for Works page) — centered, no label */
.metodo-section--statement .metodo-inner {
    grid-template-columns: 1fr;
    gap: 0;
}

.metodo-body--centered {
    text-align: center;
    align-items: center;
}

.metodo-body--centered p {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    font-size: clamp(1.15rem, 1.4vw, 1.3rem);
}


/* ════════════════════════════════════════════════════════════
   ⑤ CARDS — 3 opere in griglia
   ════════════════════════════════════════════════════════════ */
.cards-section {
    padding: 7rem 0 3rem;
}

.cards-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.doc-card-m {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.doc-card-m__media {
    position: relative;
    overflow: hidden;
    background: #161616;
    aspect-ratio: 3 / 2;
    width: 100%;
}

.doc-card-m__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.doc-card-m:hover .doc-card-m__img {
    transform: scale(1.04);
}

.doc-card-m__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.doc-card-m__video.is-playing {
    opacity: 1;
    z-index: 2;
}

.doc-card-m__content {
    padding: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.26rem;
}

.doc-card-m__tags {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.04rem;
}

.doc-card-m__year {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cm2);
    font-weight: 400;
}

.doc-card-m__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.88rem, 1.1vw, 1rem);
    font-weight: 400;
    line-height: 1.25;
}

.doc-card-m__title a {
    color: var(--ct);
    text-decoration: none;
    transition: opacity var(--tr);
}

.doc-card-m__title a:hover {
    opacity: 0.6;
}

.doc-card-m__director {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cm2);
    font-weight: 400;
}

.doc-card-m__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.38rem;
}


/* ════════════════════════════════════════════════════════════
   ⑥ EDITORIAL NOTE
   ════════════════════════════════════════════════════════════ */
.editorial-section {
    background: var(--bg);
    padding: 4.5rem 0;
    margin-top: 3rem;
}

.editorial-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 4rem;
    align-items: center;
}

.editorial-label {
    padding-top: 0;
    white-space: nowrap;
    align-self: center;
}

.editorial-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.editorial-body p {
    font-size: var(--testo-base);
    line-height: 1.9;
    color: var(--cm);
    margin: 0;
}

.editorial-text {
    font-size: var(--testo-base);
    line-height: 1.9;
    color: var(--cm);
    max-width: 580px;
}

.editorial-text + .editorial-text {
    margin-top: 0.85rem;
}


/* ════════════════════════════════════════════════════════════
   ⑦ LIST ITEMS — righe con frame hover
   ════════════════════════════════════════════════════════════ */
.list-section {
    padding: 2.5rem 0 0;
    margin-top: 3.5rem;
}

.list-items {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.doc-list-item {
    position: relative;
    overflow: hidden;
    border-top: 0.5px solid var(--sep);
    padding: 1.1rem 0;
    cursor: pointer;
}

.doc-list-item:last-child {
    border-bottom: 0.5px solid var(--sep);
}

.doc-list-item__bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.doc-list-item:hover .doc-list-item__bg {
    opacity: 1;
}

.doc-list-item__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) saturate(0.5);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.doc-list-item__bg-img.is-active {
    opacity: 1;
}

.doc-list-item__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.doc-list-item__row-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.doc-list-item__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    font-weight: 400;
    line-height: 1.2;
}

.doc-list-item__title a {
    color: var(--ct);
    text-decoration: none;
    transition: opacity var(--tr);
}

.doc-list-item:hover .doc-list-item__title a {
    opacity: 0.75;
}

.doc-list-item__year {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cm);
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 400;
}

.doc-list-item__row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.doc-list-item__left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.doc-list-item__tags {
    display: flex;
    gap: 0.3rem;
}

.doc-list-item__director {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cm2);
    font-weight: 400;
}

.doc-list-item__actions {
    display: flex;
    gap: 0.5rem;
}


/* ════════════════════════════════════════════════════════════
   ⑧ ARCHIVIO — riga singola
   ════════════════════════════════════════════════════════════ */
.archive-row {
    background: #000000;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 0.5px solid var(--sep);
    border-bottom: 0.5px solid var(--sep);
}

.archive-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cm);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color var(--tr);
}

.archive-link::before {
    content: '';
    display: block;
    width: 1.8rem;
    height: 0.5px;
    background: currentColor;
    transition: width var(--tr);
}

.archive-link:hover {
    color: var(--ct);
}

.archive-link:hover::before {
    width: 2.8rem;
}

.archive-count {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cm2);
    font-weight: 400;
}


/* ════════════════════════════════════════════════════════════
   ⑨ CTA COLLABORAZIONI
   ════════════════════════════════════════════════════════════ */
.cta-row {
    background: #000000;
    max-width: 1100px;
    margin: 5rem auto;
    padding: 2.5rem 2.5rem 4rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 3rem;
    border-top: 0.5px solid var(--sep);
    border-bottom: 0.5px solid var(--sep);
}

.cta-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--xs);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--cm2);
    margin-bottom: 0.65rem;
    font-weight: 400;
}

.cta-statement {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.02rem, 1.35vw, 1.2rem);
    color: rgba(234, 228, 219, 0.55);
    line-height: 1.6;
}

.cta-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.cta-sub {
    font-size: var(--testo-sm);
    color: var(--cm2);
    text-align: right;
    line-height: 1.6;
}

.btn-cta {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--testo-xs);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ct);
    background: transparent;
    border: 0.5px solid rgba(234, 228, 219, 0.22);
    padding: 0.75em 2em;
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--tr), background var(--tr);
}

.btn-cta:hover {
    border-color: rgba(234, 228, 219, 0.5);
    background: rgba(234, 228, 219, 0.04);
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .page-header {
        grid-template-columns: 1fr;
        padding: calc(var(--navbar-altezza) + 0.6rem) 1.5rem 2.5rem;
    }

    .header-right {
        padding-left: 0;
        border-left: none;
        border-top: 0.5px solid var(--sep2);
        padding-top: 1.5rem;
        margin-top: 1rem;
    }

    .hero-media {
        padding: 0 1.5rem;
    }

    .featured-info {
        grid-template-columns: 1fr;
        padding: 1.4rem 1.5rem 2.5rem;
    }

    .fi-side {
        align-items: flex-start;
    }

    .fi-tags {
        justify-content: flex-start;
    }

    .metodo-inner,
    .editorial-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .list-items,
    .sec-header,
    .archive-row,
    .cta-row {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .cta-row {
        flex-direction: column;
        gap: 2rem;
    }

    .cta-action {
        align-items: flex-start;
    }

    .cta-sub {
        text-align: left;
    }
}


/* ════════════════════════════════════════════════════════════
   CONTRAST & TEXT COLORS — Testo chiaro su sezioni grigie
   ════════════════════════════════════════════════════════════ */

.metodo-body p,
.editorial-text,
.cta-statement {
    color: var(--cm) !important;
}

.sec-label,
.metodo-label .sec-label,
.editorial-label .sec-label,
.archive-count,
.cta-label,
.cta-sub {
    color: var(--cm) !important;
}


/* ════════════════════════════════════════════════════════════
   WORKS PAGE — Hero strip + Subcategory cards
   ════════════════════════════════════════════════════════════ */

/* Forma, sfondo e adattamento arrivano dal modulo video (.m-video in main.css):
   qui resta solo la spaziatura specifica di questa sezione. */
.works-hero-strip {
    margin: 1.5rem 0 0;
}

.works-subcats {
    max-width: 960px;
    margin: 3.5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.works-subcat-card {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.works-subcat-card__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(0.8);
    transition: filter 0.3s ease;
}

.works-subcat-card__cover--placeholder {
    background: #1a1a1a;
}

.works-subcat-card__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.works-subcat-card:hover .works-subcat-card__video {
    opacity: 1;
}

.works-subcat-card:hover .works-subcat-card__cover {
    filter: brightness(0.3) saturate(0.6);
}

.works-subcat-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
    text-align: center;
}

.works-subcat-card__info h3 {
    font-family: 'Barlow Condensed';
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ct);
    margin: 0;
}

.works-subcat-card__link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

@media (max-width: 1023px) {
    .works-subcats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .works-subcats {
        grid-template-columns: 1fr;
    }

}

.partners-section {
    max-width: 1100px;
    margin: 3.5rem auto;
    padding: 0 2rem;
}

.partners-label {
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: var(--xs);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--cm2);
    margin-bottom: 2rem;
    font-weight: 400;
}

.partners-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.partner-item {
    flex: 0 1 auto;
}

.partner-logo {
    max-height: 60px;
    max-width: 200px;
    display: block;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-item a:hover .partner-logo {
    opacity: 1;
}

@media (max-width: 767px) {
    .partners-container {
        gap: 1.5rem;
    }

    .partner-logo {
        max-height: 50px;
    }
}

/* ════════════════════════════════════════════════════════════
   SUBCATEGORY PAGES — Video Player
   ════════════════════════════════════════════════════════════ */

.subcategory-video-section {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Il contenitore video e il suo adattamento arrivano dal modulo condiviso
   (.m-video in main.css). Qui non serve altro: .subcategory-video-section
   sopra definisce larghezza e margini della sezione che lo ospita. */
