/* ============================================
   GIANNI PACE GIOIELLI - Main Stylesheet
   Design: Luxury Dark Theme
   ============================================ */

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

/* ============================================
   CSS Variables - Design System
   ============================================ */
:root {
  /* Colors */
  --gold: #D4AF37;
  --gold-light: #E5C565;
  --gold-dark: #B8962E;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F5E6A3 50%, #D4AF37 100%);
  
  --black: #0A0A0A;
  --black-soft: #1A1A1A;
  --black-lighter: #2A2A2A;
  
  --white: #FFFFFF;
  --white-soft: #F5F5F5;
  --white-muted: #E0E0E0;
  
  --gray: #888888;
  --gray-light: #AAAAAA;
  --gray-dark: #555555;
  
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing */
  --section-padding: 120px;
  --container-width: 1200px;
  --container-padding: 40px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.6s ease;
  --transition-elegant: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 4px 30px rgba(212, 175, 55, 0.2);
  
  /* Border */
  --border-gold: 1px solid var(--gold);
  --border-subtle: 1px solid rgba(212, 175, 55, 0.3);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--white-soft);
  background-color: var(--black);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
}

h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
}

p {
  font-size: 1rem;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

.text-gold {
  color: var(--gold);
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ============================================
   Layout Components
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

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

.section-title {
  margin-bottom: 30px;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 25px 0;
  transition: var(--transition-normal);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 15px 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  transition: var(--transition-fast);
}

.logo span {
  color: var(--gold);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 50px;
}

.nav-list {
  display: flex;
  gap: 40px;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-soft);
  position: relative;
  padding: 5px 0;
}

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

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

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

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 1px;
  background: var(--white);
  transition: var(--transition-fast);
}

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: blur(2px);
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.6) 50%,
    rgba(10, 10, 10, 0.9) 100%
  );
  z-index: 2;
}

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

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-title {
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  color: var(--white-muted);
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

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

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 1px solid var(--gray);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollMouse 2s ease infinite;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 45px;
  border: var(--border-gold);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transition: var(--transition-normal);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  color: var(--gold);
  background: transparent;
}

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

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

.btn-gold::before {
  background: var(--black);
}

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

/* ============================================
   About / Storia Section
   ============================================ */
.about {
  background: var(--black-soft);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: var(--border-gold);
  z-index: -1;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  background: var(--gold);
  opacity: 0.1;
  z-index: -1;
}

.about-text .section-subtitle {
  text-align: left;
}

.about-text h2 {
  text-align: left;
  margin-bottom: 30px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.9;
}

.about-stats {
  display: flex;
  gap: 50px;
  margin-top: 50px;
  padding-top: 50px;
  border-top: var(--border-subtle);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
  background: var(--black);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

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

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 10, 10, 0.7) 100%
  );
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 1;
}

.gallery-item::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  transition: var(--transition-normal);
  z-index: 2;
}

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

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

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================
   Products Preview Section
   ============================================ */
.products-preview {
  background: var(--black-soft);
}

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

.product-card {
  background: var(--black);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-gold);
}

.product-image {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

.product-image img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 10% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  box-sizing: border-box !important;
  transition: var(--transition-slow);
}

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

.product-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
}

.product-info {
  padding: 30px;
  text-align: center;
}

.product-category {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 15px;
}

.product-link {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-link::after {
  content: '→';
  transition: var(--transition-fast);
}

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

.product-link:hover::after {
  transform: translateX(5px);
}

.products-cta {
  text-align: center;
  margin-top: 60px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  background: var(--black);
  position: relative;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info h2 {
  margin-bottom: 30px;
}

.contact-info p {
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

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

.contact-icon {
  width: 50px;
  height: 50px;
  border: var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

.contact-text h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.contact-text p {
  font-size: 1rem;
  color: var(--white-soft);
  margin-bottom: 0;
}

.contact-text a {
  color: var(--white-soft);
}

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

/* Contact Form */
.contact-form {
  background: var(--black-soft);
  padding: 50px;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 15px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-dark);
  transition: var(--transition-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-dark);
}

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

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

.contact-form .btn {
  width: 100%;
  margin-top: 10px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--black-soft);
  padding: 80px 0 30px;
  border-top: var(--border-subtle);
}

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

.footer-brand .logo {
  margin-bottom: 20px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray);
  max-width: 300px;
}

.footer-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 25px;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--gray);
}

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

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  border: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--gray);
  transition: var(--transition-fast);
}

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

