/* ============================================
   KALUNVOR LAB - MAIN STYLESHEET
   CSS Custom Properties + Native Nesting
   ============================================ */

:root {
  --c-bg: #F7F5F0;
  --c-dark: #1A1A2E;
  --c-primary: #2D6A4F;
  --c-primary-light: #3D8A66;
  --c-primary-dark: #1E4D38;
  --c-accent: #F4A261;
  --c-accent-dark: #E07B3A;
  --c-light: #FFFFFF;
  --c-muted: #6B7280;
  --c-surface: #EDEAE3;
  --c-surface-2: #E3DFD7;
  --c-border: #D4CFC6;
  --c-dark-surface: #252540;
  --font-head: 'Vollkorn', serif;
  --font-body: 'Work Sans', sans-serif;
  --shadow-xs: 0 1px 2px rgba(26,26,46,0.05);
  --shadow-sm: 0 1px 3px rgba(26,26,46,0.06), 0 1px 2px rgba(26,26,46,0.04);
  --shadow-md: 0 4px 12px rgba(26,26,46,0.08), 0 2px 6px rgba(26,26,46,0.05);
  --shadow-lg: 0 12px 32px rgba(26,26,46,0.12), 0 4px 12px rgba(26,26,46,0.07);
  --shadow-xl: 0 24px 48px rgba(26,26,46,0.15), 0 8px 20px rgba(26,26,46,0.08);
  --shadow-primary: 0 8px 24px rgba(45,106,79,0.25), 0 2px 8px rgba(45,106,79,0.12);
  --shadow-accent: 0 8px 24px rgba(244,162,97,0.3), 0 2px 8px rgba(244,162,97,0.15);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

  & main {
    flex: 1;
  }
}

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

a {
  color: var(--c-primary);
  transition: color var(--transition-base);

  &:hover {
    color: var(--c-primary-dark);
  }
}

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);

  @media (max-width: 768px) {
    padding: 0 var(--sp-4);
  }
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-3);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--c-dark);
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================
   GLOBAL BUTTONS
   ============================================ */

.global-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;

  &.global-btn--primary {
    background: var(--c-primary);
    color: var(--c-light);
    border-color: var(--c-primary);
    box-shadow: var(--shadow-primary);

    &:hover {
      background: var(--c-primary-dark);
      border-color: var(--c-primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 12px 32px rgba(45,106,79,0.3), 0 4px 12px rgba(45,106,79,0.15);
      color: var(--c-light);
    }

    &:active {
      transform: translateY(0);
    }
  }

  &.global-btn--outline {
    background: transparent;
    color: var(--c-primary);
    border-color: var(--c-primary);

    &:hover {
      background: var(--c-primary);
      color: var(--c-light);
      transform: translateY(-2px);
      box-shadow: var(--shadow-primary);
    }
  }

  &.global-btn--text {
    background: transparent;
    color: var(--c-primary);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;

    &:hover {
      color: var(--c-primary-dark);
      gap: var(--sp-3);
    }
  }

  &.global-btn--accent {
    background: var(--c-accent);
    color: var(--c-dark);
    border-color: var(--c-accent);
    box-shadow: var(--shadow-accent);

    &:hover {
      background: var(--c-accent-dark);
      border-color: var(--c-accent-dark);
      transform: translateY(-2px);
      color: var(--c-dark);
    }
  }
}

/* ============================================
   GLOBAL HEADER
   ============================================ */

.global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247,245,240,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--sp-4) var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-slow);

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--c-primary);
    transition: left var(--transition-slow), right var(--transition-slow);
  }

  &.scrolled::after {
    left: 0;
    right: 0;
  }

  & .header-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    text-decoration: none;
    transition: opacity var(--transition-base);

    &:hover {
      opacity: 0.85;
    }

    & img {
      height: 36px;
      width: auto;
    }

    & span {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 1.2rem;
      color: var(--c-dark);
    }
  }

  & .desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-1);

    & a {
      font-family: var(--font-body);
      font-weight: 500;
      font-size: 0.9rem;
      color: var(--c-dark);
      text-decoration: none;
      padding: var(--sp-2) var(--sp-4);
      border-radius: var(--radius-full);
      transition: all var(--transition-base);

      &:hover {
        background: var(--c-surface);
        color: var(--c-primary);
      }

      &.active {
        background: var(--c-primary);
        color: var(--c-light);
      }

      &.header-cta {
        background: var(--c-accent);
        color: var(--c-dark);
        font-weight: 600;
        box-shadow: var(--shadow-sm);

        &:hover {
          background: var(--c-accent-dark);
          transform: translateY(-2px);
          box-shadow: var(--shadow-md);
          color: var(--c-dark);
        }

        &.active {
          background: var(--c-accent-dark);
          color: var(--c-dark);
        }
      }
    }
  }

  @media (max-width: 900px) {
    padding: var(--sp-4) var(--sp-4);

    & .desktop-nav {
      display: none;
    }
  }
}

/* ============================================
   HAMBURGER
   ============================================ */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  flex-direction: column;
  gap: 5px;
  z-index: 101;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;

  & span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-dark);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
  }

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

    & span:nth-child(2) {
      opacity: 0;
      transform: scaleX(0);
    }

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

  @media (max-width: 900px) {
    display: flex;
  }
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
  backdrop-filter: blur(4px);

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

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--c-light);
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);

  &.active {
    transform: translateX(0);
  }

  & .mobile-menu-close {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    background: var(--c-surface);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--c-dark);
    transition: all var(--transition-base);

    &:hover {
      background: var(--c-surface-2);
      transform: rotate(90deg);
    }
  }

  & .mobile-nav {
    margin-top: var(--sp-12);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);

    & a {
      font-family: var(--font-body);
      font-weight: 500;
      font-size: 1.1rem;
      color: var(--c-dark);
      text-decoration: none;
      padding: var(--sp-4) var(--sp-4);
      border-radius: var(--radius-md);
      transition: all var(--transition-base);
      min-height: 44px;
      display: flex;
      align-items: center;

      &:hover {
        background: var(--c-surface);
        color: var(--c-primary);
        padding-left: var(--sp-6);
      }
    }
  }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;

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

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;

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

