:root {
    --white: #ffffff;
    --off-white: #fafafa;
    --black: #1a1a1a;
    --grey: #6b6b6b;
    --light-grey: #e5e5e5;
    --accent: #ff4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.8;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.3;
}

/* ===== NAVBAR ===== */
.navbar-minimal {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 var(--light-grey);
    transition: all 0.4s ease;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 300;
    color: var(--grey) !important;
    margin: 0 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.nav-link.active {
    color: var(--accent) !important;
}



.nav-link:hover {
    color: var(--black) !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    z-index: 9998;
    transition: width 0.1s ease;
}

/* ===== HERO SECTION (HOME) ===== */
.hero-minimal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
        overflow: hidden; /* aggiunto */

}

/* Immagine di sfondo semi-trasparente */
.hero-minimal::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/quadri/Opera\ 22_Dettaglio\ 2.jpg'); /* ← sostituisci con il tuo path */
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* regola tra 0.05 e 0.15 per il livello di trasparenza */
    z-index: 0;
}

.hero-content {
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 300;
    letter-spacing: -3px;
    margin-bottom: 2rem;
    line-height: 0.9;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards 0.2s;
}

.hero-line {
    width: 1px;
    height: 100px;
    background: #ff4444 !important;
    margin: 3rem auto;
    opacity: 0;
    animation: growLine 1s ease forwards 0.1s;
}

@keyframes growLine {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 100px;
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--dark);
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards 1.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: var(--light-grey);
    opacity: 0;
    animation: fadeIn 1s ease forwards 2s;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--black);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(30px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.works-section{
    padding: 7rem 0;
    position: relative;
}

/* ===== ABOUT SECTION (HOME) ===== */
.about-minimal {
    padding: 10rem 0;
    position: relative;
}

.about-number {
    font-size: 15rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    color: var(--off-white);
    position: absolute;
    top: 50px;
    left: -50px;
    z-index: -1;
    line-height: 1;
}

.about-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: -2px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--grey);
    max-width: 700px;
    margin-bottom: 2rem;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

/* ===== ABOUT HERO (CHI SONO PAGE) ===== */
.about-hero {
    padding: 12rem 0 8rem;
    position: relative;
}

.hero-number {
    position: absolute;
    top: 100px;
    right: 50px;
    font-size: 15rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    color: var(--off-white);
    z-index: -1;
    line-height: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
    align-items: center;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: var(--accent);
    margin: 2rem 0;
}

.hero-intro {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--grey);
    margin-bottom: 2rem;
}

.hero-signature {
    font-size: 0.9rem;
    color: var(--grey);
    font-style: italic;
    letter-spacing: 1px;
}

/* ===== BIOGRAPHY SECTION ===== */
.biography-section {
    padding: 8rem 0;
    background: var(--off-white);
}

.bio-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.bio-content h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--grey);
    margin-bottom: 2rem;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
    padding: 8rem 0;
}

.quote-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.8;
    color: var(--black);
}

/* ===== STATEMENT SECTION ===== */
.statement-section {
    padding: 8rem 0;
    background: var(--off-white);
    position: relative;
}

.statement-quote {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.statement-quote::before {
    content: '"';
    font-size: 6.5rem;
    color: var(--light-grey);
    position: absolute;
    top: -4rem;
    left: 0;
    font-family: Georgia, serif;
}

.statement-author {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey);
}

/* ===== GALLERY SECTION ===== */
.gallery-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: -2px;
    display: inline-block;
    position: relative;
}

.gallery-header {
    margin-bottom: 6rem;
    padding: 0 15px;
}

/* ===== EXHIBITIONS SECTION ===== */
.exhibitions-minimal {
    padding: 8rem 0;
}

.exhibition-list {
    max-width: 1000px;
    margin: 0 auto;
}

.exhibition-item {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--light-grey);
    transition: all 0.4s ease;
    position: relative;
}




.exhibition-year {
    font-size: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--grey);
}

