/* 
   Argomenti Tessili - High Fashion Theme
   Inspired by gentilimosconi.it
   Colors: Gold (#c5a880), Black (#0a0a0a), White (#ffffff)
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Montserrat:wght@200;300;400;500;600;700&display=swap');

:root {
    --gold: #c5a880;
    --gold-light: #e0cca8;
    --gold-dark: #a88d65;
    --gold-rgb: 197, 168, 128;
    --black: #0a0a0a;
    --black-pure: #000000;
    --black-card: #121212;
    --white: #f9f9f9;
    --white-pure: #ffffff;
    --gray-light: #f0f0f0;
    --gray-medium: #888888;
    --gray-dark: #222222;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', Helvetica, Arial, sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease-in-out;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    font-weight: 300;
    background-color: var(--black);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--gray-medium);
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--black-pure);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background-color: var(--black);
    color: var(--white);
}

.section-light {
    background-color: var(--white-pure);
    color: var(--black-pure);
}

.section-light p {
    color: #555;
}

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

/* Section Title - Editorial Style */
.section-header {
    margin-bottom: 80px;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-title span {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
}

/* Header & Sticky Nav */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 30px 0;
}

.header-main.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
}

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

.logo-link {
    display: block;
    max-width: 260px;
    transition: var(--transition-smooth);
}

.logo-img {
    width: 100%;
    height: auto;
    filter: brightness(1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-item a {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 400;
    color: var(--white);
    position: relative;
    padding: 10px 0;
    transition: var(--transition-fast);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: var(--transition-smooth);
}

.nav-item a:hover {
    color: var(--gold);
}

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

.header-main.scrolled .nav-item a {
    color: var(--white);
}

.header-main.scrolled .nav-item a:hover {
    color: var(--gold);
}

/* Dropdown Menu (Collezioni) */
.nav-item--dropdown {
    position: relative;
}

.nav-chevron {
    font-size: 0.6rem;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.25s ease;
}

.nav-item--dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-top: 2px solid var(--gold);
    list-style: none;
    min-width: 170px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    transform: translateX(-50%) translateY(-6px);
    z-index: 1100;
}

.nav-item--dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
    display: block;
    padding: 10px 22px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white);
    font-weight: 400;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-dropdown li a::after {
    display: none;
}

.nav-dropdown li a:hover {
    color: var(--gold);
    background-color: rgba(197, 168, 128, 0.08);
    padding-left: 28px;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin-bottom: 5px;
    transition: var(--transition-smooth);
}

.mobile-nav-toggle span:last-child {
    margin-bottom: 0;
}

/* Hero Video Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* To scale the video and make it cover the container */
.hero-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--gold);
    margin-bottom: 25px;
    display: block;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 35px;
    line-height: 1.1;
    color: var(--white-pure);
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.hero-title span {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
}

.hero-desc {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: #d1d1d1;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.8;
    animation: fadeInUp 1.4s ease forwards;
}

/* Buttons */
.btn-gold {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    padding: 18px 42px;
    background-color: var(--gold);
    color: var(--black-pure);
    border: 1px solid var(--gold);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-smooth);
    animation: fadeInUp 1.6s ease forwards;
}

.btn-gold:hover {
    color: var(--white-pure);
    background-color: transparent;
    border-color: var(--white-pure);
}

.btn-outline {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    padding: 16px 36px;
    background-color: transparent;
    color: var(--black-pure);
    border: 1px solid var(--black-pure);
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    color: var(--white-pure);
    background-color: var(--black-pure);
    border-color: var(--black-pure);
}

.btn-outline-gold {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 12px 28px;
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    transition: var(--transition-smooth);
}

.btn-outline-gold:hover {
    color: var(--black-pure);
    background-color: var(--gold);
}

/* Scroll Down Mouse */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.scroll-text {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gray-medium);
}

.mouse-icon {
    width: 20px;
    height: 35px;
    border: 2px solid var(--gold);
    border-radius: 10px;
    position: relative;
}

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

/* Atelier Section */
.atelier-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.atelier-text {
    padding-right: 40px;
}

.atelier-title {
    font-size: 4rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.atelier-title span {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
}

.atelier-description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}

.atelier-quote {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-style: italic;
    border-left: 2px solid var(--gold);
    padding-left: 30px;
    margin: 40px 0;
    color: var(--black-pure);
}

.atelier-image-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.atelier-image-container::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--gold);
    pointer-events: none;
    z-index: 2;
    transition: var(--transition-smooth);
}

.atelier-image-container:hover::after {
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
}

.atelier-img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.atelier-image-container:hover .atelier-img {
    transform: scale(1.05);
}

/* Collezioni Section */
.collezioni-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.collezione-card {
    position: relative;
    height: 600px;
    overflow: hidden;
    cursor: pointer;
}

.collezione-img-container {
    width: 100%;
    height: 100%;
}

.collezione-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.collezione-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.1) 0%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 2;
    transition: var(--transition-smooth);
}

.collezione-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 3;
    transition: var(--transition-smooth);
}

