/*
Theme Name: Stilista Portfolio
Description: Tema WordPress elegante per stilisti e designer
Version: 1.0
Author: Your Name
*/

/* CSS Variables */
:root {
    --primary-color: #000;
    --accent-color: #666;
    --body-font: 'Inter', sans-serif;
    --heading-font: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 25px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: #333;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: #333;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    text-align: center;
    max-width: 300px;
    width: 100%;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.mobile-menu.active .mobile-nav-menu li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-menu li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-menu li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-menu li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav-menu li:nth-child(5) { transition-delay: 0.5s; }
.mobile-nav-menu li:nth-child(6) { transition-delay: 0.6s; }

.mobile-nav-menu a {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    text-decoration: none;
    font-family: var(--heading-font);
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.mobile-nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -10px;
    left: 50%;
    background: #fff;
    transition: var(--transition);
    transform: translateX(-50%);
}

.mobile-nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.btn-hero-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.btn-hero-primary:hover {
    background: transparent;
    color: #fff;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: #fff;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: #fff;
    margin: 0 auto 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateX(-50%) rotate(45deg);
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Sections */
.section {
    padding: 100px 0;
}

.fullscreen-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 1px;
    background: var(--primary-color);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.collection-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.collection-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.collection-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-item:hover .collection-image img {
    transform: scale(1.05);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: var(--transition);
}

.collection-item:hover .collection-overlay {
    opacity: 1;
}

.collection-info {
    padding: 40px;
    color: #fff;
    width: 100%;
}

.collection-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.collection-name {
    color: #ccc;
    margin-bottom: 20px;
}

.collection-link {
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.collection-link:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Gallery Section */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.gallery-filter-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    color: var(--primary-color);
}

.gallery-filter-btn.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.gallery-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    background: rgba(255,255,255,0.2);
    border: 1px solid #fff;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-zoom:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Video Section */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: var(--shadow);
}

.video-thumbnail {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    border: none;
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.video-play-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: var(--transition);
}

.video-item:hover .video-overlay {
    transform: translateY(0);
}

.video-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.video-description {
    color: #ccc;
    font-size: 0.9rem;
}

/* Events Section */
.events-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.event-timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
}

.event-timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.event-date {
    flex-shrink: 0;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0;
}

.event-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.event-month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.event-title a {
    color: var(--primary-color);
}