/* ============================================
   HOME HERO
   ============================================ */

.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--c-bg);
  overflow: hidden;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45,106,79,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }

  & .home-hero__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--sp-16) var(--sp-6) var(--sp-12);
  }

  & .home-hero__heading-wrap {
    text-align: center;
    margin-bottom: var(--sp-10);
  }

  & .home-hero__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.15;
    color: var(--c-dark);
  }

  & .home-hero__title-accent {
    color: var(--c-primary);
    position: relative;

    &::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--c-accent);
      border-radius: 2px;
    }
  }

  & .home-hero__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    margin-bottom: var(--sp-10);
    position: relative;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 2px;
      background: var(--c-border);
      transform: translateX(-50%);
      z-index: 1;
    }

    @media (max-width: 768px) {
      grid-template-columns: 1fr;

      &::before {
        display: none;
      }
    }
  }

  & .home-hero__panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);

    &:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-xl);
    }

    &--before {
      background: var(--c-surface);

      & .home-hero__panel-label {
        background: var(--c-muted);
        color: var(--c-light);
      }

      & .home-hero__panel-tag {
        color: var(--c-muted);
      }
    }

    &--after {
      background: var(--c-primary);

      & .home-hero__panel-label {
        background: var(--c-accent);
        color: var(--c-dark);
      }

      & .home-hero__panel-tag {
        color: rgba(255,255,255,0.8);
      }

      & .home-hero__panel-content {
        color: var(--c-light);
      }

      & .home-hero__panel-list li {
        color: rgba(255,255,255,0.9);

        &::before {
          background: var(--c-accent);
        }
      }
    }
  }

  & .home-hero__panel-label {
    padding: var(--sp-2) var(--sp-4);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  & .home-hero__panel-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  & .home-hero__panel-content {
    padding: var(--sp-5);
  }

  & .home-hero__panel-tag {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--sp-3);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
  }

  & .home-hero__panel-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);

    & li {
      font-size: 0.9rem;
      color: var(--c-dark);
      padding-left: var(--sp-5);
      position: relative;
      line-height: 1.5;

      &::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.55em;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--c-primary);
      }
    }
  }

  & .home-hero__cta-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
  }
}

/* ============================================
   HOME PROBLEM
   ============================================ */

.home-problem {
  padding: var(--sp-24) 0;
  background: var(--c-light);

  & .home-problem__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: center;

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: var(--sp-8);
    }
  }

  & .home-problem__text {
    & p {
      color: var(--c-muted);
      margin-bottom: var(--sp-4);
      font-size: 1.05rem;
      line-height: 1.7;
    }
  }

  & .home-problem__visual {
    position: relative;
  }

  & .home-problem__img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    aspect-ratio: 4/3;
  }

  & .home-problem__badge {
    position: absolute;
    bottom: -var(--sp-4);
    left: var(--sp-6);
    background: var(--c-accent);
    color: var(--c-dark);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    box-shadow: var(--shadow-accent);
    bottom: var(--sp-4);
  }
}

/* ============================================
   HOME FEATURES
   ============================================ */

.home-features {
  padding: var(--sp-24) 0;
  background: var(--c-bg);

  & .home-features__header {
    margin-bottom: var(--sp-12);

    & .section-title {
      max-width: 700px;
    }
  }

  & .home-features__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;

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

  & .home-features__item {
    display: flex;
    gap: var(--sp-5);
    padding: var(--sp-8);
    border-right: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    background: var(--c-light);
    transition: all var(--transition-base);
    align-items: flex-start;

    &:nth-child(even) {
      border-right: none;
    }

    &:nth-child(3), &:nth-child(4) {
      border-bottom: none;
    }

    &:hover {
      background: var(--c-surface);
      transform: scale(1.01);
      box-shadow: var(--shadow-md);
      z-index: 1;
    }

    @media (max-width: 768px) {
      border-right: none;

      &:last-child {
        border-bottom: none;
      }
    }
  }

  & .home-features__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(45,106,79,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--c-primary);
    transition: all var(--transition-base);

    .home-features__item:hover & {
      background: var(--c-primary);
      color: var(--c-light);
    }
  }

  & .home-features__body {
    & h3 {
      font-family: var(--font-head);
      font-weight: 600;
      font-size: 1.1rem;
      margin-bottom: var(--sp-2);
      color: var(--c-dark);
    }

    & p {
      color: var(--c-muted);
      font-size: 0.95rem;
      line-height: 1.65;
    }
  }
}

/* ============================================
   HOME GALLERY
   ============================================ */

.home-gallery {
  padding: var(--sp-24) 0;
  background: var(--c-dark);

  & .home-gallery__header {
    margin-bottom: var(--sp-10);

    & .section-eyebrow {
      color: var(--c-accent);
    }

    & .section-title {
      color: var(--c-light);
    }
  }

  & .home-gallery__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--sp-3);

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

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

  & .home-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;

    &--featured {
      grid-row: span 2;

      @media (max-width: 900px) {
        grid-row: span 1;
        grid-column: span 2;
      }

      @media (max-width: 600px) {
        grid-column: span 1;
      }
    }

    & img {
      width: 100%;
      height: 100%;
      min-height: 200px;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    &--featured img {
      min-height: 420px;

      @media (max-width: 900px) {
        min-height: 250px;
      }
    }

    &:hover img {
      transform: scale(1.06);
    }

    & .home-gallery__overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(26,26,46,0.8) 0%, transparent 50%);
      display: flex;
      align-items: flex-end;
      padding: var(--sp-4);
      opacity: 0;
      transition: opacity var(--transition-base);

      & span {
        color: var(--c-light);
        font-weight: 600;
        font-size: 0.9rem;
      }
    }

    &:hover .home-gallery__overlay {
      opacity: 1;
    }
  }
}

/* ============================================
   HOME PROCESS
   ============================================ */