.collezione-num {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.2em;
}

.collezione-title {
    font-size: 2.2rem;
    color: var(--white-pure);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.collezione-desc {
    color: #c1c1c1;
    font-size: 0.85rem;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.collezione-link {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.collezione-link i {
    transition: var(--transition-fast);
}

/* Hover Effects */
.collezione-card:hover .collezione-img {
    transform: scale(1.08);
}

.collezione-card:hover .collezione-overlay {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.collezione-card:hover .collezione-desc,
.collezione-card:hover .collezione-link {
    opacity: 1;
    transform: translateY(0);
}

.collezione-card:hover .collezione-link i {
    transform: translateX(5px);
}

/* Diario (Press) Section - Grid of 4 columns */
.diario-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.diario-card {
    background-color: var(--white-pure);
    border: 1px solid #eaeaea;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.diario-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--gold);
}

.diario-img-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.diario-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.diario-card:hover .diario-img {
    transform: scale(1.05);
}

.diario-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(10, 10, 10, 0.85);
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    padding: 6px 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.diario-info {
    padding: 30px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.diario-title {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--black-pure);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.9rem; /* Fallback height for two lines */
}

.diario-text {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.diario-footer {
    margin-top: auto;
}

/* Footer Section */
.footer-main {
    background-color: var(--black-pure);
    padding: 100px 0 50px 0;
    border-top: 1px solid rgba(197, 168, 128, 0.15);
    color: var(--white);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

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

.footer-logo {
    max-width: 250px;
}

.footer-desc {
    font-size: 0.85rem;
	font-weight: 500;
    line-height: 1.8;
    color: var(--gray-medium);
}

.footer-menu-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-title {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    font-family: var(--font-sans);
	font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-medium);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-newsletter-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input-group {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 8px;
    transition: var(--transition-fast);
}

.newsletter-input-group:focus-within {
    border-color: var(--gold);
}

.newsletter-input {
    background: transparent;
    border: none;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    width: 100%;
    padding: 5px 0;
    outline: none;
}

.newsletter-input::placeholder {
    color: var(--gray-medium);
}

.newsletter-submit {
    background: transparent;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 10px;
    transition: var(--transition-fast);
}

.newsletter-submit:hover {
    color: var(--white);
}

.newsletter-disclaimer {
    font-size: 0.7rem;
	font-weight: 400;
    color: #666;
    line-height: 1.4;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    transition: var(--transition-smooth);
}

.social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background-color: rgba(197, 168, 128, 0.05);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    font-size: 0.75rem;
	font-weight: 500;
    color: var(--gray-medium);
}

.footer-legal-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.footer-legal-links a {
    font-size: 0.75rem;
	font-weight: 500;
    color: var(--gray-medium);
}

.footer-legal-links a:hover {
    color: var(--gold);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollMouse {
    0% {
        top: 6px;
        opacity: 1;
    }
    50% {
        top: 15px;
        opacity: 0;
    }
    100% {
        top: 6px;
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4.5rem;
    }
    .atelier-grid {
        gap: 50px;
    }
    .atelier-title {
        font-size: 3rem;
    }
    .collezioni-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .collezione-card {
        height: 500px;
    }
    .diario-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .header-main {
        padding: 20px 0;
    }
    .atelier-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .atelier-text {
        padding-right: 0;
    }
    .atelier-img {
        height: 500px;
    }
    .collezioni-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .collezione-card {
        height: 450px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .section-title {
        font-size: 2.8rem;
    }
    .container {
        padding: 0 20px;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--black-pure);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition-smooth);
        z-index: 1005;
        border-left: 1px solid rgba(197, 168, 128, 0.15);
    }
    .nav-menu.active {
        right: 0;
    }
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .diario-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .atelier-title {
        font-size: 2.2rem;
    }
    .atelier-img {
        height: 350px;
    }
}

/* ==========================================================================
   Product Detail Page Specific Styles (/prodotto.php)
   ========================================================================== */

.product-details-section {
    padding-top: 180px; /* Leave space for the sticky transparent header */
    background-color: var(--white-pure);
    color: var(--black-pure);
}

.product-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 40px;
    color: var(--gold-dark);
}

.breadcrumbs a {
    color: var(--gray-medium);
    transition: var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--gold-dark);
}

.breadcrumbs span.current {
    color: var(--black-pure);
    font-weight: 500;
}

/* Gallery & Zoom */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    cursor: zoom-in;
    background-color: #f7f7f7;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-image-container:hover img {
    transform: scale(1.2);
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.thumbnail-item {
    aspect-ratio: 1;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    overflow: hidden;
    background-color: #f7f7f7;
    transition: var(--transition-smooth);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-fast);
}

.thumbnail-item:hover img {
    opacity: 0.7;
}

.thumbnail-item.active {
    border: 2px solid var(--gold);
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-cat {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: -10px;
}

.product-title {
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.2;
    color: var(--black-pure);
}

.product-code {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--gray-medium);
    text-transform: uppercase;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

/* Technical Details Table */
.technical-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 30px 0;
}

.technical-table tr {
    transition: var(--transition-fast);
}

.technical-table tr:hover {
    background-color: rgba(197, 168, 128, 0.03);
}

.technical-table th, 
.technical-table td {
    padding: 14px 10px;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.85rem;
}

.technical-table th {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--black-pure);
    width: 35%;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
}

.technical-table td {
    color: #555;
    font-weight: 400;
}

.product-actions {
    margin-top: 10px;
}

.btn-large-gold {
    display: block;
    width: 100%;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    padding: 20px;
    background-color: var(--black-pure);
    color: var(--white-pure);
    border: 1px solid var(--black-pure);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-large-gold:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--black-pure);
}

