/* ══════════════════════════════════════════════
   DANIELE CAZZATO — Complete Site Styles
   ══════════════════════════════════════════════ */

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

:root {
    --white: #FEFEFE;
    --cream: #FAF8F5;
    --ivory: #F5F1EB;
    --warm-gray: #E8E3DC;
    --mid-gray: #B8B0A5;
    --text-gray: #6B6460;
    --text-dark: #2C2825;
    --gold: #C4A265;
    --gold-light: #D4B87A;
    --gold-muted: rgba(196, 162, 101, 0.15);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Jost', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--gold-muted);
    color: var(--text-dark);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

nav.scrolled {
    background: rgba(254, 254, 254, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(196, 162, 101, 0.12);
    padding: 0.9rem 3rem;
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-gray);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover {
    color: var(--text-dark);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--gold);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 200;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* ─── HERO ─── */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: var(--cream);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-muted) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 227, 220, 0.5) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(30px, -20px) scale(1.1); opacity: 1; }
}

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

.hero-line {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 2rem;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.05;
    color: var(--text-dark);
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.hero-subtitle {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.hero-location {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    color: var(--mid-gray);
    margin-top: 1.2rem;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mid-gray);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
    padding: 10rem 3rem 4rem;
    background: var(--cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-muted) 0%, transparent 70%);
    opacity: 0.5;
}

.page-header .section-label {
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.page-header h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--text-dark);
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.page-header p.page-intro {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 700px;
    margin: 1.5rem auto 0;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

/* ─── SECTIONS ─── */
section {
    padding: 7rem 3rem;
}

.section-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── ABOUT ─── */
.about {
    background: var(--white);
    max-width: 1400px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text p {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.about-text p:first-of-type::first-letter {
    font-family: var(--serif);
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    color: var(--gold);
    font-weight: 500;
}

.about-aside {
    position: relative;
    padding: 3rem;
    background: var(--cream);
    border-left: 2px solid var(--gold);
}

.about-aside blockquote {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-disciplines {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.discipline-tag {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--warm-gray);
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.discipline-tag:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ─── HIGHLIGHTS ─── */
.highlights {
    background: var(--cream);
}

.highlights-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.highlight-card {
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--warm-gray);
    position: relative;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.highlight-card:hover::before {
    width: 100%;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(44, 40, 37, 0.06);
}

.highlight-year {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1;
}

.highlight-card h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.highlight-card p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-gray);
}

/* ─── WORKS / PREVIEW CARDS ─── */
.works {
    background: var(--white);
}

.works-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.works-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.work-card {
    position: relative;
    background: var(--cream);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 80px rgba(44, 40, 37, 0.08);
}

.work-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.work-visual {
    aspect-ratio: 4/3;
    background: var(--ivory);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-visual img {
    transform: scale(1.04);
}

.work-card.featured .work-visual {
    aspect-ratio: auto;
    min-height: 400px;
}

.work-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(196, 162, 101, 0.08) 100%);
    pointer-events: none;
}

.work-info {
    padding: 2.5rem;
}

.work-category {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.work-info h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.work-year {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--mid-gray);
    margin-bottom: 1rem;
}

.work-info p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-gray);
}

.work-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    transition: gap 0.3s ease;
}

.work-card:hover .work-arrow {
    gap: 0.8rem;
}