.home-process {
  padding: var(--sp-24) 0;
  background: var(--c-light);

  & .home-process__header {
    margin-bottom: var(--sp-12);
  }

  & .home-process__steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    margin-bottom: var(--sp-10);

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

  & .home-process__step {
    display: flex;
    gap: var(--sp-5);
    padding: var(--sp-6);
    background: var(--c-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    transition: all var(--transition-base);

    &:hover {
      border-color: var(--c-primary);
      box-shadow: var(--shadow-md);
      transform: translateY(-3px);
    }
  }

  & .home-process__step-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2rem;
    color: var(--c-primary);
    opacity: 0.3;
    min-width: 60px;
    line-height: 1;
  }

  & .home-process__step-body {
    & h3 {
      font-family: var(--font-head);
      font-weight: 600;
      font-size: 1.1rem;
      margin-bottom: var(--sp-2);
      color: var(--c-dark);
    }

    & p {
      color: var(--c-muted);
      font-size: 0.95rem;
      line-height: 1.65;
    }
  }

  & .home-process__cta {
    text-align: center;
  }
}

/* ============================================
   HOME CONTACT PREVIEW
   ============================================ */

.home-contact-preview {
  padding: var(--sp-24) 0;
  background: var(--c-surface);

  & .home-contact-preview__header {
    margin-bottom: var(--sp-10);
  }

  & .home-contact-preview__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);

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

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

  & .home-contact-preview__card {
    background: var(--c-light);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--c-border);

    &:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: var(--c-primary);
    }
  }

  & .home-contact-preview__card-icon {
    width: 44px;
    height: 44px;
    background: rgba(45,106,79,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    font-size: 1rem;
    margin-bottom: var(--sp-4);
    transition: all var(--transition-base);

    .home-contact-preview__card:hover & {
      background: var(--c-primary);
      color: var(--c-light);
    }
  }

  & .home-contact-preview__card-body {
    & h4 {
      font-family: var(--font-head);
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--c-muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: var(--sp-2);
    }

    & p, & a {
      color: var(--c-dark);
      font-size: 0.95rem;
      text-decoration: none;
      line-height: 1.5;

      &:hover {
        color: var(--c-primary);
      }
    }
  }
}

/* ============================================
   HOME LOCATION
   ============================================ */

.home-location {
  padding: var(--sp-24) 0;
  background: var(--c-light);

  & .home-location__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: start;

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: var(--sp-8);
    }
  }

  & .home-location__info {
    & .section-title {
      margin-bottom: var(--sp-4);
    }

    & p {
      color: var(--c-muted);
      margin-bottom: var(--sp-6);
      line-height: 1.7;
    }
  }

  & .home-location__details {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
  }

  & .home-location__detail-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    color: var(--c-dark);
    font-size: 0.95rem;

    & i {
      color: var(--c-primary);
      width: 20px;
      text-align: center;
    }
  }

  & .home-location__map {
    & iframe {
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
    }
  }
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */

.page-hero {
  padding: calc(80px + var(--sp-16)) 0 var(--sp-16);
  background: var(--c-dark);
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45,106,79,0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }

  & .container {
    position: relative;
    z-index: 1;
  }

  & .section-eyebrow {
    color: var(--c-accent);
  }

  & .page-hero__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--c-light);
    line-height: 1.15;
    margin-bottom: var(--sp-4);
  }

  & .page-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    line-height: 1.7;
  }
}

/* ============================================
   COME LAVORIAMO PAGE
   ============================================ */

.come-lavoriamo-principles {
  padding: var(--sp-24) 0;
  background: var(--c-bg);

  & .come-lavoriamo-principles__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);

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

  & .come-lavoriamo-principles__card {
    background: var(--c-light);
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);

    &:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: var(--c-primary);
    }
  }

  & .come-lavoriamo-principles__icon {
    width: 52px;
    height: 52px;
    background: rgba(45,106,79,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    font-size: 1.2rem;
    margin-bottom: var(--sp-5);
    transition: all var(--transition-base);

    .come-lavoriamo-principles__card:hover & {
      background: var(--c-primary);
      color: var(--c-light);
    }
  }

  & h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: var(--sp-3);
    color: var(--c-dark);
  }

  & p {
    color: var(--c-muted);
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

.come-lavoriamo-approach {
  padding: var(--sp-24) 0;
  background: var(--c-light);

  & .come-lavoriamo-approach__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: center;

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: var(--sp-8);
    }
  }

  & .come-lavoriamo-approach__img-wrap {
    & img {
      width: 100%;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-xl);
      object-fit: cover;
      aspect-ratio: 4/3;
    }
  }

  & .come-lavoriamo-approach__text {
    & p {
      color: var(--c-muted);
      margin-bottom: var(--sp-4);
      line-height: 1.7;
    }
  }

  & .come-lavoriamo-approach__points {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
  }

  & .come-lavoriamo-approach__point {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: 0.95rem;
    color: var(--c-dark);

    & i {
      color: var(--c-primary);
      margin-top: 3px;
      min-width: 16px;
    }
  }
}

.come-lavoriamo-modalities {
  padding: var(--sp-24) 0;
  background: var(--c-surface);

  & .come-lavoriamo-modalities__header {
    margin-bottom: var(--sp-10);
  }

  & .come-lavoriamo-modalities__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);

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

  & .come-lavoriamo-modalities__card {
    background: var(--c-light);
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);

    &:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
    }
  }

  & .come-lavoriamo-modalities__card-top {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);

    & i {
      font-size: 1.4rem;
      color: var(--c-primary);
    }

    & h3 {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 1.3rem;
      color: var(--c-dark);
    }
  }

  & p {
    color: var(--c-muted);
    margin-bottom: var(--sp-5);
    line-height: 1.7;
  }

  & ul {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);

    & li {
      font-size: 0.9rem;
      color: var(--c-dark);
      padding-left: var(--sp-4);
      position: relative;

      &::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.6em;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--c-primary);
      }
    }
  }
}

