@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&display=swap');

/* ==========================================================================
   DESIGN TOKENS & VARIABLES (Lino & Oliva Palette)
   ========================================================================== */
:root {
  /* Colors */
  --color-linen: #F5F0E8;          /* Main natural linen background */
  --color-linen-warm: #EDE6D8;     /* Alternate section background */
  --color-parchment: #FDFAF5;      /* Off-white warm background for cards/forms */
  --color-olive-deep: #3B4A3F;     /* Headings, main text, solid elements */
  --color-olive: #5C6B5A;          /* Accent green, active states, icons */
  --color-sage: #8A9B82;           /* Soft highlights, subtitles, badges */
  --color-sand: #C4B79B;           /* Subtle borders, lines, secondary accents */
  --color-bark: #7A6B56;           /* Warm secondary text and icons */
  --color-ink: #2A2F2C;            /* High contrast body text */
  --color-white: #FFFFFF;

  /* Glassmorphism settings */
  --color-glass-bg: rgba(253, 250, 245, 0.88); /* Parchment based glass */
  --color-glass-border: rgba(92, 107, 90, 0.12); /* Delicate olive outline */

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Satoshi', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease-out;
  --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);

  /* Shadows (Natural olive-brown tint) */
  --shadow-soft: 0 4px 20px rgba(59, 74, 63, 0.04), 0 2px 8px rgba(122, 107, 86, 0.02);
  --shadow-medium: 0 10px 30px rgba(59, 74, 63, 0.06), 0 4px 12px rgba(122, 107, 86, 0.03);
  --shadow-natural: 0 16px 40px rgba(59, 74, 63, 0.08), 0 8px 20px rgba(122, 107, 86, 0.04);

  /* Border Radii (Elegant curves) */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 50px;
  
  /* Leaf / Arch organic border radii curves */
  --radius-organic-1: 30% 70% 70% 30% / 30% 30% 70% 70%;
  --radius-organic-2: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* ==========================================================================
   BASE RESET & STYLES (Rice paper texture overlay)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--color-linen);
  /* Organic texture simulating natural rice paper / woven linen */
  background-image: 
    linear-gradient(90deg, rgba(196, 183, 155, 0.015) 1px, transparent 1px),
    linear-gradient(0deg, rgba(196, 183, 155, 0.015) 1px, transparent 1px),
    radial-gradient(rgba(196, 183, 155, 0.02) 1px, transparent 1px);
  background-size: 18px 18px, 18px 18px, 8px 8px;
  background-position: 0 0, 0 0, 4px 4px;
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 16px;
  width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-olive-deep);
}

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-linen);
}
::-webkit-scrollbar-thumb {
  background: var(--color-sand);
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-linen);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-olive);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
}

/* Alternating Section Backgrounds for Visual Rhythm */
.philosophy-section {
  background-color: var(--color-linen);
}

.services-section {
  background-color: var(--color-linen-warm);
}

.gifting-section {
  background-color: var(--color-linen);
}

.story-section {
  background-color: var(--color-linen-warm);
}

#galleria {
  background-color: var(--color-linen);
}

.contact-section {
  background-color: var(--color-linen-warm);
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */
.section-title {
  font-size: 2.8rem;
  text-align: center;
  color: var(--color-olive-deep);
  margin-bottom: 16px;
  position: relative;
  font-weight: 400;
}

.section-title::after {
  content: "";
  display: block;
  width: 0; /* Animated reveal state */
  height: 2px;
  background-color: var(--color-sand);
  margin: 16px auto 0;
  transition: width 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.section-title.revealed::after {
  width: 60px;
}

.section-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-olive);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1100px;
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-round);
  z-index: 1000;
  box-shadow: var(--shadow-soft);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header.scrolled {
  top: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  box-shadow: var(--shadow-medium);
  background-color: rgba(253, 250, 245, 0.95);
  border-bottom: 1px solid var(--color-glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-olive-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 0;
  color: var(--color-olive);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-sand);
  transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-olive-deep);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Selector Dropdown */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-round);
  background-color: var(--color-parchment);
  border: 1px solid var(--color-glass-border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-olive-deep);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  border-color: var(--color-sand);
  background-color: var(--color-white);
}

.chevron-icon {
  transition: transform 0.3s ease;
  color: var(--color-olive);
}

.lang-selector.open .chevron-icon {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--color-parchment);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-md);
  padding: 6px 0;
  list-style: none;
  width: 120px;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition-smooth);
  z-index: 1001;
}

.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-olive);
  text-align: left;
}

