/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Fonts */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Theme Colors (Default Dark Theme) */
    --bg-primary: #141110;
    --bg-secondary: #1e1917;
    --bg-tertiary: #2a221f;
    --text-primary: #eae3de;
    --text-secondary: #a39790;
    --border-color: #382e2b;
    --glass-bg: rgba(20, 17, 16, 0.8);
    --glass-border: rgba(197, 168, 128, 0.1);
    --input-bg: #1e1917;
    --card-shadow: rgba(0, 0, 0, 0.4);

    /* Accents (Harmonious terracotta, wood and gold) */
    --accent-terracotta: #c86446;
    --accent-terracotta-hover: #b05034;
    --accent-gold: #c5a880;
    --accent-gold-hover: #dfba73;
    
    /* Layout Constants */
    --header-height: 80px;
    --max-width: 1280px;
    
    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

/* Light Theme Overrides */
body.light-theme {
    --bg-primary: #faf6f2;
    --bg-secondary: #f0e9e1;
    --bg-tertiary: #e6ddd3;
    --text-primary: #2d2724;
    --text-secondary: #736862;
    --border-color: #d1c5b8;
    --glass-bg: rgba(250, 246, 242, 0.85);
    --glass-border: rgba(200, 100, 70, 0.15);
    --input-bg: #ffffff;
    --card-shadow: rgba(45, 39, 36, 0.08);
}

/* ==========================================================================
   RESET & CORE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-gold-hover);
}

button {
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

/* Text alignment */
.text-center { text-align: center; }
.align-center { align-items: center; }

/* Grid System */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
}

.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

/* Spacing Gap */
.gap-md { gap: 32px; }
.gap-lg { gap: 64px; }
.margin-top-md { margin-top: 48px; }

/* Section Standard Padding */
.section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.light-bg {
    background-color: var(--bg-secondary);
}

.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-terracotta);
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin-bottom: 32px;
}

.section-divider.center {
    margin: 0 auto 32px auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent-terracotta);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-terracotta-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 100, 70, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 70px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-top: 2px;
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent-gold);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.theme-toggle-btn:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.theme-toggle-btn .sun-icon {
    display: none;
    width: 20px;
    height: 20px;
}

.theme-toggle-btn .moon-icon {
    display: block;
    width: 18px;
    height: 18px;
}

body.light-theme .theme-toggle-btn .sun-icon {
    display: block;
}

body.light-theme .theme-toggle-btn .moon-icon {
    display: none;
}

/* Mobile Toggle Hamburger */
.menu-toggle-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

.menu-toggle-btn[aria-expanded="true"] .hamburger {
    background-color: transparent;
}
.menu-toggle-btn[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.menu-toggle-btn[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.05);
    animation: zoomOutHero 10s ease-out forwards;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 650px;
}

.hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(234, 227, 222, 0.85);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse-icon {
    width: 26px;
    height: 44px;
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    display: block;
    position: relative;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.mouse-icon:hover {
    opacity: 1;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.5s ease-in-out infinite;
}

/* ==========================================================================
   L'ARTISTA (BIOGRAPHY)
   ========================================================================== */
.artist-image-wrapper {
    position: relative;
    padding-right: 30px;
    padding-bottom: 30px;
}

.artist-image-decor {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-gold);
    z-index: 1;
}

.artist-img {
    position: relative;
    z-index: 2;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: var(--transition-smooth);
}

.artist-quote-card {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    max-width: 280px;
    border-radius: 4px;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--accent-terracotta);
    line-height: 0.1;
    display: block;
    margin-bottom: 10px;
}

.quote-text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-primary);
}

.artist-bio-lead {
    font-size: 1.25rem;
    color: var(--accent-gold);
    line-height: 1.5;
    margin-bottom: 24px;
    font-family: var(--font-serif);
}

.artist-bio-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
}

.highlight-paragraph {
    border-left: 2px solid var(--accent-terracotta);
    padding-left: 16px;
    font-style: italic;
}

/* ==========================================================================
   CATEGORY INTRO CARDS
   ========================================================================== */
.category-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 15px 35px var(--card-shadow);
    transition: var(--transition-smooth);
}

.category-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.02);
    transition: var(--transition-smooth);
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20, 17, 16, 0.1) 0%, rgba(20, 17, 16, 0.85) 100%);
    z-index: 2;
    transition: var(--transition-smooth);
}