.event-location {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-description {
    color: #666;
    line-height: 1.7;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-form {
    max-width: none;
    margin: 0;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.submit-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-weight: 600;
}

.submit-btn:hover {
    background: #333;
}

.contact-info {
    padding-left: 40px;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: #666;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
}

.footer-widget p,
.footer-widget li {
    color: #ccc;
    line-height: 1.8;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget a {
    color: #ccc;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* States */
body.menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .contact-grid {
        gap: 60px;
    }
    
    .collections-grid,
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .collections-grid,
    .gallery-grid,
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        padding-left: 0;
    }
    
    .event-timeline-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .event-date {
        align-self: flex-start;
        width: 120px;
    }
    
    .gallery-filters {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .site-logo {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .mobile-nav-menu a {
        font-size: 1.5rem;
    }
}

/* WordPress Admin Bar Adjustment */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

/* Masonry Gallery Layout */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 0;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Archive Pages */
.archive-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 80px 0 40px;
}

.archive-title {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.collection-filters,
.archive-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Portfolio Single Page */
.portfolio-single {
    padding-top: 100px;
}

.portfolio-header {
    background: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.portfolio-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-category {
    color: var(--primary-color);
    font-weight: 600;
}

.portfolio-date {
    color: var(--accent-color);
}

.portfolio-title {
    font-size: 3rem;
    margin-bottom: 30px;
}

.portfolio-excerpt {
    font-size: 1.2rem;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.portfolio-content {
    padding: 80px 0;
}

.portfolio-featured-image {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-featured-image img {
    max-width: 100%;
    height: auto;
    box-shadow: var(--shadow);
}

.portfolio-description {
    max-width: 800px;
    margin: 0 auto 80px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.portfolio-gallery-container h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

/* Post Navigation */
.portfolio-navigation {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.nav-previous,
.nav-next {
    padding: 30px;
    background: #f8f9fa;
    transition: var(--transition);
}

.nav-previous:hover,
.nav-next:hover {
    background: #e9ecef;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.nav-title {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-back a {
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-back a:hover {
    background: #333;
}

/* Product Single Page */
.product-single {
    padding-top: 100px;
}

.product-header {
    padding: 80px 0;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.product-images {
    position: sticky;
    top: 120px;
}

.product-main-image {
    margin-bottom: 20px;
}

.product-main-image img {
    width: 100%;
    height: auto;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.product-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--primary-color);
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-collection {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.product-meta-list {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.product-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.meta-label {
    font-weight: 600;
    color: var(--primary-color);
}

/* Event Single Page */
.event-single {
    padding-top: 100px;
}

.event-header {
    background: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.event-date-large {
    text-align: center;
}

.event-day-large {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.event-month-large {
    display: block;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.event-location-large {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.event-title-large {
    font-size: 3rem;
    margin-bottom: 30px;
}

.event-content-single {
    padding: 80px 0;
}

.event-description-single {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    color: var(--accent-color);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* No Results */
.no-products,
.no-events,
.no-portfolio {
    text-align: center;
    padding: 80px 0;
}

.no-products h2,
.no-events h2,
.no-portfolio h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.no-products p,
.no-events p,
.no-portfolio p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #333;
}

/* Gallery Info Overlay */
.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-title a {
    color: #fff;
}

.gallery-category {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}
/*
Theme Name: Stilista Portfolio
Description: Tema WordPress elegante per stilisti e designer
Version: 1.0
Author: Your Name
*/

/* CSS Variables */
:root {
    --primary-color: #000;
    --accent-color: #666;
    --body-font: 'Inter', sans-serif;
    --heading-font: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 25px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Layout Base con Footer Sticky */
html, body {
    height: 100%;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: #333;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main {
    flex: 1;
}

/* Video Single Page - Fullscreen */
.video-single-fullscreen {
    padding-top: 0;
}

.video-player-fullscreen {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.video-wrapper-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-wrapper-fullscreen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-fallback-fullscreen,
.video-placeholder-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-fallback-fullscreen img,
.video-placeholder-fullscreen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fallback-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.video-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 60px 0 40px;
    z-index: 2;
}

.video-content-section {
    padding: 80px 0;
}

.video-details {
    margin-top: 60px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

.video-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.video-detail-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-detail-item p {
    color: #666;
    margin: 0;
    word-break: break-all;
}

.video-detail-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.video-detail-item a:hover {
    text-decoration: underline;
}

/* Homepage Grid Layouts - 3-4 per riga */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-grid.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Responsive Grid - Più elementi per riga */
@media (min-width: 1200px) {
    .collections-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-grid.masonry-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .collections-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid.masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .collections-grid,
    .gallery-grid.masonry-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Menu Navigation - Fix per tutte le pagine */
.main-navigation a[href^="#"] {
    cursor: pointer;
}

/* Pagine interne - Design migliorato */
.archive-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    margin-bottom: 0;
    padding: 120px 0 80px;
    position: relative;
}

.archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.archive-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
}

.archive-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 2px;
    background: var(--primary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.archive-description {
    font-size: 1.3rem;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Archive Filters - Migliorati */
.archive-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 50px;
    padding: 40px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.filter-btn {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Cards migliorate per archivi */
.product-card,
.event-timeline-item,
.gallery-item,
.video-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
}

.product-card:hover,
.gallery-item:hover,
.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Single Pages - Header migliorato */
.portfolio-single,
.event-single,
.product-single {
    padding-top: 0;
}

.portfolio-header,
.event-header,
.product-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: #fff;
    padding: 120px 0 80px;
    position: relative;
    text-align: center;
}

.portfolio-header::before,
.event-header::before,
.product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><path d="M1000,100C500,100,500,0,0,0V100Z"/></svg>') no-repeat bottom center;
    background-size: 100% 50px;
}

.portfolio-title,
.event-title-large,
.product-title-single {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Navigation migliorata */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 80px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.nav-previous,
.nav-next {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    text-align: center;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.nav-back a {
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav-back a:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Footer Sticky */
.site-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: #333;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    text-align: center;
    max-width: 300px;
    width: 100%;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.mobile-menu.active .mobile-nav-menu li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-menu li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-menu li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-menu li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav-menu li:nth-child(5) { transition-delay: 0.5s; }
.mobile-nav-menu li:nth-child(6) { transition-delay: 0.6s; }

.mobile-nav-menu a {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    text-decoration: none;
    font-family: var(--heading-font);
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.mobile-nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -10px;
    left: 50%;
    background: #fff;
    transition: var(--transition);
    transform: translateX(-50%);
}

.mobile-nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.btn-hero-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.btn-hero-primary:hover {
    background: transparent;
    color: #fff;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: #fff;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: #fff;
    margin: 0 auto 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateX(-50%) rotate(45deg);
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Sections */
.section {
    padding: 100px 0;
}

.fullscreen-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 1px;
    background: var(--primary-color);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.collection-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.collection-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.collection-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-item:hover .collection-image img {
    transform: scale(1.05);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: var(--transition);
}

.collection-item:hover .collection-overlay {
    opacity: 1;
}

.collection-info {
    padding: 40px;
    color: #fff;
    width: 100%;
}

.collection-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.collection-name {
    color: #ccc;
    margin-bottom: 20px;
}

.collection-link {
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.collection-link:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Gallery Section */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.gallery-filter-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    color: var(--primary-color);
}

.gallery-filter-btn.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.gallery-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    background: rgba(255,255,255,0.2);
    border: 1px solid #fff;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-zoom:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Video Section */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: var(--shadow);
}

.video-thumbnail {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    border: none;
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.video-play-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: var(--transition);
}

.video-item:hover .video-overlay {
    transform: translateY(0);
}

.video-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.video-description {
    color: #ccc;
    font-size: 0.9rem;
}

/* Events Section */
.events-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.event-timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
}

.event-timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.event-date {
    flex-shrink: 0;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0;
}

.event-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.event-month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.event-title a {
    color: var(--primary-color);
}

.event-location {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-description {
    color: #666;
    line-height: 1.7;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-form {
    max-width: none;
    margin: 0;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.submit-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-weight: 600;
}

.submit-btn:hover {
    background: #333;
}

.contact-info {
    padding-left: 40px;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: #666;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
}

.footer-widget p,
.footer-widget li {
    color: #ccc;
    line-height: 1.8;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget a {
    color: #ccc;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* States */
body.menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .contact-grid {
        gap: 60px;
    }
    
    .collections-grid,
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .collections-grid,
    .gallery-grid,
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        padding-left: 0;
    }
    
    .event-timeline-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .event-date {
        align-self: flex-start;
        width: 120px;
    }
    
    .gallery-filters {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .site-logo {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .mobile-nav-menu a {
        font-size: 1.5rem;
    }
}

/* WordPress Admin Bar Adjustment */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

/* Masonry Gallery Layout */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 0;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Archive Pages */
.archive-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 80px 0 40px;
}

.archive-title {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.collection-filters,
.archive-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Portfolio Single Page */
.portfolio-single {
    padding-top: 100px;
}

.portfolio-header {
    background: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.portfolio-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-category {
    color: var(--primary-color);
    font-weight: 600;
}

.portfolio-date {
    color: var(--accent-color);
}

.portfolio-title {
    font-size: 3rem;
    margin-bottom: 30px;
}

.portfolio-excerpt {
    font-size: 1.2rem;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.portfolio-content {
    padding: 80px 0;
}

.portfolio-featured-image {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-featured-image img {
    max-width: 100%;
    height: auto;
    box-shadow: var(--shadow);
}

.portfolio-description {
    max-width: 800px;
    margin: 0 auto 80px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.portfolio-gallery-container h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

/* Post Navigation */
.portfolio-navigation {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.nav-previous,
.nav-next {
    padding: 30px;
    background: #f8f9fa;
    transition: var(--transition);
}

.nav-previous:hover,
.nav-next:hover {
    background: #e9ecef;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.nav-title {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-back a {
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-back a:hover {
    background: #333;
}

/* Product Single Page */
.product-single {
    padding-top: 100px;
}

.product-header {
    padding: 80px 0;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.product-images {
    position: sticky;
    top: 120px;
}

.product-main-image {
    margin-bottom: 20px;
}

.product-main-image img {
    width: 100%;
    height: auto;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.product-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--primary-color);
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-collection {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.product-meta-list {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.product-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.meta-label {
    font-weight: 600;
    color: var(--primary-color);
}

/* Event Single Page */
.event-single {
    padding-top: 100px;
}

.event-header {
    background: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.event-date-large {
    text-align: center;
}

.event-day-large {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.event-month-large {
    display: block;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.event-location-large {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.event-title-large {
    font-size: 3rem;
    margin-bottom: 30px;
}

.event-content-single {
    padding: 80px 0;
}

.event-description-single {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    color: var(--accent-color);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* No Results */
.no-products,
.no-events,
.no-portfolio {
    text-align: center;
    padding: 80px 0;
}

.no-products h2,
.no-events h2,
.no-portfolio h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.no-products p,
.no-events p,
.no-portfolio p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #333;
}

/* Gallery Info Overlay */
.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-title a {
    color: #fff;
}

.gallery-category {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}

/*
Theme Name: Stilista Portfolio
Description: Tema WordPress elegante per stilisti e designer
Version: 1.0
Author: Your Name
*/

/* CSS Variables */
:root {
    --primary-color: #000;
    --accent-color: #666;
    --body-font: 'Inter', sans-serif;
    --heading-font: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 25px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
    --header-height: 80px;
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Layout Base con Footer Sticky */
html, body {
    height: 100%;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: #333;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main {
    flex: 1;
}

/* Spaziatura Header per tutte le pagine */
.site-main {
    padding-top: var(--header-height);
}

/* Eccezione per la homepage che ha il fullscreen hero */
.home .site-main {
    padding-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: #333;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    height: var(--header-height);
}

.site-header.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    text-align: center;
    max-width: 300px;
    width: 100%;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.mobile-menu.active .mobile-nav-menu li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-menu li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-menu li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-menu li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav-menu li:nth-child(5) { transition-delay: 0.5s; }
.mobile-nav-menu li:nth-child(6) { transition-delay: 0.6s; }

.mobile-nav-menu a {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    text-decoration: none;
    font-family: var(--heading-font);
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.mobile-nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -10px;
    left: 50%;
    background: #fff;
    transition: var(--transition);
    transform: translateX(-50%);
}

.mobile-nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.btn-hero-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.btn-hero-primary:hover {
    background: transparent;
    color: #fff;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: #fff;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: #fff;
    margin: 0 auto 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateX(-50%) rotate(45deg);
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Sections */
.section {
    padding: 100px 0;
}

.fullscreen-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 1px;
    background: var(--primary-color);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 60px;
}

/* Collections Grid - Stile Portfolio */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 1200px) {
    .collections-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .collections-grid {
        grid-template-columns: 1fr;
    }
}

.collection-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.collection-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.collection-image {
    position: relative;
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-item:hover .collection-image img {
    transform: scale(1.05);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.collection-item:hover .collection-overlay {
    opacity: 1;
}

.collection-info {
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 20px;
}

.collection-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.collection-name {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.collection-link {
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 16px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border-radius: 4px;
}

.collection-link:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Gallery Section - Mantiene lo stile esistente */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    color: var(--primary-color);
}

.gallery-filter-btn.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
}

.gallery-grid.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 1200px) {
    .gallery-grid.masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid.masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid.masonry-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-view {
    background: rgba(255,255,255,0.2);
    border: 1px solid #fff;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.gallery-view:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
    transform: scale(1.1);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-title a {
    color: #fff;
}

.gallery-category {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}

/* Video Section - Stile Portfolio */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: var(--transition);
}

.video-item:hover .video-play-btn-overlay {
    background: rgba(0,0,0,0.3);
}

.video-play-icon {
    background: rgba(0,0,0,0.8);
    border: 2px solid #fff;
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
    opacity: 0.8;
}

.video-item:hover .video-play-icon {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(0,0,0,0.9);
}

.video-duration-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.video-item:hover .video-overlay {
    transform: translateY(0);
}

.video-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.video-title a {
    color: #fff;
}

.video-category {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 8px;
}

.video-description {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Events Section */
.events-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.event-timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.event-timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.event-timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.event-date {
    flex-shrink: 0;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.event-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.event-month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.event-title a {
    color: var(--primary-color);
}

.event-location {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.event-link {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.event-link:hover {
    border-bottom-color: var(--primary-color);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-form {
    max-width: none;
    margin: 0;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.submit-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-weight: 600;
}

.submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.contact-info {
    padding-left: 40px;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: #666;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Archive Pages */
.archive-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    margin-bottom: 60px;
    padding: 120px 0 80px;
    position: relative;
}

.archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.archive-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
}

.archive-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 2px;
    background: var(--primary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.archive-description {
    font-size: 1.3rem;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Collection Filters - Migliorate */
.collection-filters,
.archive-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 50px;
    padding: 40px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.filter-btn {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-link {
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 24px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    text-decoration: none;
    border-radius: 4px;
}

.product-link:hover {
    background: #fff;
    color: var(--primary-color);
}

.product-content {
    padding: 25px;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.product-title a {
    color: var(--primary-color);
}

.product-collection {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Portfolio Single Page */
.portfolio-single {
    padding-top: 0;
}

.portfolio-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: #fff;
    padding: 120px 0 80px;
    position: relative;
    text-align: center;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><path d="M1000,100C500,100,500,0,0,0V100Z"/></svg>') no-repeat bottom center;
    background-size: 100% 50px;
}

.portfolio-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-category {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.portfolio-date {
    color: rgba(255,255,255,0.6);
}

.portfolio-title {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.portfolio-excerpt {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.portfolio-content {
    padding: 80px 0;
}

.portfolio-featured-image {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-featured-image img {
    max-width: 100%;
    height: auto;
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
}

.portfolio-description {
    max-width: 800px;
    margin: 0 auto 80px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.portfolio-gallery-container h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Product Single Page */
.product-single {
    padding-top: 0;
}

.product-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: #fff;
    padding: 120px 0 80px;
    position: relative;
    text-align: center;
}

.product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><path d="M1000,100C500,100,500,0,0,0V100Z"/></svg>') no-repeat bottom center;
    background-size: 100% 50px;
}

.product-title-single {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding: 80px 0;
}

.product-images {
    position: sticky;
    top: 120px;
}

.product-main-image {
    margin-bottom: 20px;
}

.product-main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.product-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--primary-color);
}

.product-thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.product-collection {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #555;
}

.product-meta-list {
    border-top: 2px solid #eee;
    padding-top: 30px;
}

.product-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.meta-label {
    font-weight: 600;
    color: var(--primary-color);
}

/* Event Single Page */
.event-single {
    padding-top: 0;
}

.event-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: #fff;
    padding: 120px 0 80px;
    position: relative;
    text-align: center;
}

.event-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><path d="M1000,100C500,100,500,0,0,0V100Z"/></svg>') no-repeat bottom center;
    background-size: 100% 50px;
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.event-date-large {
    text-align: center;
}

.event-day-large {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.event-month-large {
    display: block;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.8);
}

.event-location-large {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-title-large {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.event-content-single {
    padding: 80px 0;
}

.event-description-single {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Video Single Page - Fullscreen */
.video-single-fullscreen {
    padding-top: 0;
}

.video-player-fullscreen {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.video-wrapper-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-wrapper-fullscreen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-fallback-fullscreen,
.video-placeholder-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-fallback-fullscreen img,
.video-placeholder-fullscreen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fallback-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.video-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 60px 0 40px;
    z-index: 2;
}

.video-content-section {
    padding: 80px 0;
}

.video-details {
    margin-top: 60px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.video-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.video-detail-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-detail-item p {
    color: #666;
    margin: 0;
    word-break: break-all;
}

.video-detail-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.video-detail-item a:hover {
    text-decoration: underline;
}

/* Post Navigation */
.portfolio-navigation {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #eee;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.nav-previous,
.nav-next {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    text-align: center;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.nav-title {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-back a {
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

.nav-back a:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    padding: 12px 18px;
    border: 2px solid #ddd;
    color: var(--accent-color);
    transition: var(--transition);
    border-radius: 6px;
    text-decoration: none;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* No Results */
.no-products,
.no-events,
.no-portfolio {
    text-align: center;
    padding: 100px 0;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.no-products h2,
.no-events h2,
.no-portfolio h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.no-products p,
.no-events p,
.no-portfolio p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #666;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: var(--transition);
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Footer Sticky */
.site-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
}

.footer-widget p,
.footer-widget li {
    color: #ccc;
    line-height: 1.8;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget a {
    color: #ccc;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* States */
body.menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .contact-grid,
    .product-details {
        gap: 60px;
    }
    
    .collections-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid.masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title,
    .portfolio-title,
    .event-title-large,
    .product-title-single {
        font-size: 2.5rem;
    }
    
    .collections-grid,
    .gallery-grid.masonry-grid,
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-grid,
    .product-details {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        padding-left: 0;
    }
    
    .event-timeline-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .event-date {
        align-self: flex-start;
        width: 120px;
    }
    
    .gallery-filters {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .archive-header {
        padding: 100px 0 60px;
    }
    
    .archive-title {
        font-size: 2.5rem;
    }
    
    .collection-filters,
    .archive-filters {
        padding: 20px;
        border-radius: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .site-logo {
        font-size: 1.5rem;
    }
    
    .section-title,
    .portfolio-title,
    .event-title-large,
    .product-title-single {
        font-size: 2rem;
    }
    
    .mobile-nav-menu a {
        font-size: 1.5rem;
    }
    
    .collections-grid,
    .gallery-grid.masonry-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-thumbnail {
        height: 200px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .collection-filters,
    .archive-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
}

/* WordPress Admin Bar Adjustment */
body.admin-bar .site-header {
    top: 32px;
}

body.admin-bar .site-main {
    padding-top: calc(var(--header-height) + 32px);
}

body.admin-bar.home .site-main {
    padding-top: 0;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
    
    body.admin-bar .site-main {
        padding-top: calc(var(--header-height) + 46px);
    }
    
    body.admin-bar.home .site-main {
        padding-top: 0;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

.hero-section .hero-content {
	max-width: 900px;
}

.hero-title {
	font-size: clamp(3.5rem, 10vw, 7rem); /* Titolo più grande e d'impatto */
	font-weight: 700; /* Più deciso */
	letter-spacing: 2px;
	text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Ombra per leggibilità */
}

.hero-subtitle {
	font-size: 1.2rem;
	text-transform: uppercase; /* Stile più da brand di lusso */
	letter-spacing: 3px;
	font-weight: 400;
}
/* Aumenta lo spazio verticale tra le sezioni */
.section {
	padding: 120px 0;
}

/* Rendi i titoli di sezione più minimalisti e audaci */
.section-title {
	font-size: 1.5rem; /* Più piccolo, ma deciso */
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 4px;
	color: var(--primary-color);
}

.section-title::after {
	display: none; /* Rimuovi la linea sotto il titolo per un look più pulito */
}

.section-subtitle {
	display: none; /* Nascondi i sottotitoli per un approccio più minimalista */
}
.product-card {
	border: none; /* Rimuovi bordi */
	text-align: center;
	box-shadow: none;
	transition: all 0.4s ease;
}

.product-card .product-image {
	background-color: #f5f5f5; /* Sfondo neutro per le immagini */
}

.product-card .product-overlay {
	background: rgba(255, 255, 255, 0.5); /* Overlay più leggero */
	backdrop-filter: blur(5px);
}

.product-card .product-link {
	background: #000;
	color: #fff;
	border: 1px solid #000;
}

.product-card:hover {
	transform: none; /* Disattiva l'effetto di sollevamento */
}

.product-card .product-content {
	padding: 20px 10px;
}

.product-title a {
	font-family: var(--body-font);
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.product-price, .product-collection {
	font-size: 0.9rem;
	color: var(--accent-color);
}
/* Transizione più fluida per le immagini al passaggio del mouse */
.collection-image img, .gallery-image img, .product-image img {
	transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.collection-item:hover .collection-image img,
.gallery-item:hover .gallery-image img,
.product-card:hover .product-image img {
	transform: scale(1.03); /* Zoom più lento e sottile */
}

/* Animazione fade-in più lenta */
.fade-in-up {
	transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   YSL-INSPIRED AESTHETIC OVERHAUL
   ========================================================================== */

/* 1. Reset Stili Pagina Archivio */
.archive-header {
    background: #fff; /* Sfondo bianco pulito */
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: left; /* Allineamento a sinistra, più editoriale */
}

.archive-title {
    font-size: 2.5rem; /* Titolo più contenuto ma deciso */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-align: center; /* Titolo centrato per impatto */
}

/* Filtri minimalisti, come YSL */
.collection-filters {
    padding: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
    margin-top: 0;
}

.filter-btn {
    padding: 8px 0; /* Rimuoviamo padding laterale */
    background: transparent !important; /* Forza lo sfondo trasparente */
    border: none;
    border-radius: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: none !important;
    transform: none !important;
}

.filter-btn:hover {
    color: var(--primary-color);
}

.filter-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* 2. Riprogettazione delle Card Prodotto (Stile YSL) */
.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Più card per riga */
    gap: 40px 20px;
}

.product-card {
    background: none;
    box-shadow: none;
    border-radius: 0;
    text-align: left; /* Testo allineato a sinistra */
}

.product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-image {
    height: auto; /* Altezza basata sul rapporto dell'immagine */
    background: #f5f5f5;
}

.product-image img {
    transition: opacity 0.4s ease;
}

.product-card:hover .product-image img {
    opacity: 0.85; /* Effetto dissolvenza leggero */
    transform: none;
}

/* Rimuoviamo l'overlay con il bottone, non è in stile YSL */
.product-overlay {
    display: none;
}

.product-content {
    padding: 15px 0;
}

.product-title {
    font-size: 0.9rem;
    font-family: var(--body-font);
    font-weight: 600;
    text-transform: none; /* Titolo prodotto più leggibile */
    margin-bottom: 5px;
}

.product-price {
    font-size: 0.9rem;
    font-weight: 400;
    color: #000;
}

.product-collection, .product-excerpt {
    display: none; /* Nascondiamo elementi non essenziali nella griglia */
}

/* 3. Stile Pagina Singolo Prodotto */

/* Rimuoviamo l'header nero, il contenuto inizia subito */
.product-single .product-header {
    background: none;
    padding: 0;
    color: inherit;
}

.product-details {
    padding: 60px 0;
    gap: 5%; /* Spazio tra colonne */
    grid-template-columns: 1.2fr 1fr; /* Colonna immagine più grande */
}

.product-images {
    position: static; /* Rimuoviamo lo sticky per un layout più semplice */
}

.product-main-image img {
    box-shadow: none;
    border-radius: 0;
}

.product-thumbnails {
    grid-template-columns: repeat(5, 1fr); /* Thumbnail più piccoli e numerosi */
    gap: 8px;
    margin-top: 8px;
}
.product-thumbnail img {
    height: auto;
}

/* Info prodotto pulite e gerarchiche */
.product-info .product-collection {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.product-info .product-collection a {
    color: inherit;
}
.product-info .product-collection a:hover {
    color: #000;
}

.product-title-single {
    font-size: 2rem; /* Titolo più pulito */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: none;
    margin-bottom: 15px;
    color: #000;
}

.product-info .product-price {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.product-description, .product-excerpt {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #333;
    max-width: 450px; /* Testo più raccolto */
}

.product-meta-list {
    border-top: 1px solid #e5e5e5;
    margin-top: 30px;
    padding-top: 20px;
}

.product-meta-item {
    padding: 8px 0;
    font-size: 0.85rem;
}
.meta-label {
    font-weight: 600;
}

/* CTA "Contattami" più integrato */
.product-contact {
    margin-top: 40px;
    background-color: #f5f5f5;
    padding: 25px;
    text-align: center;
}
.product-contact h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}
.product-contact p {
    font-size: 0.85rem;
    margin-top: 10px;
    margin-bottom: 20px;
}
.product-contact .btn-primary {
    width: 100%;
    padding: 18px;
    font-weight: 700;
}

/* Navigazione Prodotto Semplificata */
.product-navigation {
    margin-top: 60px;
    border-top: 1px solid #e5e5e5;
    padding-top: 60px;
}
.post-navigation {
    background: none;
    padding: 0;
    gap: 20px;
}
.nav-previous, .nav-next {
    background: none;
    padding: 0;
    text-align: left;
    box-shadow: none;
}
.nav-next { text-align: right; }
.nav-previous:hover, .nav-next:hover { background: #f9f9f9; } /* Evidenziazione leggera */
.nav-back { display: none; } /* Nascondiamo il "Tutti i prodotti" per un look più pulito */

/* Sezione Prodotti Correlati */
.related-products {
    text-align: center;
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid #e5e5e5;
}
.related-products h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.related-product {
    text-align: left;
}
.related-product-image img {
    background: #f5f5f5;
}
.related-product-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}
.related-product-price {
    font-size: 0.9rem;
}

/* ==========================================================================
   HEADER & CONTENT SEPARATION
   ========================================================================== */

/* 1. Ombra dinamica per l'header durante lo scroll */
.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); /* Ombra molto morbida e sottile */
    border-bottom: none; /* Rimuoviamo eventuali bordi se presenti */
}

/* 2. Linea di separazione statica per il contenuto delle pagine */

/* Per la pagina archivio prodotti (e collezioni) */
.archive-header {
    border-top: 1px solid #e5e5e5; /* Linea di separazione superiore */
    margin-top: 0;
    padding-top: 60px;
}

/* Per la pagina singolo prodotto */
.product-single .product-details {
    border-top: 1px solid #e5e5e5; /* Linea di separazione superiore */
    padding-top: 60px;
}

/* Per le altre pagine (es. portfolio, eventi, ecc.) per coerenza */
.portfolio-content,
.event-content-single,
.page .entry-content { /* Aggiunto selettore per pagine standard */
    border-top: 1px solid #e5e5e5;
    padding-top: 60px;
    margin-top: 60px;
}

/* ==========================================================================
   SPACING BEFORE FOOTER
   ========================================================================== */

.site-main {
    margin-bottom: 100px; /* Aggiunge uno spazio verticale consistente prima del footer */
}

/* Media query per ridurre lo spazio su schermi piccoli per un look più bilanciato */
@media (max-width: 768px) {
    .site-main {
        margin-bottom: 60px;
    }
}

/* ==========================================================================
   HEADER MOBILE OPTIMIZATION
   ========================================================================== */

/* Applichiamo queste regole solo su schermi fino a 768px di larghezza */
@media (max-width: 768px) {

    /* 1. Altezza e Sfondo Solido per l'Header */
    .site-header {
        height: 70px; /* Altezza fissa e adeguata per mobile */
        padding: 0 15px; /* Riduciamo il padding laterale */
        background: #fff; /* Sfondo bianco SOLIDO */
        box-shadow: 0 2px 8px rgba(0,0,0,0.07); /* Ombra leggera per staccarlo */
        align-items: center;
        display: flex;
    }
    
    .header-content {
        width: 100%;
    }

    /* 2. Adattamento del Logo */
    .site-logo {
        font-size: 1.3rem; /* Riduciamo leggermente la dimensione del logo */
        letter-spacing: 1px;
    }

    /* 3. Spaziatura per il Contenuto (La Soluzione all'Overlap) */
    /* Questa è la regola FONDAMENTALE. Dice al contenuto di iniziare DOPO l'header */
    .site-main {
        padding-top: 70px !important; /* Deve corrispondere all'altezza dell'header */
    }

    /* 4. Correzione per la Barra di Amministrazione di WordPress */
    /* Quando sei loggato, la barra di WP spinge in giù il sito. Dobbiamo tenerne conto. */
    body.admin-bar .site-header {
        top: 46px; /* Altezza della admin bar mobile */
    }

    body.admin-bar .site-main {
        padding-top: 116px !important; /* 70px (header) + 46px (admin bar) */
    }
    
    /* 5. Miglioriamo l'aspetto del menu che si apre */
    .mobile-menu-toggle.active span {
        background: #fff; /* Assicura che la "X" sia bianca su sfondo nero */
    }
}
@media (max-width: 1029px) and (min-width: 769px) {
    .site-branding {
        line-height: 25px;
    }
}

/* ==========================================================================
   FIX: HOMEPAGE COLLECTION LINK WRAPPING
   ========================================================================== */

/*
 * 1. Impedire al testo del link di andare a capo (Soluzione Diretta)
 * Questa regola forza il testo a rimanere su una sola riga.
*/
.collection-link {
    white-space: nowrap;
}

/*
 * 2. Ottimizzare lo spazio (Soluzione Preventiva)
 * Riduciamo leggermente il padding orizzontale nel contenitore
 * per dare più respiro al testo, evitando che si senta "stretto".
*/
.collection-info {
    padding-left: 20px;
    padding-right: 20px;
}
/* ==========================================================================
   SINGLE PRODUCT PAGE - MOBILE LAYOUT STACKING
   ========================================================================== */

/* Applichiamo queste regole a schermi con larghezza massima di 768px */
@media (max-width: 768px) {

    /* 1. Modifichiamo la griglia principale da 2 colonne a 1 colonna */
    .product-details {
        grid-template-columns: 1fr; /* Forza una singola colonna a tutta larghezza */
        gap: 50px; /* Riduciamo lo spazio verticale tra immagine e info */
    }

    /* 2. Disattiviamo il posizionamento "sticky" per le immagini */
    /* Su mobile, un elemento sticky in una singola colonna può causare problemi di layout */
    .product-images {
        position: static;
        top: auto;
    }
    
    /* 3. Bonus: Ottimizziamo anche la griglia dei prodotti correlati */
    /* Quattro prodotti per riga sono troppi su mobile. Passiamo a due. */
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ==========================================================================
   HOMEPAGE COLLECTION CARD REWORK (MOBILE & USABILITY FIX)
   ========================================================================== */

/* 1. Stile per il nuovo contenitore del testo, sempre visibile */
.collection-content {
    padding: 15px 5px; /* Spaziatura sotto l'immagine */
    text-align: left; /* Allineamento più elegante */
}

/* 2. Stile per il titolo del prodotto */
.collection-content .collection-title {
    font-size: 0.9rem;
    font-family: var(--body-font);
    font-weight: 600;
    text-transform: none;
    margin-bottom: 4px;
}

.collection-content .collection-title a {
    color: var(--primary-color);
    text-decoration: none;
}
.collection-content .collection-title a:hover {
    text-decoration: underline;
}

/* 3. Stile per il nome della collezione */
.collection-content .collection-name {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin: 0;
}

/* 4. Adattiamo l'overlay: ora è solo un miglioramento per desktop */
.collection-overlay {
    /* Manteniamo l'effetto di apparizione solo su hover */
    opacity: 0;
    background: rgba(255, 255, 255, 0.5); /* Overlay più leggero */
	backdrop-filter: blur(5px);
    transition: opacity 0.4s ease;
}
.collection-item:hover .collection-overlay {
    opacity: 1;
}
.collection-overlay .collection-link {
    background: #000;
	color: #fff;
	border: 1px solid #000;
}

/* 5. Nascondiamo l'overlay su dispositivi touch per evitare confusione */
/* Se un dispositivo non supporta l'hover, l'overlay non serve. */
@media (hover: none) {
    .collection-overlay {
        display: none;
    }
}


/* ==========================================================================
   HOMEPAGE COLLECTION CARD - AESTHETIC REFINEMENT
   ========================================================================== */

/* 1. Stile per il contenitore del testo: ora è centrato e più spazioso */
.collection-content {
    padding: 25px 15px; /* Aumenta lo spazio verticale per un look più arioso */
    text-align: center; /* LA MODIFICA CHIAVE: tutto il testo sarà centrato */
}

/* 2. Stile per il titolo del prodotto: audace, uppercase e spaziato */
.collection-content .collection-title {
    font-size: 0.8rem; /* Leggermente più piccolo per bilanciare l'uppercase */
    font-family: var(--body-font);
    font-weight: 700; /* Deciso e leggibile */
    text-transform: uppercase; /* Stile da alta moda */
    letter-spacing: 1.5px; /* FONDAMENTALE per l'eleganza dell'uppercase */
    margin-bottom: 8px; /* Più spazio tra titolo e collezione */
}

/* 3. Stile per il link del titolo: pulito e senza fronzoli */
.collection-content .collection-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.collection-content .collection-title a:hover {
    opacity: 0.7; /* Un effetto dissolvenza è più elegante dell'underline */
    text-decoration: none;
}

/* 4. Stile per il nome della collezione: secondario e discreto */
.collection-content .collection-name {
    font-size: 0.8rem;
    color: #757575; /* Grigio per renderlo meno prominente */
    text-transform: none; /* Lo lasciamo normale per creare gerarchia */
    letter-spacing: 0.5px; /* Leggera spaziatura per leggibilità */
    margin: 0;
}

/* 5. Adattiamo l'overlay: ora è solo un miglioramento per desktop */
.collection-overlay {
    opacity: 0;
    background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(5px);
    transition: opacity 0.4s ease;
}
.collection-item:hover .collection-overlay {
    opacity: 1;
}
.collection-overlay .collection-link {
    background: #000;
	color: #fff;
	border: 1px solid #000;
}

/* 6. Nascondiamo l'overlay su dispositivi touch per evitare confusione */
@media (hover: none) {
    .collection-overlay {
        display: none;
    }
}

/* ==========================================================================
   YOUTUBE BACKGROUND VIDEO STYLES
   ========================================================================== */

/* 
 * Questo contenitore è essenziale per far funzionare lo scaling 
 * del video a schermo intero.
*/
.hero-video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    pointer-events: none; /* Impedisce di cliccare sul video */
}

/*
 * Stile per l'iframe stesso.
 * La combinazione di width/height e min-width/min-height
 * assicura che il video copra sempre l'area, senza bande nere.
*/
.hero-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; /* Larghezza del viewport */
    height: 56.25vw; /* 100/56.25 = 16:9 aspect ratio */
    min-height: 100vh; /* Altezza del viewport */
    min-width: 177.77vh; /* 100/56.25 = 16:9 aspect ratio */
    transform: translate(-50%, -50%);
}



/* PASS */
.product-info h1, .archive-title {
    font-size: 1.7rem;
}
.btn-primary:hover {
    background: #333;
    /* transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); */
    color: #fff;
}
/* ==========================================================================
   UNIVERSAL ARCHIVE FILTER STYLES
   ========================================================================== */

/* 
 * Applichiamo lo stile del contenitore a TUTTI i contenitori di filtri.
 * Questo assicura che tutti abbiano i bordi superiore e inferiore.
*/
.collection-filters,
.gallery-filters,
.archive-filters { /* <-- Abbiamo aggiunto .archive-filters per coprire il tuo caso */
    display: flex;
    justify-content: center;
    gap: 30px; /* Spazio tra le voci */
    flex-wrap: wrap;
    padding: 15px 0;
    margin: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

/* 
 * Applichiamo lo stile dei pulsanti a TUTTI i pulsanti/link di filtro.
*/
.filter-btn,
.gallery-filter-btn {
    padding: 8px 0 !important;
    margin: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    border-bottom: 2px solid transparent; /* Bordo invisibile per stabilità */
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: none !important;
    transform: none !important;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.filter-btn:hover,
.gallery-filter-btn:hover {
    color: var(--primary-color);
}

.filter-btn.active,
.gallery-filter-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color); /* Appare il bordo solo se attivo */
}

/* ==========================================================================
   ARCHIVE HEADER - DESCRIPTION SPACING FIX
   ========================================================================== */

/* 
 * Aggiungiamo uno spazio sopra la descrizione per separarla dai filtri
 * e la centriamo per un look più pulito.
*/
.archive-description {
    margin-bottom:20px;
}

/* ==========================================================================
   FULL-WIDTH FLUID LAYOUT TRANSFORMATION
   ========================================================================== */

/* 1. Il "Grande Interruttore": Liberiamo il contenitore principale
-----------------------------------------------------------------------------*/
/* Rimuoviamo il limite di larghezza fisso e lo rendiamo fluido.
   Il padding laterale impedisce al contenuto di toccare i bordi dello schermo. */
.container {
    max-width: none !important; /* Forza la rimozione del limite */
    width: 100%;
    padding: 0 40px; /* Aumentiamo il respiro laterale */
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px; /* Spazio laterale ridotto su mobile */
    }
}


/* 2. Controllo dei Contenuti: Manteniamo la leggibilità
-----------------------------------------------------------------------------*/
/* Sezioni che contengono molto testo o elementi che non dovrebbero allargarsi
   all'infinito. Diamo loro una larghezza massima e li centriamo. */

.header-content,
.footer-content,
.archive-header,
.products-grid,
.gallery-grid,
.videos-grid,
.related-products .container, /* Applichiamo il limite al container interno */
.product-details,
.events-timeline,
.contact-grid,
.post-navigation,
.pagination {
    max-width: 1800px; /* Una larghezza massima generosa per schermi grandi */
    margin-left: auto;
    margin-right: auto;
}


/* 3. Gestione delle Sezioni a Pieno Schermo (Homepage)
-----------------------------------------------------------------------------*/
/* Per le sezioni della homepage, vogliamo che lo sfondo sia sempre a tutta larghezza,
   ma il contenuto (es. il titolo della sezione) rimanga allineato con il resto.
   La struttura HTML attuale (con .container all'interno della section) è già perfetta per questo.
   Dobbiamo solo assicurarci che il .container non abbia padding extra che rompe l'allineamento. */

.section > .container {
    padding-left: 40px;
    padding-right: 40px;
}


/* 4. Ritocchi Finali e Correzioni
-----------------------------------------------------------------------------*/
/* L'header dei singoli prodotti/portfolio ora sarà più pulito */
.product-single .product-header,
.portfolio-single .portfolio-header,
.event-single .event-header {
    padding-left: 0;
    padding-right: 0;
}

/* Assicuriamo che la griglia delle immagini del prodotto singolo
   non diventi eccessivamente grande su schermi ultrawide */
.product-details {
    width: 100%;
}

/* ==========================================================================
   HOMEPAGE GALLERY - OVERLAY VISIBILITY FIX
   ========================================================================== */

/* 1. Stile del contenitore principale del link */
.gallery-link-wrapper {
    display: block;
    position: relative; /* Necessario per posizionare l'overlay */
    text-decoration: none;
}

/* 2. L'overlay è ora sempre visibile */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1; /* FORZA la visibilità */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%); /* Gradiente più scuro in basso per leggibilità */
    display: flex;
    align-items: flex-end; /* Allinea il testo in basso */
    transition: background 0.4s ease; /* Transizione per l'hover */
}

/* 3. Aggiungiamo un leggero effetto all'hover per feedback visivo */
.gallery-link-wrapper:hover .gallery-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}

.gallery-link-wrapper:hover .gallery-image img {
    transform: scale(1.03); /* Manteniamo un leggero zoom all'hover */
}

/* 4. Il blocco info è posizionato all'interno dell'overlay */
.gallery-info {
    position: relative; /* Rimuoviamo il posizionamento assoluto precedente */
    transform: none; /* Reset della trasformazione */
    width: 100%;
    padding: 25px;
    color: #fff;
}

/* 5. Stile del testo per la massima leggibilità */
.gallery-info .gallery-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.2;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.gallery-info .gallery-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ==========================================================================
   POST NAVIGATION - ELEGANT REDESIGN
   ========================================================================== */

/* 1. Stile del contenitore principale: pulito e definito da linee */
.post-navigation {
    display: flex;
    justify-content: space-between; /* Spinge "Prev" a sinistra e "Next" a destra */
    gap: 40px;
    margin-top: 100px;
    padding: 40px 0; /* Solo spaziatura verticale */
    background: none; /* Rimuove lo sfondo grigio */
    border-radius: 0; /* Rimuove gli angoli arrotondati */
    border-top: 1px solid #e5e5e5; /* Linea di separazione superiore */
    border-bottom: 1px solid #e5e5e5; /* Linea di separazione inferiore */
}

/* 2. Rimuoviamo il bottone centrale, non è necessario e appesantisce il design */
.nav-back {
    display: none;
}

/* 3. Stile dei link "Precedente" e "Successivo" */
.nav-previous,
.nav-next {
    padding: 20px; /* Aumenta l'area cliccabile */
    background: none !important; /* Rimuove lo sfondo del "bottone" */
    box-shadow: none !important; /* LA MODIFICA CHIAVE: rimuove l'ombra */
    transform: none !important; /* LA MODIFICA CHIAVE: rimuove l'effetto di sollevamento */
    transition: background-color 0.3s ease; /* Transizione delicata per l'hover */
    border-radius: 4px; /* Un arrotondamento quasi impercettibile */
    flex: 1; /* Fa in modo che occupino lo stesso spazio */
}

/* 4. Feedback visivo per l'hover: discreto e funzionale */
.nav-previous:hover,
.nav-next:hover {
    background-color: #f9f9f9; /* Sfondo grigio chiarissimo per indicare l'area attiva */
}

/* 5. Stile della tipografia interna per massima leggibilità e gerarchia */
.nav-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
}