/* ==========================================================================
   CLAUDIA CUNDARI - ARTE, LUCE, SPATOLATI E COLORI VIBRANTI
   Atelier Luminoso & Solare - Design System HTML5/CSS3
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette Atelier: Luminosità, Tele, Ocra, Oro Solare, Blu Oltremare e Corallo */
  --bg-page: #faf8f5;
  --bg-canvas: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  
  --primary-ultramarine: #004d99;
  --primary-deep: #003366;
  --gold-warm: #d4a017;
  --gold-amber: #e6b800;
  --coral-accent: #e75a40;
  --emerald-accent: #2a9d8f;
  --lavender-accent: #7b4397;

  --text-title: #1a202c;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #ffffff;

  --border-delicate: rgba(212, 160, 23, 0.25);
  --border-gold: rgba(212, 160, 23, 0.5);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px rgba(0, 77, 153, 0.08), 0 4px 12px rgba(212, 160, 23, 0.08);
  --shadow-hover: 0 20px 45px rgba(0, 77, 153, 0.16), 0 8px 24px rgba(212, 160, 23, 0.2);

  --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 10% 15%, rgba(212, 160, 23, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 40%, rgba(0, 77, 153, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 30% 80%, rgba(231, 90, 64, 0.05) 0%, transparent 40%),
    #faf8f5;
  background-attachment: fixed;
}

/* ==========================================================================
   PRELOADER CON PERCENTUALE & COLORI VIVI D'ATELIER
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-canvas-card {
  text-align: center;
  max-width: 480px;
  padding: 40px 30px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 77, 153, 0.12), 0 0 0 1px rgba(212, 160, 23, 0.2);
}

.brush-stroke-animation {
  width: 110px;
  height: 90px;
  margin: 0 auto 20px;
  position: relative;
  animation: brushPulse 2s ease-in-out infinite;
}

@keyframes brushPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.06) rotate(-3deg); }
}

.loader-artist-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  letter-spacing: 3px;
  color: var(--primary-ultramarine);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}

.loader-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-warm);
  margin-bottom: 25px;
}

.palette-dots-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

.palette-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  animation: dotBounce 1.4s infinite ease-in-out both;
}
.palette-dot:nth-child(1) { background: #004d99; animation-delay: -0.32s; }
.palette-dot:nth-child(2) { background: #e75a40; animation-delay: -0.16s; }
.palette-dot:nth-child(3) { background: #d4a017; animation-delay: 0s; }
.palette-dot:nth-child(4) { background: #2a9d8f; animation-delay: 0.16s; }
.palette-dot:nth-child(5) { background: #8e44ad; animation-delay: 0.32s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1.15); opacity: 1; }
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #f1f4f9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-ultramarine), var(--coral-accent), var(--gold-warm));
  border-radius: 10px;
  transition: width 0.15s ease-out;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.progress-percentage {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-ultramarine);
}

.progress-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   NAVBAR LUMINOSA & CRISTALLINA
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 2.5vw, 42px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 77, 153, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.site-nav.scrolled {
  height: 70px;
  box-shadow: 0 6px 25px rgba(0, 77, 153, 0.09);
  background: rgba(255, 255, 255, 0.98);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.brand-monogram {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-ultramarine), #0066cc);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 77, 153, 0.3);
  transition: var(--transition);
}

.nav-brand:hover .brand-monogram {
  transform: rotate(6deg) scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 77, 153, 0.4);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 2px;
  color: var(--primary-ultramarine);
  text-transform: uppercase;
  font-weight: 700;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--coral-accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.05vw, 18px);
  list-style: none;
}

.nav-link {
  color: var(--text-title);
  text-decoration: none;
  font-size: clamp(0.75rem, 0.78vw, 0.84rem);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary-ultramarine), var(--coral-accent));
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

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

.nav-cta-btn {
  background: #0050a0;
  color: #fff;
  padding: 9px 20px;
  border-radius: 30px;
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 80, 160, 0.2);
  transition: var(--transition);
  display: inline-block;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 80, 160, 0.3);
  background: #003d7a;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary-ultramarine);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION LUMINOSA (Arte e Passione tra Colori Vivi e Sculture)
   ========================================================================== */