.lang-dropdown li a:hover {
  background-color: var(--color-linen-warm);
  color: var(--color-olive-deep);
}

.lang-dropdown li a.active {
  background-color: var(--color-linen);
  color: var(--color-olive-deep);
  font-weight: 700;
}

/* Mobile Hamburger Menu */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  z-index: 1002;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-olive-deep);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Responsive Navigation */
@media (max-width: 991px) {
  .header {
    width: calc(100% - 30px);
    top: 15px;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
  
  .header.scrolled {
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
  }

  .nav-container {
    padding: 10px 16px !important;
  }

  .logo {
    white-space: nowrap;
    font-size: 1.3rem;
  }

  .hero-badge {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--color-parchment);
    border-left: 1px solid var(--color-glass-border);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    box-shadow: var(--shadow-natural);
    transform: translateX(100%);
    transition: var(--transition-smooth);
    visibility: hidden;
    opacity: 0;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }

  .mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  background-color: transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-text {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(138, 155, 130, 0.12);
  border-radius: var(--radius-round);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-olive-deep);
  margin-bottom: 24px;
  border: 1px solid rgba(138, 155, 130, 0.25);
  box-shadow: var(--shadow-soft);
}

.hero-badge svg {
  color: var(--color-olive);
}

.hero-title {
  font-size: 4rem;
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-olive-deep);
  margin-bottom: 24px;
}

.hero-title span {
  font-style: italic;
  color: var(--color-bark);
  font-weight: 400;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--color-ink);
  opacity: 0.85;
  margin-bottom: 40px;
  max-width: 520px;
}

.cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

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

.btn-primary {
  background-color: var(--color-olive-deep);
  color: var(--color-linen);
  box-shadow: 0 4px 15px rgba(59, 74, 63, 0.12);
}

.btn-primary:hover {
  background-color: var(--color-olive);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 74, 63, 0.2);
}

.btn-secondary {
  border: 1px solid var(--color-olive-deep);
  color: var(--color-olive-deep);
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: rgba(92, 107, 90, 0.08);
  border-color: var(--color-olive);
  color: var(--color-olive);
  transform: translateY(-2px);
}

.hero-image-wrapper.editorial-image-wrapper {
  position: relative;
  width: 100%;
  height: 560px;
  border-radius: var(--radius-lg) 130px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-natural);
  border: 1px solid rgba(196, 183, 155, 0.25);
}

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

.editorial-image-wrapper:hover .hero-img-editorial {
  transform: scale(1.02);
}

.editorial-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(42, 47, 44, 0.5);
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
}

.caption-line {
  width: 24px;
  height: 1px;
  background-color: var(--color-white);
  display: inline-block;
  opacity: 0.8;
}

@media (max-width: 991px) {
  .hero-section {
    background: none;
    background-color: var(--color-linen);
    padding-top: 140px;
    padding-bottom: 60px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }
  .hero-text {
    order: 2;
  }
  .hero-badge {
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    font-size: 1.05rem;
  }
  .cta-group {
    justify-content: center;
  }
  .hero-image-wrapper.editorial-image-wrapper {
    display: block !important;
    order: 1;
    height: 380px;
    border-radius: var(--radius-lg) 80px var(--radius-lg) var(--radius-lg);
    margin: 0 auto;
    width: 100%;
    max-width: 550px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 110px;
    padding-bottom: 40px;
  }
  .hero-image-wrapper.editorial-image-wrapper {
    height: 280px;
    border-radius: var(--radius-md) 50px var(--radius-md) var(--radius-md);
  }
  .editorial-caption {
    bottom: 16px;
    left: 16px;
    font-size: 0.8rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
    padding: 0 4px;
  }
  .cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn {
    width: 100%;
  }
}

/* ==========================================================================
   LA NOSTRA STORIA (Timeline)
   ========================================================================== */
.story-container {
  max-width: 800px;
  margin: 40px auto 0;
  position: relative;
  padding: 20px 0;
}

.story-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 2px;
  background-color: var(--color-sand);
  opacity: 0.5;
}

.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.story-item {
  position: relative;
  display: flex;
  gap: 40px;
  padding-left: 80px;
}

.story-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-olive-deep);
  color: var(--color-linen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  border: 4px solid var(--color-linen-warm);
  z-index: 2;
  transition: var(--transition-smooth);
}

.story-item:hover .story-year {
  transform: translateY(-2px);
  background-color: var(--color-olive);
}

.story-content {
  background-color: var(--color-parchment);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(196, 183, 155, 0.25);
  width: 100%;
  transition: var(--transition-smooth);
}