.exhibition-details h3 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.exhibition-location {
    color: var(--grey);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.exhibition-description {
    color: var(--grey);
    line-height: 1.8;
}

/* ===== WORKS/OPERE SECTION ===== */
.page-header {
    padding: 10rem 0 5rem;
    position: relative;
}

.page-title {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 300;
    letter-spacing: -3px;
    margin-bottom: 2rem;
    line-height: 0.9;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--grey);
    letter-spacing: 2px;
    max-width: 600px;
    line-height: 2;
}

.header-number {
    position: absolute;
    top: 50px;
    right: 50px;
    font-size: 12rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    color: var(--off-white);
    z-index: -1;
    line-height: 1;
}

.filter-section {
    padding: 3rem 0;
    border-top: 1px solid var(--light-grey);
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: 5rem;
}

.filter-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid var(--light-grey);
    color: var(--grey);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-weight: 300;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--black);
    color: var(--black);
    background: var(--off-white);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 8rem;
}

.work-item {
    position: relative;
    cursor: pointer;
}

.work-item.featured {
    grid-column: span 2;
}

.work-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--off-white);
}

.work-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item.featured .work-image {
    height: 600px;
}

.work-item:hover .work-image {
    transform: scale(1.08);
}

.work-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    color: var(--black);
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    background-color: #ffffff;
    padding-left: 1rem;
    padding-right: 1rem;
}

.work-item:hover .work-number {
    opacity: 1;
    transform: translateY(0);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    opacity: 0;
    transition: all 0.5s ease;
}

.work-item:hover .work-overlay {
    opacity: 0;
}

.work-info {
    padding: 0 1rem;
}

.work-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.work-meta {
    display: flex;
    gap: 2rem;
    color: var(--grey);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.work-meta-item {
    position: relative;
}

.work-meta-item:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -1.2rem;
    color: var(--light-grey);
}

/* ===== WORK MODAL ===== */
.work-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 10000;
    display: none;
    overflow-y: auto;
}

.work-modal.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid var(--black);
    border-radius: 50%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    color: var(--black);

}

.modal-close:hover {
    background: var(--black);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-content-wrapper {
    padding: 8rem 0 4rem;
}

.modal-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    margin-bottom: 4rem;
}

.modal-details {
    max-width: 800px;
    margin: 0 auto;
}

.modal-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--light-grey);
}

.modal-info-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 0.5rem;
}

.modal-info-value {
    font-size: 1.1rem;
    color: var(--black);
}

.modal-description {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--grey);
    margin-bottom: 3rem;
}

.modal-cta {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.modal-cta:hover {
    background: var(--accent);
    color: var(--white);
}

/* ===== CONTACT SECTION ===== */
.contact-hero {
    padding: 12rem 0 8rem;
    position: relative;
}

.contact-hero-number {
    position: absolute;
    top: 100px;
    right: 50px;
    font-size: 15rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    color: var(--off-white);
    z-index: -1;
    line-height: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
    align-items: start;
}

.contact-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 2rem;
}

.contact-divider {
    width: 80px;
    height: 2px;
    background: var(--accent);
    margin: 2rem 0;
}

.contact-intro {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--grey);
    margin-bottom: 3rem;
}

.contact-info-cards {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    padding: 2rem;
    border: 1px solid var(--light-grey);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--black);
    transform: translateY(-5px);
}

.info-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value:hover {
    color: var(--accent);
}

.contact-form-wrapper {
    padding: 4rem;
    background: var(--off-white);
}

.form-header {
    margin-bottom: 3rem;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.form-subtitle {
    color: var(--grey);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 0.5rem;
    
    display: block;
}

.form-control {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border: 1px solid var(--light-grey);
    background: transparent;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    color: var(--black);
    transition: all 0.3s ease;
    font-weight: 300;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--black);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
    padding-top: 1rem;
}

.char-count {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 0.75rem;
    color: var(--grey);
}

.btn-submit {
    width: 100%;
    padding: 1.5rem;
    background: var(--black);
    color: var(--white);
    border: none;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    font-weight: 400;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 0;
}