.come-lavoriamo-faq {
  padding: var(--sp-24) 0;
  background: var(--c-light);

  & .come-lavoriamo-faq__header {
    margin-bottom: var(--sp-10);
  }

  & .come-lavoriamo-faq__list {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
  }

  & .come-lavoriamo-faq__item {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-base);

    &:hover {
      box-shadow: var(--shadow-md);
    }

    &.open .come-lavoriamo-faq__question i {
      transform: rotate(180deg);
    }
  }

  & .come-lavoriamo-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-5) var(--sp-6);
    background: var(--c-bg);
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--c-dark);
    cursor: pointer;
    min-height: 44px;
    transition: background var(--transition-base);

    &:hover {
      background: var(--c-surface);
    }

    & i {
      color: var(--c-primary);
      transition: transform var(--transition-base);
      min-width: 16px;
    }
  }

  & .come-lavoriamo-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 var(--sp-6);

    & p {
      color: var(--c-muted);
      line-height: 1.7;
      font-size: 0.95rem;
      padding-bottom: var(--sp-5);
    }
  }

  & .come-lavoriamo-faq__item.open .come-lavoriamo-faq__answer {
    max-height: 400px;
  }
}

/* ============================================
   COME FUNZIONA PAGE
   ============================================ */

.come-funziona-overview {
  padding: var(--sp-16) 0;
  background: var(--c-primary);

  & .come-funziona-overview__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);

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

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

  & .come-funziona-overview__stat {
    text-align: center;
    padding: var(--sp-6) var(--sp-4);
    border-radius: var(--radius-md);
    transition: background var(--transition-base);

    &:hover {
      background: rgba(255,255,255,0.1);
    }
  }

  & .come-funziona-overview__stat-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--c-accent);
    line-height: 1;
    margin-bottom: var(--sp-2);
  }

  & .come-funziona-overview__stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    line-height: 1.4;
  }
}

.come-funziona-modules {
  padding: var(--sp-24) 0;
  background: var(--c-bg);

  & .come-funziona-modules__header {
    margin-bottom: var(--sp-12);
  }

  & .come-funziona-modules__list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
  }

  & .come-funziona-modules__module {
    background: var(--c-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);

    &:hover {
      box-shadow: var(--shadow-lg);
      border-color: var(--c-primary);
    }
  }

  & .come-funziona-modules__module-header {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-6) var(--sp-8);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    flex-wrap: wrap;

    @media (max-width: 600px) {
      padding: var(--sp-4) var(--sp-4);
    }
  }

  & .come-funziona-modules__module-num {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-primary);
    background: rgba(45,106,79,0.1);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-full);
  }

  & .come-funziona-modules__module-header h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--c-dark);
    flex: 1;
  }

  & .come-funziona-modules__module-duration {
    font-size: 0.85rem;
    color: var(--c-muted);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
  }

  & .come-funziona-modules__module-body {
    padding: var(--sp-8);

    @media (max-width: 600px) {
      padding: var(--sp-4);
    }

    & p {
      color: var(--c-muted);
      margin-bottom: var(--sp-4);
      line-height: 1.7;
    }
  }

  & .come-funziona-modules__topics {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-4);

    & span {
      background: rgba(45,106,79,0.08);
      color: var(--c-primary);
      font-size: 0.8rem;
      font-weight: 600;
      padding: var(--sp-1) var(--sp-3);
      border-radius: var(--radius-full);
      border: 1px solid rgba(45,106,79,0.2);
    }
  }
}

.come-funziona-materials {
  padding: var(--sp-24) 0;
  background: var(--c-light);

  & .come-funziona-materials__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: center;

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: var(--sp-8);
    }
  }

  & .come-funziona-materials__text {
    & p {
      color: var(--c-muted);
      margin-bottom: var(--sp-6);
      line-height: 1.7;
    }
  }

  & .come-funziona-materials__items {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
  }

  & .come-funziona-materials__item {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;

    & i {
      font-size: 1.3rem;
      color: var(--c-primary);
      margin-top: 3px;
      min-width: 24px;
    }

    & h4 {
      font-family: var(--font-head);
      font-weight: 600;
      font-size: 1rem;
      margin-bottom: var(--sp-1);
      color: var(--c-dark);
    }

    & p {
      color: var(--c-muted);
      font-size: 0.9rem;
      margin-bottom: 0;
    }
  }

  & .come-funziona-materials__img-wrap {
    & img {
      width: 100%;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-xl);
      object-fit: cover;
      aspect-ratio: 4/3;
    }
  }
}

.come-funziona-cta {
  padding: var(--sp-24) 0;
  background: var(--c-surface);

  & .come-funziona-cta__box {
    background: var(--c-dark);
    border-radius: var(--radius-xl);
    padding: var(--sp-12) var(--sp-12);
    text-align: center;

    @media (max-width: 600px) {
      padding: var(--sp-8) var(--sp-6);
    }

    & h2 {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: clamp(1.5rem, 3vw, 2.2rem);
      color: var(--c-light);
      margin-bottom: var(--sp-4);
    }

    & p {
      color: rgba(255,255,255,0.7);
      margin-bottom: var(--sp-8);
      font-size: 1.05rem;
    }
  }

  & .come-funziona-cta__btns {
    display: flex;
    gap: var(--sp-4);
    justify-content: center;
    flex-wrap: wrap;

    & .global-btn--outline {
      border-color: rgba(255,255,255,0.4);
      color: var(--c-light);

      &:hover {
        background: rgba(255,255,255,0.1);
        border-color: var(--c-light);
        color: var(--c-light);
        box-shadow: none;
      }
    }
  }
}

/* ============================================
   PROSSIME DATE PAGE
   ============================================ */