.story-item:hover .story-content {
  box-shadow: var(--shadow-medium);
  border-color: var(--color-olive);
  transform: translateY(-3px);
}

.story-content h3 {
  font-size: 1.3rem;
  color: var(--color-olive-deep);
  margin-bottom: 8px;
  font-weight: 600;
}

.story-content p {
  font-size: 0.95rem;
  color: var(--color-ink);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .story-container::before {
    left: 20px;
  }
  .story-item {
    padding-left: 55px;
  }
  .story-year {
    width: 42px;
    height: 42px;
    font-size: 0.85rem;
    left: -1px;
    border-width: 2px;
  }
  .story-content {
    padding: 20px;
  }
}

/* ==========================================================================
   PHILOSOPHY & VALUES
   ========================================================================== */
.philosophy-intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  font-family: var(--font-serif);
  line-height: 1.65;
  color: var(--color-ink);
  opacity: 0.85;
}

.subsection-title {
  font-size: 1.7rem;
  color: var(--color-olive-deep);
  text-align: center;
  margin-bottom: 24px;
  font-weight: 500;
}

/* The 3-Step Method */
/* The 3-Step Method */
.method-section {
  margin-bottom: 60px;
  padding: 32px 0;
  border-top: 1px solid rgba(92, 107, 90, 0.15);
  border-bottom: 1px solid rgba(92, 107, 90, 0.15);
}

.method-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 30px;
}

/* Left Column: Visual Showcase */
.method-visual-panel {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg) 100px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-natural);
  border: 1px solid rgba(196, 183, 155, 0.25);
  background-color: var(--color-linen-warm);
}

.method-image-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 1;
}

.method-image-frame.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.method-step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(59, 74, 63, 0) 50%, rgba(59, 74, 63, 0.3) 100%);
  pointer-events: none;
}

/* Right Column: Interactive Timeline Stepper */
.method-steps-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding-left: 10px;
}

.method-timeline-line {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 21px;
  width: 2px;
  background-color: rgba(92, 107, 90, 0.15);
  z-index: 1;
}

.method-timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: var(--color-olive);
  transition: height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.method-timeline-step {
  display: flex;
  gap: 20px;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.4s ease, transform 0.4s ease;
  align-items: center;
  z-index: 2;
}

.method-timeline-step.active {
  opacity: 1;
}

.step-marker-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.step-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(92, 107, 90, 0.25);
  background-color: var(--color-parchment);
  color: var(--color-olive-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-soft);
}

.method-timeline-step.active .step-marker {
  border-color: var(--color-olive);
  background-color: var(--color-olive);
  color: var(--color-white);
  box-shadow: 0 0 0 6px rgba(92, 107, 90, 0.15);
}