body.light-theme .category-card::after {
    background: linear-gradient(to bottom, rgba(250, 246, 242, 0.05) 0%, rgba(250, 246, 242, 0.95) 100%);
}

.category-card-content {
    position: relative;
    z-index: 3;
    padding: 32px;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.category-card-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 12px;
}

body.light-theme .category-card-title {
    color: var(--text-primary);
}

.category-card-desc {
    color: rgba(234, 227, 222, 0.85);
    font-size: 0.95rem;
    margin-bottom: 24px;
    opacity: 0;
    transition: var(--transition-smooth);
}

body.light-theme .category-card-desc {
    color: var(--text-secondary);
}

.category-card-link {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hover Categories */
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.5);
}

.category-card:hover .category-card-img {
    transform: scale(1.1);
}

.category-card:hover .category-card-content {
    transform: translateY(0);
}

.category-card:hover .category-card-desc {
    opacity: 1;
}

/* ==========================================================================
   DYNAMIC GALLERY SECTION
   ========================================================================== */
.gallery-controls {
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    padding: 10px 24px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent-gold);
    color: #141110;
    border-color: var(--accent-gold);
}

.gallery-search-bar {
    display: flex;
    gap: 16px;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-input-wrapper input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
    border-color: var(--accent-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.sort-select {
    padding: 0 20px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 180px;
    outline: none;
    transition: var(--transition-smooth);
}

.sort-select:focus {
    border-color: var(--accent-gold);
}

/* Active Sub-Filter Tags container */
.active-subfilters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.subfilter-tag {
    padding: 6px 14px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
}

.subfilter-tag:hover, .subfilter-tag.active {
    background-color: var(--bg-tertiary);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    transition: var(--transition-smooth);
}

/* Gallery Items */
.gallery-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px var(--card-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.gallery-item-img-container {
    position: relative;
    overflow: hidden;
    background-color: #ffffff; /* Sfondo bianco puro per fondere lo sfondo nativo delle foto */
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Passe-partout mount padding */
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--border-color);
}

body.light-theme .gallery-item-img-container {
    background-color: #ffffff; /* Mantieni passe-partout bianco */
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Garantisce che l'opera non sia mai tagliata */
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Cohesion filter to make old photos look uniform and enhanced */
    filter: brightness(0.98) contrast(1.02) saturate(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Effetto profondità sul passe-partout */
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 17, 16, 0.4);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-indicator-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(197, 168, 128, 0.9);
    color: #141110;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.gallery-item-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gallery-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.gallery-item-cat {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-terracotta);
    font-weight: 700;
}

.gallery-item-year {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.gallery-item-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 6px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-item-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: auto;
}

/* Hover States for Gallery Items */
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
}

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

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item:hover .zoom-indicator-icon {
    transform: scale(1);
}

/* Loader Spinner */
.gallery-loader {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* No Results style */
.gallery-no-results {
    text-align: center;
    padding: 64px 0;
    color: var(--text-secondary);
}

.gallery-no-results h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Counter & Load More */
.gallery-more {
    margin-top: 56px;
}

.gallery-counter {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Image skeleton animation */
.skeleton {
    position: relative;
    background-color: var(--bg-tertiary);
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: skeleton-loading 1.5s infinite;
}

body.light-theme .skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
}

/* ==========================================================================
   TECNICA & LAVORAZIONE (THE CRAFT)
   ========================================================================== */
.technique-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 48px 32px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.technique-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--accent-terracotta);
    transition: var(--transition-smooth);
}

.tech-num {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 24px;
    opacity: 0.5;
}

.tech-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tech-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Hover Techniques */
.technique-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--card-shadow);
    border-color: rgba(197, 168, 128, 0.3);
}

.technique-card:hover::before {
    height: 100%;
}

.technique-card:hover .tech-num {
    opacity: 1;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-info-details h3 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-info-details p {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.contact-info-details a {
    color: var(--text-primary);
}

.contact-info-details a:hover {
    color: var(--accent-gold);
}

/* Stylized Map */
.map-container {
    width: 100%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    padding: 8px;
    box-shadow: 0 10px 30px var(--card-shadow);
}

.map-bg {
    height: 200px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    position: relative;
    background-image: 
        radial-gradient(var(--border-color) 1px, transparent 1px),
        radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* Styled topological circles simulating Hills */
.map-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 120px;
    height: 120px;
    border: 1px dashed var(--border-color);
    border-radius: 50%;
    pointer-events: none;
}

.map-bg::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 8%;
    width: 150px;
    height: 150px;
    border: 1px dashed var(--border-color);
    border-radius: 50%;
    pointer-events: none;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.marker-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-terracotta);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 8px rgba(200, 100, 70, 0.8);
}