.prossime-date-list {
  padding: var(--sp-24) 0;
  background: var(--c-bg);

  & .prossime-date-list__filter {
    display: flex;
    gap: var(--sp-2);
    margin-bottom: var(--sp-8);
    flex-wrap: wrap;
  }

  & .prossime-date-list__filter-btn {
    background: var(--c-light);
    border: 1px solid var(--c-border);
    color: var(--c-muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    padding: var(--sp-2) var(--sp-5);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 44px;

    &:hover {
      border-color: var(--c-primary);
      color: var(--c-primary);
    }

    &.active {
      background: var(--c-primary);
      border-color: var(--c-primary);
      color: var(--c-light);
    }
  }

  & .prossime-date-list__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);

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

  & .prossime-date-list__card {
    background: var(--c-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    transition: all var(--transition-base);

    &:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: var(--c-primary);
    }

    &.hidden {
      display: none;
    }

    @media (max-width: 500px) {
      flex-direction: column;
    }
  }

  & .prossime-date-list__card-date {
    background: var(--c-dark);
    color: var(--c-light);
    padding: var(--sp-6) var(--sp-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-align: center;

    @media (max-width: 500px) {
      flex-direction: row;
      gap: var(--sp-2);
      padding: var(--sp-4);
      min-width: unset;
    }
  }

  & .prossime-date-list__card-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--sp-1);
  }

  & .prossime-date-list__card-day {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--c-accent);
    margin-bottom: var(--sp-1);
  }

  & .prossime-date-list__card-year {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
  }

  & .prossime-date-list__card-body {
    padding: var(--sp-6);
    flex: 1;

    & h3 {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: var(--sp-3);
      color: var(--c-dark);
    }

    & p {
      color: var(--c-muted);
      font-size: 0.9rem;
      margin-bottom: var(--sp-4);
      line-height: 1.6;
    }
  }

  & .prossime-date-list__card-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--sp-3);

    &--presenza {
      background: rgba(45,106,79,0.1);
      color: var(--c-primary);
    }

    &--online {
      background: rgba(244,162,97,0.15);
      color: var(--c-accent-dark);
    }
  }

  & .prossime-date-list__card-details {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-bottom: var(--sp-5);

    & span {
      display: flex;
      align-items: center;
      gap: var(--sp-2);
      font-size: 0.85rem;
      color: var(--c-muted);

      & i {
        color: var(--c-primary);
        width: 16px;
        text-align: center;
      }
    }
  }
}

.prossime-date-custom {
  padding: var(--sp-24) 0;
  background: var(--c-light);

  & .prossime-date-custom__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: center;

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: var(--sp-8);
    }
  }

  & .prossime-date-custom__img {
    & img {
      width: 100%;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-xl);
      object-fit: cover;
      aspect-ratio: 4/3;
    }
  }

  & .prossime-date-custom__text {
    & p {
      color: var(--c-muted);
      margin-bottom: var(--sp-4);
      line-height: 1.7;
    }
  }
}

.prossime-date-info {
  padding: var(--sp-24) 0;
  background: var(--c-surface);

  & .prossime-date-info__header {
    margin-bottom: var(--sp-10);
  }

  & .prossime-date-info__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);

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

  & .prossime-date-info__item {
    background: var(--c-light);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    border: 1px solid var(--c-border);
    transition: all var(--transition-base);

    &:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-md);
    }

    & i {
      font-size: 1.5rem;
      color: var(--c-primary);
      margin-bottom: var(--sp-3);
      display: block;
    }

    & h4 {
      font-family: var(--font-head);
      font-weight: 600;
      font-size: 1rem;
      margin-bottom: var(--sp-2);
      color: var(--c-dark);
    }

    & p {
      color: var(--c-muted);
      font-size: 0.9rem;
      line-height: 1.65;
    }
  }
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-form-section {
  padding: var(--sp-24) 0;
  background: var(--c-bg);

  & .contact-form-section__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--sp-12);
    align-items: start;

    @media (max-width: 900px) {
      grid-template-columns: 1fr;
      gap: var(--sp-8);
    }
  }

  & .contact-form-section__info {
    & h2 {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 1.8rem;
      margin-bottom: var(--sp-6);
      color: var(--c-dark);
    }
  }

  & .contact-form-section__info-items {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    margin-bottom: var(--sp-8);
  }

  & .contact-form-section__info-item {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;

    & h4 {
      font-weight: 600;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--c-muted);
      margin-bottom: var(--sp-1);
    }

    & p, & a {
      color: var(--c-dark);
      text-decoration: none;
      font-size: 0.95rem;
      line-height: 1.5;

      &:hover {
        color: var(--c-primary);
      }
    }
  }

  & .contact-form-section__info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(45,106,79,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    font-size: 1rem;
  }

  & .contact-form-section__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  & .contact-form-section__form-wrap {
    & h2 {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 1.8rem;
      margin-bottom: var(--sp-6);
      color: var(--c-dark);
    }
  }

  & .contact-form-section__accordion {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
  }

  & .contact-form-section__accordion-section {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);

    &.open {
      border-color: var(--c-primary);
      box-shadow: var(--shadow-sm);

      & .contact-form-section__accordion-icon {
        transform: rotate(180deg);
      }
    }
  }

  & .contact-form-section__accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) var(--sp-5);
    background: var(--c-surface);
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--c-dark);
    cursor: pointer;
    text-align: left;
    min-height: 44px;
    transition: background var(--transition-base);

    &:hover {
      background: var(--c-surface-2);
    }

    & span {
      display: flex;
      align-items: center;
      gap: var(--sp-2);

      & i {
        color: var(--c-primary);
      }
    }

    & .contact-form-section__accordion-icon {
      color: var(--c-muted);
      transition: transform var(--transition-base);
    }
  }

  & .contact-form-section__accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 var(--sp-5);
    background: var(--c-light);

    .contact-form-section__accordion-section.open & {
      max-height: 600px;
      padding: var(--sp-5);
    }
  }

  & .contact-form-section__field {
    margin-bottom: var(--sp-4);

    & label {
      display: block;
      font-weight: 500;
      font-size: 0.9rem;
      color: var(--c-dark);
      margin-bottom: var(--sp-2);
    }

    & .required {
      color: var(--c-accent-dark);
    }

    & input, & textarea {
      width: 100%;
      padding: var(--sp-3) var(--sp-4);
      border: 1.5px solid var(--c-border);
      border-radius: var(--radius-md);
      font-family: var(--font-body);
      font-size: 0.95rem;
      color: var(--c-dark);
      background: var(--c-bg);
      transition: border-color var(--transition-base), box-shadow var(--transition-base);
      min-height: 44px;

      &:focus {
        outline: none;
        border-color: var(--c-primary);
        box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
      }

      &::placeholder {
        color: var(--c-muted);
        opacity: 0.7;
      }
    }

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

    &--checkbox {
      margin-bottom: 0;
    }
  }

  & .contact-form-section__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--c-muted);
    line-height: 1.6;

    & input[type="checkbox"] {
      width: 18px;
      height: 18px;
      min-width: 18px;
      margin-top: 2px;
      accent-color: var(--c-primary);
      cursor: pointer;
    }

    & a {
      color: var(--c-primary);
      text-decoration: underline;
    }
  }

  & .contact-form-section__form-error {
    color: #DC2626;
    font-size: 0.9rem;
    margin-bottom: var(--sp-4);
    min-height: 20px;
  }

  & .contact-form-section__submit {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   CONTACT NEWS
   ============================================ */

.contact-news {
  padding: var(--sp-24) 0;
  background: var(--c-light);

  & .contact-news__header {
    margin-bottom: var(--sp-10);
  }

  & .contact-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);

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

  & .contact-news__item {
    background: var(--c-bg);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    border: 1px solid var(--c-border);
    transition: all var(--transition-base);

    &:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: var(--c-primary);
    }

    & h3 {
      font-family: var(--font-head);
      font-weight: 600;
      font-size: 1.05rem;
      margin-bottom: var(--sp-3);
      color: var(--c-dark);
    }

    & p {
      color: var(--c-muted);
      font-size: 0.9rem;
      line-height: 1.65;
      margin-bottom: var(--sp-4);
    }
  }

  & .contact-news__item-date {
    font-size: 0.8rem;
    color: var(--c-muted);
    margin-bottom: var(--sp-2);
  }

  & .contact-news__item-tag {
    display: inline-block;
    background: rgba(45,106,79,0.1);
    color: var(--c-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--sp-3);
  }

  & .contact-news__item-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
    transition: gap var(--transition-base);

    &:hover {
      gap: var(--sp-3);
    }
  }
}