.step-info-card {
  background-color: var(--color-parchment);
  border: 1px solid rgba(196, 183, 155, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  flex: 1;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.method-timeline-step.active .step-info-card {
  border-color: rgba(92, 107, 90, 0.35);
  box-shadow: var(--shadow-medium);
  background-color: var(--color-white);
  transform: translateX(6px);
}

.step-info-card h4 {
  font-size: 1.25rem;
  color: var(--color-olive-deep);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.method-timeline-step.active .step-info-card h4 {
  color: var(--color-olive);
}

.step-info-card p {
  font-size: 0.92rem;
  color: var(--color-ink);
  opacity: 0.85;
  line-height: 1.55;
}

.step-mobile-image {
  display: none;
}

/* Fibers Section & Tabs */
.fibers-section {
  padding: 20px 0;
  text-align: center;
}

.fibers-subtitle {
  font-size: 0.95rem;
  color: var(--color-olive);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.fiber-tabs {
  max-width: 900px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  border-bottom: 1.5px solid rgba(92, 107, 90, 0.15);
  padding-bottom: 12px;
}

.tab-btn {
  padding: 8px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-olive);
  border-radius: var(--radius-round);
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--color-olive-deep);
  background-color: rgba(92, 107, 90, 0.05);
}

.tab-btn.active {
  color: var(--color-linen);
  background-color: var(--color-olive-deep);
  border-color: var(--color-olive-deep);
  box-shadow: var(--shadow-soft);
}

.tabs-content {
  background-color: var(--color-parchment);
  border-radius: var(--radius-lg);
  padding: 35px 40px;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(196, 183, 155, 0.25);
  text-align: left;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeInPanel 0.5s ease-out;
}

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

.tab-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: flex-start;
}

.fiber-feature h4 {
  font-size: 1.5rem;
  color: var(--color-olive-deep);
  margin-bottom: 12px;
  font-weight: 500;
}

.fiber-feature p {
  font-size: 0.95rem;
  color: var(--color-ink);
  opacity: 0.85;
  line-height: 1.7;
}

.fiber-list-box h4 {
  font-size: 1.15rem;
  color: var(--color-olive-deep);
  margin-bottom: 16px;
  border-left: 3px solid var(--color-sand);
  padding-left: 12px;
}

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

.eco-fiber-list li {
  font-size: 0.95rem;
  color: var(--color-ink);
  opacity: 0.85;
  position: relative;
  padding-left: 20px;
}

.eco-fiber-list li::before {
  content: "•";
  color: var(--color-sage);
  font-size: 1.4rem;
  position: absolute;
  left: 0;
  top: -4px;
}

.accordion-header {
  display: none; /* Desktop only */
}

/* Mobile Accordions & Method Grid */
@media (max-width: 991px) {
  .philosophy-intro-text {
    font-size: 0.95rem !important;
    margin-bottom: 24px !important;
    padding: 0 10px;
  }
  .subsection-title {
    font-size: 1.4rem !important;
    margin-bottom: 16px !important;
  }
  .method-section {
    margin-bottom: 40px !important;
    padding: 20px 0 !important;
  }
  .method-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .method-visual-panel {
    display: none !important;
  }
  .method-steps-timeline {
    padding-left: 0;
  }
  .method-timeline-line {
    left: 21px;
    top: 20px;
    bottom: 20px;
  }
  .step-info-card {
    padding: 16px 20px !important;
  }
  .step-info-card h4 {
    font-size: 1.15rem !important;
    margin-bottom: 6px !important;
  }
  .step-info-card p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }
  .step-marker {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.05rem !important;
  }
  .step-marker-container {
    width: 40px !important;
    height: 40px !important;
  }
  .step-mobile-image {
    display: block;
    width: 100%;
    height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: var(--radius-md);
    transition: height 0.4s ease, opacity 0.4s ease, margin-bottom 0.4s ease;
  }
  .method-timeline-step.active .step-mobile-image {
    height: 220px;
    opacity: 1;
    margin-bottom: 12px;
  }
  .step-mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .tabs-nav {
    display: flex !important;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 4px 12px 4px;
    margin-bottom: 20px;
    border-bottom: 1.5px solid rgba(92, 107, 90, 0.15);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    flex: 0 0 auto !important;
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
  }
  .tabs-content {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .accordion-header {
    display: none !important;
  }
  .tab-panel {
    display: none !important;
    margin-bottom: 0;
  }
  .tab-panel.active {
    display: block !important;
    background-color: var(--color-parchment);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(196, 183, 155, 0.25);
    margin-top: 10px;
    animation: fadeInPanel 0.4s ease-out;
  }
  .tab-panel-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* ==========================================================================
   SERVICES SECTION (THE 4 CARDS)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.service-card {
  background-color: var(--color-parchment);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(92, 107, 90, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-sand);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-olive);
}

.service-card:hover::before {
  background-color: var(--color-olive-deep);
}

.service-num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-sand);
  font-weight: 500;
  align-self: flex-end;
  line-height: 1;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  background-color: rgba(138, 155, 130, 0.1);
  color: var(--color-olive-deep);
  border-radius: var(--radius-organic-1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(138, 155, 130, 0.15);
}

.service-icon {
  width: 24px;
  height: 24px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background-color: var(--color-olive-deep);
  color: var(--color-parchment);
  border-color: var(--color-olive-deep);
  border-radius: var(--radius-organic-2);
}

.service-header {
  margin-bottom: 20px;
}

.service-card .service-title {
  font-size: 1.45rem;
  color: var(--color-olive-deep);
  margin-bottom: 12px;
  font-weight: 500;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--color-ink);
  opacity: 0.8;
  line-height: 1.6;
}

.service-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 20px;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--color-linen);
  color: var(--color-olive);
  padding: 4px 12px;
  border-radius: var(--radius-round);
  border: 1px solid rgba(196, 183, 155, 0.25);
  transition: var(--transition-smooth);
}

.service-card:hover .service-tag {
  background-color: var(--color-linen-warm);
  color: var(--color-olive-deep);
}

.service-action {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-olive-deep);
  transition: var(--transition-smooth);
}

.service-card:hover .service-action {
  color: var(--color-bark);
}

.arrow-icon {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover .arrow-icon {
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-card {
    padding: 32px;
    min-height: auto;
  }
}

/* ==========================================================================
   CORPORATE GIFTING
   ========================================================================== */
.gifting-intro-text {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  font-family: var(--font-serif);
  line-height: 1.65;
  color: var(--color-ink);
  opacity: 0.85;
}

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

.gifting-card {
  background-color: var(--color-parchment);
  border: 1px solid rgba(92, 107, 90, 0.12);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.gifting-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-sand);
  transition: var(--transition-smooth);
}