.hero-section {
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 70px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.hero-art-backdrop {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 90, 64, 0.05) 0%, rgba(212, 160, 23, 0.04) 50%, transparent 70%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  max-width: 1240px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Colonna Sinistra: Cornice Bianca e Foto con Badge */
.hero-frame-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-canvas-frame {
  background: #ffffff;
  padding: 12px;
  border-radius: 18px;
  box-shadow: 
    0 18px 45px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
  display: inline-block;
  max-width: 440px;
  width: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-canvas-frame:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 24px 55px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.05);
}

.hero-portrait-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.hero-frame-badge {
  position: absolute;
  bottom: -14px;
  right: 22px;
  background: #ffffff;
  padding: 6px 18px;
  border-radius: 25px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #0050a0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1.5px solid #0050a0;
}

/* Colonna Destra: Kicker, Titolo Artistico, Quadro, Citazione e Bottoni */
.hero-content {
  padding-left: 10px;
  text-align: left;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef6fc;
  border: 1px solid #d4e6f4;
  padding: 5px 14px;
  border-radius: 20px;
  color: #004d99;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-kicker .kicker-star {
  color: #004d99;
  font-size: 0.85rem;
  line-height: 1;
}

.hero-main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.85rem;
  line-height: 1.22;
  color: #0f172a;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-main-title .title-colori {
  color: #c4401d;
  font-weight: 700;
}

.hero-main-title .title-vivi {
  color: #d48f18;
  font-weight: 700;
}

.hero-main-title .title-e {
  color: #0f172a;
  font-weight: 600;
}

.hero-main-title .title-sculture {
  color: #0f172a;
  font-weight: 600;
}

/* Riquadro Dipinto Quadrato */
.hero-artwork-frame {
  display: block;
  max-width: 330px;
  width: 100%;
  margin-bottom: 14px;
}

.hero-artwork-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Box Citazione */
.hero-quote-card {
  background: #faf8f5;
  border: 1px solid #ebdcd0;
  border-radius: 4px;
  padding: 12px 18px;
  max-width: 440px;
  margin-bottom: 24px;
}

.hero-quote-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.45;
  color: #6f4724;
  font-style: normal;
  margin: 0;
}

.hero-quote-author {
  text-align: right;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  color: #6f4724;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* Bottoni Call to Action */
.hero-btn-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-solar {
  background: #0050a0;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 80, 160, 0.25);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-solar .btn-arrow {
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.btn-solar:hover {
  background: #003d7a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 80, 160, 0.35);
}

.btn-solar:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-outline-solar {
  background: #ffffff;
  color: #0050a0;
  border: 1.5px solid #0050a0;
  padding: 11px 26px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline-solar:hover {
  background: rgba(0, 80, 160, 0.05);
  transform: translateY(-2px);
  border-color: #003d7a;
  color: #003d7a;
}

/* ==========================================================================
   HUB DELLE COLLEZIONI (MasterMenu a Colori Vivaci)
   ========================================================================== */
.collections-section {
  padding: 100px 40px 60px;
  max-width: 1440px;
  margin: 0 auto;
}

.section-head-center {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--coral-accent);
  margin-bottom: 12px;
}

.section-title-large {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--text-title);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-lead-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.collections-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 32px;
}

.collection-box {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.collection-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(212, 160, 23, 0.4);
}

.collection-box-img-wrap {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #f0f2f5;
}

.collection-box-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-box:hover .collection-box-img {
  transform: scale(1.08);
}

.collection-badge-count {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-ultramarine);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.collection-box-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.collection-box-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary-ultramarine);
  font-weight: 700;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.collection-box:hover .collection-box-title {
  color: var(--coral-accent);
}

.collection-box-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.collection-box-link {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-ultramarine);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.collection-box:hover .collection-box-link {
  gap: 14px;
  color: var(--coral-accent);
}

.collection-box-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.collection-box-play-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 77, 153, 0.08);
  border: 1px solid rgba(0, 77, 153, 0.22);
  color: var(--primary-ultramarine);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.collection-box-play-link:hover {
  background: var(--primary-ultramarine);
  color: #ffffff;
  border-color: var(--primary-ultramarine);
  transform: translateY(-1px);
}