/* ============================================
   THANKS PAGE
   ============================================ */

.thanks-main {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.thanks-hero {
  flex: 1;
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-32) var(--sp-6);
  text-align: center;
  min-height: calc(100vh - 80px);

  & .thanks-hero__inner {
    max-width: 600px;
  }

  & .thanks-hero__icon {
    font-size: 4rem;
    color: var(--c-accent);
    margin-bottom: var(--sp-6);
    animation: pulseCheck 2s ease infinite;
  }

  & .thanks-hero__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--c-light);
    margin-bottom: var(--sp-6);
    line-height: 1.2;
  }

  & .thanks-hero__text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: var(--sp-10);
  }

  & .thanks-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    background: transparent;
    color: var(--c-light);
    border: 2px solid rgba(255,255,255,0.5);
    padding: var(--sp-4) var(--sp-8);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);

    &:hover {
      background: rgba(255,255,255,0.15);
      border-color: var(--c-light);
      color: var(--c-light);
      transform: translateY(-2px);
    }
  }
}

@keyframes pulseCheck {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-hero {
  padding: calc(80px + var(--sp-12)) 0 var(--sp-12);
  background: var(--c-dark-surface);

  & .legal-hero__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--c-light);
    margin-bottom: var(--sp-3);
  }

  & .legal-hero__meta {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--sp-5);
  }

  & .legal-hero__intro {
    color: rgba(255,255,255,0.75);
    max-width: 700px;
    line-height: 1.7;
    font-size: 0.95rem;
  }
}


.legal-timeline {
  padding: var(--sp-16) 0 var(--sp-24);
  background: var(--c-bg);

  & .legal-timeline__track {
    position: relative;
    max-width: 800px;
    padding-left: var(--sp-12);

    &::before {
      content: '';
      position: absolute;
      left: 20px;
      top: 0;
      bottom: 0;
      width: 2px;
      background: var(--c-border);
    }

    @media (max-width: 600px) {
      padding-left: var(--sp-8);

      &::before {
        left: 12px;
      }
    }
  }

  & .legal-timeline__entry {
    position: relative;
    margin-bottom: var(--sp-10);

    &:last-child {
      margin-bottom: 0;
    }
  }

  & .legal-timeline__marker {
    position: absolute;
    left: calc(-1 * var(--sp-12) + 4px);
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--c-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-light);
    font-size
: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);

    @media (max-width: 600px) {
      left: calc(-1 * var(--sp-8) + 4px);
      width: 24px;
      height: 24px;
      font-size: 0.65rem;
    }
  }

  & .legal-timeline__content {
    background: var(--c-light);
    border-radius: var(--radius-lg);
    padding: var(--sp-6) var(--sp-8);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);

    @media (max-width: 600px) {
      padding: var(--sp-4) var(--sp-5);
    }

    & h2 {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 1.2rem;
      color: var(--c-dark);
      margin-bottom: var(--sp-4);
    }

    & h4 {
      font-family: var(--font-body);
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--c-dark);
      margin-top: var(--sp-5);
      margin-bottom: var(--sp-2);
    }

    & p {
      color: var(--c-muted);
      font-size: 0.92rem;
      line-height: 1.75;
      margin-bottom: var(--sp-3);

      &:last-child {
        margin-bottom: 0;
      }
    }

    & ul {
      display: flex;
      flex-direction: column;
      gap: var(--sp-2);
      margin-top: var(--sp-3);

      & li {
        color: var(--c-muted);
        font-size: 0.92rem;
        line-height: 1.65;
        padding-left: var(--sp-5);
        position: relative;

        &::before {
          content: '';
          position: absolute;
          left: 0;
          top: 0.6em;
          width: 6px;
          height: 6px;
          border-radius: 50%;
          background: var(--c-primary);
        }
      }
    }

    & a {
      color: var(--c-primary);
      text-decoration: underline;

      &:hover {
        color: var(--c-primary-dark);
      }
    }
  }

  & .legal-timeline__infobox {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    padding: var(--sp-4) var(--sp-5);
    margin-top: var(--sp-3);
    border-left: 3px solid var(--c-primary);

    & p {
      margin-bottom: var(--sp-1);
      font-size: 0.9rem;
      color: var(--c-dark);

      &:last-child {
        margin-bottom: 0;
      }

      & a {
        color: var(--c-primary);
      }
    }
  }
}