.btn-submit span {
    position: relative;
    z-index: 1;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== SOCIAL SECTION ===== */
.social-section {
    padding: 8rem 0;
    text-align: center;
    background-color: #fafafa;
}

.social-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.social-subtitle {
    color: var(--grey);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.social-card {
    padding: 3rem 2rem;
    border: 1px solid var(--light-grey);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--off-white);
    transition: height 0.4s ease;
    z-index: -1;
}

.social-card:hover::before {
    height: 100%;
}

.social-card:hover {
    transform: translateY(-10px);
    border-color: var(--black);
}

.social-icon {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    display: block;
}

.social-name {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 0.5rem;
}

.social-handle {
    font-size: 1rem;
    color: var(--black);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.social-handle:hover {
    color: var(--accent);
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--white);
    padding: 4rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s ease;
}

.success-message.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.success-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.success-text {
    color: var(--grey);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 10rem 0;
    background: var(--black);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.5s ease;
    z-index: 0;
}

.cta-button:hover {
    color: var(--white);
}

.cta-button:hover::before {
    left: 0;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

/* ===== CTA BUTTON (REUSABLE) ===== */
.btn-cta {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    border: none;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    font-weight: 300;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.5s ease;
    z-index: 0;
}

.btn-cta:hover {
    color: var(--white);
}

.btn-cta:hover::before {
    left: 0;
}

.btn-cta span {
    position: relative;
    z-index: 1;
}

/* ===== FOOTER ===== */
.footer-minimal {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--light-grey);
}

.footer-text {
    color: var(--grey);
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 300;
}

.footer-links {
    margin-top: 1.5rem;
}

.footer-link {
    color: var(--grey);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--black);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-minimal {
    min-height: 800px;
    }
    
    .about-number,
    .hero-number,
    .contact-hero-number {
        font-size: 10rem;
        left: 0;
    }
    
    .exhibition-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .work-item.featured {
        grid-column: span 1;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form-wrapper {
        padding: 3rem 2rem;
    }
    
    .header-number {
        font-size: 6rem;
        right: 20px;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .nav-link {
        margin: 0.5rem 0;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .work-image,
    .work-item.featured .work-image {
        height: 400px;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info-cards {
        padding: 0 1rem;
    }
    
    .modal-info-grid {
        grid-template-columns: 1fr;
    }
    
    .about-accent {
        display: none;
    }
}

/* Header Image */
.header-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.header-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-image-wrapper:hover .header-image {
    transform: scale(1.05);
}

/* Responsive adjustment for header */
@media (max-width: 992px) {
    .header-image {
        margin-top: 2rem;
    }
}

/* Form Control - Fix padding */
.form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 0.5rem; /* Aggiunto padding-left */
    border: none;
    border-bottom: 1px solid var(--light-grey);
    background: transparent;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    color: var(--black);
    transition: all 0.3s ease;
    font-weight: 300;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--black);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
    padding-top: 1rem;
    padding-left: 0.5rem; /* Aggiunto padding-left */
}

/* Privacy Checkbox */
.privacy-group {
    margin-bottom: 2rem;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--grey);
}

.privacy-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    border: 1px solid var(--light-grey);
    transition: all 0.3s ease;
}

.privacy-checkbox:hover .checkmark {
    border-color: var(--black);
}

.privacy-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--black);
    border-color: var(--black);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.privacy-checkbox input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.privacy-text {
    display: inline;
}

.privacy-text a {
    color: var(--black);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-text a:hover {
    color: var(--accent);
}

/* Form Result Message */
.form-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-result.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-result.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

        
     

        
        .header-year-display {
            position: absolute;
            top: 50px;
            right: 50px;
            font-size: 12rem;
            font-family: 'Cormorant Garamond', serif;
            font-weight: 300;
            color: var(--off-white);
            z-index: -1;
            line-height: 1;
        }

        /* Exhibition Item - Fix per iPad */
.exhibition-item {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--light-grey);
    transition: all 0.4s ease;
    position: relative;
}