/* ==========================================================================
   GALLERIA ATTIVA & FILTRI
   ========================================================================== */
.gallery-section-wrap {
  padding: 85px 30px;
  max-width: 1540px;
  margin: 0 auto;
}

.gallery-subsections-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 32px 0 46px;
}

.gallery-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 77, 153, 0.18);
  color: var(--text-dark);
  padding: 13px 28px;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 30, 60, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.gallery-sub-btn:hover {
  border-color: var(--primary-ultramarine);
  color: var(--primary-ultramarine);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 77, 153, 0.15);
}

.gallery-sub-btn.active {
  background: linear-gradient(135deg, #004d99 0%, #0066cc 100%);
  border-color: #004d99;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 77, 153, 0.32);
  transform: translateY(-2px);
}

.gallery-sub-btn .sub-btn-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.gallery-sub-btn .sub-btn-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(0, 77, 153, 0.1);
  color: var(--primary-ultramarine);
  transition: all 0.25s ease;
}

.gallery-sub-btn.active .sub-btn-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Griglia Masonry fluida a 4 colonne su desktop (proporzioni naturali delle tele) */
.artworks-deck-grid {
  display: block;
  column-count: 4;
  column-gap: 24px;
}

@media (max-width: 1200px) {
  .artworks-deck-grid {
    column-count: 3;
    column-gap: 20px;
  }
}

@media (max-width: 860px) {
  .artworks-deck-grid {
    column-count: 2;
    column-gap: 16px;
  }
}

@media (max-width: 540px) {
  .artworks-deck-grid {
    column-count: 1;
  }
}

.artwork-canvas-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 30px;
  background: transparent;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  will-change: transform, opacity;
}

.artwork-photo-stage {
  width: 100%;
  height: auto;
  background: #f3f1ed;
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 20, 50, 0.08);
  transition: box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.artwork-canvas-card:hover .artwork-photo-stage {
  box-shadow: 0 18px 42px rgba(0, 35, 80, 0.16);
}

.artwork-photo-stage img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  transform: scale(1);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.artwork-canvas-card:hover .artwork-photo-stage img {
  transform: scale(1.045);
}

.artwork-lens-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 15, 25, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.artwork-canvas-card:hover .artwork-lens-btn {
  opacity: 1;
  transform: scale(1);
}

/* Didascalie essenziali e pulite sotto l'opera */
.artwork-detail-info {
  padding: 12px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: transparent;
}

.artwork-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.artwork-technique {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--primary-ultramarine);
  text-transform: uppercase;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.artwork-dimensions {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--gold-warm);
  text-transform: uppercase;
  margin: 0;
  background: rgba(212, 160, 23, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(212, 160, 23, 0.25);
  display: inline-block;
}

.artwork-card-actions {
  margin-top: auto;
  border-top: 1px solid #f0f2f5;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.artwork-zoom-trigger {
  background: transparent;
  border: none;
  color: var(--primary-ultramarine);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.artwork-zoom-trigger:hover {
  color: var(--coral-accent);
}

/* ==========================================================================
   BIOGRAFIA, MOSTRE & CRITICA
   ========================================================================== */
.atelier-paper-section {
  padding: 90px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.canvas-white-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 55px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.06);
}

.portrait-frame-right {
  float: right;
  max-width: 320px;
  margin: 0 0 30px 35px;
  border-radius: var(--radius-md);
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 77, 153, 0.12);
  border: 1px solid rgba(0, 77, 153, 0.1);
}

.portrait-frame-right img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

.story-prose {
  font-size: 1.15rem;
  line-height: 1.95;
  color: #2d3748;
}

.story-prose p {
  margin-bottom: 24px;
}

.timeline-solar-list {
  list-style: none;
  margin-top: 30px;
}

.timeline-solar-item {
  position: relative;
  padding-left: 35px;
  margin-bottom: 26px;
  border-left: 3px solid var(--primary-ultramarine);
}

.timeline-solar-item::before {
  content: '';
  position: absolute;
  left: -8.5px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral-accent);
  box-shadow: 0 0 0 4px rgba(231, 90, 64, 0.2);
}