.legal-hero--terms {
  background: var(--c-dark);
}

.legal-terms-body {
  padding: var(--sp-16) 0 var(--sp-24);
  background: var(--c-bg);

  & .legal-terms-sections {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
  }

  & .legal-terms-section {
    display: flex;
    gap: var(--sp-6);
    align-items: flex-start;

    @media (max-width: 600px) {
      flex-direction: column;
      gap: var(--sp-3);
    }
  }

  & .legal-terms-section__letter {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--c-dark);
    color: var(--c-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);

    @media (max-width: 600px) {
      width: 44px;
      height: 44px;
      min-width: 44px;
      font-size: 1.2rem;
    }
  }

  & .legal-terms-section__content {
    flex: 1;
    background: var(--c-light);
    border-radius: var(--radius-lg);
    padding: var(--sp-6) var(--sp-8);
    border: 1px solid var(--c-border);

    @media (max-width: 600px) {
      padding: var(--sp-4) var(--sp-5);
    }

    & h2 {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 1.15rem;
      color: var(--c-dark);
      margin-bottom: var(--sp-4);
    }

    & p {
      color: var(--c-muted);
      font-size: 0.92rem;
      line-height: 1.75;
      margin-bottom: var(--sp-3);

      &:last-child {
        margin-bottom: 0;
      }
    }

    & ul {
      display: flex;
      flex-direction: column;
      gap: var(--sp-2);
      margin-top: var(--sp-3);
      margin-bottom: var(--sp-3);

      & li {
        color: var(--c-muted);
        font-size: 0.92rem;
        line-height: 1.65;
        padding-left: var(--sp-5);
        position: relative;

        &::before {
          content: '';
          position: absolute;
          left: 0;
          top: 0.6em;
          width: 6px;
          height: 6px;
          border-radius: 50%;
          background: var(--c-primary);
        }
      }
    }
  }
}


.legal-hero--cookies {
  background: var(--c-primary-dark);
}

.legal-cookies-body {
  padding: var(--sp-16) 0 var(--sp-24);
  background: var(--c-bg);

  & .container {
    max-width: 900px;
  }

  & .legal-cookies-intro {
    background: var(--c-light);
    border-radius: var(--radius-lg);
    padding: var(--sp-6) var(--sp-8);
    border: 1px solid var(--c-border);
    margin-bottom: var(--sp-8);

    & p {
      color: var(--c-muted);
      font-size: 0.95rem;
      line-height: 1.75;
    }
  }

  & .legal-cookies-table-section {
    margin-bottom: var(--sp-10);

    & h2 {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 1.3rem;
      color: var(--c-dark);
      margin-bottom: var(--sp-3);
    }

    & p {
      color: var(--c-muted);
      font-size: 0.92rem;
      line-height: 1.75;
      margin-bottom: var(--sp-4);
    }
  }

  & .legal-cookies-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    margin-bottom: var(--sp-4);
    box-shadow: var(--shadow-xs);
  }

  & .legal-cookies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;

    & thead {
      background: var(--c-dark);

      & th {
        color: var(--c-light);
        font-weight: 600;
        padding: var(--sp-3) var(--sp-4);
        text-align: left;
        font-size: 0.82rem;
        letter-spacing: 0.04em;
        white-space: nowrap;
      }
    }

    & tbody {
      & tr {
        background: var(--c-light);
        transition: background var(--transition-base);

        &:nth-child(even) {
          background: var(--c-surface);
        }

        &:hover {
          background: rgba(45,106,79,0.05);
        }
      }

      & td {
        padding: var(--sp-3) var(--sp-4);
        color: var(--c-muted);
        border-bottom: 1px solid var(--c-border);
        vertical-align: top;
        line-height: 1.55;

        & code {
          background: var(--c-surface-2);
          color: var(--c-primary-dark);
          padding: 2px 6px;
          border-radius: var(--radius-xs);
          font-family: monospace;
          font-size: 0.85em;
        }
      }
    }
  }

  & .legal-cookies-manage {
    background: var(--c-light);
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
    border: 1px solid var(--c-border);
    margin-bottom: var(--sp-8);

    & h2 {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 1.3rem;
      color: var(--c-dark);
      margin-bottom: var(--sp-4);
    }

    & p {
      color: var(--c-muted);
      font-size: 0.92rem;
      line-height: 1.75;
      margin-bottom: var(--sp-5);
    }
  }

  & .legal-cookies-manage__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    margin-bottom: var(--sp-5);

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

  & .legal-cookies-manage__option {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    padding: var(--sp-5);

    & h4 {
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--c-dark);
      margin-bottom: var(--sp-3);
    }

    & p {
      font-size: 0.88rem;
      margin-bottom: var(--sp-4);
    }

    & ul {
      display: flex;
      flex-direction: column;
      gap: var(--sp-2);

      & li {
        font-size: 0.85rem;
        color: var(--c-muted);
        padding-left: var(--sp-4);
        position: relative;

        &::before {
          content: '';
          position: absolute;
          left: 0;
          top: 0.6em;
          width: 5px;
          height: 5px;
          border-radius: 50%;
          background: var(--c-primary);
        }
      }
    }
  }

  & .legal-cookies-contact {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    padding: var(--sp-6) var(--sp-8);
    border: 1px solid var(--c-border);

    & h2 {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--c-dark);
      margin-bottom: var(--sp-3);
    }

    & p {
      color: var(--c-muted);
      font-size: 0.92rem;
      line-height: 1.75;

      & a {
        color: var(--c-primary);
        text-decoration: underline;

        &:hover {
          color: var(--c-primary-dark);
        }
      }
    }
  }
}