/* ─── GALLERY MASONRY ─── */
.gallery-section {
    padding: 5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-section.alt-bg {
    background: var(--cream);
    max-width: 100%;
    padding-left: 3rem;
    padding-right: 3rem;
}

.gallery-section.alt-bg .gallery-section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-section-title {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.gallery-section-desc {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.masonry-gallery {
    columns: 3;
    column-gap: 1.2rem;
}

.masonry-gallery .gallery-item {
    break-inside: avoid;
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}

.masonry-gallery .gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.masonry-gallery .gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 40, 37, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.masonry-gallery .gallery-item:hover::after {
    background: rgba(44, 40, 37, 0.08);
}

.masonry-gallery .gallery-item:hover img {
    transform: scale(1.03);
}

/* Gallery 2-column variant */
.masonry-gallery.cols-2 {
    columns: 2;
}

/* Gallery 4-column variant */
.masonry-gallery.cols-4 {
    columns: 4;
}

/* ─── LIGHTBOX ─── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(20, 18, 16, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 2px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active .lightbox-img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.lightbox-close:hover {
    color: white;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    transition: color 0.3s ease;
    background: none;
    border: none;
    user-select: none;
}

.lightbox-nav:hover {
    color: white;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
}

/* ─── INITIATIVES / TIMELINE ─── */
.initiatives {
    background: var(--cream);
}

.initiatives-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.initiatives-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.initiative-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--warm-gray);
    align-items: baseline;
    transition: all 0.3s ease;
}

.initiative-item:first-child {
    border-top: 1px solid var(--warm-gray);
}

.initiative-item:hover {
    padding-left: 1rem;
}

.initiative-item:hover .initiative-year {
    color: var(--gold);
}

.initiative-year {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--mid-gray);
    transition: color 0.3s ease;
}

.initiative-content h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.initiative-content p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-gray);
}

/* ─── CONTACT ─── */
.contact {
    background: var(--white);
}

.contact-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-divider {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 3rem;
}

.contact-address {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.contact-detail {
    text-align: center;
}

.contact-detail-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.contact-detail a,
.contact-detail span {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-detail a:hover {
    color: var(--gold);
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mid-gray);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--gold);
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.social-link:hover::after {
    width: 100%;
}

/* ─── CONTACT FORM ─── */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream);
    border: 1px solid var(--warm-gray);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-submit {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--gold);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

/* ─── ABOUT PAGE ─── */
.about-page-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.about-photo {
    position: relative;
}

.about-photo img {
    width: 100%;
    display: block;
}

.about-photo::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold);
    z-index: -1;
}

.about-bio h2 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-bio p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-gray);
    margin-bottom: 1.2rem;
}

/* ─── TIMELINE ─── */
.timeline {
    max-width: 1400px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--warm-gray);
    align-items: baseline;
    transition: all 0.3s ease;
}

.timeline-item:first-child {
    border-top: 1px solid var(--warm-gray);
}

.timeline-item:hover {
    padding-left: 0.8rem;
}

.timeline-year {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--gold);
}

.timeline-text {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-gray);
}

.timeline-text strong {
    font-weight: 500;
    color: var(--text-dark);
}

/* ─── MEDIA LINKS ─── */
.media-list {
    max-width: 900px;
    margin: 0 auto;
}

.media-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--warm-gray);
    transition: all 0.3s ease;
}

.media-item:first-child {
    border-top: 1px solid var(--warm-gray);
}

.media-item:hover {
    padding-left: 1rem;
}

.media-item-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border: 1px solid var(--warm-gray);
    color: var(--gold);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.media-item:hover .media-item-icon {
    border-color: var(--gold);
    background: var(--gold-muted);
}

.media-item-content h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.media-item-content p {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-gray);
}

.media-item-content a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.media-item-content a:hover {
    color: var(--gold-light);
}

/* ─── PAINTINGS CATEGORIES ─── */
.paintings-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.painting-category-card {
    padding: 2.5rem;
    background: var(--cream);
    border: 1px solid var(--warm-gray);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.painting-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.painting-category-card:hover::before {
    width: 100%;
}

.painting-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44, 40, 37, 0.06);
}

.painting-category-card h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.painting-category-card span {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mid-gray);
}

/* ─── FOOTER ─── */
footer {
    padding: 2rem 3rem;
    background: var(--ivory);
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--mid-gray);
}

