/*
Theme Name: Minto
Theme URI: https://marcominto.it
Author: Giulio Vergara & Gigi Grasso
Author URI: maredmc.it
Description: Personal portfolio theme for Marco Minto — artist, painter, creator. Dark aesthetic with vibrant color accents. GSAP + Lenis powered.
Version: 6.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minto
Tags: portfolio, artist, dark, custom-menu, custom-logo, full-width-template, translation-ready
*/

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

:root {
    --black: #000000;
    --white: #ffffff;
    --venezia: #AAE5CC;
    --viola: #B558FE;
    --pt-cyan:   #00F3D8;
    --pt-yellow: #FFFFCE;
    --pt-purple: #C18DFF;
    --arancio: #FF9D00;
    --giallo: #F3FD00;
    --max-width: 1512px;
    --page-padding: 25px;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Urbanist', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

body, *, *::before, *::after,
html, video, a, button, input, textarea, select, img, div, section, header, footer, nav, form {
    cursor: none !important;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 9999;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.custom-cursor.default {
    background-image: url('assets/img/cursor%20normal.png');
}

.custom-cursor.hover {
    background-image: url('assets/img/Cursor_hover.png');
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--page-padding) var(--page-padding);
    mix-blend-mode: difference;
}

.header-nav-left {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.header-nav-left a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 12px;
    text-transform: uppercase;
}

.header-nav-left a:hover {
    color: var(--venezia);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.header-separator {
    width: 8px;
    height: 13px;
    flex-shrink: 0;
}

.header-separator img {
    width: 100%;
    height: 100%;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-logo {
    display: block;
    height: 33px;
    width: auto;
    transition: height 0.5s ease;
}

.header.header--scrolled .header-logo {
    height: 26px;
}

.header-logo img {
    height: 100%;
    width: auto;
    display: block;
}

.header-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-socials a {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 10px;
    box-sizing: content-box;
    color: var(--white);
    transition: color 0.3s ease;
}

.header-socials a:hover {
    color: var(--venezia);
}

.header-socials svg {
    width: 100%;
    height: 100%;
    display: block;
}

.header-language {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.header-language-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
    pointer-events: none;
}

.header-language-arrow img {
    width: 100%;
    height: 100%;
}

.header-language.is-open .header-language-arrow {
    transform: rotate(180deg);
}

/* ── Language dropdown ──────────────────────────────────────── */
.lang-current {
    cursor: pointer;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 6px;
    padding: 6px 0;
    min-width: 64px;
    z-index: 200;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.header-language.is-open .lang-dropdown {
    display: flex;
}

.lang-dropdown a {
    display: block;
    width: 100%;
    padding: 8px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-align: center;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.lang-dropdown a:hover {
    opacity: 0.6;
}

/* Hero Section — video sticky, intro scrolls over it.
   z-index: 5 → above footer (1) but below content-wrapper (10) */
.hero {
    position: relative;
    width: 100%;
    z-index: 5;
}

/* Video wrapper — pinned by GSAP ScrollTrigger while intro scrolls over */
.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 10;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 50vw;
    max-width: 700px;
    height: auto;
    mix-blend-mode: difference;
}

.hero-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero Intro — scrolls naturally over the sticky video.
   Transparent so the video is visible underneath while it darkens. */
.hero-intro {
    position: relative;
    z-index: 2;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 60px var(--page-padding);
}

.hero-intro-content {
    max-width: 719px;
}

.hero-intro h1 {
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 40px;
}

.hero-intro-text {
    font-size: 15px;
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 50px;
}

/* Main Content Wrapper — scrolls over the hero */
.content-wrapper {
    position: relative;
    z-index: 10;
    background: var(--black);
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--black);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 12px 0;
    background-color: transparent;
    border: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.cta-link:hover {
    opacity: 0.5;
}

/* Homepage — CTA bianche con hover venezia */
.home .cta-link {
    opacity: 1;
}

.home .cta-link:hover {
    opacity: 1;
}

.cta-link-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cta-link-icon img {
    width: 100%;
    height: 100%;
}

/* Tiles Section */
.section-tiles {
    background: var(--black);
    padding: 0 0 120px 0;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.tile {
    padding-bottom: 30px;
}

.tile-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 504 / 600;
    border: 1px solid var(--white);
    border-right: none;
    overflow: hidden;
    background: var(--black);
}

.tile:last-child .tile-image-container {
    border-right: none;
}

.tile:first-child .tile-image-container {
    border-left: none;
}

.tile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.tile-image.alt {
    opacity: 0;
}

.tile-image-container:hover .tile-image.primary {
    opacity: 0;
}

.tile-image-container:hover .tile-image.alt {
    opacity: 1;
}

.tile-label {
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
    color: var(--white);
    text-align: center;
}

/* Marquee Section */
.section-marquee {
    background: var(--viola);
    color: var(--white);
    padding: 80px var(--page-padding);
    position: relative;
    height: 534px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.marquee-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 294px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
}

.marquee-text {
    margin-right: 80px;
}

.marquee-cta {
    display: inline-flex;
    align-items: center;
    margin-left: 40px;
    margin-right: 80px;
    font-size: 24px;
    letter-spacing: 0;
    word-spacing: 0.1em;
    white-space: nowrap;
    width: auto;
}

.marquee-hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.marquee-hover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Alt Marquee - Dal Negro */
.section-marquee-alt {
    background: var(--arancio);
    color: var(--black);
}

/* Third Marquee - Venezia */
.section-marquee-third {
    background: var(--venezia);
    color: var(--black);
}

/* Quote Section */
.section-quote {
    background: var(--black);
    padding: 200px var(--page-padding);
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.quote-content {
    position: relative;
}

.quote-text {
    position: relative;
    z-index: 2;
    font-size: 80px;
    font-weight: 400;
    line-height: 1.1;
    max-width: 100%;
}

.quote-decoration {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

.quote-decoration img {
    width: 100%;
    height: 100%;
    opacity: 0.45;
}

/* About Alt Section */
.section-about-alt {
    background: var(--black);
    padding: 120px var(--page-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-about-alt-content {
    max-width: 719px;
    margin-left: auto;
}

.section-about-alt h2 {
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 40px;
}

.section-about-alt-text {
    font-size: 15px;
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 50px;
}

/* Collaborations Section */
.section-collaborations {
    background: var(--black);
    padding: 120px var(--page-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.collab-title {
    font-size: 66px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 60px;
}

.collab-title strong {
    font-weight: 600;
}

.collab-link {
    display: inline;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.collab-link:hover {
    color: var(--venezia);
}

.collab-description {
    font-size: 15px;
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.collab-hover-image {
    position: fixed;
    width: 200px;
    height: 260px;
    pointer-events: none;
    z-index: 100;
    display: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.collab-hover-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--venezia);
    color: var(--black);
    z-index: 1;
    max-width: none;
}

.footer-inner {
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 20px;
}

.footer-left {
    position: relative;
    overflow: hidden;
}

.footer-map {
    position: absolute;
    top: -55px;
    left: 0;
    width: 100%;
    height: calc(100% + 55px);
    min-height: calc(500px + 55px);
    border: none;
    display: block;
}

/* Footer variante pagine interne */
.footer-main--inner {
    align-items: start;
}

.footer-left--text {
    display: flex;
    flex-direction: column;
    gap: 45px;
    padding: 90px var(--page-padding) 45px;
    overflow: visible;
}

.footer-inner-headline {
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
    color: var(--black);
}

.footer-right--inner {
    padding-top: 90px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    padding: 60px var(--page-padding) 0px;
}

.footer-headline {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 50px;
}

.footer-headline strong {
    font-weight: 600;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--black);
    padding: 10px 0;
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    color: var(--black);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.form-input:focus {
    outline: none;
    background: var(--black);
    color: var(--white);
    border-bottom-color: var(--white);
    padding-left: 10px;
    padding-right: 10px;
}

.form-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 15px;
}

.form-filters-label {
    margin-right: 5px;
}

.filter-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    padding: 8px 0;
}

.filter-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--black);
    background: transparent;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.filter-dot:hover {
	background-color: black;
}

.filter-dot.active {
    background: var(--black);
}

.form-textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--black);
    padding: 10px 0;
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    color: var(--black);
    resize: none;
    min-height: 100px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.form-textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    background: var(--black);
    color: var(--white);
    border-bottom-color: var(--white);
    padding-left: 10px;
    padding-right: 10px;
}

.form-textarea:focus::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-textarea-hint {
    display: none;
    font-size: 11px;
    letter-spacing: 0.33px;
    opacity: 0.5;
    margin-top: -25px;
}

.form-textarea.is-prefilled ~ .form-textarea-hint {
    display: block;
}

.form-cta {
    align-self: flex-end;
    color: var(--black);
}

.cta-arrow {
    font-size: 18px;
	transform: translateX(0px);
	transition: all 0.3s ease;
}

.home .cta-link:hover .cta-arrow {
	transform: translateX(5px);
	transition: all 0.3s ease;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    padding: 40px var(--page-padding);
}

.footer-bottom-left {
    display: flex;
    gap: 20px;
}

.footer-bottom-left a {
    color: var(--black);
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.footer-bottom-left a:hover {
    opacity: 0.5;
}

.footer-bottom-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-bottom-nav {
    display: flex;
    align-items: center;
}

.footer-bottom-nav a {
    color: var(--black);
    text-decoration: none;
    font-size: 11px;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 15px;
    font-weight: 600;
}

.footer-bottom-nav a:hover {
    opacity: 0.5;
}

.footer-bottom-separator {
    width: 1.5px;
    height: 15px;
    font-size: 18px;
    background: rgb(56 77 68);
    transform: rotate3d(1, 1, 1, 45deg);
}

.footer-bottom-socials {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-bottom-socials a {
    width: 16px;
    height: 16px;
    opacity: 1;
    padding: 10px;
    box-sizing: content-box;
    color: var(--black);
    transition: opacity 0.3s ease;
}

.footer-bottom-socials a:hover {
    opacity: 0.7;
}

.footer-bottom-socials svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-bottom-logo {
    width: 110px;
    height: auto;
}

.footer-bottom-logo img {
    width: 100%;
    height: 100%;
}

.footer-credits {
    font-size: 12px;
    opacity: 1;
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.footer-credits a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-credits a:hover {
    opacity: 0.7;
}

/* ══════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════ */

.contact-page {
    background: var(--black);
}

/* ── 1. Parallax ── */
.contact-parallax {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 0 var(--page-padding);
    min-height: 100vh;
    align-items: start;
}

.contact-parallax-image {
    position: relative;
    top: auto;
    padding-top: 110px;
    align-self: start;
    will-change: transform;
}

.contact-parallax-image img {
    width: 100%;
    max-width: 504px;
    height: 600px;
    object-fit: cover;
    display: block;
}

.contact-parallax-text {
    padding-top: 48vh;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 45px;
    will-change: transform;
}

.contact-bio-title {
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
    color: var(--white);
}

.contact-bio-body {
    font-size: 15px;
    color: var(--white);
    opacity: 0.7;
    line-height: 1.7;
}

.contact-bio-body p {
    font-size: 1.2rem;
}

/* ── 2. Form section ── */
.contact-form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 120px var(--page-padding);
    background: var(--black);
}

.page-template-page-contact .contact-form-section {
    padding: 0px var(--page-padding) 45vh;
    margin: -35vh 0;
}

.contact-form-left {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.contact-form-title {
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
    color: var(--white);
}

.contact-form-intro {
    font-size: 15px;
    color: var(--white);
    opacity: 0.7;
    line-height: 1.7;
    letter-spacing: 0.03em;
}

/* Inputs bianchi sul form dark */
.contact-form-section .form-input,
.contact-form-section .form-textarea {
    color: var(--white);
    border-bottom-color: var(--white);
}

.contact-form-section .form-input::placeholder,
.contact-form-section .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form-section .form-input:focus,
.contact-form-section .form-textarea:focus {
    background: var(--white);
    color: var(--black);
    border-bottom-color: var(--black);
    padding-left: 10px;
    padding-right: 10px;
}

.contact-form-section .form-input:focus::placeholder,
.contact-form-section .form-textarea:focus::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.contact-form-section .filter-dot {
    border-color: var(--white);
}

.contact-form-section .filter-dot.active {
    background: var(--white);
}

.contact-form-section .form-filters-label,
.contact-form-section .filter-option {
    color: var(--white);
}

.contact-form-section .cta-link {
    color: var(--white);
}

.form-cta-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
	flex-wrap: wrap;
}

.contact-msg {
    font-size: 15px;
}

/* ── 3. Mappa ── */
.contact-map {
    width: 100%;
    height: 750px;
    position: relative;
    overflow: hidden;
}

.contact-map iframe {
    position: absolute;
    top: -55px;
    left: 0;
    width: 100%;
    height: calc(100% + 55px);
    border: none;
    display: block;
}

/* ── Overlay anti-scroll sulle mappe ───────────────────────── */
.map-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
    background: transparent;
}

.map-overlay.is-unlocked {
    pointer-events: none;
}

/* ── Footer variante dark ── */
.footer--contact {
    background: var(--black);
    position: relative;
}

.footer-bottom--dark {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom--dark .footer-bottom-left a,
.footer-bottom--dark .footer-bottom-nav a {
    color: var(--white);
}

.footer-bottom--dark .footer-bottom-nav a:hover,
.footer-bottom--dark .footer-bottom-left a:hover {
    opacity: 0.5;
}

.footer-bottom-separator--dark {
    background: rgba(255, 255, 255, 0.3);
}

.footer-bottom-socials--dark a {
    color: var(--white);
}

.footer-bottom-socials--dark svg {
    /* inherits currentColor from parent <a> */
}

.footer-credits--dark {
    color: var(--white);
}

/* ══════════════════════════════════════════
   WORKS PAGE
══════════════════════════════════════════ */

.works-page {
    background: var(--black);
    min-height: 100vh;
}

.works-hero {
    padding: 180px var(--page-padding) 40px;
}

.works-hero-content {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.works-title {
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
    color: var(--white);
}

.works-intro {
    font-size: 15px;
    color: var(--white);
    opacity: 1;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

.works-filters {
    display: flex;
    gap: 30px;
    align-items: center;
}

.works-filter {
    background: none;
    border: none;
    color: var(--white);
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    opacity: 0.5;
    cursor: none;
    padding: 0;
    transition: opacity 0.3s ease;
}

.works-filter.active {
    opacity: 1;
}

.works-filter:hover {
	opacity: 1;
	transition: opacity 0.3s ease;
}

.works-grid-section {
    background: var(--black);
    padding: 20px var(--page-padding) 60px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 30px;
}

.works-tile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
}

.works-tile-image {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 718 / 572;
    position: relative;
}

.works-tile-img-primary,
.works-tile-img-hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.works-tile-img-hover {
    opacity: 0;
}

.works-tile:hover .works-tile-img-primary {
    transform: scale(1.03);
}

.works-tile:hover .works-tile-img-hover {
    opacity: 1;
    transform: scale(1.03);
}

.works-tile-title {
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
    color: var(--white);
    text-align: center;
}

.works-empty {
    color: var(--white);
    opacity: 0.5;
    padding: 48px;
    grid-column: 1 / -1;
}

/* ══════════════════════════════════════════
   PAGE TRANSITION
══════════════════════════════════════════ */

#page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.pt-layer {
    position: absolute;
    inset: 0;
    transform: scaleY(1);
    transform-origin: top center;
    will-change: transform;
}

.pt-layer-cyan {
    background: var(--pt-cyan);
}

.pt-layer-yellow {
    background: var(--pt-yellow);
}

.pt-layer-purple {
    background: var(--pt-purple);
}

/* ── Active nav link ── */
.header-nav-left a.current-page {
    opacity: 1;
}

/* Mobile menu toggle — hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0;
}

/* Mobile menu overlay — hidden by default */
.mobile-menu-overlay {
    display: none;
}

/* SplitType helpers */
.split-char, .split-word, .split-line {
    display: inline-block;
}

/* Responsive */
@media (max-width: 1024px) {
    .tiles-grid {
        grid-template-columns: 1fr;
    }

    .tile-image-container {
        border-right: 1px solid var(--white);
        border-bottom: none;
    }

    .tile:last-child .tile-image-container {
        border-bottom: 1px solid var(--white);
    }

    .section-marquee {
        height: auto;
        padding: 60px var(--page-padding);
    }

    .marquee-content {
        font-size: 120px;
    }

    .quote-text {
        font-size: 54px;
    }

    .quote-decoration {
        width: 250px;
        height: 250px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-right {
        padding-left: 0;
        padding-top: 40px;
    }

    .footer-map {
        min-height: 300px;
    }
}

@media (max-width: 768px) {

    /* ── Cursor: hide on mobile ── */
    body, *, *::before, *::after,
    html, video, a, button, input, textarea, select, img, div, section, header, footer, nav, form {
        cursor: auto !important;
    }
    .custom-cursor {
        display: none !important;
    }

    /* ── Typography scale ── */
    .hero-intro h1,
    .section-about-alt h2,
    .collab-title {
        font-size: 36px;
    }

    .tile-label {
        font-size: 42px;
    }

    .quote-text {
        font-size: 32px;
    }

    .footer-headline {
        font-size: 28px;
    }

    /* ── Header: logo left + MENU right ── */
    .header-nav-left,
    .header-socials,
    .header-language {
        display: none;
    }

    .header-center {
        position: static;
        transform: none;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-nav-right {
        gap: 0;
    }

    /* ── Tiles: card-stacking (single column, pinned) ── */
    .section-tiles {
        padding: 0;
    }

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

    .tile {
        padding-bottom: 0;
        min-height: 90vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        text-decoration: none;
    }

    .tile-image-container {
        border-right: 1px solid var(--white);
        border-bottom: none;
        aspect-ratio: auto;
        flex: 0 0 76vh;
        height: 76vh;
    }

    .tile:last-child .tile-image-container {
        border-bottom: 1px solid var(--white);
    }

    .tile-label {
        padding: 20px var(--page-padding);
        background: var(--black);
        position: relative;
        z-index: 2;
        flex: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .section-tiles {
        margin-bottom: 60px;
    }

    /* ── Marquee: image always visible on mobile ── */
    .marquee-hover-image {
        opacity: 1 !important;
    }

    .section-marquee {
        height: auto;
        padding: 50px var(--page-padding);
    }

    .marquee-content {
        font-size: 100px;
    }

    /* ── Collaborations: image always visible, bottom-right ── */
    .section-collaborations {
        position: relative;
        padding-bottom: 100px; /* space for the image */
    }

    .collab-hover-image {
        position: absolute !important;
        bottom: 40px;
        right: var(--page-padding);
        left: auto !important;
        top: auto !important;
        display: block !important;
        width: 150px;
        height: 250px;
        z-index: 0;
        opacity: 0.6;
    }

    .collab-description {
        max-width: 200px;
    }

    /* ── Quote ── */
    .section-quote {
        padding: 80px var(--page-padding);
    }

    .quote-decoration {
        width: 180px;
        height: 180px;
    }

    /* ── About alt ── */
    .section-about-alt {
        padding: 80px var(--page-padding);
    }

    .section-about-alt-content {
        margin-left: 0;
    }

    /* ── Footer mobile: posizione normale (no fixed) ── */
    .footer {
        position: static;
    }

    .footer-left--text {
        display: none;
    }

    .footer-left {
        display: block;
        height: auto;
    }

    .footer-map {
        position: absolute;
        top: -55px;
        left: 0;
        width: 100%;
        height: calc(100% + 55px);
        min-height: unset;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-right {
        padding: 40px var(--page-padding) 0;
    }

    .footer-right--inner {
        padding-top: 40px;
    }

    .footer-form {
        gap: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-input,
    .form-textarea {
        font-size: 14px;
    }

    .form-textarea {
        min-height: 70px;
    }

    .form-filters {
        font-size: 13px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .filter-dot {
        width: 20px;
        height: 20px;
    }


    .form-cta {
        align-self: center;
    }

    /* Footer bottom: colonna, riordinata come screenshot */
    .footer-bottom {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
        padding: 60px var(--page-padding) 30px;
    }

    /* Ordine: 1 nav+socials, 2 logo, 3 cookies */
    .footer-bottom-group {
        order: 1;
        flex-direction: column;
        gap: 30px;
        align-items: center;
        width: 100%;
    }

    .footer-bottom-logo {
        order: 2;
        width: 180px;
    }

    .footer-bottom-left {
        order: 3;
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }

    .footer-bottom-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }

    .footer-bottom-nav a {
        font-size: 13px;
        padding: 8px 10px;
    }

    /* Icone social più grandi */
    .footer-bottom-socials {
        gap: 25px;
    }

    .footer-bottom-socials a {
        width: 32px;
        height: 32px;
        padding: 5px;
    }

    /* Credits nel flusso normale (non più absolute) */
    .footer-credits {
        position: static;
        padding: 0 var(--page-padding) 25px;
        width: 100%;
        font-size: 12px;
    }

    /* ── Works page ── */
    .works-hero {
        padding: 140px var(--page-padding) 40px;
    }

    .works-hero-content {
        max-width: 100%;
    }

    .works-title {
        font-size: 36px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .works-tile-title {
        font-size: 42px;
    }

    .works-filters {
        flex-wrap: wrap;
        gap: 20px;
    }

    /* ── Contact page ── */
    .contact-parallax,
    .contact-form-section {
        grid-template-columns: 1fr;
    }

    .contact-parallax-image {
        position: relative;
        top: auto;
        padding-top: 50px;
    }

    .contact-parallax-image img {
        max-width: 100%;
        height: 400px;
    }

    .contact-parallax-text {
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .contact-bio-title,
    .contact-form-title {
        font-size: 36px;
    }

    .contact-map {
        height: 400px;
    }

    /* ── Mobile menu toggle button ── */
    .mobile-menu-toggle {
        display: block;
    }

    /* ── Menu overlay: half screen ── */
    .mobile-menu-overlay {
        position: fixed;
        display: flex;
        top: 0;
        left: 0;
        right: 0;
        height: auto;
        max-height: 0;
        background: var(--black);
        z-index: 9998;
        overflow: hidden;
        flex-direction: column;
        padding: 0 var(--page-padding);
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-overlay.open {
        display: flex;
        max-height: 60vh;
        padding: 25px var(--page-padding) 40px;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .mobile-menu-header .header-logo {
        height: 17px;
        width: auto;
    }

    .mobile-menu-header .header-language {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 15px;
        color: var(--white);
    }

    .mobile-menu-header .header-language-arrow {
        width: 16px;
        height: 16px;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        color: var(--white);
        font-family: 'Urbanist', sans-serif;
        font-size: 15px;
        font-weight: 400;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        padding: 0;
    }

    .mobile-menu-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }

    .mobile-menu-nav a {
        display: block;
        font-size: 36px;
        font-weight: 400;
        color: var(--white);
        text-decoration: none;
        line-height: 1.3;
    }

    .mobile-menu-socials {
        display: flex;
        gap: 20px;
        margin-top: auto;
    }

    .mobile-menu-socials a {
        width: 24px;
        height: 24px;
        color: var(--white);
    }

    .mobile-menu-socials svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    /* Hide header MENU when overlay is open */
    body.menu-open .mobile-menu-toggle {
        display: none;
    }

    body.menu-open .header {
        z-index: 9997;
    }

    .page-template-page-contact .contact-form-section
 {
    padding: 0px var(--page-padding) 120px;
    margin: 0 0;
}
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE WORK — Project Page
   Corrisponde al design Figma D/Progetto-Opera-1
═══════════════════════════════════════════════════════════════ */

/* 1. Hero ─────────────────────────────────────────────────── */
.project-hero {
    width: 100%;
    height: 750px;
    overflow: hidden;
}

.project-hero img,
.project-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 2. Info Module ───────────────────────────────────────────── */
.project-info {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: flex-end;
    padding: 90px var(--page-padding);
}

/* Colonna sinistra — loghi collaboratore */
.project-info-collab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.project-collab-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 253px;
}

.project-collab-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.project-collab-logo--secondary img {
    max-width: 200px;
}

/* Immagine divisore tra i due loghi */
.project-collab-divider {
    width: 100%;
    display: flex;
    justify-content: center;
}

.project-collab-divider img {
    width: 140px;
    height: auto;
    display: block;
    opacity: 0.9;
}

/* Colonna destra — contenuto */
.project-info-content {
    width: 719px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.project-info-title {
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
    color: var(--white);
}

.project-info-description {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.45px;
    color: var(--white);
}

/* Metadata */
.project-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 11px;
    color: var(--white);
}

.project-meta-row {
    display: flex;
    gap: 5px;
    align-items: baseline;
}

.project-meta-label {
    text-transform: uppercase;
    letter-spacing: 0.55px;
    width: 32px;
    flex-shrink: 0;
}

.project-meta-value {
    letter-spacing: 0.33px;
}

/* Wrapper pulsanti + accordion — nessun gap tra di loro */
.project-info-actions {
    display: flex;
    flex-direction: column;
}

/* Pulsanti */
.project-info-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.45px;
    line-height: 15px;
    color: var(--white);
    text-decoration: none;
    padding: 0px 0;
    transition: color 0.3s ease;
}

.project-btn:hover {
    color: var(--venezia);
}

.project-btn svg {
    flex-shrink: 0;
}

/* "More details" — accordion (work) / scroll footer (atelier) */
.project-contact-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: 'Urbanist', sans-serif;
}

.project-contact-btn svg {
    transition: transform 0.35s ease;
}

.project-contact-btn.is-active svg {
    transform: rotate(180deg);
}

/* Accordion descrizione — visibile solo su single-work */
.project-description-accordion {
    overflow: hidden;
    height: 0;
}

.project-description-accordion-inner {
    padding-top: 20px;
    margin-top: 12px;
}

.project-description-accordion-inner p {
    font-size: 15px;
    line-height: 1.65;
    opacity: 0.75;
    margin: 0;
}

/* 3. Gallery ───────────────────────────────────────────────── */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 var(--page-padding);
}

.project-gallery-item {
    overflow: hidden;
}

/* Metà larghezza: rapporto 754×600 dal design */
.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 754 / 600;
}

/* Larghezza intera: occupa entrambe le colonne */
.project-gallery-item--full {
    grid-column: 1 / span 2;
}

/* Metà larghezza posizionata a destra (colonna 2) */
.project-gallery-item--right {
    grid-column: 2;
}

.project-gallery-item--full img {
    aspect-ratio: 1512 / 750;
    height: 750px;
    max-height: 750px;
}

/* 4. Brand Module ──────────────────────────────────────────── */
.project-brand-module {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 120px var(--page-padding);
    background: var(--black);
}

.project-brand-content {
    width: 719px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.project-brand-title {
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
    color: var(--white);
}

.project-brand-description {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.45px;
    color: var(--white);
}

.project-brand-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* 5. Related Projects ──────────────────────────────────────── */
.project-related {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 60px 0;
}

.project-related-header {
    padding: 0 var(--page-padding);
}

.project-related-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 48px;
    color: var(--white);
    width: 719px;
}

.project-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 0 var(--page-padding);
}

.project-related-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

.project-related-tile-image {
    width: 100%;
    aspect-ratio: 718 / 572;
    overflow: hidden;
    position: relative;
}

/* Stessa logica hover-swap di .works-tile */
.project-related-img-primary,
.project-related-img-hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.project-related-img-hover {
    opacity: 0;
}

.project-related-tile:hover .project-related-img-primary {
    transform: scale(1.03);
}

.project-related-tile:hover .project-related-img-hover {
    opacity: 1;
    transform: scale(1.03);
}

.project-related-tile-name {
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
    color: var(--white);
    text-align: center;
}

/* ── Responsive single work ─────────────────────────────────── */

/* Tablet: riduci dimensioni testi ma mantieni 2 colonne */
@media ( max-width: 1100px ) {
    .project-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 80px var(--page-padding);
        gap: 40px;
    }

    .project-info-content {
        width: 100%;
    }

    .project-info-collab {
        width: 100%;
        justify-content: flex-start;
    }

    .project-collab-inner {
        flex-direction: row;
        width: auto;
        gap: 30px;
    }

    .project-brand-content,
    .project-brand-module {
        width: 100%;
    }

    .project-related-title {
        width: 100%;
    }

    .project-info-title,
    .project-brand-title {
        font-size: 48px;
        line-height: 1.1;
    }

    .project-related-tile-name {
        font-size: 40px;
    }
}

/* Mobile: fedele al prototipo Figma M/Progetto-1 (393px) */
@media ( max-width: 768px ) {

    /* 1. Hero */
    .project-hero {
        height: 590px;
    }

    /* 2. Info module */
    .project-info {
        flex-direction: column;
        align-items: center;
        padding: 60px 15px;
        gap: 30px;
    }

    .project-info-collab {
        width: 100%;
        justify-content: center;
    }

    .project-collab-inner {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 154px;
    }

    .project-collab-logo img {
        width: 100%;
    }

    .project-collab-divider {
        width: 100%;
    }

    .project-collab-divider img {
        width: 120px;
    }

    .project-info-content {
        width: 100%;
        gap: 30px;
        align-items: flex-start;
    }

    .project-info-title {
        font-size: 40px;
        line-height: 48px;
    }

    .project-info-description {
        font-size: 15px;
    }

    .project-info-buttons {
        width: 100%;
    }

    /* 3. Gallery — colonna singola, padding 15px */
    .project-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .project-gallery-item--full {
        grid-column: 1;
    }

    /* Immagini half: aspect 393/328 */
    .project-gallery-item img {
        aspect-ratio: 393 / 328;
        height: auto;
    }

    /* Immagini full: altezza fissa come da design */
    .project-gallery-item--full img {
        aspect-ratio: unset;
        height: 590px;
        max-height: 590px;
    }

    /* 4. Brand module */
    .project-brand-module {
        flex-direction: column;
        padding: 60px 15px;
        gap: 0;
    }

    .project-brand-content {
        width: 100%;
        gap: 30px;
    }

    .project-brand-title {
        font-size: 40px;
        line-height: 48px;
    }

    /* 5. Related — horizontal scroll */
    .project-related {
        gap: 30px;
        padding: 60px 0;
    }

    .project-related-header {
        padding: 0 15px;
    }

    .project-related-title {
        font-size: 25px;
        line-height: 30px;
        width: 100%;
    }

    /* Sostituisce la griglia con scroll orizzontale */
    .project-related-grid {
        display: flex;
        flex-direction: row;
        gap: 15px;
        padding: 0 15px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .project-related-grid::-webkit-scrollbar {
        display: none;
    }

    .project-related-tile {
        flex-shrink: 0;
        width: 328px;
        padding-bottom: 60px;
    }

    .project-related-tile-image {
        width: 328px;
        height: 328px;
        aspect-ratio: unset;
    }

    .project-related-tile-name {
        font-size: 40px;
        line-height: 48px;
    }
}

/* ════════════════════════════════════════════════════════════
   PAGE ATELIER — sfondo bianco, griglia manuale, info box
════════════════════════════════════════════════════════════ */

/* Override content-wrapper background for this page:
   only the hero is white — the grid section + marquee are dark */
.page-template-page-atelier-php .content-wrapper {
    background: var(--white);
}

.atelier-page {
    background: var(--white);
}

/* ── Hero / Intro ───────────────────────────────────────────── */

.atelier-hero {
    padding: 180px var(--page-padding) 80px;
}

.atelier-hero-content {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.atelier-hero-title {
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
    color: var(--black);
}

.atelier-hero-intro {
    font-size: 15px;
    color: var(--black);
    opacity: 0.85;
    line-height: 1.6;
}

.atelier-hero-intro p {
    margin: 0;
}

/* ── Filter bar ─────────────────────────────────────────────── */

.atelier-filters {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.atelier-filter-btn {
    background: none;
    border: none;
    color: var(--black);
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    opacity: 0.4;
    cursor: none;
    padding: 0;
    transition: opacity 0.3s ease;
}

.atelier-filter-btn.active {
    opacity: 1;
}

/* ── Grid section ────────────────────────────────────────────── */

.atelier-grid-section {
    padding: 0 var(--page-padding) 80px;
}

/* ── Grid — 4 colonne, immagini con proporzioni naturali ──────── */

.atelier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}

.atelier-item {
    display: flex;
    flex-direction: column;
}

/* Span utility classes generate dinamicamente dal PHP */
.atelier-item--span-1 { grid-column: span 1; }
.atelier-item--span-2 { grid-column: span 2; }
.atelier-item--span-3 { grid-column: span 3; }

.atelier-item-image-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* nessun aspect-ratio forzato: l'immagine mostra le sue proporzioni naturali */
}

.atelier-item-image-wrap img {
    width: 100%;
    height: auto;       /* proporzioni naturali, niente ritaglio */
    display: block;
    transition: transform 0.6s ease;
}

.atelier-item:hover .atelier-item-image-wrap img {
    transform: scale(1.03);
}

/* ── Global cursor tooltip (desktop: injected by JS) ──────── */

#atelier-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    background: var(--black);
    color: var(--white);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translate(20px, -50%);
    transition: opacity 0.2s ease;
    min-width: 200px;
    max-width: 320px;
}

#atelier-tooltip.is-visible {
    opacity: 1;
}

/* ── Info text shared styles ────────────────────────────────── */

.atelier-info-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.atelier-info-specs {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

.atelier-info-date {
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
    margin: 0;
}

/* Mobile info — hidden on desktop */
.atelier-info-mobile {
    display: none;
}

/* Items hidden by filter */
.atelier-item.is-hidden {
    display: none;
}

/* ── Responsive atelier ─────────────────────────────────────── */

/* Clickable marquee banner */
.section-marquee--atelier {
    cursor: none;
}

@media ( max-width: 1100px ) {
    .atelier-hero {
        padding-top: 140px;
    }

    .atelier-hero-content {
        max-width: 100%;
        gap: 35px;
    }

    .atelier-hero-title {
        font-size: 48px;
    }

    .atelier-grid {
        gap: 12px;
    }
}

@media ( max-width: 768px ) {
    .atelier-hero {
        padding: 100px 15px 60px;
    }

    .atelier-hero-content {
        gap: 30px;
    }

    .atelier-hero-title {
        font-size: 40px;
        line-height: 48px;
    }

    .atelier-filters {
        gap: 20px;
    }

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

    /* Su mobile tutti gli span occupano l'intera colonna */
    .atelier-item--span-1,
    .atelier-item--span-2,
    .atelier-item--span-3 { grid-column: span 1; }

    /* Mobile info — visible below image */
    .atelier-info-mobile {
        display: flex;
        flex-wrap: wrap;
        align-items: end;
        background-color: var(--black);
        gap: 15px;
        padding: 10px 20px 10px;
        margin: 15px 15px;
        width: fit-content;
        width: max-content;
    }

    .atelier-info-mobile .atelier-info-title {
        font-size: 15px;
        font-weight: 600;
        color: var(--white);
    }

    .atelier-info-mobile .atelier-info-specs,
    .atelier-info-mobile .atelier-info-date {
        font-size: 13px;
        color: var(--white);
    }
}