/* ============================================
   GLOBAL FOOTER
   ============================================ */

.global-footer {
  background: var(--c-dark);
  padding: var(--sp-16) 0 var(--sp-8);

  & .global-footer__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-6);
  }

  & .global-footer__logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);

    & img {
      height: 36px;
      filter: brightness(0) invert(1);
    }

    & span {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 1.2rem;
      color: var(--c-light);
    }
  }

  & .global-footer__tagline {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    font-style: italic;
    max-width: 400px;
  }

  & .global-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2) var(--sp-4);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;

    & a {
      color: rgba(255,255,255,0.75);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      transition: color var(--transition-base);

      &:hover {
        color: var(--c-accent);
      }
    }
  }

  & .global-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2) var(--sp-4);

    & a {
      color: rgba(255,255,255,0.45);
      text-decoration: none;
      font-size: 0.8rem;
      transition: color var(--transition-base);

      &:hover {
        color: rgba(255,255,255,0.75);
      }
    }
  }

  & .global-footer__contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2) var(--sp-6);

    & span, & a {
      color: rgba(255,255,255,0.6);
      font-size: 0.88rem;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: var(--sp-2);
      transition: color var(--transition-base);

      & i {
        color: var(--c-accent);
        font-size: 0.8rem;
      }

      &:hover {
        color: rgba(255,255,255,0.9);
      }
    }
  }

  & .global-footer__legal-info {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--sp-4);
    width: 100%;

    & p {
      color: rgba(255,255,255,0.35);
      font-size: 0.78rem;
      line-height: 1.6;
    }
  }

  & .global-footer__copy {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
  }
}

/* ============================================
   COOKIE CONSENT - FLOATING PILL
   ============================================ */

.kvl-cookie-pill {
  position: fixed;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--c-dark);
  color: var(--c-light);
  border-radius: var(--radius-full);
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  box-shadow: var(--shadow-xl);
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: calc(100vw - 2rem);

  &.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
  }

  & .kvl-cookie-pill__text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
  }

  & .kvl-cookie-pill__btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 36px;

    &--accept {
      background: var(--c-primary);
      color: var(--c-light);

      &:hover {
        background: var(--c-primary-light);
      }
    }

    &--customize {
      background: transparent;
      color: rgba(255,255,255,0.65);
      border: 1px solid rgba(255,255,255,0.2);

      &:hover {
        background: rgba(255,255,255,0.1);
        color: var(--c-light);
      }
    }
  }

  @media (max-width: 600px) {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    bottom: var(--sp-4);
    padding: var(--sp-4);
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

.kvl-cookie-modal {
  position: fixed;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--c-light);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  width: min(480px, calc(100vw - 2rem));
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--c-border);
  display: none;

  &.visible {
    display: block;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  @media (max-width: 600px) {
    bottom: var(--sp-4);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.kvl-cookie-modal__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-dark);
  margin-bottom: var(--sp-2);
}

.kvl-cookie-modal__desc {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-5);
}

.kvl-cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.kvl-cookie-modal__category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--c-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);

  & .kvl-cookie-modal__cat-info {
    flex: 1;

    & h4 {
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--c-dark);
      margin-bottom: var(--sp-1);
    }

    & p {
      font-size: 0.8rem;
      color: var(--c-muted);
      line-height: 1.5;
    }
  }
}

.kvl-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  min-width: 44px;

  & input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
  }

  & .kvl-toggle__track {
    position: absolute;
    inset: 0;
    background: var(--c-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-base);

    &::before {
      content: '';
      position: absolute;
      left: 3px;
      top: 3px;
      width: 18px;
      height: 18px;
      background: var(--c-light);
      border-radius: 50%;
      transition: transform var(--transition-base);
      box-shadow: var(--shadow-xs);
    }
  }

  & input:checked + .kvl-toggle__track {
    background: var(--c-primary);

    &::before {
      transform: translateX(20px);
    }
  }

  & input:disabled + .kvl-toggle__track {
    cursor: not-allowed;
    opacity: 0.7;
  }
}

.kvl-cookie-modal__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;

  & button {
    flex: 1;
    min-width: 120px;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 44px;

    &.kvl-btn-accept-all {
      background: var(--c-primary);
      color: var(--c-light);

      &:hover {
        background: var(--c-primary-dark);
      }
    }

    &.kvl-btn-save {
      background: var(--c-surface);
      color: var(--c-dark);
      border: 1px solid var(--c-border);

      &:hover {
        background: var(--c-surface-2);
      }
    }

    &.kvl-btn-reject {
      background: transparent;
      color: var(--c-muted);
      border: 1px solid var(--c-border);

      &:hover {
        color: var(--c-dark);
        border-color: var(--c-dark);
      }
    }
  }
}

.kvl-cookie-modal__footer {
  margin-top: var(--sp-4);
  text-align: center;

  & a {
    font-size: 0.78rem;
    color: var(--c-muted);
    text-decoration: underline;

    &:hover {
      color: var(--c-primary);
    }
  }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
  .home-hero {
    & .home-hero__inner {
      padding: var(--sp-12) var(--sp-4) var(--sp-10);
    }
  }

  .home-features {
    & .home-features__item {
      &:nth-child(3) {
        border-bottom: 1px solid var(--c-border);
      }
    }
  }

  .page-hero {
    padding: calc(80px + var(--sp-10)) 0 var(--sp-10);
  }
}

@media (max-width: 480px) {
  .home-hero__cta-wrap {
    flex-direction: column;
    align-items: stretch;

    & .global-btn {
      justify-content: center;
    }
  }

  .come-funziona-cta__btns {
    flex-direction: column;

    & .global-btn {
      justify-content: center;
    }
  }
}