.marker-pulse {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-terracotta);
    border-radius: 50%;
    animation: mapPulse 2s infinite;
}

.map-caption {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.map-caption strong {
    color: var(--text-primary);
}

.map-caption span {
    color: var(--text-secondary);
}

/* Contact Author Photo Container */
.contact-author-wrapper {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 48px;
    border-radius: 4px;
    box-shadow: 0 15px 35px var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    transition: var(--transition-smooth);
}

.contact-author-wrapper:hover {
    border-color: rgba(197, 168, 128, 0.3);
    transform: translateY(-5px);
}

.author-image-container {
    width: 220px;
    height: 290px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-author-wrapper:hover .author-photo {
    transform: scale(1.05);
}

.author-details-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.author-name {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.author-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    font-weight: 600;
}

.author-quote {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 14px;
    position: relative;
    padding: 0 16px;
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand .logo-name {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 350px;
    line-height: 1.7;
}

.footer-links h3, .footer-legal h3 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-links ul, .footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a, .footer-legal a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-credits {
    font-style: italic;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(20, 17, 16, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 3rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--text-primary);
}

.lightbox-content {
    max-width: var(--max-width);
    width: 90%;
    max-height: 85vh;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.lightbox-img-container {
    background-color: #0d0c0c;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.lightbox-img-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-img-container img.loaded {
    opacity: 1;
}

.lightbox-loader {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-info {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.lightbox-category {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-terracotta);
}

.lightbox-year {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.lightbox-title {
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.lightbox-meta {
    margin-bottom: 32px;
}

.lightbox-meta p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.lightbox-meta strong {
    color: var(--text-primary);
}

.lightbox-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes zoomOutHero {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

@keyframes scrollMouse {
    0% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0; }
    100% { top: 8px; opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes mapPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes skeleton-loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Fade in classes */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.hero-content .animate-slide-up:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-content .animate-slide-up:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-content .animate-fade-in {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Laptop / Desktop medium (1024px) */
@media (max-width: 1100px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 900px) {
    :root {
        --header-height: 70px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .grid-2-cols, .grid-3-cols {
        grid-template-columns: 1fr;
    }
    
    .gap-lg {
        gap: 48px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    /* Mobile Navbar Menu */
    .menu-toggle-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        padding: 120px 48px 48px 48px;
        z-index: 900;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 32px;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    /* Artist Bio Swap */
    .artist-image-wrapper {
        padding-right: 0;
        padding-bottom: 20px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .artist-image-decor {
        display: none;
    }
    
    /* Category grid spacing */
    .category-card {
        height: 380px;
    }
    
    /* Gallery grid items scale */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-search-bar {
        flex-direction: column;
    }
    
    .sort-select {
        width: 100%;
        padding: 14px 20px;
    }
    
    /* Contact form elements alignment */
    .contact-author-wrapper {
        padding: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Lightbox Modal Responsive */
    .lightbox-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
        width: 95%;
    }
    
    .lightbox-info {
        padding: 24px;
    }
    
    .lightbox-title {
        font-size: 1.6rem;
    }
    
    .lightbox-close {
        top: 16px;
        right: 16px;
        font-size: 2.2rem;
    }
}

/* Smartphone (320px - 479px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .artist-quote-card {
        padding: 16px;
        max-width: 220px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================================================
   AERIAL PHOTO (replaces map placeholder)
   ========================================================================== */
.map-container {
    margin-top: 32px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.aerial-photo-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.aerial-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.aerial-photo-wrapper:hover .aerial-photo {
    transform: scale(1.04);
}

.aerial-photo-overlay {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.aerial-marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent-terracotta);
    border: 2px solid #fff;
    box-shadow: 0 0 0 0 rgba(200, 100, 70, 0.7);
    animation: aerial-pulse 2s infinite;
}

@keyframes aerial-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(200, 100, 70, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(200, 100, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 100, 70, 0); }
}

.aerial-marker-label {
    background: rgba(20, 17, 16, 0.75);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    white-space: nowrap;
}

.map-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.map-caption strong {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--accent-gold);
}

.map-caption span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