/* ─── GRAIN OVERLAY ─── */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    section {
        padding: 5rem 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .works-gallery {
        grid-template-columns: 1fr;
    }

    .work-card.featured {
        grid-template-columns: 1fr;
    }

    .initiative-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .masonry-gallery {
        columns: 2;
    }

    .masonry-gallery.cols-4 {
        columns: 2;
    }

    .about-page-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-photo {
        max-width: 400px;
    }

    .paintings-categories {
        grid-template-columns: 1fr;
    }

    .gallery-section {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    nav.scrolled {
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 150;
    }

    .nav-links.mobile-open a {
        font-size: 1rem;
        color: var(--text-dark);
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav-hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    section {
        padding: 4rem 1.5rem;
    }

    .hero {
        min-height: 600px;
    }

    .page-header {
        padding: 8rem 1.5rem 3rem;
    }

    .masonry-gallery {
        columns: 1;
    }

    .masonry-gallery.cols-2,
    .masonry-gallery.cols-4 {
        columns: 1;
    }

    .contact-details {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-socials {
        flex-wrap: wrap;
        gap: 1.2rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .media-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .gallery-section {
        padding: 3rem 1.5rem;
    }
}

/* ══════════════════════════════════════════════
   OXYGEN BUILDER — ID Overrides
   Selettori ID per sovrascrivere gli stili
   generati da Oxygen sugli elementi della homepage.
   ══════════════════════════════════════════════ */

/* ─── Inner Wrap — Fix centratura globale ─── */
.ct-section-inner-wrap {
    max-width: 100% !important;
}

/* ─── HERO ─── */
#section-1-hero {
    min-height: 100vh;
    background-color: var(--cream);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#section-1-hero > .ct-section-inner-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

#section-1-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-muted) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: 0;
}

#section-1-hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 227, 220, 0.5) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite alternate-reverse;
    z-index: 0;
}

#div-2-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

#div-3-hero-line {
    width: 50px;
    height: 1px;
    background-color: var(--gold);
    margin: 0 auto 2rem;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

#headline-4-hero-title {
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 6.5rem) !important;
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.05;
    color: var(--text-dark);
    animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

#text-5-hero-subtitle {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1.5rem;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

#text-6-hero-location {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    color: var(--mid-gray);
    margin-top: 1.2rem;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both;
}

#div-7-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1.5s both;
}

#text-8-scroll-text {
    font-family: var(--sans);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mid-gray);
}

#div-9-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── ABOUT ─── */
#section-10-about {
    background-color: var(--white);
    padding: 0;
}

#section-10-about > .ct-section-inner-wrap {
    padding: 7rem 3rem;
}

#div-11-about-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 5rem;
}

#div-12-about-text {
    width: 50%;
}

#text-13-about-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

#headline-14-about-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

#text-15-about-p1,
#text-16-about-p2 {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

#div-17-about-aside {
    width: 50%;
    padding: 3rem;
    background-color: var(--cream);
    border-left: 2px solid var(--gold);
}

#text-18-blockquote {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

#div-19-disciplines {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.75rem;
    margin-top: 2rem;
}

#div-19-disciplines > .ct-text-block {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--warm-gray);
    color: var(--text-gray);
    transition: all 0.3s ease;
    display: inline-block;
}

#div-19-disciplines > .ct-text-block:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ─── HIGHLIGHTS ─── */
#section-30-highlights {
    background-color: var(--cream);
    padding: 0;
}

#section-30-highlights > .ct-section-inner-wrap {
    padding: 7rem 3rem;
}

#div-31-highlights-inner {
    max-width: 1400px;
    margin: 0 auto;
}

#text-32-highlights-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

#headline-33-highlights-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

#div-34-highlights-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
}

#div-35-card1,
#div-39-card2,
#div-43-card3 {
    padding: 2.5rem;
    background-color: var(--white);
    border: 1px solid var(--warm-gray);
    position: relative;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

#div-35-card1::before,
#div-39-card2::before,
#div-43-card3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

#div-35-card1:hover::before,
#div-39-card2:hover::before,
#div-43-card3:hover::before {
    width: 100%;
}

#div-35-card1:hover,
#div-39-card2:hover,
#div-43-card3:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(44, 40, 37, 0.06);
}

#text-36-year1,
#text-40-year2,
#text-44-year3 {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1;
}

#headline-37-card1-title,
#headline-41-card2-title,
#headline-45-card3-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

#text-38-card1-desc,
#text-42-card2-desc,
#text-46-card3-desc {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-gray);
}

/* ─── WORKS ─── */
#section-50-works {
    background-color: var(--white);
    padding: 0;
}

#section-50-works > .ct-section-inner-wrap {
    padding: 7rem 3rem;
}