.gifting-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-olive);
  box-shadow: var(--shadow-medium);
}

.gifting-card:hover::before {
  background-color: var(--color-olive);
}

.gifting-card-content h3 {
  font-size: 1.25rem;
  color: var(--color-olive-deep);
  margin-bottom: 10px;
  font-weight: 500;
}

.gifting-card-content p {
  font-size: 0.9rem;
  color: var(--color-ink);
  opacity: 0.8;
  line-height: 1.55;
  margin-bottom: 20px;
}

.gifting-spec {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-olive-deep);
  background-color: rgba(138, 155, 130, 0.12);
  padding: 6px 12px;
  border-radius: 4px;
  align-self: flex-start;
  transition: var(--transition-smooth);
}

.gifting-card:hover .gifting-spec {
  background-color: var(--color-olive-deep);
  color: var(--color-linen);
}

/* Gifting Customization Methods */
.custom-methods-section {
  padding-top: 50px;
  border-top: 1px solid rgba(92, 107, 90, 0.15);
}

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

.custom-methods-section .method-card {
  background-color: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  padding: 24px 16px;
}

.custom-methods-section .method-card:hover {
  background-color: var(--color-parchment);
  border-color: rgba(196, 183, 155, 0.25);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.method-icon-box {
  width: 56px;
  height: 56px;
  background-color: rgba(138, 155, 130, 0.1);
  color: var(--color-olive-deep);
  border-radius: var(--radius-organic-1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(138, 155, 130, 0.15);
  transition: var(--transition-smooth);
}

.custom-methods-section .method-card:hover .method-icon-box {
  background-color: var(--color-olive);
  color: var(--color-parchment);
  border-color: var(--color-olive);
  border-radius: var(--radius-organic-2);
}

@media (max-width: 991px) {
  .gifting-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .methods-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 580px) {
  .gifting-grid {
    grid-template-columns: 1fr;
  }
  .gifting-card {
    min-height: auto;
    padding: 24px;
  }
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 40px;
}

.filter-btn {
  padding: 8px 22px;
  background-color: var(--color-parchment);
  border: 1px solid rgba(196, 183, 155, 0.4);
  border-radius: var(--radius-round);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-olive);
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  background-color: var(--color-linen-warm);
  color: var(--color-olive-deep);
}

.filter-btn.active {
  background-color: var(--color-olive-deep);
  color: var(--color-parchment);
  border-color: var(--color-olive-deep);
  box-shadow: var(--shadow-soft);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 360px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-slow);
}

.gallery-item.hidden {
  display: none;
  opacity: 0;
}

.gallery-img-container {
  width: 100%;
  height: 100%;
  position: relative;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(42, 47, 44, 0.9) 0%, rgba(42, 47, 44, 0.3) 60%, transparent 100%);
  padding: 24px;
  color: var(--color-parchment);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

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

.gallery-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-sand);
  margin-bottom: 4px;
  display: block;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.25;
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item {
    height: 280px;
  }
}