/* Lightbox Modal (Enlarge & Zoom) */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--white-pure);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10020;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white-pure);
    font-size: 3rem;
    cursor: pointer;
    padding: 15px;
    transition: var(--transition-fast);
    z-index: 10010;
}

.lightbox-nav:hover {
    color: var(--gold);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-caption {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--gray-medium);
    margin-top: 15px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Related Products Grid (coordinating with Home style) */
.related-products-section {
    background-color: var(--white);
    color: var(--black-pure);
    border-top: 1px solid #eeeeee;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background-color: var(--white-pure);
    border: 1px solid #eaeaea;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--gold);
}

.related-img-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-color: #f7f7f7;
}

.related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.related-card:hover .related-img {
    transform: scale(1.05);
}

.related-info {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-title {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--black-pure);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.6rem;
}

.related-code {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--gold-dark);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
}

.related-footer {
    margin-top: auto;
}

/* Media Queries for Product Page */
@media (max-width: 1200px) {
    .product-grid {
        gap: 40px;
    }
    .main-image-container {
        height: 500px;
    }
    .lightbox-prev {
        left: 20px;
    }
    .lightbox-next {
        right: 20px;
    }
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .main-image-container {
        height: 550px;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-details-section {
        padding-top: 140px;
    }
    .product-title {
        font-size: 2.2rem;
    }
    .main-image-container {
        height: 400px;
    }
    .thumbnails-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .lightbox-nav {
        font-size: 2rem;
        padding: 5px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Atelier Page Specific Styles (/atelier.php)
   ========================================================================== */

.atelier-hero {
    position: relative;
    height: 70vh;
    width: 100%;
    background-image: url('../images/DSC00711.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.atelier-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(10, 10, 10, 0.85) 100%);
    z-index: 1;
}

.atelier-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.atelier-hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.atelier-hero-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white-pure);
    line-height: 1.1;
}

.atelier-hero-title span {
    font-style: italic;
    color: var(--gold);
}

/* Storytelling Layout (inspired by Achille Pinto company page) */
.story-section {
    padding: 120px 0;
    background-color: var(--white-pure);
    color: var(--black-pure);
}

.story-section-dark {
    background-color: var(--black);
    color: var(--white);
}

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 4.8fr;
    gap: 80px;
}

.story-sidebar {
    position: relative;
}

.story-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold-dark);
    font-weight: 600;
    position: sticky;
    top: 140px; /* Aligns nicely below the sticky header when scrolling */
}

.story-section-dark .story-tag {
    color: var(--gold);
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.story-lead {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.45;
    color: var(--black-pure);
    text-align: justify;
}

.story-lead span {
    color: var(--gold-dark);
    font-style: italic;
}

.story-section-dark .story-lead {
    color: var(--white-pure);
}

.story-section-dark .story-lead span {
    color: var(--gold);
}

.story-body {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: inherit;
}

.story-body p {
	font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: inherit;
}

.story-body p:last-child {
    margin-bottom: 0;
}

.story-section-dark .story-body {
    color: #cccccc;
}

/* Full-bleed Image Sections for Parallax Scrolling Story */
.full-bleed-section {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--black-pure);
}

.full-bleed-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Creates parallax scrolling effect */
    opacity: 0.9;
}

/* Interactive Quote overlay inside full-bleed sections */
.full-bleed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    z-index: 2;
}

.full-bleed-quote {
    max-width: 900px;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--white-pure);
    text-align: center;
    font-style: italic;
    line-height: 1.4;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.full-bleed-quote span {
    color: var(--gold);
}

/* Responsive Styles for Storytelling Page */
@media (max-width: 1200px) {
    .story-grid {
        gap: 50px;
    }
    .story-lead {
        font-size: 1.9rem;
    }
    .full-bleed-section {
        height: 70vh;
    }
    .full-bleed-quote {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .story-tag {
        position: static;
        margin-bottom: 10px;
    }
    .atelier-hero {
        height: 60vh;
    }
    .atelier-hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .story-section {
        padding: 80px 0;
    }
    .story-lead {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    .full-bleed-section {
        height: 50vh;
    }
    .full-bleed-image {
        background-attachment: scroll; /* Disable parallax on mobile for performance */
    }
    .full-bleed-quote {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    .atelier-hero-title {
        font-size: 3rem;
    }
}