#div-51-works-inner {
    max-width: 1400px;
    margin: 0 auto;
}

#text-52-works-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

#headline-53-works-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

#div-54-works-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem;
}

#div-55-work1, #div-63-work2,
#div-71-work3, #div-79-work4 {
    background-color: var(--cream);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#div-55-work1:hover, #div-63-work2:hover,
#div-71-work3:hover, #div-79-work4:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 80px rgba(44, 40, 37, 0.08);
    cursor: pointer;
}

#div-56-work1-visual, #div-64-work2-visual,
#div-72-work3-visual, #div-80-work4-visual {
    width: 100%;
    height: 280px;
    background-color: var(--ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#div-56-work1-visual::after, #div-64-work2-visual::after,
#div-72-work3-visual::after, #div-80-work4-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(196, 162, 101, 0.08) 100%);
    pointer-events: none;
}

#text-57-work1-placeholder, #text-65-work2-placeholder,
#text-73-work3-placeholder, #text-81-work4-placeholder {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--mid-gray);
}

#div-58-work1-info, #div-66-work2-info,
#div-74-work3-info, #div-82-work4-info {
    padding: 2.5rem;
}

#text-59-work1-cat, #text-67-work2-cat,
#text-75-work3-cat, #text-83-work4-cat {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

#headline-60-work1-title, #headline-68-work2-title,
#headline-76-work3-title, #headline-84-work4-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

#text-61-work1-desc, #text-69-work2-desc,
#text-77-work3-desc, #text-85-work4-desc {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-gray);
}

#text-62-work1-arrow, #text-70-work2-arrow,
#text-78-work3-arrow, #text-86-work4-arrow {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1.2rem;
    transition: letter-spacing 0.3s ease;
}

#text-62-work1-arrow:hover, #text-70-work2-arrow:hover,
#text-78-work3-arrow:hover, #text-86-work4-arrow:hover {
    letter-spacing: 0.3em;
}

/* ─── CONTACT ─── */
#section-90-contact {
    background-color: var(--white);
    padding: 0;
}

#section-90-contact > .ct-section-inner-wrap {
    padding: 7rem 3rem;
}

#div-91-contact-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#text-92-contact-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

#headline-93-contact-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

#div-94-contact-divider {
    width: 50px;
    height: 1px;
    background-color: var(--gold);
    margin: 0 auto 3rem;
}

#text-95-contact-address {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

#div-96-contact-details {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

#div-97-detail-email,
#div-100-detail-phone {
    text-align: center;
}

#text-98-email-label,
#text-101-phone-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

#text-99-email-value,
#text-102-phone-value {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-gray);
}

#div-103-socials {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 2rem;
    margin-top: 3rem;
}

#div-103-socials > .ct-text-block {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mid-gray);
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

#div-103-socials > .ct-text-block:hover {
    color: var(--gold);
}

#div-103-socials > .ct-text-block::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

#div-103-socials > .ct-text-block:hover::after {
    width: 100%;
}

/* ─── FOOTER ─── */
#section-110-footer {
    background-color: var(--ivory);
    padding: 0;
}

#section-110-footer > .ct-section-inner-wrap {
    padding: 2rem 3rem;
    text-align: center;
}

#text-111-footer-text {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--mid-gray);
    text-align: center;
}

/* ─── OXYGEN RESPONSIVE ─── */
@media (max-width: 1024px) {
    #div-11-about-inner {
        flex-direction: column;
        gap: 3rem;
    }

    #div-12-about-text,
    #div-17-about-aside {
        width: 100%;
    }

    #div-34-highlights-grid {
        grid-template-columns: 1fr !important;
    }

    #div-54-works-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    #section-10-about > .ct-section-inner-wrap,
    #section-30-highlights > .ct-section-inner-wrap,
    #section-50-works > .ct-section-inner-wrap,
    #section-90-contact > .ct-section-inner-wrap {
        padding: 4rem 1.5rem;
    }

    #div-96-contact-details {
        flex-direction: column !important;
        gap: 1.5rem;
    }

    #div-103-socials {
        flex-wrap: wrap;
        gap: 1.2rem;
    }
}