.exhibition-year img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
}

/* Responsive - Tablet e iPad */
@media (max-width: 1024px) and (min-width: 769px) {
    .exhibition-item {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }
    
    .exhibition-year img {
        max-width: 200px;
    }
}

/* Solo mobile */
@media (max-width: 768px) {
    .exhibition-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .exhibition-year img {
        max-width: 100%;
    }
}

/* Header Image (già fornito prima) */
.header-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.header-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-image-wrapper:hover .header-image {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .header-image {
        margin-top: 2rem;
    }
}

/* Privacy Checkbox */
.privacy-group {
    margin-bottom: 2rem;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--grey);
}

.privacy-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    border: 1px solid var(--light-grey);
    transition: all 0.3s ease;
}

.privacy-checkbox:hover .checkmark {
    border-color: var(--black);
}

.privacy-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--black);
    border-color: var(--black);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.privacy-checkbox input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.privacy-text {
    display: inline;
}

.privacy-text a {
    color: var(--black);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-text a:hover {
    color: var(--accent);
}

/* Form Result Message */
.form-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-result.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-result.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* FIX iOS/Android: bug luminosità quando cambia brightness (filter + GPU compositing) */
@media (hover: none), (pointer: coarse) {
  .header-image,
  .work-image {
    filter: none !important;
    -webkit-filter: none !important;
  }
}

/* ===== TIMELINE SECTION ===== */
.timeline-section {
    padding: 7rem 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0 2rem 3rem;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 3rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light-grey);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

/* Dot on the line */
.timeline-dot {
    position: absolute;
    left: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 3px solid var(--accent);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(255, 68, 68, 0.1);
}

.timeline-content {
    background: var(--white);
    padding: 2rem 2.5rem;
    transition: all 0.4s ease;
}

.timeline-year {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--accent);
    padding: 0.3rem 1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.timeline-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.timeline-location {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.timeline-description {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--grey);
    line-height: 1.8;
    margin: 0;
}

/* Tablet */
@media (max-width: 992px) {
    .timeline {
        padding-left: 2.5rem;
    }
    
    .timeline::before {
        left: 2.5rem;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-dot {
        left: -10px;
        width: 18px;
        height: 18px;
    }
    
    .timeline-content {
        padding: 1.8rem 2rem;
    }
    
    .timeline-title {
        font-size: 1.6rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .timeline-dot {
        left: -6px !important;
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
    
    .timeline-content {
        padding: 1.5rem 1.8rem;
    }
    
    .timeline-year {
        font-size: 1rem;
        padding: 0.25rem 0.8rem;
    }
    
    .timeline-title {
        font-size: 1.5rem;
    }
    
    .timeline-location {
        font-size: 0.85rem;
    }
    
    .timeline-description {
        font-size: 0.95rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline::before {
        left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .timeline-dot {
        left: -8px;
        width: 14px;
        height: 14px;
    }
    
    .timeline-content {
        padding: 1.2rem 1.5rem;
    }
    
    .timeline-year {
        font-size: 0.9rem;
        padding: 0.2rem 0.7rem;
    }
    
    .timeline-title {
        font-size: 1.3rem;
    }
}

/* TEST: elimina i trigger GPU */
img {
  filter: none !important;
  -webkit-filter: none !important;
  transition: none !important;
  transform: none !important;
  -webkit-transform: none !important;
}

.shorts-video-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    aspect-ratio: 9/16;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
}

.about-video-shorts {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    border: none;
    object-fit: cover;
}

@media (max-width: 991px) {
    .shorts-video-container {
        max-width: 280px;
    }
}

.bio-video-wrapper {
    margin-top: 3rem;
    width: 100%;
}

@media (max-width: 768px) {
    .bio-video-wrapper {
        margin-top: 2rem;
    }
    
    .bio-video-wrapper iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .bio-video-wrapper iframe {
        height: 300px;
    }
}