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

/* ==========================================
   CSS CUSTOM PROPERTIES & DESIGN SYSTEM
   ========================================== */
:root {
  --bg-primary: #FDFDFB;      /* Premium Warm Alabaster */
  --bg-secondary: #F6F4F0;    /* Warm Soft Ivory */
  --bg-dark: #121212;         /* Luxurious Carbon */
  --bg-dark-card: #1E1E1E;    /* Dark Card background */
  --text-dark: #1F1F1F;       /* High contrast body text */
  --text-muted: #5C5A56;      /* Lower contrast secondary text */
  --text-light: #FAF8F5;      /* Text on dark backgrounds */
  --color-accent: #B0946E;    /* Refined Artisan Gold */
  --color-accent-hover: #D0B795; /* Warm Light Gold */
  
  --font-headings: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
  
  --shadow-subtle: 0 4px 30px rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 10px 40px rgba(18, 18, 18, 0.06);
  --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.15);
  
  --border-radius-sm: 4px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  
  --header-height: 80px;
}

/* ==========================================
   BILINGUAL DISPLAY TOGGLES
   ========================================== */
html[lang="it"] .lang-en { display: none !important; }
html[lang="en"] .lang-it { display: none !important; }

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  /* CSS-only smooth fade-in page-load animation */
  animation: fadeInPage 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

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

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

input, textarea, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.25;
  color: var(--bg-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
p { font-size: 1rem; color: var(--text-muted); }

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-padding {
  padding: 100px 0;
}

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

.section-title {
  margin-bottom: 50px;
}
.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: 1px solid var(--bg-dark);
}
.btn-primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--bg-dark);
  border: 1px solid var(--bg-dark);
}
.btn-outline:hover {
  background-color: var(--bg-dark);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--bg-dark);
  border: 1px solid var(--color-accent);
}
.btn-accent:hover {
  background-color: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-light);
  transform: translateY(-2px);
}

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

.header.scrolled {
  background-color: rgba(253, 253, 251, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  height: 80px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.05);
  box-shadow: var(--shadow-subtle);
}

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

@media (min-width: 769px) {
  .header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .logo {
    justify-self: start;
  }

  .nav {
    justify-self: center;
  }

  .controls {
    justify-self: end;
  }
}


.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 48px;
  width: auto;
  transition: var(--transition-smooth);
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-dark);
  letter-spacing: 0.05em;
  line-height: 1.1;
  transition: var(--transition-smooth);
}

.logo-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  display: block;
  transition: var(--transition-smooth);
}

/* Desktop sizing for logo to make it look premium on bigger screens */
@media (min-width: 1025px) {
  .logo img {
    height: 64px;
  }
  .logo-text {
    font-size: 1.8rem;
  }
  .logo-sub {
    font-size: 0.75rem;
  }
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--bg-dark);
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--color-accent);
}

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

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

/* ==========================================
   SUBPAGE LIGHT TEXT OVERLAYS
   ========================================== */
.header-light-text:not(.scrolled) .nav-link {
  color: var(--text-light);
  opacity: 0.9;
}
.header-light-text:not(.scrolled) .nav-link:hover,
.header-light-text:not(.scrolled) .nav-link.active {
  color: var(--color-accent-hover);
  opacity: 1;
}
.header-light-text:not(.scrolled) .nav-link::after {
  background-color: var(--color-accent-hover);
}
.header-light-text:not(.scrolled) .logo-text {
  color: var(--text-light);
}
.header-light-text:not(.scrolled) .logo-sub {
  color: var(--color-accent-hover);
}
.header-light-text:not(.scrolled) .burger-line {
  background-color: var(--text-light);
}

/* ==========================================
   LANGUAGE SWITCH SELECTOR (2 BUTTONS)
   ========================================== */
.controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch-container {
  display: flex;
  gap: 4px;
  border: 1px solid rgba(18, 18, 18, 0.12);
  padding: 3px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(18, 18, 18, 0.02);
  transition: var(--transition-smooth);
}

.header-light-text:not(.scrolled) .lang-switch-container {
  border-color: rgba(250, 248, 245, 0.25);
  background-color: rgba(250, 248, 245, 0.05);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.header-light-text:not(.scrolled) .lang-btn {
  color: rgba(250, 248, 245, 0.5);
}

.header-light-text:not(.scrolled) .lang-btn.active {
  background-color: var(--text-light);
  color: var(--bg-dark);
}

.header-light-text:not(.scrolled) .lang-btn:not(.active):hover {
  color: var(--text-light);
}

.burger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  width: 24px;
}

.burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--bg-dark);
  transition: var(--transition-fast);
}