.timeline-year-tag {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-ultramarine);
}

.timeline-text-body {
  color: var(--text-body);
  font-size: 1rem;
  margin-top: 4px;
}

/* ==========================================================================
   SEZIONE CRITICA D'ARTE
   ========================================================================== */
.poem-canvas-card {
  padding: 10px 10px 10px 24px;
  border-left: 4px solid var(--gold-warm);
  background: rgba(212, 160, 23, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.poem-canvas-card p {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.85;
  color: #2c3e50;
  font-style: italic;
  margin-bottom: 14px;
}

.poem-author {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #8c5828;
  letter-spacing: 0.5px;
}

.critica-quotes-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.critica-quote-item {
  position: relative;
  background: #faf8f5;
  border: 1px solid #ebdcd0;
  border-left: 4px solid var(--primary-ultramarine);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  box-shadow: 0 4px 14px rgba(0, 77, 153, 0.04);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
  will-change: transform, opacity;
}

.critica-quote-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 77, 153, 0.09);
  border-color: #d4a017;
}

.critica-quote-body {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.85;
  color: #2d3748;
  font-style: italic;
  margin: 0 0 14px 0;
}

.critica-quote-author {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-ultramarine);
  text-align: right;
  letter-spacing: 0.5px;
}

.critica-mentions-block {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px dashed rgba(212, 160, 23, 0.4);
}

.critica-mentions-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #6f4724;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.critica-mentions-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.critica-pill {
  background: #ffffff;
  border: 1px solid #ebdcd0;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 0.95rem;
  color: #4a5568;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.critica-pill:hover {
  border-color: var(--primary-ultramarine);
  color: var(--primary-ultramarine);
  transform: translateY(-1px);
}

/* ==========================================================================
   SEZIONE SLIDESHOW: OPERE IN SEQUENZA (SFONDO LUMINOSO ATELIER)
   ========================================================================== */
.slideshow-section {
  padding: 70px 20px 90px;
  max-width: 1440px;
  margin: 0 auto;
}

.slideshow-theater-wrap {
  position: relative;
  width: 100%;
  max-width: 1360px;
  margin: 28px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 40, 80, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1.5px solid rgba(0, 77, 153, 0.14);
  background: #ffffff;
}

.slideshow-theater-wrap.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 999999 !important;
  background: #f8fafc !important;
}

.slideshow-stage {
  position: relative;
  width: 100%;
  height: 84vh;
  min-height: 640px;
  max-height: 940px;
  background: radial-gradient(circle at center, #ffffff 0%, #f4f7fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slideshow-theater-wrap.is-fullscreen .slideshow-stage {
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: none !important;
}

/* Due layer per dissolvenza incrociata perfetta (crossfade) */
.slideshow-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  opacity: 0;
  transition: opacity 1.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.slideshow-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.slideshow-img {
  max-width: 98%;
  max-height: 97%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 16px 45px rgba(0, 20, 50, 0.16), 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  user-select: none;
}

.slideshow-theater-wrap.is-fullscreen .slideshow-slide {
  padding: 8px 12px;
}

.slideshow-theater-wrap.is-fullscreen .slideshow-img {
  max-width: 99%;
  max-height: 98%;
}

/* Barra di avanzamento temporale (5.5s) */
.slideshow-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(0, 77, 153, 0.08);
  z-index: 10;
}

.slideshow-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4a017, #e75a40, #0077cc);
  transition: width 0.05s linear;
}

/* Frecce di navigazione a sfioramento in stile luminoso */
.slideshow-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(0, 77, 153, 0.2);
  color: var(--primary-ultramarine);
  box-shadow: 0 6px 20px rgba(0, 30, 60, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 8;
  transition: var(--transition);
  opacity: 0.65;
}