.social-link:hover svg {
  fill: var(--black);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: var(--border-subtle);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-dark);
  margin: 0;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 1px;
  background: var(--white);
  transition: var(--transition-fast);
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.lightbox-close:hover::before,
.lightbox-close:hover::after {
  background: var(--gold);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.lightbox-nav svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  transition: var(--transition-fast);
}

.lightbox-nav:hover svg {
  stroke: var(--black);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* ============================================
   Particles Container
   ============================================ */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ============================================
   Utility Classes
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   WhatsApp Float Button
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeInWhatsapp 0.5s ease 1.5s forwards;
}

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

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ============================================
   Navigate Button
   ============================================ */
.btn-navigate {
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.btn-navigate svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .btn-navigate {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Product Modal - Elegant Flip Effect
   ============================================ */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
}

.product-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.product-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--black-light);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-15deg) scale(0.9);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.product-modal.active .product-modal-content {
  transform: perspective(1000px) rotateY(0deg) scale(1);
  opacity: 1;
}

.product-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.product-modal-close:hover {
  background: var(--gold);
  color: var(--black);
  transform: rotate(90deg);
}

.product-modal-gallery {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  min-height: 400px;
}

.product-modal-main-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-main-image img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  animation: modalImageIn 0.6s ease 0.2s both;
}

@keyframes modalImageIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotateY(10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

.product-modal-info {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.product-modal-info .product-category {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  animation: fadeInUp 0.5s ease 0.3s both;
}

.product-modal-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease 0.4s both;
}

.product-modal-info .product-description {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
  animation: fadeInUp 0.5s ease 0.5s both;
}

.product-modal-info .product-specs {
  margin-bottom: 30px;
  animation: fadeInUp 0.5s ease 0.6s both;
}

.product-modal-info .product-specs h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.product-modal-info .product-specs dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-modal-info .product-specs dt {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.product-modal-info .product-specs dd {
  color: var(--white);
  font-weight: 500;
  text-align: right;
}

.product-modal-info .btn {
  animation: fadeInUp 0.5s ease 0.7s both;
  align-self: flex-start;
}

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

/* Modal Responsive */
@media (max-width: 900px) {
  .product-modal-content {
    flex-direction: column;
    max-height: 95vh;
  }
  
  .product-modal-gallery {
    min-height: 300px;
    max-height: 40vh;
  }
  
  .product-modal-main-image img {
    max-height: 35vh;
  }
  
  .product-modal-info {
    padding: 30px 25px;
  }
  
  .product-modal-info h2 {
    font-size: 1.5rem;
  }
  
  .product-modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

/* ============================================
   Nav dropdown "Le Nostre Creazioni"
   ============================================ */
.nav-item-creazioni {
  position: relative;
}

.nav-item-creazioni .dropdown-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

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

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px;
  background: var(--black);
  border: var(--border-subtle);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility 0s linear var(--transition-normal);
  z-index: 100;
  list-style: none;
}

.nav-item-creazioni:hover > .nav-dropdown,
.nav-item-creazioni:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

.nav-dropdown li {
  position: relative;
}

.nav-dropdown li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-soft);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-dropdown li > a:hover,
.nav-dropdown li.is-current > a {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

.nav-dropdown .submenu-arrow {
  font-size: 0.9rem;
  color: var(--gold);
}

.nav-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: var(--black);
  border: var(--border-subtle);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility 0s linear var(--transition-normal);
  list-style: none;
}

.nav-dropdown li.has-submenu:hover > .nav-submenu,
.nav-dropdown li.has-submenu:focus-within > .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}

/* Forza chiusura del dropdown subito dopo un click (prima del cambio pagina) */
.nav-item-creazioni.is-dismissed > .nav-dropdown,
.nav-item-creazioni.is-dismissed .nav-submenu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