/* ==========================================================================
   CONTACTS & FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  margin-top: 40px;
}

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

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

.info-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-olive-deep);
  border-radius: var(--radius-organic-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-linen);
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(59, 74, 63, 0.15);
  transition: var(--transition-smooth);
}

.info-item:hover .info-icon {
  background-color: var(--color-olive);
  border-color: var(--color-olive);
  transform: translateY(-2px);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-details h3 {
  font-size: 1.2rem;
  color: var(--color-olive-deep);
  margin-bottom: 4px;
  font-weight: 500;
}

.info-details p, 
.info-details a {
  font-size: 0.95rem;
  color: var(--color-ink);
  opacity: 0.8;
  transition: var(--transition-fast);
}

.info-details a:hover {
  color: var(--color-olive);
  opacity: 1;
}

.info-details .address-link:hover {
  text-decoration: underline;
}

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 0.95rem;
  color: var(--color-ink);
  opacity: 0.8;
  margin-top: 6px;
}

.contact-form {
  background-color: var(--color-parchment);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(196, 183, 155, 0.25);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-olive);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background-color: var(--color-white);
  border: 1.5px solid rgba(196, 183, 155, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-ink);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-olive);
  box-shadow: 0 0 0 3px rgba(92, 107, 90, 0.12);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C6B5A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.submit-btn {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--color-olive-deep);
  color: var(--color-linen);
  padding: 80px 0 40px;
  text-align: left;
}

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

.footer-col h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-sand);
  margin-bottom: 24px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-sand);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-img-footer {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  filter: brightness(0) invert(1) opacity(0.9);
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--color-linen);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--color-linen);
  opacity: 0.9;
}

.legal-links {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.legal-link {
  color: var(--color-linen);
  opacity: 0.9;
}

.legal-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-contact-list li {
  color: var(--color-linen);
  opacity: 0.85;
  line-height: 1.5;
}

.footer-contact-list a {
  color: var(--color-linen);
  transition: var(--transition-fast);
}

.footer-contact-list a:hover {
  color: var(--color-sand);
}

.muted-closed {
  font-size: 0.8rem;
  color: var(--color-linen);
  opacity: 0.9;
}

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

.social-link {
  width: 38px;
  height: 38px;
  background-color: rgba(253, 250, 245, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-linen);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background-color: var(--color-sand);
  color: var(--color-olive-deep);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-map-container {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(196, 183, 155, 0.2);
  box-shadow: var(--shadow-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(196, 183, 155, 0.15);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--color-linen);
}

.footer-bottom p {
  opacity: 0.85;
}

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

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   LIGHTBOX (MODAL VIEW)
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 47, 44, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 2000;
  transition: var(--transition-smooth);
}

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

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.96);
  transition: var(--transition-smooth);
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

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

.lightbox-caption {
  color: var(--color-parchment);
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-serif);
}

.lightbox-caption h3 {
  font-size: 1.35rem;
  font-weight: 400;
}

.lightbox-caption p {
  font-size: 0.85rem;
  color: var(--color-sand);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  color: var(--color-white);
  font-size: 2.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background-color: rgba(253, 250, 245, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.4rem;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.lightbox-nav:hover {
  opacity: 1;
  background-color: rgba(253, 250, 245, 0.18);
}

.lightbox-prev {
  left: -64px;
}

.lightbox-next {
  right: -64px;
}

@media (max-width: 991px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { right: 10px; top: 10px; }
}

/* ==========================================================================
   SERVICE DETAIL MODAL
   ========================================================================== */
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overscroll-behavior: contain;
}

.service-modal.open {
  opacity: 1;
  visibility: visible;
}

.service-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 47, 44, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.4s ease;
}

.service-modal-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  background-color: var(--color-parchment);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(59, 74, 63, 0.15);
  overflow-y: auto;
  z-index: 2;
  padding: 50px;
  transform: scale(0.96) translateY(16px);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overscroll-behavior: contain;
}

.service-modal.open .service-modal-container {
  transform: scale(1) translateY(0);
}

.service-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.2rem;
  line-height: 0.8;
  color: var(--color-olive);
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition-fast);
  background: transparent;
  border: none;
  z-index: 10;
}

.service-modal-close:hover {
  opacity: 1;
  color: var(--color-olive-deep);
}

.service-modal-container::-webkit-scrollbar {
  width: 6px;
}
.service-modal-container::-webkit-scrollbar-track {
  background: transparent;
}
.service-modal-container::-webkit-scrollbar-thumb {
  background: var(--color-sand);
  border-radius: 3px;
}

.modal-service-details {
  position: relative;
}