/* ==========================================
   HERO / BILLBOARD SECTIONS
   ========================================== */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-slider {
  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%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 0.35; /* Overlay opacity control */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, var(--bg-secondary) 100%);
  z-index: 2;
}

.hero .container {
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.8s 0.2s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-title {
  margin: 10px 0 20px 0;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.8s 0.4s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-desc {
  max-width: 600px;
  margin-bottom: 30px;
  font-size: 1.15rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.8s 0.6s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-cta {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.8s 0.8s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

/* Page Intro Header (Subpages) */
.page-header {
  height: 350px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom, rgba(176, 148, 110, 0.25), transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  color: var(--text-light);
  margin-bottom: 10px;
}

.page-header p {
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* ==========================================
   CONTENT LAYOUT COMPONENTS
   ========================================== */

/* Grid features */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Content Blocks */
.content-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
}

.content-image {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

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

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

/* Info Cards */
.card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  padding: 40px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(18, 18, 18, 0.02);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(176, 148, 110, 0.25);
}

.card-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(176, 148, 110, 0.1);
  border-radius: 50%;
  color: var(--color-accent);
  font-size: 1.5rem;
}

/* ==========================================
   PORTFOLIO GALLERY (REALIZZAZIONI)
   ========================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(18, 18, 18, 0.08);
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--bg-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  display: block; /* To override default none when filtered */
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item.hidden {
  display: none !important;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

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

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

.gallery-title {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 5px;
}

.gallery-category {
  color: var(--color-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ==========================================
   CONTACT FORM & INFO (CONTATTI)
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  font-weight: 600;
}

.info-value {
  font-size: 1.1rem;
  color: var(--bg-dark);
}

.contact-form {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  padding: 50px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(18, 18, 18, 0.15);
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-label {
  position: absolute;
  top: 12px;
  left: 0;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-bottom-color: var(--color-accent);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -16px;
  font-size: 0.75rem;
  color: var(--color-accent);
}

textarea.form-input {
  resize: none;
  height: 100px;
}

/* Map placeholder */
.map-container {
  height: 350px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 40px 0;
  margin-top: auto;
  border-top: 1px solid rgba(176, 148, 110, 0.1);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand .logo-text {
  color: var(--text-light);
}

.footer-brand p {
  color: rgba(250, 248, 245, 0.6);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 25px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 1px;
  background-color: var(--color-accent);
}

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

.footer-links a {
  color: rgba(250, 248, 245, 0.65);
  font-size: 0.9rem;
}

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

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 0.9rem;
  color: rgba(250, 248, 245, 0.65);
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-info-item span {
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 245, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(250, 248, 245, 0.45);
}

/* ==========================================
   LIGHTBOX MODAL FOR GALLERY
   ========================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.98);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

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

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

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-premium);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.lightbox-caption {
  color: var(--text-light);
  font-size: 1.1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}

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

/* ==========================================
   RESPONSIVENESS MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  /* Burger mobile navigation */
  .burger-menu {
    display: flex;
    z-index: 1001;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 40px;
    gap: 30px;
    z-index: 1000;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(18, 18, 18, 0.05);
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  /* Animate burger lines to close mark (X) */
  .burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

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

/* ==========================================
   STATS COUNTER SECTION
   ========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(18, 18, 18, 0.05);
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(18, 18, 18, 0.02);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(176, 148, 110, 0.3);
  box-shadow: var(--shadow-medium);
}

.stat-number {
  display: block;
  font-family: var(--font-headings);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   LIGHTBOX ENHANCEMENTS (NAV & COUNTER)
   ========================================== */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(253, 253, 251, 0.1);
  border: 1px solid rgba(253, 253, 251, 0.2);
  color: var(--text-light);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 2010;
}

.lightbox-nav:hover {
  background-color: var(--color-accent);
  color: var(--bg-dark);
  border-color: var(--color-accent);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-counter {
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* ==========================================
   FORM TOAST FEEDBACK NOTIFICATION
   ========================================== */
.form-toast {
  margin-top: 15px;
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-toast.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-toast.success {
  background-color: rgba(46, 125, 50, 0.1);
  color: #2E7D32;
  border: 1px solid rgba(46, 125, 50, 0.3);
}

.form-toast.error {
  background-color: rgba(198, 40, 40, 0.1);
  color: #C62828;
  border: 1px solid rgba(198, 40, 40, 0.3);
}

/* ==========================================
   FLOATING BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: 1px solid var(--color-accent);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  z-index: 990;
  box-shadow: var(--shadow-medium);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-accent);
  color: var(--bg-dark);
  transform: translateY(-4px);
}