.slideshow-stage:hover .slideshow-nav-arrow,
.slideshow-nav-arrow:hover {
  opacity: 1;
  background: var(--primary-ultramarine);
  color: #ffffff;
  border-color: var(--primary-ultramarine);
  box-shadow: 0 8px 24px rgba(0, 77, 153, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.slideshow-nav-arrow.arrow-left {
  left: 20px;
}

.slideshow-nav-arrow.arrow-right {
  right: 20px;
}

/* Controlli Fluttuanti Discreti (Pausa/Play & Schermo Intero) */
.slideshow-floating-controls {
  position: absolute;
  bottom: 24px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 12;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: 35px;
  border: 1.5px solid rgba(0, 77, 153, 0.18);
  box-shadow: 0 8px 28px rgba(0, 30, 60, 0.12);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.slideshow-stage:hover .slideshow-floating-controls,
.slideshow-floating-controls:hover {
  opacity: 1;
}

.slideshow-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f0f4f9;
  border: 1px solid rgba(0, 77, 153, 0.2);
  color: var(--primary-ultramarine);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slideshow-action-btn:hover {
  background: var(--primary-ultramarine);
  color: #ffffff;
  border-color: var(--primary-ultramarine);
  transform: scale(1.08);
}

.slideshow-play-btn {
  background: var(--primary-ultramarine);
  color: #ffffff;
  border-color: var(--primary-ultramarine);
}

.slideshow-play-btn:hover {
  background: #003870;
  color: #ffffff;
}

/* Evidenziazione voce menu Opere in Sequenza */
.nav-links a[href="#sequenza"] {
  font-weight: 600;
  position: relative;
}

@media (max-width: 768px) {
  .slideshow-stage {
    height: 500px;
    min-height: 440px;
  }
  .slideshow-slide {
    padding: 20px 15px 125px;
  }
  .slideshow-bottom-bar {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .slideshow-action-btns {
    width: 100%;
    justify-content: flex-end;
  }
  .slideshow-artwork-title {
    font-size: 1.05rem;
  }
  .slideshow-nav-arrow {
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   LIGHTBOX MODALE A TUTTO SCHERMO
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 25, 0.95);
  backdrop-filter: blur(20px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 30px;
}

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

.lightbox-dialog-window {
  max-width: 1240px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(0,0,0,0.5);
  position: relative;
}

.lightbox-left-stage {
  flex: 1.5;
  background: #f4f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  min-width: 420px;
}

.lightbox-left-stage img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
}

.lightbox-right-specs {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  background: #ffffff;
}

.lightbox-dismiss-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f4f9;
  border: none;
  color: var(--text-title);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-dismiss-btn:hover {
  background: var(--coral-accent);
  color: #fff;
  transform: rotate(90deg);
}

.lightbox-cat-badge {
  display: inline-block;
  background: rgba(0, 77, 153, 0.08);
  color: var(--primary-ultramarine);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lightbox-art-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text-title);
  font-weight: 700;
  margin-bottom: 10px;
}

.lightbox-art-tech {
  font-size: 1.15rem;
  color: var(--coral-accent);
  font-weight: 600;
  margin-bottom: 24px;
}

/* ==========================================================================
   FOOTER SU SFONDO NERO AD ALTA LEGGIBILITÀ
   ========================================================================== */
footer {
  position: relative;
  background-color: #000000;
  color: #ffffff;
  border-top: 2px solid #d4a017;
  padding: 85px 40px 40px;
  margin-top: 90px;
}

.footer-inner-grid {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 1.5px;
}

.footer-brand-p {
  color: #e2e8f0;
  line-height: 1.8;
  max-width: 520px;
  font-size: 1rem;
  font-weight: 600;
}

.footer-geo-pin {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

.footer-geo-pin svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #fbbf24;
}

.footer-phone-link {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-phone-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.footer-social-btn.social-instagram:hover {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 55%, #8134af 100%);
  border-color: transparent;
  color: #ffffff;
}

.footer-social-btn.social-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.footer-nav-col h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fbbf24;
  margin-bottom: 20px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 800;
}

.footer-nav-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-ul li {
  margin-bottom: 12px;
}

.footer-nav-ul a {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.footer-nav-ul a:hover {
  color: #fbbf24;
  transform: translateX(3px);
}

.footer-highlight-link {
  color: #fbbf24 !important;
  font-weight: 800 !important;
}

.footer-highlight-link:hover {
  color: #ffffff !important;
}

.credits-legal-bar {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: 35px;
  margin-top: 35px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  color: #e2e8f0;
  font-weight: 600;
}

.footer-contact-link {
  color: #fbbf24;
  font-weight: 800;
  text-decoration: underline;
}

.footer-contact-link:hover {
  color: #ffffff;
}

.credits-right-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-bar-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.footer-social-icon-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social-icon-mini:hover {
  transform: translateY(-2px);
}

.footer-social-icon-mini.social-instagram:hover {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 55%, #8134af 100%);
  border-color: transparent;
  color: #ffffff;
}

.footer-social-icon-mini.social-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

@media (max-width: 768px) {
  .footer-inner-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

.credits-gold {
  color: var(--primary-ultramarine);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    padding-left: 0;
    text-align: center;
  }
  .hero-artwork-frame {
    margin: 0 auto 14px;
  }
  .hero-quote-card {
    margin: 0 auto 24px;
  }
  .hero-btn-row {
    justify-content: center;
  }
  .lightbox-dialog-window {
    flex-direction: column;
    max-height: 95vh;
  }
  .lightbox-left-stage {
    min-width: unset;
    height: 48vh;
  }
}

@media (max-width: 1180px) {
  .site-nav {
    padding: 0 24px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 28px 26px;
    border-bottom: 1px solid rgba(0, 77, 153, 0.14);
    box-shadow: 0 14px 32px rgba(0, 20, 50, 0.12);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 0 20px;
  }
  .hero-section {
    padding: 100px 20px 50px;
  }
  .hero-main-title {
    font-size: 2.1rem;
  }
  .hero-artwork-frame {
    max-width: 280px;
  }
  .footer-inner-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .canvas-white-box {
    padding: 28px;
  }
  .portrait-frame-right {
    float: none;
    max-width: 100%;
    margin: 0 0 24px 0;
  }
}

/* ==========================================================================
   COOKIE & PRIVACY BANNER & MODALE (GDPR COMPLIANT)
   ========================================================================== */
.cookie-legal-link {
  background: none;
  border: none;
  color: #fbbf24;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s ease;
}

.cookie-legal-link:hover {
  color: #ffffff;
}

/* Banner Toast Fluttuante */
.cookie-banner-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: calc(100% - 40px);
  max-width: 880px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0, 77, 153, 0.18);
  border-radius: 16px;
  box-shadow: 0 16px 45px rgba(0, 30, 60, 0.2);
  z-index: 99999;
  padding: 18px 24px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner-toast.active {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-text {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.cookie-banner-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.cookie-banner-text p {
  font-size: 0.92rem;
  color: #1e293b;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn-info {
  background: transparent;
  border: 1px solid rgba(0, 77, 153, 0.25);
  color: #003366;
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cookie-btn-info:hover {
  background: rgba(0, 77, 153, 0.06);
  border-color: #003366;
}

.cookie-btn-accept {
  background: var(--primary-ultramarine);
  border: 1px solid var(--primary-ultramarine);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 77, 153, 0.25);
}

.cookie-btn-accept:hover {
  background: #003870;
  border-color: #003870;
  transform: translateY(-1px);
}

/* Modale Nativa <dialog> */
.cookie-dialog-modal {
  margin: auto;
  border: none;
  border-radius: 18px;
  padding: 0;
  max-width: 680px;
  width: 92%;
  max-height: 85vh;
  box-shadow: 0 25px 60px rgba(0, 20, 50, 0.35);
  background: #ffffff;
  overflow: hidden;
}

.cookie-dialog-modal::backdrop {
  background: rgba(8, 15, 28, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.cookie-dialog-header {
  padding: 22px 28px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #002b5c;
  font-weight: 700;
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.cookie-modal-close:hover {
  color: #0f172a;
}

.cookie-dialog-body {
  padding: 26px 28px;
  overflow-y: auto;
  max-height: calc(85vh - 140px);
}

.cookie-policy-section {
  margin-bottom: 22px;
}

.cookie-policy-section h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #003366;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.cookie-policy-section p {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.65;
  margin: 0 0 10px 0;
}

.cookie-policy-list {
  padding-left: 20px;
  margin: 8px 0;
}

.cookie-policy-list li {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 8px;
}

.cookie-dialog-footer {
  padding: 16px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

.cookie-btn-dialog-close {
  background: var(--primary-ultramarine);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-btn-dialog-close:hover {
  background: #003870;
}

@media (max-width: 640px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Logo Immagine Personalizzato */
.site-logo-img {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-brand:hover .site-logo-img {
  transform: scale(1.05);
}

/* ==========================================================================
   SCULTURE: RITRATTO ARTISTA IN TESTA & SERIE ESSENZE FEMMINILI IN CODA
   ========================================================================== */
.artwork-canvas-card.artist-lead-card .artwork-photo-stage {
  border: 2px solid rgba(212, 160, 23, 0.78);
  box-shadow: 0 12px 32px rgba(212, 160, 23, 0.2), 0 4px 14px rgba(0, 77, 153, 0.1);
}

.artist-photo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-ultramarine);
  border: 1px solid rgba(212, 160, 23, 0.65);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.gallery-series-divider {
  column-span: all;
  -webkit-column-span: all;
  margin: 26px 0 30px;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(250, 248, 245, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1.5px solid rgba(212, 160, 23, 0.38);
  box-shadow: 0 8px 24px rgba(0, 40, 80, 0.06);
  text-align: center;
}

.series-divider-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--coral-accent);
  margin-bottom: 6px;
}

.series-divider-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary-ultramarine);
  letter-spacing: 1.2px;
  margin: 0 0 6px 0;
}

.series-divider-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   SEQUENZA FOTOGRAFICA & VIDEO MOSTRE ED EVENTI
   ========================================================================== */
#sequenza,
#galleria,
#fotografie,
#video-eventi,
#pubblicazioni,
#biografia,
#mostre,
#critica,
#contatti {
  scroll-margin-top: 90px;
}

.photo-sequence-section {
  padding: 75px 20px 90px;
  max-width: 1440px;
  margin: 0 auto;
}

.photo-video-cta-row {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.btn-video-jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-ultramarine) 0%, #0066cc 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0, 77, 153, 0.25);
  transition: var(--transition);
}

.btn-video-jump:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #003870 0%, var(--primary-ultramarine) 100%);
  box-shadow: 0 12px 28px rgba(0, 77, 153, 0.34);
}

.photo-counter-badge {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 12;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  color: var(--primary-ultramarine);
  border: 1.5px solid rgba(0, 77, 153, 0.2);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 18px rgba(0, 30, 60, 0.1);
}

.photo-thumbs-strip-wrap {
  background: #f8fafc;
  border-top: 1px solid rgba(0, 77, 153, 0.12);
  padding: 12px 16px;
}

.photo-thumbs-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 77, 153, 0.35) transparent;
}

.photo-thumb-btn {
  flex: 0 0 auto;
  width: 76px;
  height: 58px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #e2e8f0;
  opacity: 0.62;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.photo-thumb-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.photo-thumb-btn.active {
  opacity: 1;
  border-color: var(--primary-ultramarine);
  box-shadow: 0 4px 12px rgba(0, 77, 153, 0.28);
  transform: scale(1.06);
}

.photo-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-theater-wrap.is-fullscreen .photo-thumbs-strip-wrap {
  display: none;
}

/* Sottosezione Video */
.video-events-subsection {
  margin-top: 72px;
  padding-top: 60px;
  border-top: 1px dashed rgba(212, 160, 23, 0.45);
}

.video-subsection-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.video-subsection-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text-title);
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.video-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1360px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .video-showcase-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

.video-atelier-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid rgba(0, 77, 153, 0.14);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.video-atelier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(212, 160, 23, 0.45);
}

.video-player-frame {
  background: #0a0f18;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-atelier-player {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  background: #0a0f18;
}

.video-card-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-tag-pill {
  display: inline-block;
  align-self: flex-start;
  background: rgba(0, 77, 153, 0.08);
  color: var(--primary-ultramarine);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.video-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-title);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.video-card-subtitle {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.video-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.video-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 77, 153, 0.28);
  background: #f8fafc;
  color: var(--primary-ultramarine);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.video-direct-link:hover {
  background: var(--primary-ultramarine);
  border-color: var(--primary-ultramarine);
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .slideshow-slide,
  .photo-thumbs-strip {
    transition: none;
    scroll-behavior: auto;
  }
}