.modal-service-num {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 300;
  color: rgba(196, 183, 155, 0.04);
  line-height: 1;
  position: absolute;
  top: -45px;
  left: -20px;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.modal-service-header {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid rgba(196, 183, 155, 0.2);
  display: flex;
  align-items: center;
  gap: 20px;
}

.modal-service-icon-box {
  width: 64px;
  height: 64px;
  background-color: var(--color-olive-deep);
  color: var(--color-linen);
  border-radius: var(--radius-organic-1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.modal-service-icon-box svg {
  width: 28px;
  height: 28px;
}

.modal-service-title-wrap h2 {
  font-size: 2.2rem;
  color: var(--color-olive-deep);
  font-weight: 500;
}

.modal-service-title-wrap p {
  font-size: 0.8rem;
  color: var(--color-olive);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
  font-weight: 500;
}

.modal-service-intro {
  font-size: 1.1rem;
  color: var(--color-ink);
  opacity: 0.85;
  line-height: 1.65;
  margin-bottom: 35px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.modal-subservices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.modal-subservice-card {
  background-color: rgba(245, 240, 232, 0.35);
  border: 1px solid rgba(196, 183, 155, 0.2);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: var(--transition-smooth);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.modal-subservice-card:hover {
  background-color: var(--color-white);
  border-color: var(--color-olive);
  box-shadow: var(--shadow-soft);
}

.modal-subservice-img-wrapper {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(92, 107, 90, 0.1);
}

.modal-subservice-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.modal-subservice-card:hover .modal-subservice-img {
  transform: scale(1.04);
}

.modal-subservice-content {
  flex-grow: 1;
}

.modal-subservice-card h4 {
  font-size: 1.25rem;
  color: var(--color-olive-deep);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-subservice-card h4::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-sage);
  display: inline-block;
}

.modal-subservice-card p {
  font-size: 0.95rem;
  color: var(--color-ink);
  opacity: 0.8;
  line-height: 1.6;
}

.modal-subservice-card ul {
  margin-top: 12px;
  margin-left: 12px;
  list-style-type: none;
}

.modal-subservice-card ul li {
  font-size: 0.95rem;
  color: var(--color-ink);
  opacity: 0.8;
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.modal-subservice-card ul li::before {
  content: "•";
  color: var(--color-sage);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Portfolio Mood grid style inside modal (Service 4) */
.service-modal-container .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.service-modal-container .portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-slow);
}

.service-modal-container .portfolio-img-wrapper {
  width: 100%;
  height: 100%;
}

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

.service-modal-container .portfolio-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(42, 47, 44, 0.9) 0%, rgba(42, 47, 44, 0.3) 60%, transparent 100%);
  padding: 16px;
  color: var(--color-parchment);
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition-smooth);
}

.service-modal-container .portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.service-modal-container .portfolio-item:hover img {
  transform: scale(1.02);
}

.service-modal-container .portfolio-item-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-sand);
  margin-bottom: 2px;
  display: block;
}

.service-modal-container .portfolio-item-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .service-modal-container {
    padding: 32px 20px;
    max-height: 90vh;
  }
  .modal-service-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .modal-service-title-wrap h2 {
    font-size: 1.8rem;
  }
  .modal-service-icon-box {
    width: 56px;
    height: 56px;
  }
  .modal-service-icon-box svg {
    width: 24px;
    height: 24px;
  }
  .modal-service-num {
    font-size: 5rem;
    top: -24px;
    left: -10px;
  }
  .modal-subservice-card {
    padding: 20px;
    flex-direction: column;
    gap: 16px;
  }
  .modal-subservice-img-wrapper {
    width: 100%;
    height: 100px;
    flex-shrink: 0;
  }
  .service-modal-container .portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }
  .service-modal-container .portfolio-item {
    height: 160px !important;
    flex: none !important;
  }
}

/* ==========================================================================
   SCROLL FADE ANIMATIONS
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ==========================================================================
   PREFERS REDUCED MOTION (Accessibility override)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  
  .fade-up,
  .card-stagger {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .section-title::after {
    width: 60px !important;
  }
  
  .editorial-image-wrapper:hover .hero-img-editorial,
  .gallery-item:hover img,
  .service-modal-container .portfolio-item:hover img {
    transform: none !important;
  }
  
  .service-card:hover,
  .gifting-card:hover,
  .story-item:hover .story-content,
  .method-card:hover,
  .info-item:hover .info-icon {
    transform: none !important;
  }
  
  .mobile-nav-toggle.open span,
  .lang-selector.open .chevron-icon {
    transition: none !important;
  }
  
  .service-modal-container {
    transform: none !important;
    transition: none !important;
  }
  
  .lightbox-content {
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   ADDED EDITORIAL IMAGES STYLING (PHILOSOPHY & SERVICES)
   ========================================================================== */

/* Philosophy Intro Grid */
.philosophy-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.philosophy-intro-text {
  text-align: left;
  margin-bottom: 0;
  max-width: 100%;
}

.philosophy-intro-image-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg) var(--radius-lg) 100px var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-natural);
  border: 1px solid rgba(196, 183, 155, 0.25);
}

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

.philosophy-intro-image-wrapper:hover .philosophy-intro-img {
  transform: scale(1.03);
}

/* Fibers Tab Panel 3-Column Grid */
.tab-panel-grid {
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.fiber-image-box {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(196, 183, 155, 0.2);
}

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

.fiber-image-box:hover .fiber-tab-img {
  transform: scale(1.04);
}

/* Service Card Image Styling */
.service-card {
  padding: 0 !important; /* Remove legacy padding for card image layout */
}

.service-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-bottom: 1px solid rgba(92, 107, 90, 0.12);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.service-card:hover .service-card-img {
  transform: scale(1.04);
}

.service-card-content {
  padding: 36px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.service-card-image-wrapper .service-num {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--color-parchment);
  color: var(--color-olive-deep);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  z-index: 2;
  align-self: unset; /* override legacy alignment */
}

.service-card > .service-num {
  display: none !important; /* Hide old non-wrapped service-num */
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .philosophy-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  
  .philosophy-intro-image-wrapper {
    height: 300px;
  }
  
  .tab-panel-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  
  .fiber-image-box {
    height: 200px;
  }
  
  .service-card-content {
    padding: 28px;
  }
  
  .service-card-image-wrapper {
    height: 200px;
  }
  
  .gifting-card {
    min-height: auto !important;
  }
  
  .gifting-card-image-wrapper {
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .philosophy-intro-image-wrapper:hover .philosophy-intro-img,
  .fiber-image-box:hover .fiber-tab-img,
  .service-card:hover .service-card-img,
  .gifting-card:hover .gifting-card-img {
    transform: none !important;
  }
}

/* Gifting Card Image Styling */
.gifting-card {
  padding: 0 !important; /* Remove legacy padding for card image layout */
  min-height: 420px !important; /* Increase min-height to accommodate image and content */
}

.gifting-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid rgba(92, 107, 90, 0.12);
}

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

.gifting-card:hover .gifting-card-img {
  transform: scale(1.04);
}

.gifting-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* ==========================================================================
   ADDED MODAL GALLERY GRID STYLING
   ========================================================================== */
.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding-bottom: 40px;
}

.modal-gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(92, 107, 90, 0.15);
  padding-bottom: 12px;
}

/* Ensure gallery items inside the modal are clickable and hoverable properly */
#gallery-modal .gallery-item {
  height: 280px; /* slightly smaller inside modal to optimize scroll space */
}

@media (max-width: 991px) {
  .modal-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 580px) {
  .modal-gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER STYLING
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 9999;
  background-color: rgba(250, 249, 246, 0.96);
  border: 1px solid rgba(92, 107, 90, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(42, 47, 44, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-content {
  flex: 1;
}

.cookie-content h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-olive-deep);
  margin-bottom: 8px;
  font-weight: 500;
}

.cookie-content p {
  font-size: 0.88rem;
  color: var(--color-ink);
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 8px;
}

.cookie-content p:last-child {
  margin-bottom: 0;
}

.cookie-policy-link a {
  color: var(--color-olive-deep);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-policy-link a:hover {
  color: var(--color-bark);
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .cookie-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }
  
  .cookie-container {
    padding: 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .cookie-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 580px) {
  .cookie-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .cookie-actions button {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON STYLING
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  background-color: var(--color-olive-deep, #5c6b61);
  color: #faf9f6 !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(42, 47, 44, 0.2);
  transition: transform 0.3s ease, bottom 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background-color: #49544c;
}

.whatsapp-float svg {
  transition: transform 0.3s ease;
}

.whatsapp-float:hover svg {
  transform: rotate(10deg);
}

/* If the cookie banner is active (not hidden), push WhatsApp float up */
.cookie-banner:not(.cookie-banner-hidden) ~ .whatsapp-float {
  bottom: 120px;
}

@media (max-width: 991px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .cookie-banner:not(.cookie-banner-hidden) ~ .whatsapp-float {
    bottom: 220px; /* higher offset to clear stacked banner on mobile */
  }
}

/* ==========================================================================
   INSTAGRAM SECTION STYLING
   ========================================================================== */
.instagram-section {
  background-color: rgba(138, 155, 130, 0.04);
  border-top: 1px solid rgba(92, 107, 90, 0.08);
  border-bottom: 1px solid rgba(92, 107, 90, 0.08);
  text-align: center;
  padding: 80px 0;
}

.insta-desc {
  font-size: 0.95rem;
  color: var(--color-ink);
  opacity: 0.8;
  max-width: 600px;
  margin: 12px auto 0;
  line-height: 1.6;
}

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

.insta-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(92, 107, 90, 0.1);
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.insta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(92, 107, 90, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.insta-overlay svg {
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.insta-item:hover img {
  transform: scale(1.05);
}

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

.insta-item:hover .insta-overlay svg {
  transform: scale(1);
}

@media (max-width: 991px) {
  .instagram-section {
    padding: 60px 0;
  }
  
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .insta-grid {
    gap: 12px;
  }
}

/* ==========================================================================
   SFONDO DINAMICO: FIBRE DI LINO IN SOSPENSIONE (OPZIONE C)
   ========================================================================== */
#canvas-fibers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1; /* Sopra lo sfondo del body e delle sezioni, sotto il testo/pulsanti */
}

/* Elevazione del contenuto per posizionarsi sopra il canvas dello sfondo */
.container,
.footer {
  position: relative;
  z-index: 2;
}

